David Woodward
March 22nd, 2014, 05:58 AM
I have an Acer C720 Chromebook that I've loaded ubuntu 13.10 onto... kind of. Since it's limited in space I took this opportunity to learn how to install a very minimal installation and I think I may have trimmed a little too much off.
The problem is that scripts dropped into /usr/lib/systemd/system-sleep are not executing on sleep/resume.
I found another person having a similar problem which they resolved by installing pm-utils and then placing the pm-utils equivalent to their script in /etc/pm/sleep.d and I was able to get that to work. However, I'd still like to know what I missed installing for the (seemingly more common/standard) systemd method not to work.
I've checked to ensure that systemd-services is installed, the scripts were marked as executable, and they run manually without error and the exact same script works under the pm-utils (after changing "pre/post" args to "suspend/resume"). So, I really don't think it's something I'm doing wrong in regard to the script setup. I think there must be some component that it depends on that I didn't install.
For your refrence, here are the commands I used to install my minimal ubuntu desktop environment on top of my minimal command line install.
sudo apt-key update
sudo apt-get install software-properties-common
sudo apt-get install wget apt-transport-https
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-key update
sudo apt-add-repository 'deb https://dl.google.com/linux/chrome/deb/ stable main'
sudo apt-key update
sudo apt-get install --no-install-recommends ubuntu-desktop
sudo apt-key update
sudo apt-get install gparted samba gnome-control-center-unity unity-scope-home google-chrome-stable indicator-application indicator-appmenu indicator-bluetooth indicator-messages indicator-power indicator-printers indicator-session indicator-sound indicator-sync indicator-datetime indicator-power indicator-session ttf-ubuntu-font-family unity-lens-applications unity-lens-files network-manager-gnome synaptic gnome-terminal plymouth-theme-ubuntu-logo activity-log-manager pm-utils gcc make linux-headers-$(uname -r)
And then of course I had to recomplile the kernel to include the funky touchpad drivers (which seem to be more sensative to grounding issues than whatever the actual ChromeOS is using - but that's another story)
mykern=`ls /boot/vmlinuz-* | grep -oP "[0-9].*" | sort -rV | head -1`
wget http://goo.gl/kz917j
sudo bash kz917j $mykern
Thanks in advance for your help.
(Hopefully this hasn't already been covered. I did search the forums before posting, but I couldn't find this specific issue mentioned anywhere)
The problem is that scripts dropped into /usr/lib/systemd/system-sleep are not executing on sleep/resume.
I found another person having a similar problem which they resolved by installing pm-utils and then placing the pm-utils equivalent to their script in /etc/pm/sleep.d and I was able to get that to work. However, I'd still like to know what I missed installing for the (seemingly more common/standard) systemd method not to work.
I've checked to ensure that systemd-services is installed, the scripts were marked as executable, and they run manually without error and the exact same script works under the pm-utils (after changing "pre/post" args to "suspend/resume"). So, I really don't think it's something I'm doing wrong in regard to the script setup. I think there must be some component that it depends on that I didn't install.
For your refrence, here are the commands I used to install my minimal ubuntu desktop environment on top of my minimal command line install.
sudo apt-key update
sudo apt-get install software-properties-common
sudo apt-get install wget apt-transport-https
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-key update
sudo apt-add-repository 'deb https://dl.google.com/linux/chrome/deb/ stable main'
sudo apt-key update
sudo apt-get install --no-install-recommends ubuntu-desktop
sudo apt-key update
sudo apt-get install gparted samba gnome-control-center-unity unity-scope-home google-chrome-stable indicator-application indicator-appmenu indicator-bluetooth indicator-messages indicator-power indicator-printers indicator-session indicator-sound indicator-sync indicator-datetime indicator-power indicator-session ttf-ubuntu-font-family unity-lens-applications unity-lens-files network-manager-gnome synaptic gnome-terminal plymouth-theme-ubuntu-logo activity-log-manager pm-utils gcc make linux-headers-$(uname -r)
And then of course I had to recomplile the kernel to include the funky touchpad drivers (which seem to be more sensative to grounding issues than whatever the actual ChromeOS is using - but that's another story)
mykern=`ls /boot/vmlinuz-* | grep -oP "[0-9].*" | sort -rV | head -1`
wget http://goo.gl/kz917j
sudo bash kz917j $mykern
Thanks in advance for your help.
(Hopefully this hasn't already been covered. I did search the forums before posting, but I couldn't find this specific issue mentioned anywhere)