Linux Lite Forums
Software - Support => Other => Topic started by: Jerry on April 28, 2014, 04:41:21 AM
-
1) Open a terminal and type in:
sudo leafpad /etc/pm/sleep.d/20_custom-ehci_hcd
2) Paste the following code into the file, save then close it.
#!/bin/sh
#inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# tidied by tqzzaa :)
VERSION=1.1
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
MAX_BIND_ATTEMPTS=2
BIND_WAIT=0.1
unbindDev() {
echo -n > $DEV_LIST 2>/dev/null
for driver in $DRIVERS; do
DDIR=$DRIVERS_DIR/${driver}_hcd
for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
echo -n "$dev" > $DDIR/unbind
echo "$driver $dev" >> $DEV_LIST
done
done
}
bindDev() {
if [ -s $DEV_LIST ]; then
while read driver dev; do
DDIR=$DRIVERS_DIR/${driver}_hcd
while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
echo -n "$dev" > $DDIR/bind
if [ ! -L "$DDIR/$dev" ]; then
sleep $BIND_WAIT
else
break
fi
MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))
done
done < $DEV_LIST
fi
rm $DEV_LIST 2>/dev/null
}
case "$1" in
hibernate|suspend) unbindDev;;
resume|thaw) bindDev;;
esac
3) Make the file executable, in the same terminal type in:
sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd
Source: http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
Working on 1.0.6, need confirmation this will work on 1.0.8 please.
-
Have you had anyone confirm this on LL 1.08 yet?
Let me know if you have not I will try it on my Dell that has LL 1.08
ohjrson
-
I tried this on LinuxLite 2.0 (32bit), it didn't work.
I couldn't get the machine to hibernate.
Appreciate some help.
Thanks
-
Give this a go on 2.0 - http://ubuntuhandbook.org/index.php/2014/04/enable-hibernate-ubuntu-14-04/ just replace each instance of gedit with leafpad.
-
When I do
leafpad com.ubuntu.enable-hibernate.pkla
leafpad opened up an empty file???
The bottom instructions is hard for me to understand :
"Tips: if the config file does not work for you, try another one by changing /var/lib to /etc in the code..."
Is it saying that I should copy lib file at /var/ directory to /etc/ folder?
I am using linuxlite 2.0 and I have a swap partition of 7.8 gb but I can't get linuxlite to hibernate yet.
-
Start from the beginning:
Open your home folder, on the Menu go to Go, Filesystem.
Then navigate to /var/lib/
Right click on the polkit-1 folder and Open as Administrator.
Navigate to localauthority/50-local.d/
Once in there, right click on empty space and select Create document, Empty file, give it the name com.ubuntu.enable-hibernate.pkla
Paste the following contents into and save:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
Restart your comupter, then test.
-
GDBus.Error:org.freedesktop.DBus.Error.Failed: Operation not supported
I did exactly as suggested. navigated to polkit-1 (administrator)>proceeded to /localauthority/50-local.d/
Created with leafpad "com.ubuntu.enable-hibernate.pkla" > copied and pasted "code" > restarted netbook.
MSI U270 (Windows 7 Model)
AMD E-450
Partition for Linuxlite v2.0 = Logical Extended Ext4
Whenever I do a "sudo pm-hibernate," the screen becomes dark for a short period and then come back on again by itself.
The reason i hoped to get the hibernate feature working is because it takes a little bit long to boot. I have installed BUM but i don't see if there is anything that might perhaps be disabled. Hibernation method would be welcomed.
-
I am still unable to solve the problem of getting my linuxlite 2.0 machine to hibernate properly.
I get this error message :
"GDBus.Error:org.freedesktop.DBus.Error.Failed: Operation not supported"
Any other solutions to try or is it because my netbook hardware configuration will not support hibernation when using Linux?
Perhaps, I should wait for the newer kernel?