<?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=Fluidspace</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=Fluidspace"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Fluidspace"/>
	<updated>2026-04-05T13:01:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Problem_with_high_power_drain_in_ACPI_sleep&amp;diff=29401</id>
		<title>Problem with high power drain in ACPI sleep</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Problem_with_high_power_drain_in_ACPI_sleep&amp;diff=29401"/>
		<updated>2007-04-19T19:30:09Z</updated>

		<summary type="html">&lt;p&gt;Fluidspace: /* Affected Models */&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;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
==Problem description==&lt;br /&gt;
Several people realized that their ThinkPads eat up too much power while suspended to ram via ACPI. Compared to APM suspend to ram the power drain is experienced to be about 10 times as high, 2-5 Watts. This empties the battery within one or two days.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Affected Models==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; style=&amp;quot;float:right;margin-left:20px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;vertical-align:top;background-color:#ffcfbc;&amp;quot; | affected models&lt;br /&gt;
! style=&amp;quot;vertical-align:top;background-color:#cfefcf;&amp;quot; | unaffected models &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;background-color:#fff0e0;&amp;quot; |&lt;br /&gt;
* {{R32}}&lt;br /&gt;
** 2658-BQG&lt;br /&gt;
* {{R40}}&lt;br /&gt;
** 2722-3GG&lt;br /&gt;
** 2722-5MG&lt;br /&gt;
** 2722-B3G&lt;br /&gt;
** 2722-CDG&lt;br /&gt;
** 2897-GWU&lt;br /&gt;
** 2722-6YU&lt;br /&gt;
** 2722-CDG&lt;br /&gt;
* {{R50}}&lt;br /&gt;
** 1829-7RG&lt;br /&gt;
** 1829-6DM&lt;br /&gt;
** 1836-3SU&lt;br /&gt;
* {{R51}}&lt;br /&gt;
** 1829-9MG&lt;br /&gt;
** 1829-EHG&lt;br /&gt;
** 1829-L7G&lt;br /&gt;
** 1829-R6G&lt;br /&gt;
** 1830-DG4&lt;br /&gt;
** 1830-BMG&lt;br /&gt;
** 1836-Q6U&lt;br /&gt;
* {{T23}}&lt;br /&gt;
**2647-???&lt;br /&gt;
* {{T30}}&lt;br /&gt;
** 2366-81A&lt;br /&gt;
** 2366-97U&lt;br /&gt;
** 2366-FBU&lt;br /&gt;
** 2366-96G&lt;br /&gt;
*{{T40}}&lt;br /&gt;
**2373-19G&lt;br /&gt;
**2373-22G&lt;br /&gt;
**2373-42G&lt;br /&gt;
**2373-75G &lt;br /&gt;
**2373-82U&lt;br /&gt;
**2373-92U&lt;br /&gt;
**2373-A1U&lt;br /&gt;
**2373-MU3&lt;br /&gt;
*{{T40p}}&lt;br /&gt;
**2373-G1U &lt;br /&gt;
**2373-G3U&lt;br /&gt;
**2373-G3G&lt;br /&gt;
**2373-G1G&lt;br /&gt;
**2373-G5G&lt;br /&gt;
* {{T41}}&lt;br /&gt;
**2379-DJU&lt;br /&gt;
**2373-3KG&lt;br /&gt;
**2373-9HU&lt;br /&gt;
**2373-4FG&lt;br /&gt;
**2373-4PG&lt;br /&gt;
**2373-1FG&lt;br /&gt;
**2373-2FG&lt;br /&gt;
**2373-2GG&lt;br /&gt;
**2373-6U4&lt;br /&gt;
**2373-7JU&lt;br /&gt;
**2373-CY0&lt;br /&gt;
**2373-TG5&lt;br /&gt;
**2373-3HM&lt;br /&gt;
**2373-4GU&lt;br /&gt;
* {{T41p}}&lt;br /&gt;
**2373-9FU&lt;br /&gt;
* {{T42}}&lt;br /&gt;
**2373-C19&lt;br /&gt;
**2373-CTO&lt;br /&gt;
**2378-DTU&lt;br /&gt;
**2378-DUU&lt;br /&gt;
**2378-XXE&lt;br /&gt;
**2378-R4U&lt;br /&gt;
**2373-FWG&lt;br /&gt;
**2374-ZEP&lt;br /&gt;
**2373-F2G&lt;br /&gt;
**2373-JTU&lt;br /&gt;
**2373-VUW&lt;br /&gt;
**[[2373-6ZG]]&lt;br /&gt;
* {{X21}}&lt;br /&gt;
**2662-BSG&lt;br /&gt;
* {{X32}}&lt;br /&gt;
**2884-A3U&lt;br /&gt;
*{{X41T}}&lt;br /&gt;
** 1869-5CU&lt;br /&gt;
| style=&amp;quot;vertical-align:top;background-color:#e9f9e9;&amp;quot; |&lt;br /&gt;
*[[:Category:A22m | A22m]]&lt;br /&gt;
**2628&lt;br /&gt;
*[[:Category:A31 | A31]]&lt;br /&gt;
**2652-D5G&lt;br /&gt;
*[[:Category:R50p | R50p]]&lt;br /&gt;
*[[:Category:R52 | R52]]&lt;br /&gt;
**1858-6MM&lt;br /&gt;
*[[:Category:T41 | T41]]&lt;br /&gt;
**2373-GEU&lt;br /&gt;
*[[:Category:T41p | T41p]]&lt;br /&gt;
**2373-GKG&lt;br /&gt;
**2373-GGG&lt;br /&gt;
**[[2373-GHG]]&lt;br /&gt;
*[[:Category:T42 | T42]]&lt;br /&gt;
**[[2373-M1G]]&lt;br /&gt;
**[[2373-WBZ]]&lt;br /&gt;
**[[2373-F7G]]&lt;br /&gt;
**[[2378-DXU]]&lt;br /&gt;
**[[2378-FVU]]&lt;br /&gt;
**[[2378-RTU]]&lt;br /&gt;
**[[2378-RRU]]&lt;br /&gt;
*[[:Category:T42p | T42p]]&lt;br /&gt;
**[[2373-HTG]]&lt;br /&gt;
**[[2373-W6M]]&lt;br /&gt;
**[[2373-GTG]]&lt;br /&gt;
**[[2373-GXG]]&lt;br /&gt;
**2373-KXM&lt;br /&gt;
*[[:Category:T43 | T43]]&lt;br /&gt;
**[[2668-W12]]&lt;br /&gt;
*[[:Category:T43p | T43p]]&lt;br /&gt;
**[[2668-G2G]]&lt;br /&gt;
*[[:Category:X40 | X40]]&lt;br /&gt;
**2371&lt;br /&gt;
|}&lt;br /&gt;
*Different symptoms have been reported for different models. In some models the origin of the power drain is obvious ([[Problem with LCD backlight remaining on during ACPI sleep|backlight on during suspend]]), in other models there is no obvious reason.&lt;br /&gt;
&lt;br /&gt;
*On some models/configurations the higher power drain couldn't even be realized or was at least significantly lower.&lt;br /&gt;
&lt;br /&gt;
*The T4x ThinkPad series and other Radeon based models suspend to ram just fine, and there are no components that are obviously left powered up. The [[UltraBay]] and network light is on, but that is the same under windows (but under APM sleep to RAM those lights are OFF). For these models the higher power drain is caused by a driver problem and can be fixed in software. Starting with linux 2.6.18 this fix is in the official kernel.&lt;br /&gt;
&lt;br /&gt;
The table on the right gives an overview of the models suffering from the mysterious power drain. To find out about your model, you may use the following [[ACPI sleep power drain test script | script]]. It creates a file {{path|/var/log/battery.log}} which will tell you if you are affected or not.&lt;br /&gt;
&lt;br /&gt;
==Affected Operating Systems==&lt;br /&gt;
*Linux, all flavours.&lt;br /&gt;
*Windows, for some models as well (only when using non-IBM drivers).&lt;br /&gt;
*FreeBSD (on the A22M)&lt;br /&gt;
&lt;br /&gt;
==Radeon GPU not powered off==&lt;br /&gt;
A frequent cause of the mysterious power drain is the Radeon GPU, which requires extra steps to suspend properly. We identified affected thinkpads, and [[radeonfb]] activates the workaround on those models automatically (starting with linux kernel 2.6.18).&lt;br /&gt;
&lt;br /&gt;
===Status===&lt;br /&gt;
*The official bugzilla entry for the radeon suspend issue is in the [http://bugme.osdl.org/show_bug.cgi?id=3022 OSDL Bugzilla]. There you can find the above-mentioned patch for older kernel versions. The patch removes the CONFIG_PPC_PMAC condition for enabling D2 sleep in {{path|drivers/video/aty/radeon_pm.c}}. If you suspect that this patch makes things worse, you can disable it by the kernel parameter {{bootparm|video|radeonfb:ignore_devlist|1}}. Similarly, if the patch is not automatically activated on your notebook you can force it by {{bootparm|video|radeonfb:force_sleep|1}}. In case that improves your sleep, please leave a note in the bugzilla including the output of {{cmdroot|lspci -d &amp;quot;1002:*&amp;quot; -vn}}. See also [http://thread.gmane.org/gmane.linux.hardware.thinkpad/25355 the linux-thinkpad ML post requesting this information] for more information. &lt;br /&gt;
&lt;br /&gt;
*Most certainly, the DSDT is not at fault. (Interesting to note: The DSDT from BIOS 3.13 (Nov 04) for the T42p compiles without bugs.)&lt;br /&gt;
&lt;br /&gt;
===Solutions===&lt;br /&gt;
You must use a recent (or patched) version of the [[radeonfb]] driver, even if you are only interested in using the X window system. The radeon frame buffer suspends the radeon chip correctly during ACPI sleep. Starting with linux 2.6.18, this patch is in the official (kernel.org) kernels.&lt;br /&gt;
&lt;br /&gt;
If the patch is known to work on your notebook, it is automatically enabled. If you think that your computer would profit from the patch as well, you can force it by including the module parameter {{bootparm|video|radeonfb:force_sleep|1}}. If it does not work this can result in system hangs.&lt;br /&gt;
&lt;br /&gt;
====Problem with radeonfb and X====&lt;br /&gt;
In some cases [[radeonfb]] cannot coexist with the [[radeon]] X.org driver (causing corrupted rendering and hangs). Using the &amp;lt;tt&amp;gt;Option &amp;quot;UseFBDev&amp;quot; &amp;quot;True&amp;quot;&amp;lt;/tt&amp;gt; of [[radeon]] may help, but this is incompatible with [[radeon]]'s mergedfb mode. A &amp;quot;GPU device layer&amp;quot; architecture which may, one day, resolve this was proposed by Dave Airlie [http://airlied.livejournal.com/#item30632 here] and [http://lkml.org/lkml/2006/7/22/45 here]. &lt;br /&gt;
{{HELP|Practical solutions for this problem are needed}}&lt;br /&gt;
&lt;br /&gt;
Configurations which exhibit this problem: {{T43}} [[ATI Mobility Radeon X300]] with {{Fedora}} 5 using the [[radeon]] driver, with and without DRI.&lt;br /&gt;
&lt;br /&gt;
Configurations which don't exhibit this problem: {{T41}} [[ATI Mobility Radeon 9000]] running {{Fedora}} 5 and 6 using [[radeon]] driver, with and without DRI.&lt;br /&gt;
&lt;br /&gt;
====Fedora Core====&lt;br /&gt;
* Fedora Core 6: Ships with kernel &amp;gt;= 2.6.18, only needs initrd (see below).&lt;br /&gt;
* Fedora Core 5: The latest kernel from updates (2.6.18-1.2200.fc5) seems to actually fix this issue, you only have to make custom initrd because the default one does not contain radeonfb.&lt;br /&gt;
* Fedora Core 4: Fedora ships a patched radeon frame buffer (radeonfb.ko), but you must enable it yourself. {{Fedora}} compiles it as a module rather than including it in the kernel, therefore you cannot activate it at boot time without a custom initrd. You must arrange for the module to be loaded before X starts (for example, using an init script).&lt;br /&gt;
* Fedora Core 3: this is also true for updated kernels (at least for kernel-2.6.12-1.1376_FC3) but '''not''' for the initially shipped version.&lt;br /&gt;
&lt;br /&gt;
====openSuSE====&lt;br /&gt;
* openSuSE 10.2: Ships with kernel &amp;gt;= 2.6.18. Needs initrd and boot menu changes. See [[http://en.opensuse.org/SDB:ThinkPadPowerDrain openSuSE SDB article on ThinkPad power drain problem]]&lt;br /&gt;
&lt;br /&gt;
====testing radeonfb without changing initrd====&lt;br /&gt;
If you want to try the radeon frame buffer, you can enable it as follows:&lt;br /&gt;
*First, switch to a console ({{key|Ctrl}}{{key|Alt}}{{key|F1}}) and log in as root.&lt;br /&gt;
*Stop X: {{cmdroot|init 3}}&lt;br /&gt;
*Now you can load the module: {{cmdroot|1=modprobe radeonfb force_sleep=1}}&lt;br /&gt;
*Finally, resume X: {{cmdroot|init 5}}&lt;br /&gt;
&lt;br /&gt;
====Gentoo====&lt;br /&gt;
After installing the patch on {{Gentoo}} (it works fine with gentoo-sources: {{cmdroot|cd /usr/src/linux/drivers/video/aty}}, and execute {{cmdroot|patch -p4 &amp;lt; &amp;lt;patchname&amp;gt;}}, then recompile the kernel), one needs to add {{bootparm|video|radeonfb:force_sleep}} to the kernel parameters.&lt;br /&gt;
&lt;br /&gt;
====including radeonfb into your initrd====&lt;br /&gt;
As an alternative you can build your customized initrd. This is as simple as running&lt;br /&gt;
:{{cmdroot|1=mkinitrd --with=radeonfb /boot/&amp;lt;name-of-your-new-initrd&amp;gt; `uname -r`}}&lt;br /&gt;
and replacing the initrd in {{path|/boot/grub/grub.conf}} with your new one. You also need to add the kernel command line argument {{bootparm|video|2=radeonfb:force_sleep}}.&lt;br /&gt;
&lt;br /&gt;
With FC6 and KDE I had to:&lt;br /&gt;
*Login as root&lt;br /&gt;
*Enter the command as {{cmdroot|1=mkinitrd --with=radeonfb /boot/&amp;lt;name-of-your-new-initrd&amp;gt; &amp;lt;kernel version&amp;gt;}}&lt;br /&gt;
:e.g. {{cmdroot|1=mkinitrd --with=radeonfb /boot/initrd-2.6.18-1.2798.fc6-my.img 2.6.18-1.2798.fc6}}&lt;br /&gt;
:And the kernel command line argument was added to /etc/sysconfig/grub.&lt;br /&gt;
&lt;br /&gt;
==Backlight staying on==&lt;br /&gt;
It is possible that [[radeontool]] will help some people if the backlight stays on.&lt;br /&gt;
(simply run &amp;quot;radeontool light off&amp;quot; before suspend and &amp;quot;radeontool light on&amp;quot; after resume).&lt;br /&gt;
A radeontool patch for freebsd is here: http://www.init-main.com/radeontool.patch (by Takanori Watanabe).&lt;br /&gt;
&lt;br /&gt;
===Notes for gnome-power-manager===&lt;br /&gt;
If you suspend from Gnome and need to run radeontool to turn the backlight off you need to find the suspend script for HAL. In Ubuntu, the scripts are located in /usr/share/hal/scripts/. Add the following the script &amp;quot;hal-system-power-suspend&amp;quot;:&lt;br /&gt;
 chvt 1&lt;br /&gt;
 radeontool light off&lt;br /&gt;
And in the resume script (&amp;quot;restore-after-standby&amp;quot;):&lt;br /&gt;
 radeontool light on&lt;br /&gt;
 chvt 7&lt;br /&gt;
&lt;br /&gt;
This worked for me. YMMV. [[User:Etnoy|Etnoy]] 16:27, 9 November 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
===For models without Radeon graphics===&lt;br /&gt;
The Problem seems to be solved when you use the [http://www.srcf.ucam.org/~mjg59/vbetool/ vbetool] to turn the LCD off before suspending ...&lt;br /&gt;
:{{cmdroot|vbetool dpms off}}&lt;br /&gt;
and turning it on afterwards again...&lt;br /&gt;
:{{cmdroot|vbetool dpms on}}&lt;br /&gt;
You have to change to a normal console before turning the LCD off.&lt;br /&gt;
Additionally you have to deactivate the Wake-On-Lan feature like mentioned above ...&lt;br /&gt;
:{{cmdroot|ethtool -s eth0 wol d}}&lt;br /&gt;
With these commands used together the &amp;quot;testing script&amp;quot; reports no high power drain while suspending.&lt;br /&gt;
&lt;br /&gt;
==Other problems causing the power drain==&lt;br /&gt;
On my [[R51]] using Gentoo Linux, the high power drain was not caused by the graphics adaptor but by several components not powered down properly before putting the Thinkpad into S3.&lt;br /&gt;
&lt;br /&gt;
If the above did not help you, this might do:&lt;br /&gt;
&lt;br /&gt;
Walk through&lt;br /&gt;
 /sys/devices/*/*/power/state&lt;br /&gt;
and try to disable each of it, every time checking the power drain. (See linux/Documentation/power/devices.txt for values to write into the state-files. 3 should be the value you want to try)&lt;br /&gt;
Do the same for other components (Like the Ultrabay, etc.). Please add your experiences here.&lt;br /&gt;
&lt;br /&gt;
===R51: Ultrabay and networking===&lt;br /&gt;
On my system, ultrabay and networking light were still on while in S3. So were the devices theirselves.&lt;br /&gt;
 echo -n eject &amp;gt; /proc/acpi/ibm/bay     # Disable ultrabay&lt;br /&gt;
 ethtool -s eth0 wol d                  # Disable Wake-On-Lan (And so the eth-adaptor)&lt;br /&gt;
 echo mem &amp;gt; /sys/power/state            # Sleep&lt;br /&gt;
&lt;br /&gt;
For me, this lowered the power drain from &amp;gt;700mW to 338 mW.&lt;br /&gt;
&lt;br /&gt;
===USB===&lt;br /&gt;
My initial testing of a [[T43]] (2669-model) revealed no power drain issues. However, after several rounds of BIOS and kernel upgrades I have discovered that the power drain has risen to &amp;gt;700mWh. Having tested things a bit, I have discoved that removing ehci_hcd module solved the high power drain. This is a [[T43]] laptop, with kernel 2.6.17-r5 and BIOS 1.28/EC 1.06. For me, issuing {{cmdroot|modprobe -r ehci_hcd}} before going to sleep and reloading the module ({{cmdroot|modprobe ehci_hcd}}) after waking up dropped the power drain down to 277mWh in suspend2ram, which seems fair. The unloading/reloading can be put into the suitable ACPI script called to suspend the laptop.&lt;br /&gt;
&lt;br /&gt;
===Wake-on-LAN===&lt;br /&gt;
Some additional power savings can be achieved by turning off the wake-on-lan ({{cmdroot|ethtool -s eth0 wol d}}). The power drain of the wol feature is far smaller than the radeon bug, but can be noticeable.&lt;/div&gt;</summary>
		<author><name>Fluidspace</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_make_use_of_IrDA&amp;diff=28480</id>
		<title>How to make use of IrDA</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_make_use_of_IrDA&amp;diff=28480"/>
		<updated>2007-02-28T22:25:50Z</updated>

		<summary type="html">&lt;p&gt;Fluidspace: troubleshoot LSR safety check when synchronizing with a Ericsson T39m mobile phone&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;white-space:nowrap;&amp;quot; | __TOC__&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:#efefef; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
The purpose of this document is to get the [[IrDA]] hardware in your ThinkPad operational, setting up communication to other devices is not covered. However, the external links section can prove useful for this.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Serial IR (SIR) ==&lt;br /&gt;
SIR is limited to serial datarates up to 115.2Kb/s&lt;br /&gt;
&lt;br /&gt;
To use it, run {{cmdroot|irattach /dev/ttyS1 -s; modprobe ircomm-tty}}  (on {{Fedora}} 5 just run {{cmdroot|service irda start}}). Then turn on your IrDA-capable device and put it within range, and point your software (e.g., &amp;lt;tt&amp;gt;minicom&amp;lt;/tt&amp;gt;) to {{path|/dev/irda0}}.&lt;br /&gt;
&lt;br /&gt;
===Kernel configuration===&lt;br /&gt;
&lt;br /&gt;
Some distributions (e.g., {{Fedora}} 5) already include the equvialent of the following.&lt;br /&gt;
&lt;br /&gt;
==== Linux 2.4 kernel config ====&lt;br /&gt;
Edit {{path|/etc/modules.conf}} and add the following lines&lt;br /&gt;
 alias tty-ldisc-11 irtty&lt;br /&gt;
 alias char-major-161 ircomm-tty&lt;br /&gt;
&lt;br /&gt;
==== Linux 2.6 kernel config ====&lt;br /&gt;
Edit {{path|/etc/modprobe.conf}} and add the following lines&lt;br /&gt;
 alias tty-ldisc-11 irtty-sir&lt;br /&gt;
 alias char-major-161 ircomm-tty&lt;br /&gt;
&lt;br /&gt;
== Fast IR (FIR) ==&lt;br /&gt;
FIR is the preferred mode of IrDA operation and operates at a bandwidth of 4 Mbps&lt;br /&gt;
&lt;br /&gt;
The chips FIR mode first needs to be activated using the ISA PnP or BIOS method.&lt;br /&gt;
&lt;br /&gt;
{{HINT|Regardless of which method you use, you will still have to set the dongle_id and run setserial as shown further below}}&lt;br /&gt;
=== ISA PnP support for nsc-ircc ===&lt;br /&gt;
&lt;br /&gt;
ISA PnP support is '''necessary''' in some cases, as without it the kernel doesn't manage to enable the device by itself in many ThinkPads.&lt;br /&gt;
&lt;br /&gt;
Starting with the 2.6.17-rc1 kernel, the nsc-ircc driver has ISA PnP support.  For older kernels you will need patches to allow the loading of the driver without the below BIOS change.&lt;br /&gt;
&lt;br /&gt;
* [http://steffenpingel.de/patches/nsc-ircc-pnp.diff 2.6.10 patch]&lt;br /&gt;
* [http://shamrock.dyndns.org/~ln/linux/nsc-ircc-pnp.2.6.12-rc6.diff 2.6.12-rc6 patch] &lt;br /&gt;
* [http://shamrock.dyndns.org/~ln/linux/nsc-ircc-pnp.2.6.12.diff 2.6.12 patch (applies cleanly to 2.6.12 through 2.6.15)]&lt;br /&gt;
&lt;br /&gt;
=== NS PC8394T support ===&lt;br /&gt;
&lt;br /&gt;
Thinkpads {{T43}}, {{T43p}} and {{R52}} [http://bugzilla.kernel.org/attachment.cgi?id=8247 needed an extra patch] to detect their [[NS PC8394T]]-based FIR device on kernels before 2.6.18.  They also require ISA PnP support in the driver to work, which is available since 2.6.17 (and can be added to 2.6.16 with the patches above).&lt;br /&gt;
&lt;br /&gt;
=== Changing BIOS settings ===&lt;br /&gt;
For older kernels (prior to 2.6.17-rc1), the easiest way to activate FIR mode is by entering BIOS setup during boot-up by pressing {{key|F1}} when prompted.&lt;br /&gt;
Then, selecting 'Config' followed by 'Infrared' will allow you to control the IrDA operation. Here you will need to select the option to Enable the infra-red port, and ensure the proper resources are set (typically: IO 0x2f8 and IRQ 3). Be sure to save the changes, and then Exit.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|Changing these BIOS settings does not affect Windows 2000 or XP operating systems, but may cause resource issues in older windows versions, or other legacy operating systems.}}&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you change the BIOS settings for IO, IRQ or DMA of the IrDA port, remember to do so accordingly on all examples in this page when applying them to your ThinkPad.}}&lt;br /&gt;
&lt;br /&gt;
===Kernel configuration===&lt;br /&gt;
==== Linux 2.4 kernel config ====&lt;br /&gt;
Edit {{path|/etc/modules.conf}} and add the following lines&lt;br /&gt;
&lt;br /&gt;
 alias irda0 nsc-ircc&lt;br /&gt;
 options nsc-ircc dongle_id=0x09 io=0x2f8 irq=3 dma=3&lt;br /&gt;
 pre-install nsc-ircc setserial /dev/ttyS1 uart none port 0 irq 0&lt;br /&gt;
&lt;br /&gt;
==== Linux 2.6 kernel config ====&lt;br /&gt;
Edit {{path|/etc/modprobe.conf}} and add the following lines&lt;br /&gt;
&lt;br /&gt;
 alias irda0 nsc-ircc&lt;br /&gt;
 options nsc-ircc dongle_id=0x09 io=0x2f8 irq=3 dma=3&lt;br /&gt;
 install nsc-ircc /bin/setserial /dev/ttyS1 uart none port 0 irq 0; /sbin/modprobe --ignore-install nsc-ircc&lt;br /&gt;
&lt;br /&gt;
The install line is a work-around for the 8250 serial driver taking over the device, and may not be needed in certain distributions.&lt;br /&gt;
Another way to do this is to set this kernel config option:&lt;br /&gt;
&lt;br /&gt;
1. {{kernelconf|CONFIG_SERIAL_8250_RUNTIME_UARTS|(1)|Number of 8250/16550 serial ports to register at runtime|Serial drivers|Character devices|Device Drivers|}}&lt;br /&gt;
&lt;br /&gt;
2. {{kernelconf|CONFIG_SERIAL_8250_NR_UARTS|(4)|Maximum number of 8250/16550 serial ports|Serial drivers|Character devices|Device Drivers|}}&lt;br /&gt;
&lt;br /&gt;
This will prevent the 8250 driver from grabbing any other than the first serial port at boot time or when the module is loaded. You can still add more ports later for example from PC-Card modems, up to CONFIG_SERIAL_8250_NR_UARTS.&lt;br /&gt;
&lt;br /&gt;
==== {{Gentoo}} kernel config ====&lt;br /&gt;
Edit / Create {{path|/etc/modules.d/nsc-irrc}} and add the following lines&lt;br /&gt;
&lt;br /&gt;
 alias irda0 nsc-ircc&lt;br /&gt;
 options nsc-ircc dongle_id=0x09 io=0x2f8 irq=3 dma=3&lt;br /&gt;
&lt;br /&gt;
Edit {{path|/etc/modules.autoload.d/kernel-2.6}} and add the following lines&lt;br /&gt;
&lt;br /&gt;
 nsc-ircc&lt;br /&gt;
&lt;br /&gt;
If you have serial support build in the kernel, switch it to a module and add it after nsc-ircc to advoid io base and irq conflict. For kernel 2.4, same as 2.6 changing the path to modules.autoload.d/kernel-2.4. &lt;br /&gt;
&lt;br /&gt;
==== {{Debian}} Sarge/Etch kernel config ====&lt;br /&gt;
Install irda-utils and set it up for serial port emulation. Edit {{path|/etc/modprobe.d/irda-utils}} and add/change the following lines:&lt;br /&gt;
&lt;br /&gt;
 alias irda0 nsc-ircc&lt;br /&gt;
 options nsc-ircc dongle_id=0x09 io=0x2f8 irq=3 dma=3&lt;br /&gt;
&lt;br /&gt;
Edit / create {{path|/etc/modules.conf}} and add the following line before any references to 8250*, if any:&lt;br /&gt;
&lt;br /&gt;
 nsc-ircc&lt;br /&gt;
&lt;br /&gt;
Make sure that module-init-tools has a chance to iterate over {{path|/etc/modules.conf}} before udev does the initial pci hotplug (this is a problem at least in Debian Sarge, when using backported udev packages):&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /etc/rcS.d/S20module-init-tools /etc/rcS.d/S03module-init-tools}}&lt;br /&gt;
&lt;br /&gt;
Note that at S03, module-init-tools cannot run depmod for you, so either do it manually before you reboot into a new kernel, or reboot twice to get it to work right.  This is also the reason for using cp instead of mv.&lt;br /&gt;
&lt;br /&gt;
If you have the regular serial port drivers as modules, that's it.  Otherwise, try adding the install line described in the Linux 2.6 kernel config section, above, or compile them as modules instead of built-in.&lt;br /&gt;
&lt;br /&gt;
== Known problems ==&lt;br /&gt;
* If the FIR mode is not activated, attempts to load the &amp;lt;tt&amp;gt;nsc-ircc&amp;lt;/tt&amp;gt; module will result in an error in syslog of &amp;quot;Wrong chip version ff&amp;quot;.&lt;br /&gt;
* After suspend the &amp;lt;tt&amp;gt;nsc-ircc&amp;lt;/tt&amp;gt; module needs to be manually reloaded&lt;br /&gt;
* If module reloading does not work after a suspend, try reactivating the IrDA port as well:&lt;br /&gt;
 rmmod nsc_ircc&lt;br /&gt;
 echo disable &amp;gt; /sys/devices/pnp0/00\:0d/resources&lt;br /&gt;
 echo activate &amp;gt; /sys/devices/pnp0/00\:0d/resources&lt;br /&gt;
 modprobe nsc_ircc&lt;br /&gt;
:The value &amp;lt;tt&amp;gt;pnp0/00\:0d&amp;lt;/tt&amp;gt; can vary - look for a id file containing IBM0071 or PNP0511, or for a resources file containing the appropriate irq/dma/io values, e.g., using {{cmdroot|grep 0x2f8 /sys/devices/pnp*/*/resources}} .&lt;br /&gt;
{{NOTE|The power management issues should be resolved starting with the 2.6.17-rc1 kernel.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|Don't understand after inserting modules use irattach irda0 -s and after this you can use eg. minicom over /dev/ircomm0 and test link with irdadump  with this I get working FIR on A21m with 2.6.18}}&lt;br /&gt;
* If you read something like &amp;quot;ttyS1: LSR safety check engaged!&amp;quot; and &amp;quot;irattach: tcgetattr: Input/output error&amp;quot; in the system log, try limiting the FIR max baud rate (echo 57600 &amp;gt; /proc/sys/net/irda/max_baud_rate). This did the trick for me when I was trying to synchronize my Ericsson T39m with my Thinkpad R51 (multisync, evolution-2.8, KDE 3.5.5, openSUSE 10.2). &lt;br /&gt;
&lt;br /&gt;
== Some other things you might want to do with IrDA ==&lt;br /&gt;
* add fast PPP support:&lt;br /&gt;
:{{cmdroot|modprobe irnet}}&lt;br /&gt;
* if needed, limit further the size of the transmit window&lt;br /&gt;
:{{cmdroot|echo 1 &amp;gt; /proc/sys/net/irda/max_tx_window}}&lt;br /&gt;
* set the connection speed to 4Mbit in FIR mode:&lt;br /&gt;
:{{cmdroot|echo 4000000 &amp;gt; /proc/sys/net/irda/max_baud_rate}}&lt;br /&gt;
&lt;br /&gt;
==LIRC and IrDA==&lt;br /&gt;
Usually, IrDA ports are not compatible with LIRC, but you may have luck using lirc_sir.&lt;br /&gt;
&lt;br /&gt;
If loading the &amp;lt;tt&amp;gt;lirc_sir&amp;lt;/tt&amp;gt; module shows something like the following in {{cmdroot|dmesg}} output, you are lucky and can use LIRC with the IrDA port to remote control your ThinkPad.&lt;br /&gt;
 lirc_sir: I/O port 0x02f8, IRQ 3.&lt;br /&gt;
 lirc_sir: Installed.&lt;br /&gt;
&lt;br /&gt;
If it fails with &amp;quot;Device or resource busy&amp;quot;, you may want to install the setserial tool and run it with {{cmdroot|setserial /dev/ttyS1 uart none}}. After that lirc_sir should be loadable.&lt;br /&gt;
&lt;br /&gt;
You might also need to {{cmdroot|modprobe actisys-sir}},   {{cmdroot|modprobe tekram-sir}}, and {{cmdroot|modprobe lirc-sir}} if you are using the SIR on the thinkpad (modules are from kernel 2.6).&lt;br /&gt;
&lt;br /&gt;
Also, do not forget to start the lirc daemon, otherwise no output will be given (you better try running it not as a daemon first, so you can see the output).&lt;br /&gt;
  lircd -d /dev/lirc0 /etc/lircd.conf --nodaemon&lt;br /&gt;
You should see:&lt;br /&gt;
  lircd: lircd(serial) ready&lt;br /&gt;
This means you are good to start {{cmdroot|irrecord}} or {{cmdroot|xmode2}} and check for input.&lt;br /&gt;
&lt;br /&gt;
Once that shows a good output you can configure your remote control.&lt;br /&gt;
then use it in applications like mplayer, xine, or KDE's remote controls server.&lt;br /&gt;
&lt;br /&gt;
== External Sources ==&lt;br /&gt;
*[http://irda.sourceforge.net/ Linux-IrDA Project] (External)&lt;br /&gt;
*[http://pcmcia-cs.sourceforge.net/ Linux PCMCIA Project] (External)&lt;br /&gt;
*[http://tpctl.sourceforge.net/ tpctl homepage] (External)&lt;br /&gt;
*[http://www.lirc.org/ Linux Infrared Remote Control] (External)&lt;/div&gt;</summary>
		<author><name>Fluidspace</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=KThinkBat&amp;diff=27552</id>
		<title>KThinkBat</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=KThinkBat&amp;diff=27552"/>
		<updated>2007-01-06T16:27:07Z</updated>

		<summary type="html">&lt;p&gt;Fluidspace: Added link to SuSE rpms on Guru's rpm site&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
&lt;br /&gt;
[https://lepetitfou.dyndns.org/KThinkBat KThinkBat] is a laptop battery monitor for the KDE-Kicker. It is inspired by the Windows Application &amp;quot;Battery Maximizer&amp;quot; which is included with ThinkPads. &lt;br /&gt;
&lt;br /&gt;
It can use the SMAPI BIOS (through the [[tp_smapi]] driver) or [[How to make ACPI work|ACPI]] to collect the data. It shows you the current power consumption of the laptop and brings support for a second battery. It is fully customizable including sizes, color, fonts and battery number&lt;br /&gt;
&lt;br /&gt;
Homepage: https://lepetitfou.dyndns.org/KThinkBat&lt;br /&gt;
&lt;br /&gt;
Author: [https://lepetitfou.dyndns.org/wiki/bin/view/Main/TobiasRoeser Tobias Roeser]&lt;br /&gt;
&lt;br /&gt;
Latest Version (2006-11-18): 0.2.3&lt;br /&gt;
&lt;br /&gt;
==Screenshot==&lt;br /&gt;
&lt;br /&gt;
[[Image:KThinkBat.png]]&lt;br /&gt;
&lt;br /&gt;
Offline Mode: you see how much charge is left and the current discharging rate.&lt;br /&gt;
&lt;br /&gt;
[[Image:KThinkBat_dual.png]]&lt;br /&gt;
&lt;br /&gt;
Online Mode: you see how much charge is left and the current charging rate. This screenshot is taken with the disabled &amp;quot;summarize batteries&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
KThinkBat uses the autotools. For a standard installation use &lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 su -c 'make install'&lt;br /&gt;
&lt;br /&gt;
Alternatively, to minimize filesystem clutter you can install KThinkBat into {{path|/opt/kthinkbat}} and add just a few symlinks under {{path|/usr}}:&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /opt/kthinkbat&lt;br /&gt;
 ./configure --prefix=/opt/kthinkbat&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 cd /usr/lib/kde3&lt;br /&gt;
 ln -vfs ../../../opt/kthinkbat/lib/* ./&lt;br /&gt;
 cd /usr/share/apps/kicker/applets&lt;br /&gt;
 ln -vfs ../../../../../opt/kthinkbat/share/apps/kicker/applets/kthinkbat.desktop ./&lt;br /&gt;
&lt;br /&gt;
(The above paths are for {{Fedora}} 4 and 5, and may need to be adjusted for other distributions.)&lt;br /&gt;
&lt;br /&gt;
If you already have the applet running, run {{cmduser|killall kicker; kicker}} to restart it.&lt;br /&gt;
&lt;br /&gt;
==Gentoo==&lt;br /&gt;
You can use the the ebuild from this [https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/ portage overlay], category/package: [https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/app-laptop app-laptop]/[https://lepetitfou.dyndns.org/svn/portage-overlay-lefou/trunk/app-laptop/kthinkbat kthinkbat].&lt;br /&gt;
&lt;br /&gt;
==openSuSE==&lt;br /&gt;
&lt;br /&gt;
On [http://linux01.gwdg.de/~pbleser/index.php Guru's RPM Site] there are [http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=System/kthinkbat/ RPMs for KThinkBat 0.2.3 and 0.2.2] compiled for all SuSE versions back to 9.3. &lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
* [https://lepetitfou.dyndns.org/KThinkBat#Download Download from the KThinkBat Site]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[How to use UltraBay batteries]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]] [[Category:Gentoo]]&lt;/div&gt;</summary>
		<author><name>Fluidspace</name></author>
		
	</entry>
</feed>