Difference between revisions of "Talk:ThinkLight"
m |
|||
Line 27: | Line 27: | ||
[/code] | [/code] | ||
+ | === 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. |
Revision as of 15:36, 7 July 2014
[code]
- !/usr/bin/perl
use strict; use warnings;
- $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]
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.