Choose style:

Author Topic: wake from sleep failure (SOLVED)  (Read 6728 times)

0 Members and 1 Guest are viewing this topic.

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
wake from sleep failure (SOLVED)
« on: July 29, 2014, 11:34:01 am »
When I press the power button on the laptop, a window pops up with choices what to do.
I've always just clicked "Suspend" and the system powers down into sleep mode. But when I try to wake it back up, nothing happens.  I have an orange blinking light on the button (sleep mode) but pressing it does nothing. Mouse. Keyboard. Nothing wakes the system. I have to physically remove the battery to reset the computer in order to power it back up.
This bad behavior only surfaced after upgrading to Peppermint5 from peppermint4.
Any ideas?
« Last Edit: August 22, 2014, 12:25:57 pm by MattD »

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25282
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: wake from sleep failure
« Reply #1 on: July 29, 2014, 02:19:43 pm »
Can you post the output from:
Code: [Select]
inxi -F
and
Code: [Select]
free -m

And we're talking suspend here, not hibernation ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #2 on: July 29, 2014, 02:55:02 pm »
Yes. I'm talking suspend.  When I try to Hibernate I get in the logout window the following error:
GDBus.Error: org.freedesktop.dbUS.eRROR.FAILED: Operation not supported.  So that doesnt work either.

Code: [Select]
matt@Acer-AO751h ~ $ inxi -F
System:    Host: Acer-AO751h Kernel: 3.13.0-32-generic i686 (32 bit) Desktop: N/A Distro: Peppermint Five
Machine:   System: Acer (portable) product: AO751h
           Mobo: Acer model: JV11-ML Bios: Acer version: V0.3212 date: 02/26/2010
CPU:       Single core Intel Atom CPU Z520 (-HT-) cache: 512 KB flags: (nx pae sse sse2 sse3 ssse3 vmx)
           Clock Speeds: 1: 1067.00 MHz 2: 800.00 MHz
Graphics:  Card: Intel System Controller Hub (SCH Poulsbo) Graphics Controller
           X.Org: 1.15.1 drivers: (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits) GLX Version: 2.1 Mesa 10.1.3
Audio:     Card: Intel System Controller Hub (SCH Poulsbo) HD Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-32-generic
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169
           IF: eth0 state: down mac: 00:23:8b:e8:f9:2d
           Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) driver: ath5k
           IF: wlan0 state: up mac: 00:25:56:11:0d:3b
Drives:    HDD Total Size: 250.1GB (1.4% used) 1: id: /dev/sda model: ST9250315AS size: 250.1GB
Partition: ID: / size: 228G used: 3.2G (2%) fs: ext4
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 56.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 135 Uptime: 21 min Memory: 359.9/2006.7MB Client: Shell (bash) inxi: 1.9.17

Code: [Select]
matt@Acer-AO751h ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:          2006        756       1250         22         39        368
-/+ buffers/cache:        349       1657
Swap:            0          0          0
matt@Acer-AO751h ~ $


Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25282
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: wake from sleep failure
« Reply #3 on: July 29, 2014, 05:17:32 pm »
You don't seem to have a swap partition  :o

What's the output from:
Code: [Select]
sudo fdisk -l
and the contents of:
Code: [Select]
gedit /etc/fstab
?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #4 on: July 30, 2014, 01:13:38 pm »
Code: [Select]
matt@Acer-AO751h /etc/pm/config.d $ sudo fdisk -l
[sudo] password for matt:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c9dca

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   484222975   242110464   83  Linux
/dev/sda2       484225022   488396799     2085889    5  Extended
/dev/sda5       484225024   488396799     2085888   82  Linux swap / Solaris

Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=03c69cb2-2f80-4c02-a9a5-0568f0bc8720 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=10993358-a5b7-42fe-90bd-93777fa91ddf none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0


Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25282
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: wake from sleep failure
« Reply #5 on: July 30, 2014, 01:44:46 pm »
why have you got an encrypted swap partition ?

Have you got an encrypted /home folder ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #6 on: July 30, 2014, 02:16:17 pm »
It looks to me like some problem with the filesystem perhaps.  In /etc/fstab I see a reference to /dev/mapper/cryptswap.  In case it matters, When I installed P5 and setup my user account, it asked whether to encrypt home directory, which I selected.  So my home directory is supposedly encrypted.
Problem is that cryptswap disk cannot be mounted:

matt@Acer-AO751h /etc/pm/config.d $ sudo swapon -a
swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25282
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: wake from sleep failure
« Reply #7 on: July 30, 2014, 02:27:20 pm »
what's the output from:
Code: [Select]
swapon --summary

Though I'm not sure this is the problem if you mean suspend (as opposed to hibernate)

