Re: [ibm-acpi-devel] CONFIG_IBM_BAY

Henrique de Moraes Holschuh
2007-03-20T00:12:54Z

On Mon, 19 Mar 2007, Kristen Carlson Accardi wrote:
> Is this what you had in mind? (Warning - I didn't test this).
>
>
> Allow the driver to be loaded with an option that will allow userspace to
> control whether the laptop is ejected immediately when the user presses the
> button, or only when the syfs undock file is written.
>
> if immediate_undock == 1, then when the user presses the undock button, the
> laptop will send an event to userspace to notify userspace of the undock, but
> then immediately undock without waiting for userspace. This is the current
> behavior, and I set this to be the default.
>
> if immediate_undock == 0, then when the user presses the undock button, the
> laptop will send an event to userspace and do nothing. User space can query
> the "flags" sysfs entry to determine if an undock request has been made by
> the user (if bit 1 is set). User space will then need to write the undock
> sysfs entry to complete the undocking process.

Yes, that's it exactly. I didn't try to test it, as I don't have a dock,
but the above describes what I wanted, indeed.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh