Re: [patch 2/3] acpi: Add a docked sysfs file to the dock driver.

From: Stefan Schmidt
Date: Tue Dec 12 2006 - 17:13:52 EST


Hello.

On Mon, 2006-12-11 at 12:05, Kristen Carlson Accardi wrote:
> On Sat, 9 Dec 2006 12:59:58 +0100
> Holger Macht <hmacht@xxxxxxx> wrote:
>
> > Well, I like to have them ;-)
>
> Ok - how is this?
>
> Send a uevent to indicate a device change whenever we dock or
> undock, so that userspace may now check the dock status via
> sysfs.

I would like to have two different events for dock and undock.

This way the userspace listener don't need to check the status file in
sysfs to know if there was a dock or undock after getting the event.

Anyway the status file is still usefull for programs don't react on
the events, but like to know if the laptop is docked before starting
for example.

regards
Stefan Schmidt

Attachment: signature.asc
Description: Digital signature