1 Sep 2005 01:03
Re: [patch] complete get and set lcd patch
David Zeuthen <david <at> fubar.dk>
2005-08-31 23:03:48 GMT
2005-08-31 23:03:48 GMT
On Wed, 2005-08-31 at 19:17 +0100, Richard Hughes wrote:
> Here's the latest complete patch as requested. Please review.
>
Looks pretty good. Thinking about it we should call it LaptopPanel
instead of LCDPanel.. since that is exactly what it is. LCDPanel might
mean an external monitor connected via VGA or DVI.
Some other comments:
+static gboolean
+lcdpanel_refresh (HalDevice *d, ACPIDevHandler *handler)
+{
We need to test that the 'brightness' file.. or whatever it's called on
various systems actually exist.. And bail out (refuse to add the hal
device object) if it's missing.
+ snprintf (path, sizeof (path), "%s/acpi/ibm", get_hal_proc_path ());
+ if (g_file_test (path, G_FILE_TEST_EXISTS))
+ acpi_synthesize_item (path, ACPI_TYPE_IBM_DISPLAY);
Maybe this should be "%s/acpi/ibm/brightness" instead? That would give
the check we need. Right?
+++ fdi/policy/10osvendor/16-lcdpanel-mgmt-policy.fdi 2005-08-31 18:31:15.000000000 +0100
Why 16? Why not just 10?
+++ tools/hal-system-lcd-get-brightness 2005-08-31 19:00:35.000000000 +0100
(Continue reading)
RSS Feed