Brightness in X60 tablet (was Z61m)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just some data about the brightness control in X60 tablet. I've only
had this thing for about a week and overall things are quite sweet
with Ubuntu feisty :-)

The brightness _control_ works out of the box but the on screen
display (provided by gnome-power-manager) does not get the right
level, i.e. indication is broken. The hal is configured not to do any
control in response to brightness keys as this would cause a loop:
control generates key event which is caught, which causes control,
which causes event, which.. etc.

Anyway, for me the ACPI video module is _needed_ in order for the
brightness control to work. If I remove the video module, acpi_listen
does still see Fn+Home but Fn+End does not cause any events. Also the
brightness level stays unchanged.

When I have the ACPI video module loaded, the events reported by
acpi_listen are

down:
video LCD0 00000087 00000000
ibm/hotkey HKEY 00000080 00005010

up:
ibm/hotkey HKEY 00000080 00001010
video LCD0 00000086 00000000
ibm/hotkey HKEY 00000080 00005010

If I remove ibm_acpi module but have video module loaded, the
situation is the same: the brightness control works, but indication
not. I dumped /dev/nvram with different levels and looks like the
brigtness level is at offset 0x5e lower nibble just like expected by
the thinkpad-keys.c in hotkey-setup package:

--- nvram-4.txt 2007-04-29 11:24:20.000000000 +0300
+++ nvram-5.txt 2007-04-29 11:24:25.000000000 +0300
@@ -3,7 +3,7 @@
 00000020  03 a5 00 fc 20 88 c1 01  00 7c 00 00 00 00 00 00  |.... ....|......|
 00000030  00 00 08 40 b0 bb 00 63  bb d4 2f 07 d0 30 80 00  |...@...c../..0..|
 00000040  00 00 00 00 c0 05 52 f8  01 1d 00 5b 0f 02 00 00  |......R....[....|
-00000050  00 00 04 00 fe 38 ff a0  03 71 d0 06 13 c2 a4 f1  |.....8...q......|
+00000050  00 00 04 00 fe 38 ff a0  03 71 d0 06 13 c2 85 f1  |.....8...q......|
 00000060  c4 03 90 fe 00 06 71 00  03 12 fc 00 00 00 49 53  |......q.......IS|
 00000070  b2 00                                             |..|
 00000072

--- nvram-5.txt 2007-04-29 11:24:25.000000000 +0300
+++ nvram-6.txt 2007-04-29 11:24:29.000000000 +0300
@@ -3,7 +3,7 @@
 00000020  03 a5 00 fc 20 88 c1 01  00 7c 00 00 00 00 00 00  |.... ....|......|
 00000030  00 00 08 40 b0 bb 00 63  bb d4 2f 07 d0 30 80 00  |...@...c../..0..|
 00000040  00 00 00 00 c0 05 52 f8  01 1d 00 5b 0f 02 00 00  |......R....[....|
-00000050  00 00 04 00 fe 38 ff a0  03 71 d0 06 13 c2 85 f1  |.....8...q......|
+00000050  00 00 04 00 fe 38 ff a0  03 71 d0 06 13 c2 a6 f1  |.....8...q......|
 00000060  c4 03 90 fe 00 06 71 00  03 12 fc 00 00 00 49 53  |......q.......IS|
 00000070  b2 00                                             |..|
 00000072

The ibm_acpi module seems to read the level from EC, offset 0x31 but
for me the value there changes only if I control the brightness via
e.g. /proc/acpi/ibm/brightness. Control via /proc/acpi/ibm/brightness
is visible to /dev/nvram.

So I suppose one way to fix the indication would be to make hal read
the level via /dev/nvram. But I suppose it would be nice for
/proc/acpi/ibm/brightness to also indicate the right level.

For me the /proc/acpi/video/VID/LCD0/brightness shows always zero for
the current brightness:

levels:  100 30 30 40 50 60 70 80 90 100
current: 0

Can I provide some more info? Something from lshal:

  smbios.system.version = 'ThinkPad X60 Tablet'  (string)
  smbios.system.product = '6363A7G'  (string)
  smbios.system.manufacturer = 'LENOVO'  (string)
  smbios.bios.release_date = '12/14/2006'  (string)
  smbios.bios.version = '7JET19WW (1.04 )'  (string)
  smbios.bios.vendor = 'LENOVO'  (string)

-- 
http://www.iki.fi/~ananaza/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux