LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Embedded Linux power button implementation (https://www.linuxquestions.org/questions/linux-newbie-8/embedded-linux-power-button-implementation-946117/)

dodlap 05-21-2012 05:59 AM

Embedded Linux power button implementation
 
Hello,

I am looking for driver support in linux( ARM- TI AM37xx) for implementing power button event detection, upon detecting this event driver should initiate proper shutdown sequence can any one help me on this issue.

Thanks in advance

jefro 05-21-2012 11:17 AM

You'd have to know the very basics of the system. In original PC the power button (power loss) creates a class 1 pri 1 interrupt and the system can't do much in time to save data. More modern designs have bios choices for power button and it's use in acpi or apm.
It has been many many years since I learned this stuff so I could be wrong. In any case you'd need to know the system you have. Almost every arm is unique that I have seen. No way to guess what is going on unless there is some platform reference. Contact the maker of the device to see if they have support.


All times are GMT -5. The time now is 11:08 PM.