From: Karl Weigel <xml-22047-Mmb7MZpHnFY@public.gmane.org>
To: Jens Haug <haug-X6ztD3ggwzuBAmxm6OvjtTjhTm2NLCe8@public.gmane.org>
Subject: Re: acpi-event for online/offline of ac-adapter
Date: Thu, 27 Feb 2003 23:26:58 +0100 [thread overview]
Message-ID: <200302272326.58114.xml-22047@gmx.de> (raw)
>> 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
>/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
next reply other threads:[~2003-02-27 22:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-27 22:26 Karl Weigel [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-27 13:01 acpi-event for online/offline of ac-adapter Jens Haug
2003-02-27 10:55 Karl Weigel
[not found] ` <200302271155.57663.xml-22047-Mmb7MZpHnFY@public.gmane.org>
2003-02-27 12:10 ` Sander Smeenk
2003-02-27 12:22 ` Adachi, Kenichi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200302272326.58114.xml-22047@gmx.de \
--to=xml-22047-mmb7mzphnfy@public.gmane.org \
--cc=haug-X6ztD3ggwzuBAmxm6OvjtTjhTm2NLCe8@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox