LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-08-2012, 01:24 AM   #1
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 300

Rep: Reputation: 47
machine shuts down itself after successful resume from suspend


Hello,

My slackware 13.37 xbmc htpc system is working very great. But recently I found a problem: it shuts down itself after successful resme from suspend. I suspend or resume the system by single pressing the physical "Power" button. You know suspend function is very important for HTPC due to the long fresh boot time.

What could be wrong?

ls /etc/acpi/events/
Code:
sleep-button
cat /etc/acpi/events/sleep-button
Code:
event=button/power.*
action=/etc/acpi/actions/sleep-button.sh "%e"

cat /etc/acpi/actions/sleep-button.sh
Code:
#!/bin/sh
pm-suspend 
modprobe imon

/var/log/message:

Code:
Jun  8 20:49:13 xbmc kernel: [28681.254496] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jun  8 20:49:13 xbmc kernel: [28681.256899] ata4.00: configured for UDMA/133
Jun  8 20:49:13 xbmc kernel: [28681.323699] PM: resume of devices complete after 6509.510 msecs
Jun  8 20:49:13 xbmc kernel: [28681.323745] input: iMON Panel, Knob and Mouse(15c2:0038) as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/input/input4
Jun  8 20:49:13 xbmc kernel: [28681.331392] Registered IR keymap rc-imon-pad
Jun  8 20:49:13 xbmc kernel: [28681.331503] input: iMON Remote (15c2:0038) as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/rc/rc1/input5
Jun  8 20:49:13 xbmc kernel: [28681.331537] rc1: iMON Remote (15c2:0038) as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/rc/rc1
Jun  8 20:49:13 xbmc kernel: [28681.339458] imon 7-1:1.0: iMON device (15c2:0038, intf0) on usb<7:2> initialized
Jun  8 20:49:13 xbmc kernel: [28681.339479] imon 7-1:1.1: iMON device (15c2:0038, intf1) on usb<7:2> initialized
Jun  8 20:49:16 xbmc kernel: [28684.330999] ata4.00: configured for UDMA/133
Jun  8 20:49:16 xbmc kernel: [28684.331007] ata4: EH complete
Jun  8 20:49:16 xbmc shutdown[14430]: shutting down for system halt
Jun  8 20:49:16 xbmc kernel: [28685.185164] EXT4-fs (sda6): re-mounted. Opts: commit=0
Jun  8 20:49:17 xbmc kernel: [28685.554349] EXT4-fs (sda7): re-mounted. Opts: commit=0
Jun  8 20:49:17 xbmc kernel: [28685.556932] EXT4-fs (sda5): re-mounted. Opts: commit=0
Jun  8 20:49:17 xbmc acpid: client 1943[0:0] has disconnected
Jun  8 20:49:17 xbmc acpid: client connected from 1943[0:0]
Jun  8 20:49:17 xbmc acpid: 1 client rule loaded
Jun  8 20:49:18 xbmc init: Switching to runlevel: 0
Jun  8 20:49:19 xbmc kernel: [28687.968474] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun  8 20:49:19 xbmc kernel: [28688.076411] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun  8 20:49:20 xbmc avahi-dnsconfd[1917]: Got SIGTERM, quitting.
Jun  8 20:49:20 xbmc avahi-daemon[1910]: Got SIGTERM, quitting.
Jun  8 20:49:20 xbmc avahi-daemon[1910]: avahi-daemon 0.6.31 exiting.
Jun  8 20:49:21 xbmc sshd[1612]: Received signal 15; terminating.
Jun  8 20:49:22 xbmc logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo down
Jun  8 20:49:22 xbmc acpid: exiting
Jun  8 20:49:22 xbmc exiting on signal 15

Last edited by kite; 06-08-2012 at 01:26 AM.
 
Old 06-08-2012, 01:40 AM   #2
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 300

Original Poster
Rep: Reputation: 47
update

Well, issuing command pm-suspend from remote ssh login instead prevented the system from shutting down itself after resume. Is it a bios setting problem? But I have disabled power off by single pressing the POWER button within bois.
 
Old 09-24-2012, 11:17 AM   #3
Joshua Eckroth
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
I believe your problem is there is another script in /etc/acpi that performs a shutdown when the power button is pressed. In other words, you have two active scripts: one performs suspend, one performs shutdown. Check /etc/acpi/events/default (I had to remove the default shutdown option in that file after I added my own suspend script).
 
Old 09-25-2012, 12:58 AM   #4
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 300

Original Poster
Rep: Reputation: 47
Thanks for your hints. But I think my /etc/acpi/ directory is clean without the original defaults.
Quote:
root@xbmc:/etc/acpi/events# ls
sleep-button

root@xbmc:/etc/acpi/events# cat sleep-button
event=button/power.*
#button/power PWRF 00000080 00000002
action=/etc/acpi/actions/sleep-button.sh "%e"
Quote:
root@xbmc:/etc/acpi/actions# ls
sleep-button.sh*

root@xbmc:/etc/acpi/actions# cat sleep-button.sh
#!/bin/sh
pm-suspend
modprobe imon
 
Old 09-25-2012, 01:30 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Do you have any other power-manager running, like the one from XFCE? I had a similar problem and recognized that the running power-manager interfered with the ACPI scripts.
 
  


Reply

Tags
resume, shut down after resume, suspend


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
[SOLVED] Why do nVida drivers hose suspend/resume or hibernate/resume? taylorkh Linux - Hardware 3 06-23-2011 01:09 PM
can't resume after suspend newbiesforever Linux - General 1 08-26-2009 06:52 AM
Waking up after suspend shuts down pc dive Linux - Kernel 1 05-27-2008 07:33 PM
laptop shuts down after suspend to ram dosnlinux Linux - Laptop and Netbook 4 11-03-2006 09:44 PM
ACPI shuts down after resume from suspend on SuSE 9.1 pmehta1613 Linux - Laptop and Netbook 0 01-18-2005 11:08 AM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration