[Pommed-devel] backlight support for macbook rev 3
Steffen Schulz
pepe at cbg.dyndns.org
Thu Jul 26 22:52:37 UTC 2007
On 070727 at 00:00, Julien BLACHE wrote:
> Steffen Schulz <pepe at cbg.dyndns.org> wrote:
> >> Very interesting. Do you know if reading back the current backlight
> >> level works ? If not it's not usable for pommed, unfortunately.
> >
> > Yes this works. I just tested the borders, a value of 0 will switch the
> > backlight off and 15 looks pretty much like the maximum.
> Great ! Do you have something under /proc/acpi/video/ ?
Nope. It works without loading the acpi video module, which from the
kernel doc is only a reference implementation anyway.
When I load the driver with modprobe video, I get:
vger:/proc/acpi/video/GFX0# ls
DOS info LCD/ POST POST_info ROM TV/ VGA/
cat */*
<not supported>
<not supported>
device_id: 0x0400
type: LCD
known by bios: yes
state: 0x1f
query: 0x01
<not supported>
<not supported>
device_id: 0x0200
type: TVOUT
known by bios: yes
state: 0x1d
query: 0x00
<not supported>
<not supported>
device_id: 0x0300
type: DVI
known by bios: yes
state: 0x1d
query: 0x00
eg:
cat /proc/acpi/video/GFX0/LCD/brightness
<not supported>
There is also nothing in /sys either, except for the keyboard backlight.
Nothing in these files changes when I adjust the backlight.
> > vger:/home/pepe# cat /sys/class/hwmon/hwmon2/device/light
> > (119,75)
>
> /sys/devices/platform/applesmc/light is what pommed uses, here
For whatever reason, it is named 'applesmc.768' here.
Latest mactel-patches from svn.
/steffen
--
#
(o_ # +49/1781384223
//\-x gpg --recv-key A04D7875
V_/_ Use the source, Tux! mailto: pepe at cbg.dyndns.org
More information about the Pommed-devel
mailing list