<?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=Stechlinger</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=Stechlinger"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Stechlinger"/>
	<updated>2026-05-06T03:57:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:BIOS_Upgrade&amp;diff=53555</id>
		<title>Talk:BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:BIOS_Upgrade&amp;diff=53555"/>
		<updated>2012-03-04T16:20:09Z</updated>

		<summary type="html">&lt;p&gt;Stechlinger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Dead link == &lt;br /&gt;
&lt;br /&gt;
The link to the FreeDOS floppy (http://www.ankreuzen.de/freedos/files/fd9sr1/fdos1440.zip), which is needed to upgrade the BIOS from a CD, is dead. Is the information still valid? And is there a different source for the floppy image? [[User:Jamesavery|Jamesavery]] 05:49, 18 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== BIOS upgrade using WINE ==&lt;br /&gt;
&lt;br /&gt;
Does anyone think this would be possible? [[User:Mcalwell|Mcalwell]] 08:58, 28 January 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
: No this is not possible. [[User:Mcalwell|Mcalwell]] 16:01, 12 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== BIOS upgrade without battery ==&lt;br /&gt;
&lt;br /&gt;
Concerning the known problem with 600 series with batteries dead too soon, it is impossible to upgrade the bios without the battery because the original ibm update program doesn't allow this. I bought an old 600E without the battery. There was one workaround, but i think for the older releases of the bios, where you just extracted files and upgraded manualy, bypassing the ibm install program. The page that describes this (i lost the link) has a list of different files, that the ones found in current release so i never did figure out what to do? I would like to upgrade because i have really old bios, where ACPI doesn't cooperate so well with the operating system, either windows or linux.&lt;br /&gt;
&lt;br /&gt;
If somebody finds a workaround please help. Thanks&lt;br /&gt;
&lt;br /&gt;
//Edit&lt;br /&gt;
&lt;br /&gt;
I've found the page on Vim's bios upgrade forum.. I don't know if it exactly for my model, since the files differ.. '''Is it possible, to upgrade bios in linux without the battery?'''&lt;br /&gt;
&lt;br /&gt;
''I have found a working solution WOW on the other forum: &lt;br /&gt;
&lt;br /&gt;
*** This is NOT a safe way to update the bios (disclaimer) *** &lt;br /&gt;
&lt;br /&gt;
* First you need to make a BIOS update floppy disk (from the bios file from IBM - place disk in a: drive, run app and answer Y to the agreement) and then format another disk by right clicking on A: - format - make system bootdisk (assuming you have another machine spare) &lt;br /&gt;
&lt;br /&gt;
* Copy all the files from the IBM Boot disk - in my case &lt;br /&gt;
$0029000.fl1 &lt;br /&gt;
$0029000.fl2 &lt;br /&gt;
FLASH2.EXE &lt;br /&gt;
PROD.DAT &lt;br /&gt;
UPDTFLSH.EXE &lt;br /&gt;
updtrom.exe &lt;br /&gt;
USERINT.EXE &lt;br /&gt;
UTILINFO.EXE &lt;br /&gt;
to the other clean bootdisk. &lt;br /&gt;
&lt;br /&gt;
* Ensure that there is no config.sys and autoexec.bat so it just runs straight into DOS. &lt;br /&gt;
&lt;br /&gt;
* Place the disk into the Laptop, reboot and allow the machine to load via the floppy &lt;br /&gt;
&lt;br /&gt;
* At the command prompt, type &amp;quot;FLASH2.EXE /U&amp;quot; with no quotes then press enter. &lt;br /&gt;
&lt;br /&gt;
The program will automatically search for the files *.FL1 &amp;amp; *.FL2 and load the bios first then the platform file. &lt;br /&gt;
&lt;br /&gt;
The program will automatically update and perform erasing on the rom and then finish with &amp;quot;Update complete&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
* Now reboot. &lt;br /&gt;
&lt;br /&gt;
* Hold F1 down as you turn the laptop back on and go into Easy Setup under &amp;quot;Config&amp;quot; click on Initialize to ensure defaults and settings are error free. &lt;br /&gt;
&lt;br /&gt;
* Save and exit...''&lt;br /&gt;
&lt;br /&gt;
// EDIT&lt;br /&gt;
&lt;br /&gt;
This worked on my machine.. I make no guarantees it will work on others.&lt;br /&gt;
&lt;br /&gt;
The above procedure did not work on my T23 using the 1.20 bios; it kept returning error 14 (Low Battery). However, following those instructions and running &amp;quot;qkflash&amp;quot; rather than flash2 did work for the main bios, and later for the embedded controller.&lt;br /&gt;
--grythumn&lt;br /&gt;
&lt;br /&gt;
// EDIT&lt;br /&gt;
The provided solution didn't work on my R31: even with qkflash /U i get the low battery message - is there any other solution ?&lt;br /&gt;
-- joer&lt;br /&gt;
&lt;br /&gt;
Try &amp;quot;phlash&amp;quot; after renaming $0179000.fl1 to bios.rom and $0179000.fl3 to platform.bin, source: (deleted since the wiki pesters about me being a spambot). Worked on an {{A22e}} using freedos/balder which I had to boot natively - using memdisk caused phlash to stall, luckily without causing damage. --cbiedl&lt;br /&gt;
&lt;br /&gt;
== Bios upgrade &amp;amp; hidden partition ==&lt;br /&gt;
&lt;br /&gt;
I have disabled the hidden partition to make more space for linux (24G). I still have Windows on the 14G partition. Is it safe to upgrade the BIOS without the hidden partition? I want to get a newer BIOS to fix the annoying fan issue. Thanks&lt;br /&gt;
&lt;br /&gt;
- yes don't worry about it. bios upgrades have nothing to do with whats inside the harddrive.&lt;br /&gt;
&lt;br /&gt;
== BIOS upgrade over PXE ==&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
I have a Thinkpad X20 with a very early BIOS and Embedded Controller Program which I'd like to update. Currently, the only feasible way of doing this is over the network using PXE. I already have a fully functional PXE server using SYSLINUX, and have so far been able to boot the BIOS diskette image using MEMDISK, although I have not attempted to flash anything yet due to the warnings given on the page. Is there any safe way I can update both the Controller Program and the BIOS in the same session over the network in this manner? If not, what other methods would be suitable? I have a USB CD-ROM drive and could probably get hold of a USB floppy drive.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
Update: I ended up burning CDs as described and successfully updated everything. I'd still like to know if there is a way I could do it entirely over the network, though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RE: grub initrd ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Another possibility which works even without a CD-drive or network is to boot the disk image via the grub initrd mechanism.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0) Interesting suggestion. Might be better of in its own section.&lt;br /&gt;
&lt;br /&gt;
1) Could you please elaborate?&lt;br /&gt;
&lt;br /&gt;
2) My first guess (pending your elaboration) would be to &amp;quot;chainload&amp;quot; the first block of the diskimage using the grub commandline, like:&lt;br /&gt;
   blocklist (''path'')/''to''/''diskimage''&lt;br /&gt;
   chainloader ''blockvalue''+1&lt;br /&gt;
&lt;br /&gt;
But that's just a guess!&lt;br /&gt;
&lt;br /&gt;
[[user:Pebolle|Paul Bolle]] Fri Jul 15 12:20:47 CEST 2005&lt;br /&gt;
&lt;br /&gt;
== bios/controller update sequence ==&lt;br /&gt;
&lt;br /&gt;
The article says:&lt;br /&gt;
&amp;quot;If you go through the readme's on the IBM site they'll cleary state that you must update the Control Program first, then imediately update the BIOS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
When I look at the IBM udpate instructions for the T23, it says:&lt;br /&gt;
&amp;quot;If you need to update the BIOS as well as the Embedded Controller Program, update the BIOS first.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Comments?&lt;br /&gt;
&lt;br /&gt;
&amp;gt; I would first contact IBM for clarification, but you should probably be following instructions specific to your model.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; I did it following IBM's instructions to upgrade the BIOS first. Everything worked out great!&lt;br /&gt;
&lt;br /&gt;
== Firmware upgrade for Intel minipci combo card ==&lt;br /&gt;
&lt;br /&gt;
I just purchased an [[Intel 10/100 Ethernet Mini-PCI Adapter with 56K Modem]] that has an ancient (2.0.6) firmware version.  I Downloaded the update file intlbtag.EXE but cabextract was unable to find any cabfiles inside it.  I tried running the program via wine and that didn't work either.&lt;br /&gt;
&lt;br /&gt;
Finally I ran the program on a windows machine and created a boot floppy.  Then I went through the the process of converting the floppy to a bootable cd via linux and that worked like a charm.  The cd successfully updated the minipc card's firmware.&lt;br /&gt;
&lt;br /&gt;
Everything worked but I ended up needing a windows box to do it.  Could this have been done without windows?&lt;br /&gt;
&lt;br /&gt;
== Firmware upgrade for Wireless LAN MiniPCI COMBO Card using prism2_srec ==&lt;br /&gt;
&lt;br /&gt;
The appropriate firmware installation program for the wlan card in my R32 can be extracted using cabextract as described in the article. It contains (besides some installation programs) a disk image (1awg06ww.IMG) that seems to be a simple dos boot disk. This image contains 3 .hex files (id010001.hex, pk010100.hex, sf010402.hex) that are recognized by prism2_srec to be &amp;quot;srec&amp;quot;-files. Trying to load them to RAM yields:&lt;br /&gt;
&lt;br /&gt;
    {{cmdroot|prism2_srec -v -r wlan0 sf010402.hex}}&lt;br /&gt;
    S3 CRC-16 generation record: start=0x007E1800 len=65642 prog=1&lt;br /&gt;
    Start address 0x00000000&lt;br /&gt;
    srec summary for sf010402.hex&lt;br /&gt;
    Component: 0x001f 1.4.2 (station firmware)&lt;br /&gt;
    &amp;lt;snip&amp;gt;&lt;br /&gt;
    Interface compatibility information:&lt;br /&gt;
    role=Supplier variant=2 range=1-9 iface=Station Firmware-Driver (4)&lt;br /&gt;
    role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)&lt;br /&gt;
    role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)&lt;br /&gt;
    role=Actor    variant=1 range=4-4 iface=Primary Firmware-Driver (3)&lt;br /&gt;
    &amp;lt;snip&amp;gt;&lt;br /&gt;
    Wireless LAN card information:&lt;br /&gt;
    Components:&lt;br /&gt;
    NICID: 0x8013 v1.0.0&lt;br /&gt;
    PRIID: 0x0015 v1.0.7&lt;br /&gt;
    STAID: 0x001f v1.3.6&lt;br /&gt;
    Interface compatibility information:&lt;br /&gt;
    PRI role=Supplier variant=1 range=1-1 iface=Modem-Firmware (1)&lt;br /&gt;
    PRI role=Supplier variant=2 range=1-1 iface=Controller-Firmware (2)&lt;br /&gt;
    PRI role=Supplier variant=1 range=4-4 iface=Primary Firmware-Driver (3)&lt;br /&gt;
    STA role=Supplier variant=1 range=1-9 iface=Station Firmware-Driver (4)&lt;br /&gt;
    PRI role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)&lt;br /&gt;
    STA role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)&lt;br /&gt;
    STA role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)&lt;br /&gt;
    &amp;lt;snip&amp;gt;&lt;br /&gt;
    This image is not meant to be downloaded to volatile memory.&lt;br /&gt;
    Incompatible update data.&lt;br /&gt;
&lt;br /&gt;
Has anyone tried to flash this device using prism2_srec yet?&lt;br /&gt;
What bothers me is, that the upgrade is for many different parts of the combo card. Does anyone have an opinion on whether this could work?&lt;br /&gt;
&lt;br /&gt;
OK, I took the risk and successfully upgraded my station firmware, BUT when I tried to upgrade the primary firmware the system froze!!! The thinkpad won't start up with the miniPCI card inserted and all efforts to reflash it using the original DOS boot image failed!!!&lt;br /&gt;
&lt;br /&gt;
I'm quite sure the system freeze was not caused directly by prism2_srec, because I have noticed rare system freezes since I have been using my PCMCIA wireless card.&lt;br /&gt;
Anyway, if anyone should own a TP R32, I'd be glad if he could tell me the base address of the Wlan card, or it's PCI address.&lt;br /&gt;
&lt;br /&gt;
Thinkpad r32 owner here. I want to upgrade the firmware as well. If you need any information just send an email to haftbar[a]gmail.com [[User:Quickie|Quickie]] 02:12, 1 February 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
==Reorganization suggestion==&lt;br /&gt;
The Downloads section is rather long. Would it be an idea to put it on a separate, new page (say: BIOS_Downloads) and link to that new page from this page?&lt;br /&gt;
&lt;br /&gt;
[[User:Pebolle|Paul Bolle]] 21:27, 15 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
&amp;gt; I agree with this suggestion.&lt;br /&gt;
&lt;br /&gt;
== Upgrading BIOS and Embedded Control Program from Win XP ==&lt;br /&gt;
&lt;br /&gt;
I'm trying to upgrade the BIOS and Embedded Controller Program from Windows XP following the instructions on the Lenovo website. The problem is the instructions are not very clear about this. The instructions basically state that I must upgrade them at the same time because the Control Program does not work with the older BIOS and the BIOS does not work with the older Control Program. They also state that I should upgrade the Control Program first. &lt;br /&gt;
&lt;br /&gt;
But that means I must boot into XP after having upgraded the Control Program but with the older BIOS in order to then update the BIOS. But if this works then they are actually compatible and there's a contradiction. Am I missing something? I just want to make sure I don't end up with a non-functioning unit.&lt;br /&gt;
&lt;br /&gt;
I have an X23 and want the latest BIOS (v 1.32) and Control Program (v 1.30). &lt;br /&gt;
&lt;br /&gt;
Maybe there should be a note about this in the article? Or maybe I'm the only one who is this stupid :)&lt;br /&gt;
&lt;br /&gt;
Update: I talked to Lenovo support. The situation apparently is that though the description says that the newer control program is not compatible with the older BIOS, they are not so incompatible as to cause the machine to stop working so it is actually possible to use incompatible versions of BIOS and control program. In fact according to the support person it makes no difference if the BIOS is upgraded before the control program or vice versa. So I upgraded the control program using the executable running in Windows XP, which rebooted the computer to perform the upgrade and then I booted Windows again to upgrade the BIOS in the same manner and it all worked fine. If anyone reading this finds it useful maybe you can put it in the article? Or if you find it superfluous just delete this section.&lt;br /&gt;
&lt;br /&gt;
--[[User:xphinx|xphinx]] 12 March 2007&lt;br /&gt;
&lt;br /&gt;
I have an X22 with BIOS version 1.21 and Embedded Controller version 1.17 and using the steps described by you, I succesfully updated my bios to the lastest versions from WindowsXP (BIOS v1.32 / EC v1.30)&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;br /&gt;
== BIOS upgrade for T21 with T20 BIOS ==&lt;br /&gt;
&lt;br /&gt;
Hi, I bought a used T21 recently (type 2647-8AU), and would like to update the BIOS to the latest version, but there's a problem: this T21 appears to have a T20 BIOS (IYET50WW, a/k/a T20 BIOS version 1.11).  When I try updating this BIOS using one of IBM's T21 updaters - I tried KZET34WW/v1.16 (the latest one) and KZET16WW/v1.01 (the earliest one) - I get the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
''The diskette in the default drive will not run on this system. Your system is now locked. To restart your system, press Ctrl+Alt+Del.''&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I suspect this message appears because the existing BIOS is a T20 BIOS.&lt;br /&gt;
&lt;br /&gt;
There would appear to be two options: either use the most recent T20 updater (IYET61WW, a/k/a T20 v1.22), or find a way to defeat the block in the KZET34WW/v1.16 T21 updater.  Obviously either option is risky in the absence of more information and/or detective work.  And I don't know enough about T2x-series hardware to hazard a guess (i.e., were early T21s just T20s with a speed bump, did some T21s get T20 BIOSes by mistake due to factory error, or are the T20 and T21 similar enough that it doesn't matter whether a T20 or T21 BIOS is used).&lt;br /&gt;
&lt;br /&gt;
Some relevant data gleaned from the stickers on the case bottom and the current BIOS:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* '''Type:''' 2647-8AU (T21 with 800-MHz processor)&lt;br /&gt;
* '''S/N:''' 78-0GL1Z (zero-G-L-one-zed)&lt;br /&gt;
* '''Manufacture date:''' 03/2001&lt;br /&gt;
* '''BIOS version:''' IYET50WW (T20 BIOS v1.11)&lt;br /&gt;
* '''System unit S/N:''' (appears to be blank)&lt;br /&gt;
* '''System board S/N:''' J1HHS15CL5C&lt;br /&gt;
* '''System board P/N:''' 08K3747 (printed on motherboard)&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for any help anyone can provide.&lt;br /&gt;
&lt;br /&gt;
-Linux Spice&lt;br /&gt;
&lt;br /&gt;
P.S. At first I thought this might be a Frankenstein ThinkPad with a T21 case and a T20 logic board - I did buy it used, after all - but it does have an 800-MHz processor, which was never an option for the T20 (both the BIOS and Linux report it as such), and all the other equipment checks out (except for the hard drive, which was replaced with a 40-GB model).&lt;br /&gt;
&lt;br /&gt;
== Force Upgrade a Thinkpad T20 to latest Thinkpad T22 BIOS ==&lt;br /&gt;
&lt;br /&gt;
i managed to force upgrade my t20 to a t22 bios using a strange method.&lt;br /&gt;
&lt;br /&gt;
i snagged a &amp;quot;bios bootdisk&amp;quot; from bootdisk.com (it's a drdos/caldera dos boot disk), wrote the image to a floppy disk, then copied to it the PHLASH.EXE flasher, $0179000.fl1 (renamed to BIOS.BIN) and $0179000.fl3 (renamed to PLATFORM.IMG) from the T22 1.06 update from ibm/lenovo's site.  i think any lower version would work, but it tried it with that.  anyways.&lt;br /&gt;
&lt;br /&gt;
i inserted the disk into the thinkpad t20, booted off of it, then ran PHLASH.  it reflashed the t20 with the t22 1.06 image no problem.  now the machine's in a frankenstein state...t22 bios, t20 ec, etc.  i took the floppy out (or made another floppy, whatever), wrote to it the latest available update from ibm/lenovo (at the time of writing, although i doubt it will ever be updated again, is 1.12), booted the thinkpad t20 off of it, and the bios reflash disk was satisfied that the machine was a t22.  more waiting, and the thinkpad t20 is now a thinkpad t22!  for me, it means no more waiting for the machine to count memory every single boot (it remembers the value and quick boots now), and it perfectly supports my 1400x1050 display from a damaged thinkpad t22!&lt;br /&gt;
&lt;br /&gt;
end result: reflashed a thinkpad t20 with the latest thinkpad t22 bios, and now the machine presents itself as a thinkpad t22.  the hardware's similar enough that it can pass itself off as such just fine.&lt;br /&gt;
&lt;br /&gt;
hope others can share in my success.&lt;br /&gt;
&lt;br /&gt;
--[[User:SaturnNiGHTS|SaturnNiGHTS]] 15:49, 11 May 2008 (EST) (also uses &amp;quot;SatNiGHTS&amp;quot; on IRC)&lt;br /&gt;
&lt;br /&gt;
== BIOS format ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this is the right place, but...&lt;br /&gt;
Does anybody know what the formats for the various files are in the bios package (or, even better, the bios.bak file that gets dumped on your disk before updating)? I'm getting progressivel lower and lower level in figuring out just what happens when the computer boots, and the BIOS is the last step... (BTW, I have an x60s)&lt;br /&gt;
&lt;br /&gt;
-- Unknown&lt;br /&gt;
&lt;br /&gt;
Yes.  It is a binary dump.  Sometimes, there is junk in the start of the file.  This should be data enough for you to figure out what you need.&lt;br /&gt;
&lt;br /&gt;
--[[User:Hmh|hmh]] 13:30, 26 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== BIOS update gone bad ==&lt;br /&gt;
&lt;br /&gt;
I tried to flash my [[:Category:600|ThinkPad 600]]'s bios with catastrophalic outcome; now the machine is unable to boot. I, being overly stupid and too self-confident, ignored all warnings about the media containing the bios image not being write-protected (I used one partition of the disk, in which I had installed FreeDOS). During the updating process, the machine started to write screens full of random characters in cyan coloured background. At that point I knew it was b0rked. I asked my friend about what to do now, he said I could open the machine up, locate the bios chip and use EPROM programmer/burner to write the bios image to the chip. He also said that because my machine is very old, there are probably not safeguards like dual bios or emergency bios update from floppy disk on boot. He continued by saying that the bios update file images from IBM/Lenovo website might not be actual , &amp;quot;pure&amp;quot; binaries which could be burned directly to the chip, instead they may contain some vendor-specific checksums which must be taken into account. In ThinkWiki there seems to be no page about bios flashing gone bad and restoring the machine to working condition. Or is there? I really need your help with this; I think I'm able to locate the bios, take it off and find a working EPROM burner, but where can I get a clean BIOS image without the vendor checksums? I'd be grateful for any references.&lt;br /&gt;
&lt;br /&gt;
--[[User:Usv|Usv]] 12:45, 31 March 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== BIOS upgrade using USB flash drive ==&lt;br /&gt;
&lt;br /&gt;
I flashed my Thinkpad X41 succesfully with 2.09 BIOS using bootable USB flash drive with DOS 6.22 system files. (I guess Freedos would work aswell). I had such key laying around so I can't help you with making one (i used windows HP USB key format utility to make it long long time ago) &lt;br /&gt;
Everything is quite simple once you have USB key and are able to boot DOS from it.&lt;br /&gt;
&lt;br /&gt;
I downloaded the non-diskette ThinkPad BIOS update utility (74uj15us.exe) from lenovo support site and extracted the disk image from it using cabextract:&lt;br /&gt;
   {{cmduser|cabextract -F &amp;quot;*.IMG&amp;quot; 74uj15us.exe}}&lt;br /&gt;
&lt;br /&gt;
I mounted the image file (74UJ15US.IMG):&lt;br /&gt;
   {{cmdroot|mkdir /tmp/mnt}}&lt;br /&gt;
   {{cmdroot|mount -o loop 74UJ15US.IMG /tmp/mnt}}&lt;br /&gt;
&lt;br /&gt;
I mounted the usb key and made a directory for ibm flash utility files under it:&lt;br /&gt;
   {{cmdroot|mount /dev/sdb1 /mnt/usbflash}}&lt;br /&gt;
   {{cmdroot|mkdir /mnt/usbflash/ibm}}&lt;br /&gt;
&lt;br /&gt;
I copied the contents of /tmp/mnt to /mnt/usbflash/ibm:&lt;br /&gt;
   {{cmdroot|cp /tmp/mnt/*.* /mnt/usbflash/ibm}}&lt;br /&gt;
&lt;br /&gt;
Then I unmounted the USB stick and rebooted from it to DOS (F12 during boot -&amp;gt; USB HDD).&amp;lt;br&amp;gt; &lt;br /&gt;
In the DOS Prompt:&amp;lt;br&amp;gt;&lt;br /&gt;
   C:\cd ibm&lt;br /&gt;
   C:\IBM\flash2 /U&lt;br /&gt;
I waited for about 1 minute, then my thinkpad made two beeps to signal that the flashing was complete.&lt;br /&gt;
&lt;br /&gt;
PS. Because lacking reliable guide on how to make bootable DOS USB stick for ThinkPads I decided to leave this into discussion section. Please feel free to move/edit all the necessary stuff into the BIOS upgrade article if you know/figure out how to make bootable DOS USB stick in linux. I tried various tutorials including http://gentoo-wiki.com/HOWTO_Create_a_DOS_boot_USB_flash_drive, but didn't manage to boot into the Freedos prompt.&lt;br /&gt;
--[[User:ladoga|ladoga]] 04:56 17 Apr 2007&lt;br /&gt;
&lt;br /&gt;
==Reserving RAM for my X3100 graphics card==&lt;br /&gt;
Is there any way in the BIOS to reserve memory for my graphics card? I have 2 GB of RAM, which is more than enough for general system processes so I'd like to allocate some to my Intel graphics card. [[User:SteveSims|SteveSims]] 19:36, 5 November 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
==BIOS Doesn't want to install==&lt;br /&gt;
During the install process on a Z60m, I get the error message, &amp;quot;An update is not necessary at this time.  The process has been canceled.&amp;quot;  The program is right, I am using the same latest BIOS version.  However, I have a different, new boot splash image on it.  I was wondering if there were any way to force a reflash - the program gives me no way around this.&lt;br /&gt;
&lt;br /&gt;
Turns out that I had put the bios splash on incorrectly.  It should reflash if you change the splash image.  But in case you needed to reflash an identical bios for any reason, one thing that worked for me was downgrading and then upgrading.&lt;br /&gt;
&lt;br /&gt;
== Converting Current BIOS CD-ROM for USB Flash boot ==&lt;br /&gt;
&lt;br /&gt;
The latest Lenovo BIOS releases in bootable CD-ROM format (for the X200 in my case) are using hard disk emulation rather than floppy emulation.&lt;br /&gt;
&lt;br /&gt;
I peeked at the ISO with hexdump and found the hard disk image, including its MBR and partition table, starting at byte offset 0xd800 in the particular image I inspected. I won't explain the crude way I found this, but it was easy to verify. I used &amp;quot;tail -c +55297 foo.iso &amp;gt; boot.img&amp;quot; and then loaded this up in a loopback device to verify that fdisk saw a proper partition table.&lt;br /&gt;
&lt;br /&gt;
Simply dumping this image to a USB flash drive via dd if=boot.img of=/dev/sdb then created a bootable drive and I successfully booted this and updated my X200 BIOS. Your mileage may vary...&lt;br /&gt;
&lt;br /&gt;
-- karlcz Oct 16 16:09:40 UTC 2008&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Floppy Disk, Failure Mode ==&lt;br /&gt;
&lt;br /&gt;
I've just had the mispleasure of toasting my wife laptop during a floppy HC4 flash. The problem was that the read from floppy failed with 'abort, retry, fail'. After a couple of 'retry' attempts, I mistakenly hit 'fail' (rather than 'abort'). The program then decided to flash with whatever it had in memory and toasted the machine (which will not turn on at all now).&lt;br /&gt;
&lt;br /&gt;
--[[User:Mungewell|Mungewell]] 15:09, 29 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Huge Re-write ==&lt;br /&gt;
I found this page to be horribly confusing and hard-to-read. There was a fair bit of duplication, e.g., using '''memdisk''' to boot from GRUB was covered at least twice.  There was some clutter, e.g., discussion of cleaning floppy drive heads.  And just a general disorganization.   So, I decided to &amp;quot;fix&amp;quot; it.&lt;br /&gt;
&lt;br /&gt;
I broke the update (&amp;quot;upgrade&amp;quot;) process down into two basic steps: how to get the right file, and how to install it.  I moved things around based on that basic structure, and then re-formatted a lot of stuff.  So, the page contents ''look'' much more different than they actually ''are''.&lt;br /&gt;
&lt;br /&gt;
Please check for technical accuracy if you have a moment.  -- [[User:Pi3832|Pi3832]] 07:46, 15 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
=== Moving &amp;quot;testing&amp;quot; tables ===&lt;br /&gt;
The tables of what models have been tested with various methods are great info, but take up a lot of space on the page.  Maybe they should be sub-pages? -- [[User:Pi3832|Pi3832]] 07:46, 15 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Wrong mkisofs/genisoimage commands will just get people stuck==&lt;br /&gt;
Giving people the following example will just get them stuck!&lt;br /&gt;
 $ genisoimage -b bootfloppy.img -o bootcd.iso 1WUJ25US.IMG #or mkisofs for older systems&lt;br /&gt;
 genisoimage: Uh oh, I cant find the boot image 'bootfloppy.img' !&lt;br /&gt;
&lt;br /&gt;
The proper example needs to be&lt;br /&gt;
 $ genisoimage -b 1WUJ25US.IMG -c boot.catalog -o bootcd.iso 1WUJ25US.IMG&lt;br /&gt;
&lt;br /&gt;
See [http://article.gmane.org/gmane.linux.hardware.thinkpad/40117]. [[User:Jidanni|Jidanni]] 23:53, 23 January 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==new File Formats ??==&lt;br /&gt;
Could it be that Lenovo changed the Fileformats ? Neither the ISO nor the .exe seem to work as described in the Wiki :(&lt;br /&gt;
--[[User:Stechlinger|Stechlinger]] 17:20, 4 March 2012 (CET)&lt;/div&gt;</summary>
		<author><name>Stechlinger</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Tp_smapi&amp;diff=51508</id>
		<title>Talk:Tp smapi</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Tp_smapi&amp;diff=51508"/>
		<updated>2011-05-02T12:28:23Z</updated>

		<summary type="html">&lt;p&gt;Stechlinger: workaround for tp_smapi failing with ec error message&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Feedback ==&lt;br /&gt;
&lt;br /&gt;
Great, great work! Really! This completely rocks. I just stopped my battery from charging at 77% and restarted charging a bit later, no problems whatsoever. BTW, this is on kernel 2.6.14.3.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 21:25, 5 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
None of the fuctions is working on my T40, kernel 2.6.14-mm2.&lt;br /&gt;
&lt;br /&gt;
--[[User:Lammic|lammic]], 2005.12.05&lt;br /&gt;
&lt;br /&gt;
Works for me on a T41 running 2.6.12-10-686 (Ubuntu 5.10).&lt;br /&gt;
&lt;br /&gt;
--[[User:berndtnm|berndtnm]], 2005.12.06&lt;br /&gt;
&lt;br /&gt;
Including stop_charge_thresh? That one seems to be missing on the T42p.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 00:46, 7 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
tp_smapi works just fine on an R52 with Ubuntu Breezy stock kernel.&lt;br /&gt;
&lt;br /&gt;
--[[User:Micampe|Micampe]] 12:52, 7 Dec 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
''To set the thresholds for starting and stopping battery charging (in percent of current capacity):''&lt;br /&gt;
&lt;br /&gt;
'''current''' really? That'd be weird, I'd expect it to be percent of '''total''' capacity.&lt;br /&gt;
&lt;br /&gt;
--[[User:Micampe|Micampe]] 14:39, 7 Dec 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Current full charge capacity&amp;quot;, as opposed to &amp;quot;current remaining capacity&amp;quot; or &amp;quot;designed full charge capacity&amp;quot;...&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:05, 7 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Battery features don't work with my T41p. I can't check this with windows. Can anybody try these features?&lt;br /&gt;
&lt;br /&gt;
-- Nils, 7 Dec 2005&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Nils, does cdrom_speed work for you on the T41p? Could you provide the details requested in the README (dmesg etc.)?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:57, 7 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
CDRom Speed seems to work. (I see no warnings, but I have to do a speed test.) Now, I've send all outputs to the email-address in the readme.&lt;br /&gt;
&lt;br /&gt;
-- Nils, 8 Dec 2005&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All the features except the stop_charge_thresh seem to work here on a t42p. &lt;br /&gt;
One note, the start_charge_thresh seems to really be stop_charge_thresh. Ie, If I set that to lower than my current battery %, it will never charge, &lt;br /&gt;
and if I set it to 100 the battery charges all the way. &lt;br /&gt;
&lt;br /&gt;
--[[User:Nirik|Nirik]] 16 Dec 2005&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Nirik, &amp;quot;all the features&amp;quot; as of which version? For example, do the force_discharge{1,2} in tp_smapi 0.12 also work for you? See the table in the article page. About start_charge, that's odd. Can you send me a log of what you did, what was the result a what was the dmesg output for each operation?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 14:16, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
System T40p:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fairlight:/sys/devices/platform/smapi/BAT0# echo 1 &amp;gt; /sys/devices/platform/smapi/BAT0/force_discharge1&lt;br /&gt;
fairlight:/sys/devices/platform/smapi/BAT0# echo 1 &amp;gt; /sys/devices/platform/smapi/BAT0/force_discharge2&lt;br /&gt;
fairlight:/sys/devices/platform/smapi/BAT0# dmesg   &lt;br /&gt;
tp_smapi: req_in: BX=2118 CX=100 DI=0 SI=0&lt;br /&gt;
tp_smapi: req_out: AX=8680 BX=2118 CX=100 DX=b2 DI=0 SI=0 ret=-38&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2118)&lt;br /&gt;
tp_smapi: cannot get force_discharge1 of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
tp_smapi: req_in: BX=2104 CX=100 DI=0 SI=0&lt;br /&gt;
tp_smapi: req_out: AX=80 BX=2103 CX=100 DX=78 DI=0 SI=0 ret=0&lt;br /&gt;
tp_smapi: cannot get force_discharge2 of battery 0: bx=2103&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So it seems force_discharge1 is not supported at all. But force_discharge2? By the way, i think wiki is a _very_ good idea for collecting information, but not for discussion. I would prefer a maillinglist. We can use sourceforge.&lt;br /&gt;
&lt;br /&gt;
--[[User|StefanSchmidt]]&lt;br /&gt;
&lt;br /&gt;
force_discharge2 is indicating a real error condition (bx=2103 which has bit 0x02 on), but I have no idea what the error is or how to fix it. Sorry. If you can trigger this function under Windows and have SoftICE or equivalent, maybe it can be worked out.&lt;br /&gt;
&lt;br /&gt;
About the Wiki discussion, I'm not sure a mailing list is justified yet, but you can use the linux-thinkpad list or the e-mail address in the README. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:42, 16 Dec 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
OK, then i use linux-thinkpad to get more people involved. I'am away the next weeks, but i hope to find some time to hacking on tp_smapi.&lt;br /&gt;
&lt;br /&gt;
--[[User:StefanSchmidt]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Someone reported cd_speed works on T42 but on mine, it doesn't: this is 2378DXU&lt;br /&gt;
&lt;br /&gt;
--[[User:eBug]] 22:55, 17 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
eBug, how does it fail? If the file doesn't exist, it means you didn't enable PROVIDE_CD_SPEED (see the README). If it does exist, can you provide the dmesg output when you read an write to the file?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 11:53, 18 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
To confirm:&lt;br /&gt;
tp_smapi 0.13 works with hdaps module loaded on T41 (2373-8RG). However, force_discharge*, inhibit_charge_minutes, start_charge_thresh, stop_charge_thresh don't seem to be implemented on this model.&lt;br /&gt;
&lt;br /&gt;
--[[User:LJSBRokken|LJSBrokken]] 21 Dec 2005&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
tp_smapi version 0.13 with T23 (2647-3QG) (I have dual batteries)...&lt;br /&gt;
&lt;br /&gt;
None of the functions which make any changes work...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;# cd /sys/devices/platform/smapi &amp;amp;&amp;amp; cat BAT*/* &amp;gt; /dev/null&lt;br /&gt;
cat: BAT0/force_discharge1: Function not implemented&lt;br /&gt;
cat: BAT0/force_discharge2: Input/output error&lt;br /&gt;
cat: BAT0/inhibit_charge_minutes: Function not implemented&lt;br /&gt;
cat: BAT0/start_charge_thresh: Function not implemented&lt;br /&gt;
cat: BAT0/stop_charge_thresh: Function not implemented&lt;br /&gt;
cat: BAT1/force_discharge1: Function not implemented&lt;br /&gt;
cat: BAT1/force_discharge2: Input/output error&lt;br /&gt;
cat: BAT1/inhibit_charge_minutes: Function not implemented&lt;br /&gt;
cat: BAT1/start_charge_thresh: Function not implemented&lt;br /&gt;
cat: BAT1/stop_charge_thresh: Function not implemented&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, all the battery status information is available, and functions appear for both BAT0 and BAT1, regardless of when the UltraBay battery was inserted or ejected- this is very useful, it is the only way I can monitor my UltraBay battery unless it was present on boot.&lt;br /&gt;
&lt;br /&gt;
--[[User:SystemParadox|SystemParadox]] 21:51, 4 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
SystemParadox, what's the dmesg output produced by &amp;quot;cat BAT0/force_discharge2&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 22:02, 4 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
After the upgrade to 0.14 (with kernel 2.6.15, using the patch) I can't use inhibit_charge and start/stop_charge_thresh any longer (getting an input/output error), the dmesg debug output when {{cmd|cat|}}-ing those three files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tp_smapi: tp_smapi 0.14 loading...&lt;br /&gt;
tp_smapi: successfully loaded (smapi_port=0xb2).&lt;br /&gt;
tp_smapi: req_in: BX=2114 CX=100 DI=0 SI=0&lt;br /&gt;
tp_smapi: req_out: AX=ea210080 BX=ec192114 CX=c18d0700 DX=f7cc00b2 DI=f7f50000 SI=c18d0000 ret=-5&lt;br /&gt;
tp_smapi: SMAPI error: Unknown error code (func=2114)&lt;br /&gt;
tp_smapi: cannot get inhibit charge of battery 0: Unknown error code&lt;br /&gt;
tp_smapi: req_in: BX=2116 CX=100 DI=0 SI=0&lt;br /&gt;
tp_smapi: req_out: AX=c03b0080 BX=c18d2116 CX=c0160328 DX=ec7600b2 DI=ec760000 SI=a0810000 ret=-5&lt;br /&gt;
tp_smapi: SMAPI error: Unknown error code (func=2116)&lt;br /&gt;
tp_smapi: cannot get start thresh of battery 0: Unknown error code&lt;br /&gt;
tp_smapi: req_in: BX=211a CX=100 DI=0 SI=0&lt;br /&gt;
tp_smapi: req_out: AX=c03b0080 BX=c18d211a CX=c016032c DX=eb4500b2 DI=eb450000 SI=241e0000 ret=-5&lt;br /&gt;
tp_smapi: SMAPI error: Unknown error code (func=211a)&lt;br /&gt;
tp_smapi: cannot get stop thresh of battery 0: Unknown error code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:12, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Oops, the transition to 32-bit SMAPI calls was broken. Fixed in 0.15. Thanks for the quick report!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:10, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yep, 0.15 works again. Quick response, bravo! :)&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 12:23, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
On a T22, nothing seems to work with 0.16.&lt;br /&gt;
&lt;br /&gt;
[[http://www.rafb.net/paste/results/fcUUDs49.html|dmesg output]] when doing cat *&lt;br /&gt;
&lt;br /&gt;
I am using an Ultrabay2000 battery, so it would be really usefull to be able to control that&lt;br /&gt;
&lt;br /&gt;
--[[User:nusse|nusse]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Nusse: Not even the extended battery status? That does work on T23. About the control features, I believe they're not available on the T23; did you have any kind of (dis)charge control under WindowS?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:59, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't really know what 'extended battery' status means, but here an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat current_*                                                     /sys/devices/platform/smapi/BAT1&lt;br /&gt;
cat: current_avg: Input/output error&lt;br /&gt;
cat: current_now: Input/output error&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is what happens when i cat any file in this directory and also in ../BAT1 :(&lt;br /&gt;
&lt;br /&gt;
--[[User:nusse|nusse]] Thu Jan 12 22:07:26 CET 2006&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Nusse: Yes, that's what I meant. What's the {{cmdroot|dmesg}} output generated by these commands?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 00:27, 13 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thinker: I attached some link to my first comment but it seems to be down and the link was wrong anyway.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2118)&lt;br /&gt;
tp_smapi: cannot get force_discharge of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2114)&lt;br /&gt;
tp_smapi: cannot get inhibit charge of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2116)&lt;br /&gt;
tp_smapi: cannot get start thresh of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)&lt;br /&gt;
tp_smapi: cannot get stop thresh of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
thinkpad controller read(%hx,%hx): failed writing to 0x1610&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:nusse|nusse]] Fri Jan 13 14:35:57 CET 2006&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Nusse: Thanks; but there's not much we can do. Maybe the T22 uses a different interface, or doesn't have that feature.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:23, 15 January 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Thinker: Is there anything I can do to check if the interface is different? Changing 0x1610 to some random number?&lt;br /&gt;
&lt;br /&gt;
Is there a chance to get it by try and error?&lt;br /&gt;
&lt;br /&gt;
--[[User:nusse|nusse]] Mon Jan 16 19:10:12 CET 2006&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
0x1610 is the number of an IO port it writes to, so changing it to a random number will pretty much guarantee a system crash...&lt;br /&gt;
&lt;br /&gt;
The only way I can think of for figuring out the T22 interface is to see what the Windows software does.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 19:47, 16 January 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have a R40 (2722-B3G), and several things don't work with 0.16 on linux 2.6.15.1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2118)&lt;br /&gt;
tp_smapi: cannot get force_discharge of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2114)&lt;br /&gt;
tp_smapi: cannot get inhibit charge of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=2116)&lt;br /&gt;
tp_smapi: cannot get start thresh of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)&lt;br /&gt;
tp_smapi: cannot get stop thresh of battery 0: Function is not supported by SMAPI BIOS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Don't know about Windows, haven't booted it for weeks nor used it for years...&lt;br /&gt;
&lt;br /&gt;
--[[User:Wonka|Wonka]] 19:00, 19 January 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Wonka: do the other features (i.e., extended battery status) work on your R40?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:30, 20 January 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
--[[User:lisch|lisch]] 16:14, 11 April 2006 (CDT)&lt;br /&gt;
&lt;br /&gt;
On my X32, with two batteries, I get just what I expect. Looks good:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ cat BAT?/* &amp;gt; /dev/null&lt;br /&gt;
cat: BAT0/force_discharge: Function not implemented&lt;br /&gt;
cat: BAT0/inhibit_charge_minutes: Function not implemented&lt;br /&gt;
cat: BAT0/start_charge_thresh: Function not implemented&lt;br /&gt;
cat: BAT0/stop_charge_thresh: Function not implemented&lt;br /&gt;
cat: BAT1/force_discharge: Function not implemented&lt;br /&gt;
cat: BAT1/inhibit_charge_minutes: Function not implemented&lt;br /&gt;
cat: BAT1/start_charge_thresh: Function not implemented&lt;br /&gt;
cat: BAT1/stop_charge_thresh: Function not implemented&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Changing the CD speed when the CD is being accessed will hang your computer==&lt;br /&gt;
&lt;br /&gt;
I don't have this problem on my T40p. CDROM is mounted and file on CD is opened. Change speed do '''not''' hang my system.&lt;br /&gt;
&lt;br /&gt;
-- Stefan Schmidt&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
An open file looks fine if you're not reading/writing at that point. But my T43 does hangs on this:&lt;br /&gt;
 # dd if=/dev/scd0 of=/dev/null &amp;amp;&lt;br /&gt;
 # echo 1 &amp;gt; /sys/devices/platform/smapi/cdrom_speed&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 16:41, 7 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
OK, sorry. I was to fast. My system hangs on this commands, too. :(&lt;br /&gt;
&lt;br /&gt;
-- Stefan Schmidt&lt;br /&gt;
&lt;br /&gt;
Works well. Great.&lt;br /&gt;
&lt;br /&gt;
T42 2373-8zh. Working :cdrom_speed and start_charge_thresh. Untest : inhibit_charge_minutes.&lt;br /&gt;
&lt;br /&gt;
-- Haifeng Chen&lt;br /&gt;
&lt;br /&gt;
cdrom_speed works on my T40.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Lammic|lammic]], 2005.12.09&lt;br /&gt;
&lt;br /&gt;
== Kernel Patch? ==&lt;br /&gt;
&lt;br /&gt;
Hello Thinker,&lt;br /&gt;
&lt;br /&gt;
would it be possible to provide the SMAPI support as kernel patch as well? Something along the lines of: (0.12 against 2.6.15-rc5)&lt;br /&gt;
&lt;br /&gt;
''(deleted, see below for how to create a patch file)''&lt;br /&gt;
&lt;br /&gt;
Deleted the tp_smapi.c file at the end, out of obvious reasons, and I'm not sure about the placement in the ACPI section, OTOH there it would be found easily next to ibm_acpi.&lt;br /&gt;
&lt;br /&gt;
Providing a patch would help when recompiling the kernel often, I hate recompiling external modules every time (even got me a kernel-upgrade script to do most of it automatically). But of course it's up to you. :)&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 09:52, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I'll be glad to add this, but I don't want to go through additional manual steps in the release process (there are already quite a few). Can you add a &amp;quot;make patch&amp;quot; functionality to the Makefile, or something of the sort, to automatically generate a full patch (including tp_smapi.c) against current kernel sources?&lt;br /&gt;
&lt;br /&gt;
Also, this shouldn't be under drivers/acpi, since it doesn't use ACPI at all (that's why I didn't make it a patch to ibm_acpi). I think the right place is drivers/firmware, like the dell_rbu driver for Dell laptops.&lt;br /&gt;
&lt;br /&gt;
BTW, the convention for kernel patches is to start them once level higher:&lt;br /&gt;
  diff -Nurp kernel-2.6.14-vanilla kernel-2.6.14-patched&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:12, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Of course it's from the wrong level, as usual I was just lazy/inattentive. And at one point I'll remember who likes what patch format, promise. ;)&lt;br /&gt;
&lt;br /&gt;
A patch target as in &amp;quot;create a new file holding a correct diff to current kernel source&amp;quot; would be rather difficult, since line numbers might change etc., but applying the patch should be straighforward with a bit of sed. Of course I could just do that, create a patch with the diff command and then apply the new patch file in reverse. ;)&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 18:36, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If it does that on a local copy (no changes the original kernel tree) and cleans up after itself, that's fine with me. :-)&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:50, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, here's a shell script that creates the patch, feel free to use it under the terms of the GPL. For example call it from your Makefile with the patch target: (I didn't want to put all the script into the Makefile, since the rules about escaping in Makefiles, well, escape me ;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
KDIR=/lib/modules/$(uname -r)/build&lt;br /&gt;
FDIR=drivers/firmware&lt;br /&gt;
OPWD=$(pwd)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=$(mktemp -d)&lt;br /&gt;
cd $TMPDIR&lt;br /&gt;
&lt;br /&gt;
mkdir -p a/$FDIR&lt;br /&gt;
cp $KDIR/$FDIR/{Kconfig,Makefile} a/$FDIR&lt;br /&gt;
cp -r a b&lt;br /&gt;
sed -i -e '/endmenu/i\&lt;br /&gt;
config IBM_SMAPI\&lt;br /&gt;
        tristate &amp;quot;IBM ThinkPad SMAPI Support&amp;quot;\&lt;br /&gt;
        depends on X86\&lt;br /&gt;
        ---help---\&lt;br /&gt;
        This adds SMAPI support on IBM ThinkPads, mostly used for battery\&lt;br /&gt;
        charge control. For more information about this driver see\&lt;br /&gt;
        &amp;lt;http://www.thinkwiki.org/wiki/SMAPI_support_for_Linux&amp;gt; .\&lt;br /&gt;
\&lt;br /&gt;
        If you have an IBM ThinkPad laptop, say Y or M here.\&lt;br /&gt;
' b/$FDIR/Kconfig&lt;br /&gt;
sed -i -e '$a\&lt;br /&gt;
obj-$(CONFIG_IBM_SMAPI)            += tp_smapi.o' b/$FDIR/Makefile&lt;br /&gt;
cp $OPWD/tp_smapi.c b/$FDIR&lt;br /&gt;
diff -Nurp a b &amp;gt; $OPWD/tp_smapi-$(uname -r).patch&lt;br /&gt;
rm -r a b&lt;br /&gt;
cd $OPWD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BTW, [http://qbnz.com/highlighter/ GeSHi]-based syntax-highlighting would be great...&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:28, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ah, neat sed foo. How about [http://tpctl.sourceforge.net/tmp/Makefile this] escapade, then? &lt;br /&gt;
&lt;br /&gt;
What's the sed spell needed to replace the Makefile's&lt;br /&gt;
 VER  := 0.13&lt;br /&gt;
with auto-parsing of&lt;br /&gt;
 #define TP_VERSION &amp;quot;0.13&amp;quot;&lt;br /&gt;
from tp_smapi.c?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:37, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hmm, something like&lt;br /&gt;
 VERFROMC=$(sed -ne 's/^#define TP_VERSION &amp;quot;\(.*\)&amp;quot;/\1/gp' tp_smapi.c)&lt;br /&gt;
 sed -i -e &amp;quot;s/^VER := .*$/VER := $VERFROMC/&amp;quot; Makefile&lt;br /&gt;
should do (untested, from the top of my head, maybe the temporary variable isn't even necessary?). And neat Makefile wizardry, at one point I'll learn the syntax.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 20:44, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Makefile escaping is horrible, keep avoiding it... Anyway, the updated [http://tpctl.sourceforge.net/tmp/Makefile make patch] seems to do the right thing.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:36, 16 Dec 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Small documentation request: just needed to create a patch for the not-yet-installed 2.6.16-rc2, which is no problem with&lt;br /&gt;
 make KSRC=/path/to/linux-2.6.16-rc2 KVER=2.6.16-rc2 patch&lt;br /&gt;
but I guess it would be a good addition to the README file. :)&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 10:48, 8 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Right, added (to next release).&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:40, 8 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==Installation questions==&lt;br /&gt;
Amazing! I've loaded this module in my T43 which is running SuSE 10 with the kernel of 2.6.13-15. I have three points to share:&lt;br /&gt;
&lt;br /&gt;
1. The battery control part seems to work but has a minor problem. I set the stop_charge_threshold to 70, but the battery stops charging at 55%. Don't know why and how to fix it. :P&lt;br /&gt;
&lt;br /&gt;
2. I don't have the cd speed control function. Here is what I have under /sys/devices/platform/smapi/:&lt;br /&gt;
&lt;br /&gt;
./  ../  ac_connected  BAT0/  BAT1/  bus@  driver@  power/&lt;br /&gt;
&lt;br /&gt;
3. SuSE 10 doesn't have the necessary C files under .../drivers/hwmon/, I copied them from a 2.6.14.5 kernel source. Maybe it causes the two problems above. :(&lt;br /&gt;
&lt;br /&gt;
When I have time, I'll install the new kernel to see if the problems are gone and report the result.&lt;br /&gt;
&lt;br /&gt;
--[[User:68.51.153.96|68.51.153.96]] 04:31, 2 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
1. It should stop charging at 70, but will only ''start'' charging when remaining capacity has dipped below &amp;lt;tt&amp;gt;start_charge_thresh&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. See the note about PROVIDE_CD_SPEED.&lt;br /&gt;
&lt;br /&gt;
3. That's should be needed only for patching the HDAPS driver in order to make it compatible with tp_smapi. If your kernel (which version is it?) doens't inlude the HDAPS driver anyway, you don't need to patch....&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 09:28, 2 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Thanks Thinker.&lt;br /&gt;
&lt;br /&gt;
1. I discharged and recharged the battery again. This time, it stops at 68% percent, which is pretty good.&lt;br /&gt;
&lt;br /&gt;
2. I missed the NOTE in README, for I just followed this wiki. :P&lt;br /&gt;
&lt;br /&gt;
3. My kernel version is 2.6.13-15.&lt;br /&gt;
&lt;br /&gt;
By the way, I just got this T43 whose model number is 266896U. I feel that the noise of the fan is much louder than my previous T21. I think it is so since it has a CPU with bigger power but am wondering if other T43 has the same big noise?&lt;br /&gt;
&lt;br /&gt;
--[[User:Tyne|Tyne]] 00:14, 3 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The note about PROVIDE_CD_SPEED is also in the Wiki...&lt;br /&gt;
&lt;br /&gt;
About the T43 fan noise: yes, this is a very common (and annoying) problem. See [[Problem_with_fan_noise]] and our [[ACPI fan control script]], and send Lenovo a complaint in hope they'll fix this at the firmware level.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 08:48, 3 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
I spent hours, trying to compile this on ubuntu edgy without success. It starts with warnings about missing files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@t40:/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31# make install&lt;br /&gt;
make -C /lib/modules/2.6.17-11-386/source M=/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31 O=/lib/modules/2.6.17-11-386/build modules&lt;br /&gt;
make[1]: Betrete Verzeichnis '/usr/src/linux-source-2.6.17'&lt;br /&gt;
/usr/src/linux-source-2.6.17/Makefile:450: .config: No such file or directory&lt;br /&gt;
&lt;br /&gt;
  WARNING: Symbol version dump /lib/modules/2.6.17-11-386/build/Module.symvers&lt;br /&gt;
           is missing; modules will have no dependencies and modversions.&lt;br /&gt;
&lt;br /&gt;
  CC [M]  /home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.o&lt;br /&gt;
cc1: error: include/linux/autoconf.h: No such file or directory&lt;br /&gt;
[...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and then many thousand lines later it finally stops:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]&lt;br /&gt;
/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.c:357: error: â€˜CONFIG_HZâ€™ undeclared (first use in this function)&lt;br /&gt;
/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.c: In function â€˜thinkpad_ec_invalidateâ€™:&lt;br /&gt;
/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.c:378: error: â€˜CONFIG_HZâ€™ undeclared (first use in this function)&lt;br /&gt;
/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.c: In function â€˜thinkpad_ec_initâ€™:&lt;br /&gt;
/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.c:460: error: â€˜CONFIG_HZâ€™ undeclared (first use in this function)&lt;br /&gt;
make[3]: *** [/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31/thinkpad_ec.o] Fehler 1&lt;br /&gt;
make[2]: *** [_module_/home/bernd/Desktop/tp_smapi-0.31/tp_smapi-0.31] Fehler 2&lt;br /&gt;
make[1]: *** [modules] Fehler 2&lt;br /&gt;
make[1]: Verlasse Verzeichnis '/usr/src/linux-source-2.6.17'&lt;br /&gt;
make: *** [modules] Fehler 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There must be something fundamentally wrong with the makefile. I have for example never seen that a symlink has to point from /lib/modules/someversion/somewhere to /usr/src/linux. I have installed other modules in the past and they all worked with installed linux-headers package. I didn't ever have to download 40MB kernel source, unpack it, configure it to have a .config and compile the whole kernel just to have 2 or three of the other files needed. This cannot be the correct way to install a driver.&lt;br /&gt;
&lt;br /&gt;
[[User:7bit|7bit]] 07:42, 27 March 2007 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I tried compiling tp_smapi with the module-assistant . However, I cannot see how to add the option HDAPS=1. I edited the Makefile in the source archive of tp_smapi by adding HDAPS:=1 in the beginning of the file, but that didn't work. I get accelerometer readings but hdapsd gives back &amp;quot;open(protect_file): No such file or directory&amp;quot;. I'm using ubuntu 9.04 beta, with kernel 2.6.28-11.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sv3t|Sv3t]] 18:52, 9 April 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
&lt;br /&gt;
Wyrfel, that was some heavy editing you did... I agree with most changes (including the saner color choice). I did like those HINT floats, though - they keep the hints from interrupting the flow of text too much, and this particular text needs any help it can get.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:04, 3 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
Hei Thinker,&lt;br /&gt;
&lt;br /&gt;
I'll look into it again. I felt that the floating HINTs were tearing the text apart too much. Maybe we could fix it by placing the clear marks somewhere else.&lt;br /&gt;
&lt;br /&gt;
[[User:Wyrfel|Wyrfel]] 18:46, 3 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Dual battery operation with tp_smapi ==&lt;br /&gt;
&lt;br /&gt;
It looks like it is working quite fine with tp_smapi-0.13 and 2.6.15 (it may also work with other versions, but those are the ones I have running right now).&lt;br /&gt;
&lt;br /&gt;
The juicy details:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|cd /sys/devices/platform/smapi/}}&lt;br /&gt;
{{cmdroot|cat ac_connected}}&lt;br /&gt;
&lt;br /&gt;
{{cmdresult|0}}&lt;br /&gt;
{{cmdroot|cat BAT{0,1}/state}}&lt;br /&gt;
{{cmdresult|discharging}}&lt;br /&gt;
{{cmdresult|idle}}&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|echo 1 &amp;gt; BAT1/force_discharge1}}&lt;br /&gt;
{{cmdroot|cat BAT{0,1}/state}}&lt;br /&gt;
{{cmdresult|idle}}&lt;br /&gt;
{{cmdresult|discharging}}&lt;br /&gt;
&lt;br /&gt;
Checking capacity values shows that the corrent battery is being depleted.&lt;br /&gt;
&lt;br /&gt;
And remember, before you yank the CD/DVD drive out, issue:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|cat eject &amp;gt; /proc/acpi/ibm/bay}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Great! Which ThinkPad model is it? Could you also {{cmdroot|cat /sys/devices/platform/smapi/BAT{0,1}/force_discharge2}} and report the dmesg output (after {{cmdroot|make load}} or {{cmdroot|1=modprobe tp_smapi debug=1}})?&lt;br /&gt;
&lt;br /&gt;
About the eject command, I think it should be possible to do that automatically when the Ultrabay handle is ejected, via &amp;lt;tt&amp;gt;acpid&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:45, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
It's a T43 (2669). cat'ing force_discharge2 gives me an I/O error and I see&lt;br /&gt;
&lt;br /&gt;
tp_smapi: cannot get force_discharge2 of battery 0: bx=2103&lt;br /&gt;
&lt;br /&gt;
tp_smapi: cannot get force_discharge2 of battery 1: bx=2103&lt;br /&gt;
&lt;br /&gt;
I find these errors irrelevant from the user's point of view, though. &lt;br /&gt;
&lt;br /&gt;
Indeed, it should be possible to automatise the &amp;quot;eject&amp;quot; command. I should also be noted that once a force_discharge1 is set, it will NOT unset automatically, event when the AC is plugged back in. An obvious fix is to fiddle with the appropriate ACPI event to force_discharge1 back to 0 for all batteries once the AC is attached.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Thanks, this eliminates the last situation I imagined &amp;lt;tt&amp;gt;force_discharge2&amp;lt;/tt&amp;gt; might work. The next tp_smapi version will remove &amp;lt;tt&amp;gt;force_discharge2&amp;lt;/tt&amp;gt; and rename &amp;lt;tt&amp;gt;force_discharge1&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;force_discharge&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you write those ACPI scripts, it would be great if you put them on the Wiki.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 16:31, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Well, I still do not preclude the fact that &amp;lt;tt&amp;gt;force_discharge2&amp;lt;/tt&amp;gt; may be useful for something else on other models.&lt;br /&gt;
&lt;br /&gt;
The ACPI scripts (as well as an installation guide) is underway. It may take a while, though.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
See the new article: [[Using an Ultrabay battery]].&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:05, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hei Thinker,&lt;br /&gt;
&lt;br /&gt;
i just renamed the new page. Will adjust your links later on. Keeping the redirect page until that's done. Please set any new links you create to the new page (the pages of the individual UltraBay batteries should contain a pointer).&lt;br /&gt;
&lt;br /&gt;
On a sidenote: I would like to split the SMAPI support under Linux page into a tp_smapi driver page, just listing the features, and a &amp;quot;How to use tp_smapi&amp;quot; page. I would also split the thinkpad/tpctl page off that again. Any objections?&lt;br /&gt;
&lt;br /&gt;
[[User:Wyrfel|Wyrfel]] 20:42, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
ACK about the page rename (the old one did sound a bit out of line to my ear, but I couldn't spot why...).&lt;br /&gt;
&lt;br /&gt;
About the splitting tp_smapi vs. thinkpad/tpctl, no objection.&lt;br /&gt;
&lt;br /&gt;
About splitting tp_smapi: currently most of that section doubles as both a spec and a HOWTO, which I think is a convenient and concise way to describe things (hey, it must be right, the Perl docs do it!). I'm not sure there's much benefit in duplicating that. Perhaps we should wait for a critical mass of additional lore to accumulate?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:04, 10 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
Ok, i agree on the latter.&lt;br /&gt;
&lt;br /&gt;
[[User:Wyrfel|Wyrfel]] 00:57, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==Article name capitalization== &lt;br /&gt;
&lt;br /&gt;
Wikimedia autocapitalizes the article name upon submit. How do I concince Wikimedia that I really want a lowercase &amp;quot;t&amp;quot;? The underline is probably too much too ask...&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 11:03, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Impossible, according to [http://en.wikipedia.org/wiki/Wikipedia:Canonicalization Wikipedia:Canonicalization].&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:04, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Look at how Mozilla folks took care of it: http://kb.mozillazine.org/About:config&lt;br /&gt;
&lt;br /&gt;
--[[User:Domicius|domicius]] 00:33, 29 Sep 2008 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==Status Table==&lt;br /&gt;
For at least the T series i think that charge control was not supported prior to the T42, hardware/BIOS side. Perhaps &amp;quot;N/A&amp;quot; flags would be better here?&lt;br /&gt;
&lt;br /&gt;
I also created &amp;lt;nowiki&amp;gt;{{Isup}}&amp;lt;/nowiki&amp;gt; style templates for status, they just include images, like {{Isup}}.&lt;br /&gt;
Not emotional about it, just wanted to let you know in case you want to use them.&lt;br /&gt;
&lt;br /&gt;
Third and last...would it possibly be better to make the table headers more human readable like i.e. &amp;quot;lower charge threshold&amp;quot; or something like that instead of &amp;quot;start_charge_thresh&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
[[User:Wyrfel|Wyrfel]] 19:21, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
About &amp;quot;N/A&amp;quot;, sure, if we get reliable data about the hardware capabilities. Alas, most negative reports were just &amp;quot;it doesn't work&amp;quot;, and in some cases gave contradictory information (SMAPI interface says a function is unsupported but user says it works under Windows).&lt;br /&gt;
&lt;br /&gt;
About {{Iyes}} and friends, they're very cute, but I think think they're harder to parse visually and would add some clutter to an already dense table.&lt;br /&gt;
&lt;br /&gt;
The table headers are just the names of the control files - that's important to keep, sine it's the most natural lookup key. Adding friendly description would be great, if we can fit them in (not everyone has an SXGA+ display...). I tried and failed.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:38, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have a T41p and the windows tools still don't offer me battery management, even though it's quite a while since the T42 came out.&lt;br /&gt;
&lt;br /&gt;
I'm ok with the rest.&lt;br /&gt;
&lt;br /&gt;
[[User:Wyrfel|Wyrfel]] 22:35, 11 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
For the {{X40}}, I can report success using the stop_charge_thresh feature with BIOS v2.03 (1UETC8WW) and Embedded Controller Program v1.60 (1UHTB0WW).&lt;br /&gt;
&lt;br /&gt;
[[User:Peterco|Peterco]] 12:07, 28 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[User:roam|roam]] 13:43, 11 January 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
I need invert=1 for hdaps. The additional invert parameters (2-7) didn't work for me with tp_smapi 0.33. They work with 0.34.&lt;br /&gt;
&lt;br /&gt;
== Z60t ==&lt;br /&gt;
&lt;br /&gt;
Tested on Z60t. No errors using cat. Setting thresholds works. Status and capacity queries work. --[[User:Alon|Alon]] 21:44, 4 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Problem setting thresholds with X40 ==&lt;br /&gt;
&lt;br /&gt;
My X40, kernel 2.6.16 and tp_smapi 0.20.  I try to set the thresholds to 40% and 90% using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# echo 90 &amp;gt; stop_charge_thresh&lt;br /&gt;
# echo 40 &amp;gt; start_charge_thresh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which should work, and the kernel reports from dmesg:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tp_smapi: successfully loaded (smapi_port=0xb2).&lt;br /&gt;
tp_smapi: battery 0: changed start threshold to 85(+1)&lt;br /&gt;
tp_smapi: battery 0: changed stop threshold to 90&lt;br /&gt;
tp_smapi: battery 0: changed start threshold to 39(+1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
but, on confirmation here is what happens:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cat stop_charge_thresh&lt;br /&gt;
90&lt;br /&gt;
# cat start_charge_thresh&lt;br /&gt;
91&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Any clues as to why start doesn't keep?  Or why its always at 1 above stop_charge_thresh?&lt;br /&gt;
&lt;br /&gt;
--[[User:Xmm0|Xmm0]] 15:01, 17 May 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Is it any different if you first set start_charge_thresh and then stop_charge_thresh? &lt;br /&gt;
&lt;br /&gt;
Can you please load tp_smapi with module option &amp;quot;debug=1&amp;quot; and report the dmesg output genereated by each command?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 16:31, 17 May 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Battery daemon feedback requested ==&lt;br /&gt;
&lt;br /&gt;
I am writing a battery-management daemon to control charging and discharging BAT0 and BAT1 in accordance with usage patterns that extend Li-Ion and Li-Py battery life.&lt;br /&gt;
&lt;br /&gt;
By default, the machine fully discharges BAT1 first, and it is said that deep-cycling all the time dramatically shortens their lifetime.&lt;br /&gt;
&lt;br /&gt;
My Z61t is the test machine, and it is configured with two batteries, the stock 4-cell, and an &amp;quot;Advanced Ultrabay&amp;quot;, which about doubles the runtime of the machine.&lt;br /&gt;
&lt;br /&gt;
Currently there are two &amp;quot;modes&amp;quot; of the daemon:&lt;br /&gt;
&lt;br /&gt;
Discharging mode.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 * look at the &amp;quot;remaining_percent&amp;quot; values for both batteries&lt;br /&gt;
 * if one is more than THRESHOLD percent less than the other one, &lt;br /&gt;
      force discharge from the battery with more capacity left&lt;br /&gt;
 (the current value for THRESHOLD is 10%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
I believe the preceeding will prevent either battery from being deep-cycled disproportionately.&lt;br /&gt;
&lt;br /&gt;
Charging mode.  I am less sure what the &amp;quot;right&amp;quot; algorithm is here.  The following is a proposal.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 * look at the &amp;quot;remaining_percent&amp;quot; values for both batteries&lt;br /&gt;
 * if one is more than THRESHOLD percent less than the other one, &lt;br /&gt;
      force charging to the battery with less capacity left&lt;br /&gt;
 * honor pre-set values in stop_charge_thresh and start_charge_thresh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I would like to get feedback in the form of &amp;quot;better&amp;quot; algorithms or requests for this daemon.&lt;br /&gt;
&lt;br /&gt;
--[[User:Zak Smith|Zak]] 19:03, 12 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
It sounds like your algorithm will indeed minimize wear on both batteries. A side benefit is that charging will toggle between the batteries, which may help keep them cooler while charging and thus prolong their life. OTOH, if you plan to occasionally swap the UltraBay battery for other devices, you may want to fully charge the system battery (up to stop_charge_thresh) first.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 22:57, 12 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have noticed that when force_discharge is set and the batteries switch, the gnome battery monitoring applet gets totally confused about remaining runtime.  Besides being a nuisance, this could presumably cause premature emergency shutduwn.&lt;br /&gt;
&lt;br /&gt;
I have also noticed that the reported remaining runtimes vary greatly between acpi, the applet, and /proc/acpi/battery/*/state&lt;br /&gt;
&lt;br /&gt;
--[[User:Zak Smith|Zak]] 21:46, 14 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
What do you mean by &amp;quot;acpi&amp;quot; vs. &amp;quot;/proc/acpi/battery/*/state&amp;quot;? &lt;br /&gt;
&lt;br /&gt;
The most accurate readout is probably {{path|/sys/devices/platform/smapi/BAT0/remaining_running_time}}, but I don't think any applet uses that yet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:07, 15 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
By acpi, I meant the output of the acpi (1) command.   I'll get some comparative numbers later and post them here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Zak Smith|Zak]] 20:37, 15 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Odd, my version of {{path|/usr/bin/acpi}} doesn't report remaining time, just percent (which is the same as {{path|/sys/devices/platform/smapi/BAT0/remaining_percent}}).&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:32, 15 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I have been running batteryd for a while with good results.  I will upload it here shortly.&lt;br /&gt;
&lt;br /&gt;
I disabled the preferential charging mode, and only control discharging.&lt;br /&gt;
&lt;br /&gt;
--[[User:Zak Smith|Zak]] 23:15, 14 November 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
http://demigod.org/~zak/src/batteryd.cc&lt;br /&gt;
&lt;br /&gt;
--[[User:Zak Smith|Zak]] 20:18, 5 December 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
Have you developed this further since then? I just got my first dual-battery-setup for my Z60m. Anyway, it says it doesn't support hotplugging the battery? What does this mean? Do things break if I change batteries or switch a DVD drive to the ultrabay slot while it's running? &lt;br /&gt;
&lt;br /&gt;
Anyway, I deciphered your source code enough that it basically seems to poll the stuff under /sys/devices/platform/BAT?/* every 10 seconds. Anyway, I don't see what's so tough about hotswapping - the BAT1 directory does not seem to vanish either by issuing echo 1 &amp;gt; /sys/devices/platform/bay.0/eject or just yanking it out. The /sys/devices/platform/BAT1/installed goes to zero though.&lt;br /&gt;
&lt;br /&gt;
Can you add a check to the condition if (b0-&amp;gt;on_ac == 0) ...change this to&lt;br /&gt;
&lt;br /&gt;
  if ((b0-&amp;gt;on_ac == 0) &amp;amp;&amp;amp; (b0-&amp;gt;installed == 1) &amp;amp;&amp;amp; (b1-&amp;gt;installed == 1))&lt;br /&gt;
&lt;br /&gt;
then the equal discharging logic would handle hotswapping too (ie. situations where you're running only on 1 battery instead of 2). &lt;br /&gt;
&lt;br /&gt;
I hope you keep on honing this.&lt;br /&gt;
&lt;br /&gt;
One of the few things I miss from Dell is that when operating with dual batteries, it discharges both of them evenly.&lt;br /&gt;
&lt;br /&gt;
--[[User:Zarhan|Zarhan]] 18:31, 13 May 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Instructions for X60 with Bios 1.11 under Debian Etch ==&lt;br /&gt;
&lt;br /&gt;
Could someone please provide step-by-step instructions of how to make this work with Debian? What have I to do after  apt-get install kernel-patch-tpsmapi? Thank you!&lt;br /&gt;
&lt;br /&gt;
--[[User:PeterBursch|PeterBursch]] 21:39, 15 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== tp_smapi 0.30 with kernel 2.6.20? ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;T60:~/tp_smapi-0.30# uname -rm&lt;br /&gt;
2.6.20 x86_64&lt;br /&gt;
&lt;br /&gt;
T60:~/tp_smapi-0.30# make load&lt;br /&gt;
if lsmod | grep -q '^hdaps '; then rmmod hdaps; fi&lt;br /&gt;
if lsmod | grep -q '^tp_smapi '; then rmmod tp_smapi; fi&lt;br /&gt;
if lsmod | grep -q '^thinkpad_ec '; then rmmod thinkpad_ec; fi&lt;br /&gt;
if lsmod | grep -q '^tp_base '; then rmmod tp_base; fi  # old thinkpad_ec&lt;br /&gt;
make -C /lib/modules/2.6.20/source M=/root/tp_smapi-0.30 O=/lib/modules/2.6.20/build modules&lt;br /&gt;
make[1]: Entering directory `/usr/src/linux-2.6.20'&lt;br /&gt;
  CC [M]  /root/tp_smapi-0.30/thinkpad_ec.o&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:83: warning: type defaults to 'int' in declaration of 'DECLARE_MUTEX'&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:83: warning: parameter names (without types) in function declaration&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c: In function 'thinkpad_ec_lock':&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:94: warning: implicit declaration of function 'down_interruptible'&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:94: error: 'thinkpad_ec_mutex' undeclared (first use in this function)&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:94: error: (Each undeclared identifier is reported only once&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:94: error: for each function it appears in.)&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c: In function 'thinkpad_ec_try_lock':&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:109: warning: implicit declaration of function 'down_trylock'&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:109: error: 'thinkpad_ec_mutex' undeclared (first use in this function)&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c: In function 'thinkpad_ec_unlock':&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:122: warning: implicit declaration of function 'up'&lt;br /&gt;
/root/tp_smapi-0.30/thinkpad_ec.c:122: error: 'thinkpad_ec_mutex' undeclared (first use in this function)&lt;br /&gt;
make[3]: *** [/root/tp_smapi-0.30/thinkpad_ec.o] Error 1&lt;br /&gt;
make[2]: *** [_module_/root/tp_smapi-0.30] Error 2&lt;br /&gt;
make[1]: *** [modules] Error 2&lt;br /&gt;
make[1]: Leaving directory `/usr/src/linux-2.6.20'&lt;br /&gt;
make: *** [modules] Error 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Works here with 2.6.21-rc1 (didn't try 2.6.20) without problems --[[User:Zhenech|Zhenech]] 14:32, 22 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
:I have this problem when compiling for x86_64 too. It seems to be limited to 64bit kernels though. I've notified the author of tp_smapi about it, so lets hope a solution is found soon. --[[User:Esmil|Esmil]] 20:08, 6 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
The author was happy about the report, but didn't have time too look at it right now, so I thought I'd give it my best shot. Apparently I should have done that sooner, cause this seems to fix it (for me at least):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diff -Naur tp_smapi-0.30/hdaps.c tp_smapi-0.30-64bit_fix/hdaps.c&lt;br /&gt;
--- tp_smapi-0.30/hdaps.c       2006-09-03 12:13:34.000000000 +0200&lt;br /&gt;
+++ tp_smapi-0.30-64bit_fix/hdaps.c     2007-03-07 00:43:26.000000000 +0100&lt;br /&gt;
@@ -34,6 +34,7 @@&lt;br /&gt;
 #include &amp;lt;linux/timer.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/dmi.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/thinkpad_ec.h&amp;gt;&lt;br /&gt;
+#include &amp;lt;linux/jiffies.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 /* Embedded controller accelerometer read command and its result: */&lt;br /&gt;
 static const struct thinkpad_ec_row ec_accel_args =&lt;br /&gt;
diff -Naur tp_smapi-0.30/thinkpad_ec.c tp_smapi-0.30-64bit_fix/thinkpad_ec.c&lt;br /&gt;
--- tp_smapi-0.30/thinkpad_ec.c 2006-09-02 21:46:18.000000000 +0200&lt;br /&gt;
+++ tp_smapi-0.30-64bit_fix/thinkpad_ec.c       2007-03-07 00:43:13.000000000 +0100&lt;br /&gt;
@@ -34,6 +34,7 @@&lt;br /&gt;
 #include &amp;lt;linux/delay.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/thinkpad_ec.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;linux/jiffies.h&amp;gt;&lt;br /&gt;
+#include &amp;lt;asm/semaphore.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;asm/io.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 #define TP_VERSION &amp;quot;0.30&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Copy the above to {{path|64bit_fix.patch}}, enter the {{path|tp_smapi-0.30}} directory and type&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; /path/to/64bit_fix.patch}}&lt;br /&gt;
Now cross your fingers and compile as normal.&lt;br /&gt;
--[[User:Esmil|Esmil]] 01:06, 7 March 2007 (CET)&lt;br /&gt;
: tp_smapi 0.31 fixes this issue --[[User:Esmil|Esmil]] 19:22, 8 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== X60: tp_smapi 0.31 with kernel 2.6.20 issue ==&lt;br /&gt;
[[category:X60]]&lt;br /&gt;
1st of all: Thanks alot for your work. I do really appreciate this (tp_smapi/thinkwiki).&lt;br /&gt;
&lt;br /&gt;
2nd: On a Debian (testing) w/ vanilla 2.6.20+tp_smapi+hdaps (w/ modules loaded) the kernel panics (init oops) on reboot just before resetting the system. It has a minor impact, you need to press power-off for 5 secs to switch off the machine. Just FYI.&lt;br /&gt;
&lt;br /&gt;
--[[User:Runia|Runia]] 23:48, 16 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Is this consistently reproducible? What's the oops message and stackdump (you can snap a digicam shot)? Does this happen when...&lt;br /&gt;
* rebooting with tp_smapi loaded but hdaps not loaded?&lt;br /&gt;
* rebooting with neither tp_smapi nor hdaps loaded?&lt;br /&gt;
* rebooting with vanilla hdaps loaded (instead of the tp_smapi version)?&lt;br /&gt;
* removing just these modules (&amp;quot;rmmod&amp;quot;) instead of rebooting?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 01:56, 17 April 2007 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hey Thinker,&lt;br /&gt;
Sorry, failed to follow the thread. Didn't pay attention to that bug any more. Skipped use of smapi on next kernel release for some reason. IRC, the panic could be prevented running the kernel w/o hdaps loaded.. hdaps didn't work out correctly for me anyway..&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
&lt;br /&gt;
--[[User:Runia|Runia]] 16:05, 15 February 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== battery start/stop thresholds saved after reboot? ==&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Are the values in stop_charge_thresh and start_charge_thresh just used when Linux is running, or are they saved in the battery? Here after a reboot the values are reset to 96/100. I set these values to 40/85 shut the thinkpad down and charged the battery - sadly it did not use the 85% setting and charged the battery to 100%.&lt;br /&gt;
&lt;br /&gt;
--[[User:Burp|Burp]] 15:31, 13 March 2007 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The thresholds are saved in the embedded controller, which keeps them as long as there is AC or battery power. If you take away both, the state is reset. If you use suspend-to-disk, tp_smapi will remember the threholds and restore them during resume; but you'll need to write your own init script to set the thresholds during normal reboot after full power loss.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 16:19, 13 March 2007 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Under Ubuntu, you can set the thresholds under {{path| /etc/default/tpsmapi-utils}}.&lt;br /&gt;
&lt;br /&gt;
 START_CHARGE_THRESH_BAT0=40&lt;br /&gt;
 #START_CHARGE_THRESH_BAT1=40&lt;br /&gt;
 &lt;br /&gt;
 STOP_CHARGE_THRESH_BAT0=95&lt;br /&gt;
 #STOP_CHARGE_THRESH_BAT1=70&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If I set the value, plug in in the power cord to charge it after I have shut down the thinkpad, it will charge to 100%?&lt;br /&gt;
So I have to plug in the power cord while the thinkpad is running and then shut it down to make it work?&lt;br /&gt;
--[[User:Burp|Burp]] 17:45, 15 March 2007 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Changes take effect immediately, and last as long as the machine has any power source (battery or AC).&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:59, 15 March 2007 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I've experienced the same problem. When I poweroff my X60 after setting the thresh-values and then reboot it, the values are set to 96/100. If I want the thresholds to be regarded I have to plug in the power cord when the thinkpad is running and then shut it down. If I turn it off before connect it to AC, the values are ignored. &lt;br /&gt;
So, are the values only saved in standby-mode? This isn't clear for me, and I think I'm not alone with it ;)&lt;br /&gt;
&lt;br /&gt;
--[[User:Alexb|Alexb]] 20:56, 15 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
The values are not '''saved''' anywhere.  They are set on the EC, and as long as the EC is kept powered on and not rebooted, they are retained.  Sleep cycles and reboots on the main machine do not affect the EC.  An EC firmware upgrade reboots the EC.  Powering off the ThinkPad while it is on battery also powers down the EC.  The ThinkPad does not power down the EC while on AC (it has to be powered up to charge the batteries).&lt;br /&gt;
&lt;br /&gt;
I hope that answered all your doubts...&lt;br /&gt;
&lt;br /&gt;
--[[User:Hmh|hmh]] 04:45, 28 March 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
On my x61s, these values are remembered after powering off the ThinkPad while it is on battery. I didn't try to remove the battery. But it looks like the x61s behaves as Thinker described, not as Hmh did.&lt;br /&gt;
&lt;br /&gt;
--[[User:Jannic|Jannic]] 13:58, 3 November 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
Curious. That would mean the x61s does not power off the EC even while on battery and powered off, or that it is storing the SMAPI thresholds away in CMOS.  Care to test it?  If you want to check that theory, just hexdump /dev/nvram, change a threshold, than hexdump it again...&lt;br /&gt;
&lt;br /&gt;
--[[User:Hmh|hmh]] 12:09, 11 November 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
Seems like it's the former choice: I didn't see any nvram changes after changing the thresholds. Shutting down the system while on battery does not reset thresholds. Shutting down while on battery and then removing the battery does reset them to start_charge_threshold=96, stop_charge_threshold=100, though. I guess they put the EC in some low-power sleep mode while the notebook is turned off and on battery. The specs linked from [[Embedded_Controller_Chips]] list sleep mode currents below 5µA, which is probably negligible compared to self-discharge of Li-Ion batteries.&lt;br /&gt;
&lt;br /&gt;
--[[User:Jannic|Jannic]] 14:36, 12 November 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
== stop_charge_thresh on t42p ==&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
'cat /sys/devices/platform/smapi/BAT0/stop_charge_thres' does not work. I get:&lt;br /&gt;
'Function not implemented'. Under windows the ibm tool shows me both thresholds. I am using tp_smapi version 0.31 with kernel 2.6.20 (ubuntu feisty).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Same problem, I want to know what I can do to help figure out why this works in windows and not with tp_smapi.&amp;lt;br&amp;gt;I am running tp_smapi 0.32 on 2.6.20 Ubuntu Feisty (7.04)&amp;lt;br&amp;gt;Here is the debug output from tp_smapi.&amp;lt;br&amp;gt;&lt;br /&gt;
{{cmdroot|echo 30 &amp;gt; /sys/devices/platform/smapi/BAT0/start_charge_thresh}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{cmdroot|dmseg}}&lt;br /&gt;
&amp;lt;pre&amp;gt;[68311.752000] smapi smapi: smapi_request: req_in: BX=211a CX=100 DI=0 SI=0&lt;br /&gt;
[68311.812000] smapi smapi: smapi_request: req_out: AX=8680 BX=211a CX=100 DX=b2 DI=0 SI=0 r=-38&lt;br /&gt;
[68311.812000] smapi smapi: smapi_request: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)&lt;br /&gt;
[68311.812000] smapi smapi: __get_real_thresh: cannot get stop_thresh of bat=0: Function is not supported by SMAPI BIOS&lt;br /&gt;
[68311.812000] smapi smapi: smapi_request: req_in: BX=2116 CX=100 DI=0 SI=0&lt;br /&gt;
[68311.868000] smapi smapi: smapi_request: req_out: AX=80 BX=2116 CX=31d DX=b2 DI=0 SI=0 r=0&lt;br /&gt;
[68311.868000] smapi smapi: smapi_request: req_in: BX=2117 CX=11d DI=0 SI=0&lt;br /&gt;
[68311.924000] smapi smapi: smapi_request: req_out: AX=80 BX=2117 CX=11d DX=b2 DI=0 SI=0 r=0&lt;br /&gt;
[68311.924000] smapi smapi: set_real_thresh: set start to 29 for bat=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{cmdroot|echo 85 &amp;gt; /sys/devices/platform/smapi/BAT0/stop_charge_thresh}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{cmdroot|dmesg}}&lt;br /&gt;
&amp;lt;pre&amp;gt;[68385.652000] smapi smapi: smapi_request: req_in: BX=2116 CX=100 DI=0 SI=0&lt;br /&gt;
[68385.708000] smapi smapi: smapi_request: req_out: AX=80 BX=2116 CX=31d DX=b2 DI=0 SI=0 r=0&lt;br /&gt;
[68385.708000] smapi smapi: smapi_request: req_in: BX=211a CX=100 DI=0 SI=0&lt;br /&gt;
[68385.764000] smapi smapi: smapi_request: req_out: AX=8680 BX=211a CX=100 DX=b2 DI=0 SI=0 r=-38&lt;br /&gt;
[68385.764000] smapi smapi: smapi_request: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)&lt;br /&gt;
[68385.764000] smapi smapi: __get_real_thresh: cannot get stop_thresh of bat=0: Function is not supported by SMAPI BIOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:Airbornespent|Airbornespent]] 16:18, 13 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Looks like the T42(p) is using a different SMAPI interface for the stop threshold. For example, it could be using the same interface as inhibit_charge_minutes_interface, and monitoring the charge levels manually. Maybe you can use a debugger (e.g., SoftICE) to find out what SMAPI calls are made when you change the thresholds under Windows.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:40, 13 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
What BIOS and EC version? If a T42/p is doing this, all the T4X but the two T43 types should also suffer the same problem...  Not to mention a bunch of R5x models, etc (BIOS TP-1R).&lt;br /&gt;
&lt;br /&gt;
--[[User:Hmh|hmh]] 23:17, 13 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
This is copy and pasted from the DMI info I put on the DMI list page yesterday:&lt;br /&gt;
 1RETDPWW (3.21 ) 	 06/02/2006 	 Handle 0x0029, DMI type 11, 5 byte String 1: IBM ThinkPad Embedded Controller -[1RHT71WW-3.04 ]-&lt;br /&gt;
&lt;br /&gt;
I just noticed that the T40 through the T42p use this EC model. The T43s are different. No one with a T40-T42 has claimed success with the stop_charge_thresh on the tp_smapi status table.&lt;br /&gt;
&lt;br /&gt;
I will try to get windows on a harddrive and pop it in my t42p to use softICE or whatever debuggers soon.&lt;br /&gt;
&lt;br /&gt;
--[[User:Airbornespent|Airbornespent]] 15:39, 15 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I've installed windows, I can again confirm that the start and stop thresholds work with the maximiser. I couldn't seem to find softICE but I got a debugger called syser. I have no clue what I should be looking for though, a certain set of CPU calls, addresses, etc? Any advice would be great. If you are more familiar with softICE I will find and install that.&lt;br /&gt;
&lt;br /&gt;
I just had an idea though. Maybe I can set the thresholds to known values in windows, and then reboot to linux without removing the AC, then the thresholds would be saved on the EC. Is there then a way I can dump the settings in linux and if I do this with several known thresholds that might be enough information to figure this out?&lt;br /&gt;
&lt;br /&gt;
--[[User:Airbornespent|Airbornespent]] 19:48, 15 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You need to trace the SMAPI calls made when the thresholds are changed. You can look at tp_smapi.c or the vanilla kernel drivers/char/mwave/smapi.c to see how SMAPI work. Basically, the parameters are loaded into registers, with the SMAPI function code in register EBX. Then, a byte is written to IO ports 0xB2 and 0x4F. The write to port 0xB2 invokes the BIOS SMAPI code in SMM mode. So the first thing to check is what SMAPI functions are called, i.e., the value of EBX before each wrote to port 0xB2. You can see some of the known codes in the SMAPI_* constants near the top of smapi.c.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:57, 15 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Does smapi interface include communication with eeprom? ==&lt;br /&gt;
&lt;br /&gt;
There exists a windows program (which I haven't tracked down yet) which will reset the eeprom in the battery to clear an error.  Could the smapi interface do the same?&lt;br /&gt;
&lt;br /&gt;
Or are there other ways to do this?  I have a relatively new battery (&amp;lt; 10 cycles) with all my tests showing the cells are fine, but since it reports &amp;quot;damage&amp;quot; to the thinkpad, it won't charge it.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
No. Can you provide a link to that Windows program and (more important) information about how it works?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:17, 25 June 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Acc plus v1.3 [http://www.microsys.ro/accplus.htm] communicates over SMBus via a parallel port adapter.  It says it can reset the eeprom via direct connection to the chip.  But version 1.4 claims to be able to reset the chip via SMBus.  I haven't verified this claim because only v1.3 is available for download.  But I figured anything that can be done via the parallel port adapter ought to be able to be done natively by the thinkpad.&lt;br /&gt;
&lt;br /&gt;
The Smart Battery Workshop also claims to be able to reset the eeprom.  This is the program that is hard to track down because all the links you find are broken.  I finally found it by searching for &amp;quot;smart battery workshop&amp;quot; on download.com [http://download.com].  They use those random urls so I can't post a direct link.&lt;br /&gt;
&lt;br /&gt;
In summary: mostly these programs are just a way to communicate with the battery over SMBus using a parallel port.  But there's the tantalizing claims of being able to reset the chip too....&lt;br /&gt;
&lt;br /&gt;
--[[User:Kdnelson|Kdnelson]] 03:14, 3 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If I read this correctly, both AccPlus and Smart Battery Workshop require you to take out the battery and communicate with it via a parallel-to-SMBus adapter. This is out of scope for tp_smapi. AccSmart probably uses the Smart Battery interface through the laptop's internal SMBus bus; this is already supported by Linux's smart battery drivers, but doesn't work on ThinkPads since we don't know of any way the CPU can directly access the SMBus.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:56, 3 August 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== kernel 2.6.24 compatibility ==&lt;br /&gt;
&lt;br /&gt;
Version 0.32 of tp_smapi seems to be incompatible with the prereleases of 2.6.24. Does anybody know if there are updated patches available?&lt;br /&gt;
&lt;br /&gt;
--[[User:Jannic|Jannic]] 13:13, 1 November 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
Update: It were the renames of BIT() to BIT_MASK in commit 7b19ada2ed3c1eccb9fe94d74b05e1428224663d which did not&lt;br /&gt;
apply cleanly to my tp_smapi patched tree. This looks like a minor change which should be fixable easily.&lt;br /&gt;
&lt;br /&gt;
--[[User:Jannic|Jannic]] 13:58, 3 November 2007 (UTC)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== t400 data ==&lt;br /&gt;
&lt;br /&gt;
Version .40, ubuntu kernel 2.6.27-9. bios version 1.18,ec version 1.01&amp;lt;br&amp;gt;&lt;br /&gt;
HDAPS needs both X and Y inversion. &amp;lt;br&amp;gt;&lt;br /&gt;
Battey testing will take awhile more. &amp;lt;br&amp;gt;&lt;br /&gt;
[[User:Mrthefter|Mrthefter]] 18:58, 20 December 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== gnome-power-management support ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have tp smapi support in g-p-m. If anyone interested please 'vote' (i.e. cc) for [http://bugzilla.gnome.org/show_bug.cgi?id=533553 feature bug]. [[User:Uzytkownik|Uzytkownik]] 00:31, 14 January 2009 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OK - there it is! (for gnome-power-manager-2.22.1 and gnome-power-manager-2.24.4)&lt;br /&gt;
* For all gentoo users: you can use this [http://projects.implicits.de/gentoo/implicit.xml Overlay].&lt;br /&gt;
* For users with rpm System: the [http://projects.implicits.de/_archive/gnome-power-manager/gnome-power-manager-2.22.1-r1.x86_64.rpm rpm-file] has not been tested!!&lt;br /&gt;
* For dpkg Users: the [http://projects.implicits.de/_archive/gnome-power-manager/gnome-power-manager_2.22.1-1_amd64.deb deb-file] has not been tested!!&lt;br /&gt;
* For all the other Users: You have to patch your gnome-power-manager. Patch can be found [http://projects.implicits.de/gentoo/gnome-extra/gnome-power-manager/files/gnome-power-manager-2.22.1.smapi.patch here]&lt;br /&gt;
&lt;br /&gt;
The precompiled Packages are compiled with -march=core2 (gcc-4.3.3)&lt;br /&gt;
&lt;br /&gt;
Note: user rights of sysfs files have to be changed. you can use the following udev rules, to do so.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DRIVER==&amp;quot;smapi&amp;quot;, RUN+=&amp;quot;/bin/sh -c 'find /sys/devices/platform/smapi/ -name force_discharge | xargs /bin/chmod 666'&amp;quot;&lt;br /&gt;
DRIVER==&amp;quot;smapi&amp;quot;, RUN+=&amp;quot;/bin/sh -c 'find /sys/devices/platform/smapi/ -name start_charge_thresh | xargs /bin/chmod 666'&amp;quot;&lt;br /&gt;
DRIVER==&amp;quot;smapi&amp;quot;, RUN+=&amp;quot;/bin/sh -c 'find /sys/devices/platform/smapi/ -name stop_charge_thresh | xargs /bin/chmod 666'&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Have phun ;)&lt;br /&gt;
&lt;br /&gt;
Edit: Support for more than one battery (only on start and stop threshs) will be included later - i'm busy this time, sry.&lt;br /&gt;
&lt;br /&gt;
UPDATE: There are some patches for 2.30.1 [http://student.physik.uni-mainz.de/~aneiser/arch/gnome-power-manager-2.30.1.smapi.patch here] and an ArchLinux PKGBUILD [http://aur.archlinux.org/packages.php?ID=40107 here] --[[User:Aneiser|Aneiser]] 19:18, 21 August 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== SL Series ==&lt;br /&gt;
Unfortunately I did not succeed in installing HDSAP support on my SL 500, both tp_smapi and hdaspd report a device problem (although my harddisk is supported: Model=FUJITSU MHZ2320BH G1, FwRev=0084000A)&lt;br /&gt;
&lt;br /&gt;
 linux-blu3:/home/quentin # modprobe tp_smapi hdaps&lt;br /&gt;
 FATAL: Error inserting tp_smapi (/lib/modules/2.6.31.12-0.2-desktop/updates/tp_smapi.ko): No such device&lt;br /&gt;
 linux-blu3:/home/quentin # hdapsd -f -d sda&lt;br /&gt;
 Tue May 25 10:15:53 2010: Starting hdapsd&lt;br /&gt;
 Tue May 25 10:15:53 2010: Forcely enabled UNLOAD for sda&lt;br /&gt;
 Tue May 25 10:15:53 2010: Could not find a suitable interface&lt;br /&gt;
&lt;br /&gt;
Support is highly appreciated! Thanks!&lt;br /&gt;
&lt;br /&gt;
~~user~~&lt;br /&gt;
&lt;br /&gt;
As stated on the tp_smapi page itself:&lt;br /&gt;
 The ThinkPad SL series and IdeaPad series have firmware that is completely different from other ThinkPad models. Neither tp_smapi nor thinkpad-acpi support these models.&lt;br /&gt;
--[[User:Tonko|Tonko]] 14:49, 25 May 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== T410s (Debian Squeeze) ==&lt;br /&gt;
&lt;br /&gt;
Squeeze (AMD64) with kernel version 2.6.34 (compiled from kernel.org source).  I think tp_smapi is working for the most part on T410s, but I'm having a problem controlling discharge.&lt;br /&gt;
&lt;br /&gt;
I'm trying to control battery discharge using force_discharge to balance power consumption between the main battery and the ultrabay battery.  I confirm that this works while T410s is on AC, but for some reason the writing &amp;quot;1&amp;quot; to force_discharge does not get honored while AC is unplugged.&lt;br /&gt;
&lt;br /&gt;
Do you know any reason this could happen?&lt;br /&gt;
&lt;br /&gt;
[[User:symbal|symbal]] 18:58, 27 August 2010 (CET)&lt;br /&gt;
&lt;br /&gt;
== Ideapad ==&lt;br /&gt;
&lt;br /&gt;
Hello, I have recently acquired an Ideapad U450 and am looking to get support for the HDAPS feature running. I notice it is on the wiki page as being a device currently not supported due to a whole raft of different system hooks and was wondering if there is anything I could do to help? &lt;br /&gt;
&lt;br /&gt;
As many around the net say, it has support in Windows so, would like to help and give it support under Linux if possible. I'm a developer and love a good challenge so, put me on the right path and follow it to brightness I shall.&lt;br /&gt;
&lt;br /&gt;
== Edge series ==&lt;br /&gt;
&lt;br /&gt;
tp_smapi has issues with the Edge, the drivers do load, but the thinkpad_ec seems to fail stating: cannot read row 0xffff-something. Interesting is that the modules do load. I can test on my hw if someone tells me what to do.&lt;br /&gt;
&lt;br /&gt;
Anyone has info on the Edge support in tp_smapi?&lt;br /&gt;
&lt;br /&gt;
--[[User:Deje|Deje]] 04:44, 17 January 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
I have Thinkpad Edge 15(Intel) and thinkpad_ec fails to load, saying &amp;quot;no such device or address&amp;quot;; dmesg has: &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
thinkpad_ec: thinkpad_ec_read_row: failed requesting row: (0x01:0x00)-&amp;gt;0xfffffff0&lt;br /&gt;
thinkpad_ec: initial ec test failed&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once I succeeded to load it (though I had errors in dmesg like cannot read row), but I can't reproduce it now.&lt;br /&gt;
&lt;br /&gt;
--[[User:Ixaphire|Ixaphire]] 20:33, 18 January 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
I ran into the same error message. As a workaround you can unplug the power adaptor an battery for a few minutes. &lt;br /&gt;
[[User:Stechlinger|Stechlinger]] 14:28, 2 May 2011 (CEST)&lt;/div&gt;</summary>
		<author><name>Stechlinger</name></author>
		
	</entry>
</feed>