LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-11-2009, 03:51 AM   #1
minge.zu
LQ Newbie
 
Registered: Oct 2008
Location: Beijing
Posts: 17

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


Hi,everyone
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 event.how 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.
Thanks
 
Old 02-11-2009, 08:19 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, Arch
Posts: 572

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


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


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

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