LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-13-2015, 04:29 AM   #1
nando88
LQ Newbie
 
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
Power event Driver


I was wondering if someone can help me make a driver, that monitors power events in a linux os. I found some code on the net, that claims to do this, and I started a project with this, but I'm missing some classes that I can't find.
This is the code I found:
http://lxr.free-electrons.com/source/include/linux/pm.h
and the class I can't find, is this one: disabled features.h
I also don't know how to send something back, when a power event occurs, such as shutdown, hibernate, sleep, restart or logoff.
I tried to read the code, but I couldn't understand it, so I would really appreciate it , if someone could tell me where can I add some return statement, so that when one of these events occur, the user knows.
Any help will be greatly appreciated.
Thanks.
 
  


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
Linux driver event specificaton Snaidy1 Linux - Software 1 04-27-2013 11:49 AM
ACPI does not detect power event? narke Slackware 18 12-19-2011 03:33 AM
how to detect system power event(user trigger),suspend,hibernate,resume...? minge.zu Linux - Desktop 1 02-11-2009 08:19 PM
Lockup on power event... grcore Mandriva 4 10-10-2005 07:19 AM
Batch Script to shutdown the system in the event of power loss scottpioso Linux - Hardware 5 03-12-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration