Re: Check for ACPI backlight support otherwise use vendor ACPIdrivers - version 4

Yves-Alexis Perez
2008-08-04T06:09:52Z

[-- Attachment #1: Type: text/plain, Size: 2763 bytes --]

On lun, 2008-08-04 at 09:16 +0800, Zhang Rui wrote:
> I think you're using the laptop that this patch does break.
> Please try acpi_backlight=vendor.

When booting to single user with acpi_backlight=vendor, thinkpad-acpi
takes over backlight:

Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: ThinkPad ACPI Extras v0.21
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: http://ibm-acpi.sf.net/
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: ThinkPad BIOS 7LETB9WW (2.19 ), EC 7KHT24WW-1.08
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: Lenovo ThinkPad T61, model 8897CTO
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: radio switch found; radios are enabled
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::thinklight
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::power
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi:orange:batt
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi:green:batt
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::dock_active
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::bay_active
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::dock_batt
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::unknown_led
Aug 4 07:54:38 hidalgo kernel: Registered led device: tpacpi::standby
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: Standard ACPI backlight interface not available, thinkpad_acpi driver will take over control
Aug 4 07:54:38 hidalgo kernel: thinkpad_acpi: detected a 16-level brightness capable ThinkPad
Aug 4 07:54:38 hidalgo kernel: input: ThinkPad Extra Buttons as /devices/virtual/input/input6
Aug 4 07:54:38 hidalgo kernel: usb 1-1: new full speed USB device using uhci_hcd and address 4
Aug 4 07:54:38 hidalgo kernel: usb 1-1: configuration #1 chosen from 1 choice

But when in user mode, brightness keys doesn't do anything either.
Echo'ing to /proc/acpi/ibm/brightness doesn't work, but echoing
to /sys/class/backlight/thinkpad_screen/brightness works.

Cat'ing /proc/acpi/events still gives:
video LCD0 00000086 00000000
video LCD0 00000087 00000000

At one time I get the 750ms delay, but I don't have the
ibm/hotkey HKEY 00000080 00005010 at all.

In X, same thing, no brightness keys, but xbacklight does work in
standard mode (“kernel”).

(btw it seems my mails don't reach linux-acpi, I don't really know why
and postmaster don't answer, maybe they didn't have my mail either).

Cheers,
--
Yves-Alexis

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]