LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-07-2010, 05:41 AM   #1
sammy_aus
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
catching the hibernate event


Hello,

Is it possible to catch the power management events(hibarnate/standby/sleep) into the code(c++)?

Can enyone show me any samlpe code?

Thanks in advance.
 
Old 06-08-2010, 02:52 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Yes, you can.

Google for "ACPI", or "Linux hibernate C++ ACPI". You should find lots of hits.

Good luck - and have fun!
 
Old 06-09-2010, 10:11 AM   #3
sammy_aus
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks.
But in fact i have spent few hours googling this before posted questions.
I can't really find how to subscript to power management event using acpi_listen?

Maybe you can help?
 
  


Reply

Tags
events, management, power


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
13.1 Beta1 :: KDE SC 4.4.3 :: pm-hibernate works, KDE hibernate just locks the screen zordrak Slackware 7 05-12-2010 04:55 AM
how to detect system power event(user trigger),suspend,hibernate,resume...? minge.zu Linux - Desktop 1 02-11-2009 09:19 PM
Fire Event from other event in Visual C++ Express Edition chrisliando Programming 1 11-08-2007 06:12 PM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 11:21 AM
Catching first letter. TheRealDeal Linux - General 1 03-28-2004 09:50 PM


All times are GMT -5. The time now is 07:44 PM.

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