<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lufterd</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lufterd"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Lufterd"/>
	<updated>2026-05-01T06:31:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=ThinkLight&amp;diff=54739</id>
		<title>ThinkLight</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=ThinkLight&amp;diff=54739"/>
		<updated>2013-07-22T13:26:44Z</updated>

		<summary type="html">&lt;p&gt;Lufterd: /* Models featuring this Technology */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;&amp;quot; | __NOTOC__&lt;br /&gt;
[[Image:Thinklight.jpg|ThinkLight]]&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#F8F8FF; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
The ThinkLight is a little LED light integrated into the top edge of the display frame in the A, R, T, X, Z and i Series ThinkPad models. It illuminates the ThinkPad's keyboard so that one can type in the dark without using an external light source. The ThinkLight can be controlled via the {{key|Fn}}{{key|PageUp}} key combination or via ACPI on some of the newer models. The LED is amber on some models (e.g. X30s, X40s), and white on others (e.g. T40s).&lt;br /&gt;
Note that the ThinkLight is not available on the G series ThinkPads, nor on the X41 Tablet.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
==Linux Support==&lt;br /&gt;
Controlling the ThinkLight with the keyboard works on all systems since it relies on the BIOS exclusively. Just press {{key|Fn}}{{key|PageUp}} to toggle its state between on and off.&lt;br /&gt;
&lt;br /&gt;
===Software Control via thinkpad-acpi===&lt;br /&gt;
Support for controlling the light with ACPI is provided by [[thinkpad-acpi]]. After installing it, a simple&lt;br /&gt;
:{{cmdroot|echo 255 &amp;gt; /sys/class/leds/tpacpi\:\:thinklight/brightness}}&lt;br /&gt;
switches it on and a&lt;br /&gt;
:{{cmdroot|echo 0 &amp;gt; /sys/class/leds/tpacpi\:\:thinklight/brightness}}&lt;br /&gt;
switches it off again.&lt;br /&gt;
&lt;br /&gt;
This allows one to control the light in scripts. Unfortunately, no known ThinkPad comes with a light sensor (yet). ;)&lt;br /&gt;
&lt;br /&gt;
To use these controls in scripts without root permissions, you should run&lt;br /&gt;
:{{cmdroot|chmod 666 /sys/class/leds/tpacpi\:\:thinklight/brightness}}, which is probably best done using udev.&lt;br /&gt;
&lt;br /&gt;
===Applications===&lt;br /&gt;
*'''led-notification''': Pidgin plugin to use any LED to indicate new messages. I've forked [http://github.com/Sitwon/led-notification led-notification] to support the ThinkLight via [[thinkpad-acpi]]. The plugins below either weren't compatible with the latest pidgin or didn't compile for me. The original author of led-notification seems MIA. Another fork [http://github.com/xmw/pidgin-led-notification pidgin-led-notification] to write user defined strings (added to Gentoo/Linux)&lt;br /&gt;
*'''gaim-thinklight''': If you are using [http://gaim.sf.net GAIM], the [http://www.joachim-breitner.de/blog/archives/38-Created-gaim-thinklight.html gaim-thinklight] plugin will enable you to use the ThinkLight as an indicator for new messages. This depends on [[thinkpad-acpi]].&lt;br /&gt;
*'''gaim-lighthink''': [http://www.chris-lamb.co.uk/code/gaim-lightthink/ gaim-lightthink] is an alternative to gaim-thinklight.&lt;br /&gt;
*'''pidgin-blinklight''':[http://packages.debian.org/unstable/net/pidgin-blinklight pidgin-blinklight] is a replacement for gaim-lighthink intended for use with [http://pidgin.im/ Pidgin].&lt;br /&gt;
*'''rocklight''': [http://hunz.org/ rocklight] is a xmms visualization plugin that makes the ThinkLight flash to the beat of your music. The package also includes a standalone stroboscope mode program.&lt;br /&gt;
*'''thinkblinkd''':[http://badcode.de/downloads/thinkblinkd-0.1.7.tar.gz] Thinkblinkd is a python daemon to control the thinklight (and possibly other lights on your Thinkpad) it comes with the daemon and a control script.&lt;br /&gt;
*The [[script for theft alarm using HDAPS]] optionally flashes the ThinkLight when the alarm is armed (disabled by default, to enable set &amp;lt;tt&amp;gt;$use_light=1&amp;lt;/tt&amp;gt;).&lt;br /&gt;
*'''kopete-thinklight''':[http://kde-apps.org/content/show.php?content=47886] This plugin for kopete will enable the usage of the thinklight as notifiaction for new messages.&lt;br /&gt;
*'''stupid little hack to blink the ThinkLight''': [http://paste.lisp.org/display/37500]  A little C program that may be set SUID so that you can use it from non-privileged programs that needs to do a little notification.&lt;br /&gt;
*'''thinkalert''': [http://www.mike.tl/view/Main/ThinkAlert] Another C program that may be set SUID to allow non-privileged programs to manipulate the ThinkLight.  Adds some features over the &amp;quot;stupid little hack to blink the ThinkLight&amp;quot; program.&lt;br /&gt;
*'''thinklight-notification''': This [http://ubuntuforums.org/showthread.php?t=1017263 Evolution plugin] notifies the user with a blinking light whenever a new message has arrived.&lt;br /&gt;
*'''ThinkBlink''': [http://pikeypl.com/index.php?show=blink_en blink.sh] is an universal bash script making ThinkLight blink. It can be used with any application.&lt;br /&gt;
&lt;br /&gt;
==Windows support==&lt;br /&gt;
Likewise, controlling the ThinkLight with the keyboard works without any additional software. The Hotkey Features software from IBM/Lenovo adds OSD icons that appear when the light is turned on/off.&lt;br /&gt;
&lt;br /&gt;
===Software control via Hotkey Features===&lt;br /&gt;
The Hotkey Features software exposes an interface that allows (among other things) to control the ThinkLight. See [[Python script for Windows to control ThinkPad features]] for more information.&lt;br /&gt;
&lt;br /&gt;
==Models featuring this Technology==&lt;br /&gt;
*ThinkPad {{i1400}}, {{I1460}}, {{I1480}}, {{I1482}}, {{I1483}}, {{I1492}}&lt;br /&gt;
*ThinkPad {{A Series}}&lt;br /&gt;
*ThinkPad {{R Series}}&lt;br /&gt;
*ThinkPad {{T Series}}&lt;br /&gt;
*ThinkPad {{W Series}}&lt;br /&gt;
*ThinkPad {{X20}}, {{X21}}, {{X22}}, {{X23}}, {{X24}}, {{X30}}, {{X31}}, {{X32}}, {{X40}}, {{X41}}, {{X60}}, {{X60s}}, {{X61}}, {{X61s}}, {{X200}}, {{X200s}}, {{X201}}, {{X201s}}, {{X220}}, {{X230}}, {{X300}}, {{X301}}&lt;br /&gt;
*ThinkPad {{Z60m}}, {{Z60t}}, {{Z61m}}&lt;br /&gt;
*ThinkPad {{S30}}, {{S31}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>Lufterd</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54685</id>
		<title>Microphone Mute Button</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54685"/>
		<updated>2013-06-09T12:39:13Z</updated>

		<summary type="html">&lt;p&gt;Lufterd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
Some Thinkpads come with a Microphone Mute Button possibly with an led.&lt;br /&gt;
&lt;br /&gt;
It does not work on Ubuntu, a bug has been reported and a patch has been proposed: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/408903&lt;br /&gt;
&lt;br /&gt;
== Workaround using acpid ==&lt;br /&gt;
Pressing the mic mute botton will generate a acpi event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
add a acpid rule to handle this event in {{path|/etc/acpi/events/lenovo-mutemic}}: &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
 action=/etc/acpi/lenovo-mutemic.sh&lt;br /&gt;
the script ({{path|/etc/acpi/lenovo-mutemic.sh}}) to toggle the mice look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
user=$(who | awk '/0\.0/{print $1; exit;}')&lt;br /&gt;
[[ -z $user ]] &amp;amp;&amp;amp; user=root&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[on]&amp;quot;* ]]; then&lt;br /&gt;
  logger &amp;quot;Microphone is now muted (for $user) $USER&amp;quot;&lt;br /&gt;
  amixer sset Capture nocap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-muted-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;MUTED&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  logger &amp;quot;Microphone is now on (for $user)&amp;quot;&lt;br /&gt;
  amixer sset Capture cap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 0 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-high-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;ON&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Explanation:&lt;br /&gt;
* &amp;lt;tt&amp;gt;led&amp;lt;/tt&amp;gt; contain the path to the led in the mute botton (see below)&lt;br /&gt;
* &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt; is the name of the user, which is currently signed in in X11 and &amp;lt;tt&amp;gt;notify-send&amp;lt;/tt&amp;gt; will send a notification to that user. Remove these lines if you don't like it.&lt;br /&gt;
* Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. &amp;lt;tt&amp;gt;Mic&amp;lt;/tt&amp;gt; would be another choice, but on some thinkpads it is named &amp;lt;tt&amp;gt;Internal Mic&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ALSA will not remember the state of the led at startup, so one need another small start-up script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[off]&amp;quot;* ]]; then&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and put it in {{path|/etc/local.d/lenovo-mutemic.sh}}.&lt;br /&gt;
&lt;br /&gt;
==Needed for models==&lt;br /&gt;
{{T410}}, {{T410s}}, {{X230}}&lt;/div&gt;</summary>
		<author><name>Lufterd</name></author>
		
	</entry>
</feed>