Thursday, 10 July 2014

fixing suspend on ubuntu

On lenovo Y500 with Ubuntu 14.04 suspend is not working properly. Reinstallation of video drivers does not really affect situation. What worked for me is taken from here http://ubuntuforums.org/showthread.php?t=1978290

Step 1: Open up a terminal and create a scrip file as follows:

sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd

Step 2: paste script

#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
TMPLIST=/tmp/ehci-dev-list

case "${1}" in
        hibernate|suspend)

        ;;
        resume|thaw)

     chvt 1
     chvt 7
        ;;
esac

Step 3: Give the script permission to run by typing the following in the terminal:

sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd

Sunday, 29 June 2014

mini-dinstall upstart

After installation and configuration of mini-dnstall it's a nice ida to have upstart service.
Take a look here for example
https://github.com/aakhmerov/examples/blob/mini-dinstall-upstart/mini-dinstall
see in README.md installation instructions for ubuntu
sudo cp ./mini-dinstall /etc/init.d
sudo chmod 755 /etc/init.d/mini-dinstall
sudo chown root:root /etc/init.d/mini-dinstall
sudo update-rc.d mini-dinstall defaults
initial version of upstart taken from http://burtonini.com/computing/mini-dinstall