Support Requests - CLICK TO READ BEFORE POSTING


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Enabling Suspend on Linux Lite
#1

1) Open a terminal and type in:
Code:
sudo leafpad /etc/pm/sleep.d/20_custom-ehci_hcd

2) Paste the following code into the file, save then close it.
Code:
#!/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:

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

Source: http://thecodecentral.com/2011/01/18/fix...orking-bug

Working on 1.0.6, need confirmation this will work on 1.0.8 please.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#2

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

LL 6.6 Dell Power Edge T310 Quad core 32g
LL 6.6 Acer E5-722-49HD A4-7210 Quad core
LL 6.6 Acer AX3812-E9502 intel Quad core
LL 6.2 Dell Optiplex 755 intel Core 2 duo
LL 3.8 Acer Aspire 3000 AMD processor
Simple, Fast, Efficient, Free, and Beats Windows all to hell.
Reply
#3

I tried this on LinuxLite 2.0 (32bit), it didn't work.

I couldn't get the machine to hibernate.

Appreciate some help.

Thanks
Reply
#4

Give this a go on 2.0 - http://ubuntuhandbook.org/index.php/2014...ntu-14-04/ just replace each instance of gedit with leafpad.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#5

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.
Reply
#6

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:

Code:
[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.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#7

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.
Reply
#8

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)