Talk:ThinkLight

From ThinkWiki
Revision as of 14:49, 6 July 2016 by Jpc (Talk | contribs) (T430 with RHEL: - still occuring in rhel 6.7)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[code]

  1. !/usr/bin/perl

use strict; use warnings;

  1. $count

my $count = $ARGV[0];

if ( ! defined($count) || $count < 1 )

       {
       $count = 1;
       }

$|=1;

for(my $i=0;$i<$count;$i++) { open(LICHT,">/proc/acpi/ibm/light"); print LICHT "on\n"; close(LICHT); select(undef,undef,undef,0.25); open(LICHT,">/proc/acpi/ibm/light"); print LICHT "off\n"; close(LICHT); select(undef,undef,undef,0.25); }

[/code]

T430 with RHEL

Red Hat Enterprise Linux Workstation release 6.5 & 6.7 (Santiago)

Thinkpad_acpi is loaded.

These don't work:

echo 255 > /sys/class/leds/tpacpi\:\:thinklight/brightness

echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness


Start at no-light, '0' in brightness

Fn-Space: Low backlight - still 0

Fn-Space: High backlight - still 0

Fn-Space: Backlight off, thinklight on - 255

Fn-Space: back to start - back to 0

T530 with Debian

The ACPI hooks are there but not functional - likely needs a bit in

/etc/modprobe.d/

Similar to what one needs to enable fan control - but I can't find any documentation.