LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-16-2014, 11:47 AM   #1
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,487

Rep: Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809
Anybody else having a problem with resume from suspend to disk with kernel 3.14.3+ ?


I am curious to know whether anybody else is seeing a problem with resume from S4 (suspend to disk) with the latest kernels in -current (3.14.3 and 3.14.4).
On my netbook, on resume from S4, the system starts up and then hibernates again. If I then resume again, the system starts and all is OK.
The only clue I have seen is a slight difference in the dmesg output.
On first resume
Code:
[ 6587.879162] ata3: SATA link down (SStatus 0 SControl 300)
[ 6587.879192] usb 5-2: reset high-speed USB device number 2 using ehci-pci
[ 6587.881115] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 6587.882564] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[ 6587.884765] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
[ 6587.885177] ata1.00: configured for UDMA/133
[ 6587.885352] sd 0:0:0:0: [sda] Starting disk
while on second resume
Code:
[ 6590.881182] usb 5-2: reset high-speed USB device number 2 using ehci-pci
[ 6590.881192] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 6590.882669] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[ 6590.882712] ata3: SATA link down (SStatus 0 SControl 300)
[ 6590.884801] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
[ 6590.885208] ata1.00: configured for UDMA/133
[ 6590.885386] sd 0:0:0:0: [sda] Starting disk
Perhaps some race condition?
 
Old 05-16-2014, 10:27 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,487

Original Poster
Rep: Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809
The deafening silence tells me all I need to know.
 
1 members found this post helpful.
Old 06-05-2014, 10:40 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,487

Original Poster
Rep: Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809
Just found the answer to my problem.
I trigger suspend to disk by closing the lid. The button/lid event then runs /usr/sbin/pm-hibernate from within /etc/acpi/acpihandler.sh
I find that I need to add an additional check on the lid status (shown in bold) to avoid the second hibernation event.
Code:
lid) grep -q closed /proc/acpi/button/lid/LID0/state && /usr/sbin/pm-hibernate
 
Old 06-15-2014, 11:59 AM   #4
A52dragon
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
Could use a little more support

I was going to say good morning but you are most likely sleeping.

This seems to be my problem also

Novice
I could find my way to the folders but got lost after that.
Would appreciate a little more detailed instructions if you have time

Thank you Allend
 
Old 06-15-2014, 06:56 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,487

Original Poster
Rep: Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809
Good morning and welcome to LQ!
This is the complete script.
Code:
bash-4.3$ cat /etc/acpi/acpi_handler.sh 
#!/bin/sh
# Default acpi script that takes an entry for all actions

IFS=${IFS}/
set $@

case "$1" in
  button)
    case "$2" in
      power) /sbin/init 0
         ;;
      lid) grep -q closed /proc/acpi/button/lid/LID0/state && /usr/sbin/pm-hibernate
         ;;
      *) logger "ACPI action $2 is not defined"
         ;;
    esac
    ;;
  *)
    logger "ACPI group $1 / action $2 is not defined"
    ;;
esac
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Automatically Resume from Suspend to Ram and Suspend to Disk to Save Battery in Linux LXer Syndicated Linux News 0 05-10-2013 03:40 AM
Intrepid MacBook Pro 2,2 does not resume from suspend with attached firewire disk tp42 Ubuntu 1 01-24-2009 11:12 PM
Suspend to disk in opensuse 11.0 works but resume loses the router. petermcp SUSE / openSUSE 2 06-26-2008 08:06 AM
Pause and resume Gnome Mixer Applet for Suspend-to-disk cdhgee Linux - Software 0 11-21-2005 11:44 PM
SuSE 9.1 suspend-to-disk: resume doesn't work mabuse Linux - General 0 10-25-2004 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration