suspend - pm-utils not working in Ubuntu 14.04 - Ask Ubuntu


/etc/pm/sleep.d/00_update has these permissions:

-rwxr-xr-x 1 root root  148 oct 28 09:46 00_update 

and following content:

#!/bin/bash  case "$1" in   hibernate|suspend)     echo suspended >> ~/.state     ;;   thaw|resume)     echo awake >> ~/.state     ;; esac 

but nothing happens after suspending, hibernating or restarting system.

in folder there other files, namely:

-rwxr-xr-x 1 root root  210 may 15  2014 10_grub-common -rwxr-xr-x 1 root root  660 dic  6  2013 10_unattended-upgrades-hibernate -rwxr-xr-x 1 root root 1260 may 23  2012 novatel_3g_suspend 

is there additional step in order make 00_update run properly?

since bash script in /etc/pm/sleep.d/00_update run root user, ~/.state means other home directory.

replace both occurrences of ~/.state absolute path, /home/w3/.state (ymmv).

also, if use encrypted home directory, there times when not mounted (when not logged in), consider writing file /tmp.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User