Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-04-2012, 06:50 AM   #1
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Rep: Reputation: Disabled
sleep,hibernate and user lock,unlock events

Dear all,

Is it possible to programetically [using C] capture/record power events like sleep,hibernate and user lock,unlock events into a flat file.
I mean is there any such user space or kernel structure holding such data. Any such User or Kernel API?
Googled thoroughly didn't find any answers or sample code.I saw a couple of posts related to same issue, but didn't find any useful answer.

Thanks in advance for help.
Old 08-02-2012, 01:23 AM   #2
LQ Newbie
Registered: Aug 2012
Posts: 17

Rep: Reputation: Disabled
I am not sure if I got your question correct but if you mean that you want the exact events taking place when the system is suspended,you can check the events occurring in the log file. For instance,the hibernation process can be checked in /var/log/pm-hibernate.log.
I am not sure about the log of user lock event though.


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
I want to use 'Sleep' and 'Hibernate' AGazzaz Linux - Desktop 8 10-05-2011 03:12 PM
user lock/unlock by bad tries LinuxLover Solaris / OpenSolaris 2 10-26-2010 03:45 PM
catch login, hibernate, suspend events.. blahblah Programming 2 04-07-2010 02:13 PM
lock and unlock munna_dude Programming 1 05-18-2007 06:03 AM
About Lock And Unlock George2 Programming 8 08-23-2005 11:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

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
Open Source Consulting | Domain Registration