LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-30-2011, 02:20 PM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Rep: Reputation: 3
ACPI issues


Hi all,
I am currently having some issues putting my laptop into Suspend mode via XFCE.

Sometimes the laptop does not suspend. Sometimes it will suspend up to 5 minutes after closing the lid/clicking suspend.

Regards
 
Old 01-01-2012, 01:26 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,421

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Snap! Same Problem by times.

Run acpid with -l (hack /etc/rc.d/rc.acpid)
You can then run
tail -fn 30 /var/log/messages

in a terminal and press acpi type things and see what's going on.
 
Old 01-03-2012, 10:48 AM   #3
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by business_kid View Post
Snap! Same Problem by times.

Run acpid with -l (hack /etc/rc.d/rc.acpid)
You can then run
tail -fn 30 /var/log/messages

in a terminal and press acpi type things and see what's going on.
Thanks, I shall have a look at my logs when I am back on my own machine.

Regards,
Jack.
 
Old 01-04-2012, 04:06 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,421

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
I'm discovering other stuff and would like to know their function. /usr/lib64/pm-utils is full of stuff. There's a very informative README about this in /usr/doc/pm-utils-1.4.1/README.SLACKWARE and a maintainer who has got *zero* emails, so I have fixed that problem for him and posted him this thread link.

EDIT: Try the utilities pm-suspend and pm-hibernate. For me
pm-suspend seems to do the business, but fails to turn things off.
pm-hibernate actually hibernated! I was amazed.

Last edited by business_kid; 01-04-2012 at 04:44 AM.
 
Old 01-04-2012, 08:46 AM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
I just replied to the email, but to summarize it, suspend/hibernate problems are rarely (if ever, these days) a problem with the pm-utils package. The kernel is the most important piece of the puzzle there.
 
Old 01-04-2012, 01:15 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,421

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
The kernel is the vmlinuz-huge-2.6.37.6 with slackware 13.37, so you know more about it that I do. I will rebuild, but not this week.

I seem to be sorted in a half-assed way:
/usr/sbin/pm-hibernate hibernates in an acceptable timeframe
/usr/sbin/pm-suspend suspends but fails to turn off (ugh!)

but 'echo mem > /sys/power/state' does it ok. So I modified the hibernate script

echo disk > /sys/power/state gives delays of apparently random length after blanking the screen, cutting out the keyboard, but before writing anything to disk

The box has also developed an ugly habit of going into continuous restore-->hibernate cycles linked so some faulty stuff being written onto the drive. I boot slamd64 to get out of it, and it finds loads of errors recovering the journal. All very weird. I'll get out all the quirks you guys compile in to the kernel and that will probably sort things.
 
Old 01-07-2012, 07:55 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,421

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Kernel 2.6.37.6 rebuilt largely from a previous attempt, and some issues remain.I have run down a few things, and come up with a question.

With acpid -l, I would get output in the logs of a hibernate command (my hibernate script), the first command of which was a 'sync;'. The next lines would say
Code:
Jan  6 18:54:14 harriet kernel: [21139.567385] PM: Syncing filesystems ... done.
Jan  6 18:54:14 harriet kernel: [21140.000319] sd 0:0:0:0: [sda] Synchronizing SCSI cache
I have figured that the "Sync" log entry is the Restore, and that it doesn't actually record the hibernate at all. Sorry for any wasted grey cells this may have caused.

The question involves this log segment from /var/log/syslog. Whassup?

Code:
bash-4.1$ grep blocked /var/log/syslog 
Dec 31 16:01:30 harriet kernel: [ 7920.624087] INFO: task kworker/u:5:1043 blocked for more than 120 seconds.
Dec 31 16:01:30 harriet kernel: [ 7920.624406] INFO: task pm-hibernate:3459 blocked for more than 120 seconds.
Dec 31 16:01:30 harriet kernel: [ 7920.624593] INFO: task kworker/u:3:3670 blocked for more than 120 seconds.
Jan  1 17:56:14 harriet kernel: [11880.621153] INFO: task echo:3553 blocked for more than 120 seconds.
Jan  1 17:56:14 harriet kernel: [11880.621373] INFO: task kworker/u:0:3554 blocked for more than 120 seconds.
Jan  1 17:56:14 harriet kernel: [11880.621614] INFO: task kworker/u:9:3561 blocked for more than 120 seconds.
Jan  1 18:10:28 harriet kernel: [12840.621131] INFO: task sync:3837 blocked for more than 120 seconds.
Before you attack my kernel, these are from the Slackware huge 2.6.37.6 kernel. Going off to google and check up on several things.
 
  


Reply



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
Power Issues, vanilla ubuntu kernel, (acpi etc) acpi -V outputs etc jamescondron Linux - Laptop and Netbook 1 02-16-2009 10:48 AM
ACPI issues ValidiusMaximus Linux - Software 4 01-25-2009 04:39 PM
ACPI Issues? kushalkoolwal Linux - Hardware 3 08-15-2007 03:05 PM
'acpi' issues. Devyn Linux - Software 8 01-05-2006 08:52 PM
ACPI thermal Issues benguin Linux - General 2 01-12-2004 11:01 PM

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

All times are GMT -5. The time now is 05:28 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