I'm beginning to think this might be down to the gma500 drivers .. what;s the output from:
Code: [Select]
sudo lshw -C display
« Last Edit: July 30, 2014, 02:47:06 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #8 on: July 30, 2014, 03:34:07 pm »
One thing I just noticed, the powerbutton on the laptop is usually glowing green when powered on. I see no light on that button now.  It is dark.  But when I put into suspend mode, the system will suspend, and the power button blinks amber, which is what I expect and have seen in the past. Only now, nothing will ever awake from sleep.

Yes my home is encrypted.  Nothing to show in the swapon --summary.  Like I said before, it appears the swadirectory is not/cannot be mounted, possbily because of the encryption settings.

Code: [Select]
matt@Acer-AO751h ~ $ swapon --summary
Filename Type Size Used Priority

Heres the video info:
Code: [Select]
matt@Acer-AO751h ~ $ sudo lshw -C display
  *-display               
       description: VGA compatible controller
       product: System Controller Hub (SCH Poulsbo) Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi vga_controller bus_master cap_list rom
       configuration: driver=gma500 latency=0
       resources: irq:16 memory:b0080000-b00fffff ioport:1800(size=8) memory:c0000000-cfffffff memory:b0000000-b003ffff
« Last Edit: July 30, 2014, 03:37:14 pm by MattD »

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25282
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: wake from sleep failure
« Reply #9 on: July 30, 2014, 04:25:47 pm »
Does the power light come on (on the button) when you first turn on the PC, then go off .. or does it not even come on during the POST screen ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #10 on: July 31, 2014, 03:21:15 pm »
OK. So I figured theres something wrong having selected "Encrypt" home directory. Cant remember if I didnt choose encrypt everything, but I knew that I did one of them.  So I decided to do a brand new clean install of P5 without any encryption selected.

I got the green light back on my power button.

Now when I type:

swapon --summary

I get:
Code: [Select]
matt@Acer-AO751h ~ $ swapon --summary
Filename Type Size Used Priority
/dev/mapper/peppermint--vg-swap_1       partition 2084860 0 -1


Hibernate still fails.  The screen goes black for a few seconds, then the lock screen appears prompting for password to login.
Doesnt actually hibernate.
It still does not wake from suspend. The system shuts down (apparently) normally. I get a blinking orange light on my power button. But nothing will revive the computer except cutting off all power, and removing the battery to force shutdown.


Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1012
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: wake from sleep failure
« Reply #11 on: July 31, 2014, 04:52:24 pm »
Hi MattD, I see you are still having problems after doing your reinstall.  Ubuntu in their infinite wisdom decided to disable the hibernate feature in 14.04.  It will, or should still work if you enter the following command into a terminal window:
Code: [Select]
sudo pm-hibernate
Hit enter, do the password thing if asked.  Your machine should hibernate and wake up.  If you are able to do this, you may want to try the following work around to get hibernate to work in the menus.  Create a new file by entering the following command into a terminal window:
Code: [Select]
gksudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Enter your user password when asked.  Copy and paste the following contents into the empty file:
Spoiler (click here to view / hide)
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
[close]
Save the file: Ctrl+s and quit gedit: Ctrl+q.  Test the hibernate function.  I hope this helps, have fun  ;)!!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline kbkatz

  • nOOb
  • *
  • Posts: 2
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #12 on: August 01, 2014, 03:21:17 pm »
This solution worked for me. 

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes

Offline MattD

  • nOOb
  • *
  • Posts: 15
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: wake from sleep failure
« Reply #13 on: August 01, 2014, 05:21:06 pm »
Hibernate did not work for me. When i ran

sudo pm-hibernate

The screen blacked out, the disk spun up for a second, the power button started to blink amber. But the system never shutdown. The monitor was still alive (although black) and the fan continued to run.
Nothing would wake the laptop from this state. Only press-hold the power button to force a complete poweroff.

Not to get sidetracked on the hibernate thing. Though it may be related.  The problem is "suspend".  Which works, since the system shuts down fine. But it simply will not wake back up.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1012
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: wake from sleep failure
« Reply #14 on: August 01, 2014, 05:44:04 pm »
Hibernate did not work for me. When i ran

sudo pm-hibernate

The screen blacked out, the disk spun up for a second, the power button started to blink amber. But the system never shutdown. The monitor was still alive (although black) and the fan continued to run.
Nothing would wake the laptop from this state. Only press-hold the power button to force a complete poweroff.. 

Not to get sidetracked on the hibernate thing. Though it may be related.  The problem is "suspend".  Which works, since the system shuts down fine. But it simply will not wake back up.
Yeah, there's a lot more going on "under the hood" than I'm familiar with.  I'm sure someone will come up with a few good ideas.  Good luck  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.