"i" LEDs on Thinkpad Edge 13" AMD

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

 



Hi,

Thanks for the thinkpad_acpi driver.  I've been a beneficiary of it
for a while now.

I'm trying to get the two "i" Thinkpad leds[1] on a Thinkpad Edge 13
AMD[2] to be controllable via the thinkpad_acpi module.

I can control the screen brightness
(/sys/class/backlight/acpi_video0/brightness) fine, and I have
recompiled thinkpad_acpi.c with CONFIG_THINKPAD_ACPI_UNSAFE_LEDS and a
few extra printk's to verify that it's initializing leds 0-12 ok:

Sep 26 16:17:18 edge kernel: thinkpad_acpi: http://ibm-acpi.sf.net/
Sep 26 16:17:18 edge kernel: thinkpad_acpi: ThinkPad BIOS 6ZET32WW (1.19 ), EC 6ZHT26WW-1.171000
Sep 26 16:17:18 edge kernel: thinkpad_acpi: Lenovo ThinkPad Edge, model 0197RW3
Sep 26 16:17:18 edge kernel: thinkpad_acpi: detected a 8-level brightness capable ThinkPad
Sep 26 16:17:18 edge kernel: thinkpad_acpi: radio switch found; radios are enabled
Sep 26 16:17:18 edge kernel: thinkpad_acpi: possible tablet mode switch found; ThinkPad in laptop mode
Sep 26 16:17:18 edge kernel: thinkpad_acpi: asked for hotkey mask 0x04018070, but firmware forced it to 0x00018070
Sep 26 16:17:18 edge kernel: thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
Sep 26 16:17:18 edge kernel: thinkpad_acpi: TPACPI_LED_NEW entered
Sep 26 16:17:18 edge kernel: thinkpad_acpi: init led 0...
Sep 26 16:17:18 edge kernel: thinkpad_acpi: ok
[...]

...sysfs shows:

$ ls /sys/devices/platform/thinkpad_acpi/leds
tpacpi::power/  tpacpi::standby/  tpacpi::thinklight/  tpacpi::thinkvantage/

If I do this:

echo 0 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi\:\:thinkvantage/brightness

...it has no effect on any of the LEDs' brightness.

But if I do this:

echo 432434223132132 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi\:\:dock_active/brightness

...then both LEDs go off.  Any number from 0 (to I assume the limit of unsigned int or something) causes the LEDs to go off.  No number causes them to go on.

If the LEDs are off and I echo any number from 0 upwards to any of:

/sys/devices/platform/thinkpad_acpi/leds/tpacpi\:\:dock_batt/brightness
/sys/devices/platform/thinkpad_acpi/leds/tpacpi\:\:dock_status1/brightness
/sys/devices/platform/thinkpad_acpi/leds/tpacpi\:\:dock_status2/brightness

...they both come back on.  

I once got them to pulse (not too fast but not too slow), but that was
mixed in with closing and opening the lid, plugging & unplugging the
power cable, so I'm not sure how it happened.

I haven't been able to get them to turn off / on independently.

I'd like to help make this behaviour a bit more sane, and I've had a
look at led_set_status(...)[3] but I'm not sure where to start
(led_led_arg1? ACPI tables somewhere?).

Does anyone have an idea what I should look at to get to be able to
control:

a) the LEDs brightness levels
b) the LEDs independently

...?

Thanks,
Martin

1. http://www.thinkpads.com/wp-content/gallery/lenovo-thinkpad-edge-13-review/lenovo-thinkpad-edge-13-both-logos.jpg
2. http://www.thinkwiki.org/wiki/Category:Edge_13%22
3. http://repo.or.cz/w/linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git/blob/release/2.6.35:/drivers/platform/x86/thinkpad_acpi.c#l5103

Attachment: pgpn2FnuInt6p.pgp
Description: PGP signature

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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