Re: [PATCH, RFC] Driver for reading HP laptop LCD brightness

From: Pavel Machek
Date: Sun Feb 05 2006 - 16:51:14 EST


Hi!

> The attached patch provides a sysfs mechanism for reading the LCD
> brightness on HP laptops. Since there's no clean way to determine
> whether a machine is a laptop or not from within the kernel (this
> information is in the DMI tables, but we don't currently export the
> chassis field), it does nothing until userspace has enabled it.

Can you fix the DMI code to export chasis, then?

> Right now, I'm looking for comments on how to integrate it sensibly -
> leaving it under drivers/misc and registering it as a platform device
> /works/, but isn't terribly clean.

Lots of handhelds ave brightness settings, and it is *very* important
there. Perhaps you could use same interface?
Pavel
--
Thanks, Sharp!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/