[ltp] Brightness problem on x301 running Debian Lenny

Per Dalgas Jakobsen linux-thinkpad@linux-thinkpad.org
Mon, 02 Feb 2009 11:19:21 +0100


Hi,

Thanks for the hint, but it does not work.
I'm just now learning how all this is working, so forgive me if I seem a
little "inexperienced". The "HAL-pointer" triggered me to investigate a
little further;

Running "lshal" gives me this for the backlight:
---
udi = '/org/freedesktop/Hal/devices/computer_backlight'
  info.capabilities = {'laptop_panel'} (string list)
  info.category = 'laptop_panel'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.LaptopPanel'} (string
list)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.product = 'Generic Backlight Device'  (string)
  info.subsystem = 'backlight'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_backlight'  (string)
  laptop_panel.access_method = 'general'  (string)
  laptop_panel.brightness_in_hardware = true  (bool)
  laptop_panel.num_levels = 16  (0x10)  (int)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'backlight'  (string)
  linux.sysfs_path = '/sys/devices/virtual/backlight/acpi_video0'
(string)
  org.freedesktop.Hal.Device.LaptopPanel.method_argnames =
{'brightness_value', ''} (string list)
  org.freedesktop.Hal.Device.LaptopPanel.method_execpaths =
{'hal-system-lcd-set-brightness', 'hal-system-lcd-get-brightness'}
(string list)
  org.freedesktop.Hal.Device.LaptopPanel.method_names =
{'SetBrightness', 'GetBrightness'} (string list)
  org.freedesktop.Hal.Device.LaptopPanel.method_signatures = {'i', ''}
(string list)
---

It seems like the "brightness_in_hardware" is "true" already, but
brightness adjustments still lack one behind.

"dmesg" outputs these relevant lines:
---
[    0.480134] thinkpad_acpi: This ThinkPad has standard ACPI backlight
brightness control, supported by the ACPI video driver
[    0.480137] thinkpad_acpi: Disabling thinkpad-acpi brightness events
by default...
[    0.496729] thinkpad_acpi: Standard ACPI backlight interface
available, not loading native one.
---

Running kernel 2.6.28.2 with own configuration (could I have messed this
up?).
Relevant(?) lines from ".config":
---
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=y
CONFIG_LCD_PLATFORM=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_THINKPAD_ACPI=y
CONFIG_THINKPAD_ACPI_BAY=y
---

Any other ideas to which debugging I should do?

~Per


On Sun, 2009-02-01 at 20:57 +0000, Pethe Milan wrote:
> # pwd
> /usr/share/hal/fdi/information/10freedesktop
> 
> #cat 10-laptop-panel-hardware.fdi
> 
>       <match key="linux.sysfs_path"
> string="/sys/class/backlight/thinkpad_screen">
>         <merge key="laptop_panel.brightness_in_hardware"
> type="bool">true</merge>
>       </match>