acpi-event for online/offline of ac-adapter
Quoted 7 lines
Quoted 2 lines
do you think it would make sense to generate an
/proc/acpi/event, whenever the power-supply gets connected or disconnected?There is one. Well, two actually. One for connecting and one for disconnecting. ;-)
Jens
Sorry to have bothered you with my less-than-new ideas ;-)
Of course I tried to disconnect and reconnect the power supply, and I saw the state was getting set to online and offline, but doing the same with a cat listening on /proc/acpi/events did not see any events from un-/re-plugging. I am rebooting my laptop to verify this behaviour. And yes: In /proc/acpi/ac_adapter/AC/state I can see the state switching between on-line and off-line, while cat /proc/acpi/event does not see a power-related event. (After using modprobe button I can see, whether the power-button has been pressed)
I am using version 20030122
(And while I was looking for the place, where the on-line/off-line events should be generated I found, that my laptop does not react to echo 2
Quoted 1 line
/proc/acpi/processor/CPU0/throttling. Doing the same on my tower does
produce the expected result. But I wont try to disconnect the powersupply on that machine for obvious reasons)
To make the long story even longer: I have seen in the source, that it should work, and I have seen with cat /proc/acpi/event, that it does not.
Kind regards
Karl
P.S. Sorry for not staying in the thread, but GMX thougt it a good idea to mark your E-Mail as infected and did strange things to it because of that. I switched that feature off again.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf