> do you think it would make sense to generate an /proc/acpi/event, wheneve=
> power-supply gets connected or disconnected?
There is one. Well, two actually. One for connecting and one for
IKFF Universit=E4t Stuttgart Tel. 0711/685-6422
Pfaffenwaldring 9 Fax 0711/685-6356
70550 Stuttgart=09 haug@...
From: Karl Weigel <xml-22047@gm...> - 2003-02-27 22:27:45
>> do you think it would make sense to generate an /proc/acpi/event, when=
>> the power-supply gets connected or disconnected?
> There is one. Well, two actually. One for connecting and one for
> disconnecting. ;-)
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=
state was getting set to online and offline, but doing the same with a ca=
listening on /proc/acpi/events did not see any events from un-/re-pluggin=
am rebooting my laptop to verify this behaviour. And yes: In=20
/proc/acpi/ac_adapter/AC/state I can see the state switching between on-l=
and off-line, while cat /proc/acpi/event does not see a power-related eve=
(After using modprobe button I can see, whether the power-button has been=
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=20
>/proc/acpi/processor/CPU0/throttling. Doing the same on my tower does=20
produce the expected result. But I wont try to disconnect the powersupply=
that machine for obvious reasons)
To make the long story even longer: I have seen in the source, that it sh=
work, and I have seen with cat /proc/acpi/event, that it does not.
P.S. Sorry for not staying in the thread, but GMX thougt it a good idea t=
mark your E-Mail as infected and did strange things to it because of that=
switched that feature off again.