lkml.org 
[lkml]   [2006]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [RESEND] Add Dell laptop backlight brightness display
On Tue, Feb 07, 2006 at 01:06:45PM +0000, Richard Purdie wrote:

> This is total abuse of the backlight class. The idea is that
> cat /sys/class/backlight/ccc/brightness returns the *current* backlight
> brightness. On AC power it should return the AC brightness value and on
> DC power return the DC value.

Unfortunately, the hardware doesn't seem to give us that option. There's
no obvious way of determining whether we're on AC or DC from the kernel
without doing very nasty things with ACPI and APM (userspace can work it
out fairly easily).

Would you be open to adding generic support for displaying separate AC
and DC brightnesses? Making it driver specific leaves the potential for
inconsistencies.

--
Matthew Garrett | mjg59@srcf.ucam.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-07 14:26    [W:0.103 / U:3.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site