You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Enabling Suspend on Linux Lite

Author (Read 8080 times)

0 Members and 1 Guest are viewing this topic.

Re: Enabling Suspend on Linux Lite
« Reply #8 on: September 07, 2014, 12:56:11 PM »
 

philip chan yee ling

  • Guest
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?
 

Re: Enabling Suspend on Linux Lite
« Reply #7 on: September 05, 2014, 06:59:29 AM »
 

philip chan yee ling

  • Guest
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.
« Last Edit: September 05, 2014, 07:03:15 AM by philip chan yee ling »
 

Re: Enabling Suspend on Linux Lite
« Reply #6 on: September 02, 2014, 02:39:30 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
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: [Select]
[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.
 

Re: Enabling Suspend on Linux Lite
« Reply #5 on: September 02, 2014, 06:04:44 AM »
 

philip chan yee ling

  • Guest
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.
 

Re: Enabling Suspend on Linux Lite
« Reply #4 on: August 30, 2014, 04:30:09 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
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.
 

Re: Enabling Suspend on Linux Lite
« Reply #3 on: August 29, 2014, 08:06:11 AM »
 

philip chan yee ling

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

I couldn't get the machine to hibernate.

Appreciate some help.

Thanks
 

Re: Enabling Suspend on Linux Lite
« Reply #2 on: May 22, 2014, 12:50:24 AM »
 

ohjrson

  • I know enough to get into trouble
  • Forum Regular
  • ***
  • 189
    Posts
  • Reputation: 13
  • Linux Lite Member
    • View Profile

  • CPU: Quad core

  • MEMORY: 32Gb

  • VIDEO CARD: internal

  • Kernel: 6.x
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.
 

Enabling Suspend on Linux Lite
« Reply #1 on: April 28, 2014, 04:41:21 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
1) Open a terminal and type in:
Code: [Select]
sudo leafpad /etc/pm/sleep.d/20_custom-ehci_hcd
2) Paste the following code into the file, save then close it.
Code: [Select]
#!/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: [Select]
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.
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section