XO-1.5 ACPI ebook switch

Paul Fox pgf at laptop.org
Sat Nov 20 09:56:52 EST 2010


mitch wrote:
 > Does the ACPI spec say anything about an ebook switch?  Lid switch, 
 > power button and sleep button are standard ACPI thingys, but I'm not 
 > sure there is an ACPI standard for other kinds of buttons.  A search of 
 > the ACPI spec for "button" didn't find anything other than power and sleep.
 > 
 > ACPI, in general, tends to be about enumerating specific cases instead 
 > of creating a general purpose framework.

yes -- on irc i told daniel that, while it's quite possible that
there's some other compartment of the spec we could have fit the ebook
switch into, it wasn't clear to me at the time.  it's also possible
that managing it could be fit into some other linux driver, rather
than having its own.  (when i created olpc-switch.c, it wasn't yet clear
to me whether we'd have other 1.5-specific buttons or switches, so
it's more general than it perhaps needs to be.)

paul

 > 
 > On 11/19/2010 5:53 AM, Daniel Drake wrote:
 > > Hi,
 > >
 > > I'm looking at getting the XO-1.5 ACPI kernel changes upstream.
 > >
 > > Right now, the ebook switch has its own kernel driver for the XO15EBK
 > > HID, it seems like a design decision was taken in the ACPI DSDT that
 > > we should invent our own class instead of using the standard ACPI
 > > button one.
 > >
 > > However, the DSDT also exposes the lid and power switches as standard
 > > ACPI switches, which get driven by the standard Linux driver without
 > > complication.
 > >
 > > Can anyone recall why the ebook switch is its own class?
 > >
 > > Thanks,
 > > Daniel
 > _______________________________________________
 > Devel mailing list
 > Devel at lists.laptop.org
 > http://lists.laptop.org/listinfo/devel

=---------------------
 paul fox, pgf at laptop.org



More information about the Devel mailing list