LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 02-11-2009, 04:51 AM   #1
LQ Newbie
Registered: Oct 2008
Location: Beijing
Posts: 17

Rep: Reputation: 0
Question how to detect system power event(user trigger),suspend,hibernate,resume...?

My user space Application wants to know whether and when a user click the hibernate/suspend/logout button.If it happens,My application should do some works to respond these can i do? Is there some reference or source code anywhere? As far as I know,communicating with acpid can just perceive the event that happen when user press the power button(hardware) on the computer.
Old 02-11-2009, 09:19 PM   #2
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 582

Rep: Reputation: 65
Check out these:
man acpid
man acpi_listen
0 members found this post helpful.


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
gnome-power-manager Suspend / Hibernate problem Robhogg Debian 1 11-04-2008 06:51 PM
How to reconnect to wifi on resume from hibernate/suspend? Slackware 12.1, madwifi thesk8ingtoad Slackware 1 08-22-2008 08:15 AM
HP Laptop hibernate/suspend/resume question Jongi Debian 4 05-20-2008 09:08 PM
Hibernate / Suspend Not Working - Gnome Power Manager ls37 Linux - Newbie 5 12-30-2007 02:14 PM
Power Saving Modes (Hibernate vs Suspend) carlosinfl Linux - General 3 06-29-2007 10:19 AM

All times are GMT -5. The time now is 02:47 PM.

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