<?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=Gmetal</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=Gmetal"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Gmetal"/>
	<updated>2026-05-09T03:05:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Tp_smapi&amp;diff=27848</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=27848"/>
		<updated>2007-01-22T11:05:08Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &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;
&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;
==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;
== 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;
== 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;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27758</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27758"/>
		<updated>2007-01-20T11:23:50Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
=64-bit Gentoo Linux 2006.1 Installation=&lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|make menuconfig}}&lt;br /&gt;
&lt;br /&gt;
and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
== Hardware Configuration ==&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|lspci}} &lt;br /&gt;
&lt;br /&gt;
is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
== Hardware working out of the box ==&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|lsusb -v}}&lt;br /&gt;
&lt;br /&gt;
is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
The audio part was a bit tricky to get it to work properly. The integrated audio chipset uses the snd_hda_intel ALSA&lt;br /&gt;
driver (export ALSA_CARDS=&amp;quot;hda-intel&amp;quot;). However, I had to use version 1.0.14_rc1 to get it to compile. Eventually, &lt;br /&gt;
everything was working fine, but I realised that I needed to run alsaconf or restart the alsasound script each time to &lt;br /&gt;
get sound working, because the driver wasn't being loaded correctly. Eventually I came across this post &lt;br /&gt;
[http://www.ussg.iu.edu/hypermail/linux/kernel/0610.0/1429.html] which solved my problems. After enabling the integrated&lt;br /&gt;
modem from the BIOS, my problem went away. &lt;br /&gt;
&lt;br /&gt;
HDAPS appears to be working fine. Compiled the kernel with:&lt;br /&gt;
&lt;br /&gt;
     *   CONFIG_SENSORS_HDAPS=m&lt;br /&gt;
&lt;br /&gt;
and emerged app-laptop/hdapsd, and it appears that IBM's HDD shock protection mechanism is working fine. You must also run:&lt;br /&gt;
{{cmdroot|rc-update add hdapsd default}}&lt;br /&gt;
to make the hdapsd daemon start up at boot time. &lt;br /&gt;
&lt;br /&gt;
== Hardware Partly working == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Tp_smapi&amp;diff=27751</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=27751"/>
		<updated>2007-01-19T15:34:19Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: /* Status Table */&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;
&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;
==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;
For the {{T60}}, I can report that the force_discharge feature is working fine.&lt;br /&gt;
&lt;br /&gt;
--[[User:Gmetal|Gmetal]] 16:33, 19 January 2007 (CET)&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;
== 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;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Tp_smapi&amp;diff=27750</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=27750"/>
		<updated>2007-01-19T15:33:27Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: /* Status Table */&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;
&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;
==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;
For the {{T60}}, I can report that the force_recharge feature is working fine.&lt;br /&gt;
&lt;br /&gt;
--[[User:Gmetal|Gmetal]] 16:33, 19 January 2007 (CET)&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;
== 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;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27749</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27749"/>
		<updated>2007-01-19T09:43:42Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
=64-bit Gentoo Linux 2006.1 Installation=&lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|make menuconfig}}&lt;br /&gt;
&lt;br /&gt;
and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
== Hardware Configuration ==&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|lspci} &lt;br /&gt;
&lt;br /&gt;
is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
== Hardware working out of the box ==&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|lsusb -v}}&lt;br /&gt;
&lt;br /&gt;
is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
The audio part was a bit tricky to get it to work properly. The integrated audio chipset uses the snd_hda_intel ALSA&lt;br /&gt;
driver (export ALSA_CARDS=&amp;quot;hda-intel&amp;quot;). However, I had to use version 1.0.14_rc1 to get it to compile. Eventually, &lt;br /&gt;
everything was working fine, but I realised that I needed to run alsaconf or restart the alsasound script each time to &lt;br /&gt;
get sound working, because the driver wasn't being loaded correctly. Eventually I came across this post &lt;br /&gt;
[http://www.ussg.iu.edu/hypermail/linux/kernel/0610.0/1429.html] which solved my problems. After enabling the integrated&lt;br /&gt;
modem from the BIOS, my problem went away. &lt;br /&gt;
&lt;br /&gt;
HDAPS appears to be working fine. Compiled the kernel with:&lt;br /&gt;
&lt;br /&gt;
     *   CONFIG_SENSORS_HDAPS=m&lt;br /&gt;
&lt;br /&gt;
and emerged app-laptop/hdapsd, and it appears that IBM's HDD shock protection mechanism is working fine. You must also run:&lt;br /&gt;
{{cmdroot|rc-update add hdapsd default}}&lt;br /&gt;
to make the hdapsd daemon start up at boot time. &lt;br /&gt;
&lt;br /&gt;
== Hardware Partly working == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27748</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27748"/>
		<updated>2007-01-19T09:41:49Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
=64-bit Gentoo Linux 2006.1 Installation=&lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
== Hardware Configuration ==&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
== Hardware working out of the box ==&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically {{cmdroot|lsusb -v}} is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
The audio part was a bit tricky to get it to work properly. The integrated audio chipset uses the snd_hda_intel ALSA&lt;br /&gt;
driver (export ALSA_CARDS=&amp;quot;hda-intel&amp;quot;). However, I had to use version 1.0.14_rc1 to get it to compile. Eventually, &lt;br /&gt;
everything was working fine, but I realised that I needed to run alsaconf or restart the alsasound script each time to &lt;br /&gt;
get sound working, because the driver wasn't being loaded correctly. Eventually I came across this post &lt;br /&gt;
[http://www.ussg.iu.edu/hypermail/linux/kernel/0610.0/1429.html] which solved my problems. After enabling the integrated&lt;br /&gt;
modem from the BIOS, my problem went away. &lt;br /&gt;
&lt;br /&gt;
HDAPS appears to be working fine. Compiled the kernel with:&lt;br /&gt;
&lt;br /&gt;
     *   CONFIG_SENSORS_HDAPS=m&lt;br /&gt;
&lt;br /&gt;
and emerged app-laptop/hdapsd, and it appears that IBM's HDD shock protection mechanism is working fine. You must also run:&lt;br /&gt;
{{cmdroot|rc-update add hdapsd default} to make the hdapsd daemon start up at boot time. &lt;br /&gt;
&lt;br /&gt;
== Hardware Partly working == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27719</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27719"/>
		<updated>2007-01-17T15:09:30Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
=64-bit Gentoo Linux 2006.1 Installation=&lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
== Hardware Configuration ==&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
== Hardware working out of the box ==&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically {{cmdroot|lsusb -v}} is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
The audio part was a bit tricky to get it to work properly. The integrated audio chipset uses the snd_hda_intel ALSA&lt;br /&gt;
driver (export ALSA_CARDS=&amp;quot;hda-intel&amp;quot;). However, I had to use version 1.0.14_rc1 to get it to compile. Eventually, &lt;br /&gt;
everything was working fine, but I realised that I needed to run alsaconf or restart the alsasound script each time to &lt;br /&gt;
get sound working, because the driver wasn't being loaded correctly. Eventually I came across this post &lt;br /&gt;
[http://www.ussg.iu.edu/hypermail/linux/kernel/0610.0/1429.html] which solved my problems. After enabling the integrated&lt;br /&gt;
modem from the BIOS, my problem went away. &lt;br /&gt;
&lt;br /&gt;
== Hardware Partly working == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27718</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27718"/>
		<updated>2007-01-17T15:08:19Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
=64-bit Gentoo Linux 2006.1 Installation=&lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
== Hardware Configuration ==&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
== Hardware working out of the box ==&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically {{cmdroot|lsusb -v}} is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
The audio part was a bit tricky to get it to work properly. The integrated audio chipset uses the snd_hda_intel ALSA&lt;br /&gt;
driver (export ALSA_CARDS=&amp;quot;hda-intel&amp;quot;). However, I had to use version 1.0.14_rc1 to get it to compile. Eventually, &lt;br /&gt;
everything was working fine, but I realised that I needed to run alsaconf or restart the alsasound script each time to &lt;br /&gt;
get sound working, because the driver wasn't being loaded correctly. Eventually I came across this post [[http://www.ussg.iu.edu/hypermail/linux/kernel/0610.0/1429.html]] which solved my problems. After enabling the integrated&lt;br /&gt;
modem from the BIOS, my problem went away. &lt;br /&gt;
&lt;br /&gt;
== Hardware Partly working == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27713</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27713"/>
		<updated>2007-01-16T16:50:37Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
= Hardware Configuration =&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
= Hardware working out of the box =&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically {{cmdroot|lsusb -v}} is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
= Hardware Partly working = &lt;br /&gt;
&lt;br /&gt;
Audio, hda-intel, post in: [http://forums.gentoo.org/viewtopic-t-523577-highlight-alsaconf+alsasound.html]&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27710</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27710"/>
		<updated>2007-01-16T15:30:51Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
= Hardware Configuration =&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
= Hardware working out of the box =&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;br /&gt;
&lt;br /&gt;
This laptop also includes an integrated Bluetooth adapter. It is reported as a USB device with a Broadcom&lt;br /&gt;
Bluetooth chip. More specifically {{cmdroot|lsusb -v}} is reporting the following:&lt;br /&gt;
&lt;br /&gt;
     * Bus 004 Device 004: ID 0a5c:2110 Broadcom Corp.&lt;br /&gt;
     * Device Descriptor:&lt;br /&gt;
     *   bLength                18&lt;br /&gt;
     *   bDescriptorType         1&lt;br /&gt;
     *   bcdUSB               2.00&lt;br /&gt;
     *   bDeviceClass          224 Wireless&lt;br /&gt;
     *   bDeviceSubClass         1 Radio Frequency&lt;br /&gt;
     *   bDeviceProtocol         1 Bluetooth&lt;br /&gt;
     *   bMaxPacketSize0        64&lt;br /&gt;
     *   idVendor           0x0a5c Broadcom Corp.&lt;br /&gt;
     *   idProduct          0x2110&lt;br /&gt;
     *   bcdDevice            1.00&lt;br /&gt;
     *   iManufacturer           1 Broadcom Corp&lt;br /&gt;
     *   iProduct                2 BCM2045B&lt;br /&gt;
     *   iSerial                 0&lt;br /&gt;
     *   bNumConfigurations      1&lt;br /&gt;
&lt;br /&gt;
This device appears to be working fine by including Bluetooth support in the kernel, and using the hci_usb&lt;br /&gt;
driver. It does not seem that for this device to work the BCM203x driver is required (it is not loaded by the kernel).&lt;br /&gt;
To get it to work, I also needed to emerge bluez-libs and bluez-utils. I must also note that it can be turned on and off&lt;br /&gt;
by using the laptop's Function key and F4.&lt;br /&gt;
&lt;br /&gt;
= Hardware Partly working = &lt;br /&gt;
&lt;br /&gt;
Audio, hda-intel&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
Finish the remaining sections&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27708</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27708"/>
		<updated>2007-01-16T07:44:04Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15in TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
= Hardware Configuration =&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
= Hardware working out of the box =&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27707</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27707"/>
		<updated>2007-01-16T07:43:42Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15'' TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
= Preliminary Steps and Gentoo Linux Setup =&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
= Hardware Configuration =&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
= Hardware working out of the box =&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27706</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27706"/>
		<updated>2007-01-16T07:41:07Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15'' TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
== Preliminary Steps and Gentoo Linux Setup ==&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;br /&gt;
&lt;br /&gt;
== Hardware Configuration ==&lt;br /&gt;
&lt;br /&gt;
The flags used for compiling the 64-bit partition are the following:&lt;br /&gt;
&lt;br /&gt;
     * kde mp3 mpeg xv sdl quicktime nptl gtk gtk2 jpeg tiff nptlonly alsa qt qt3 qt4 dvd cdr dvdr aac ipv6 trutype emul-linux-x86 png X opengl&lt;br /&gt;
&lt;br /&gt;
The result of {{cmdroot|lspci} is the following:&lt;br /&gt;
&lt;br /&gt;
     * 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;
     * 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)&lt;br /&gt;
     * 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)&lt;br /&gt;
     * 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;
     * 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;
     * 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)&lt;br /&gt;
     * 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
     * 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)&lt;br /&gt;
     * 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)&lt;br /&gt;
     * 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)&lt;br /&gt;
     * 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)&lt;br /&gt;
     * 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)&lt;br /&gt;
     * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
     * 03:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)&lt;br /&gt;
     * 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller&lt;br /&gt;
&lt;br /&gt;
== Hardware working out of the box ==&lt;br /&gt;
&lt;br /&gt;
The integrated gigabit ethernet controller works fine with the e1000 driver:&lt;br /&gt;
&lt;br /&gt;
     * 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller&lt;br /&gt;
&lt;br /&gt;
The USB controllers also work fine with the ehci_hcd and uhci_hcd drivers found in the kernel:&lt;br /&gt;
&lt;br /&gt;
     * 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)&lt;br /&gt;
     * 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)&lt;br /&gt;
     * 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)&lt;br /&gt;
     * 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)&lt;br /&gt;
     * 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)&lt;br /&gt;
&lt;br /&gt;
This version of the laptop has an integrated SATA controller, and its HDD is also SATA. To get it working&lt;br /&gt;
you need to use the AHCI driver:&lt;br /&gt;
     &lt;br /&gt;
     * CONFIG_SATA_AHCI&lt;br /&gt;
&lt;br /&gt;
I also added the following Kernel options (not sure if they are needed though):&lt;br /&gt;
&lt;br /&gt;
     * CONFIG_ATA_PIIX&lt;br /&gt;
     * CONFIG_PATA_MPIIX&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27703</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27703"/>
		<updated>2007-01-15T15:11:21Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This page details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;br /&gt;
My laptop has the following hardware configuration:&lt;br /&gt;
&lt;br /&gt;
    * Audio: AD1981HD &lt;br /&gt;
    * 15'' TFT (1400 x 1050)&lt;br /&gt;
    * Mobile Intel 945PM Express &lt;br /&gt;
    * Bluetooth&lt;br /&gt;
    * Gigabit Ethernet&lt;br /&gt;
    * Wireless LAN IEEE 802.11(a/b/g/n)&lt;br /&gt;
    * DVD-Writer &lt;br /&gt;
    * Core 2 Duo - T5600 (1.83 GHz)&lt;br /&gt;
    * 1 GB RAM&lt;br /&gt;
    * 120 GB SATA-150 HDD&lt;br /&gt;
    * Trusted Platform Module (TPM 1.2) Security Chip &lt;br /&gt;
    * Fingerprint reader &lt;br /&gt;
    * ATI Mobility Radeon X1400 PCIe (x16) 128 MB &lt;br /&gt;
&lt;br /&gt;
== Preliminary Steps and Gentoo Linux Setup ==&lt;br /&gt;
&lt;br /&gt;
First step was to make space for my Linux partitions. Booted into Knoppix, resized the Windows partition (freeing about 90Gb of space for&lt;br /&gt;
Linux) using QTParted. The hidden partition used by IBM/Lenovo for restoring the laptop was left untouched. I then created an extended partition&lt;br /&gt;
on the free space and created the logical partitions for Linux. This machine is 64-bits, but I also wanted to be able to have a 32-bit environment. &lt;br /&gt;
So I created two root partitions and a separate home partition. Furthermore, I also placed the directory holding the distfiles and portage into two&lt;br /&gt;
separate partitions. All in all this is how drive was partitioned:&lt;br /&gt;
     * /dev/sda1   Windows NTFS&lt;br /&gt;
     * /dev/sda2   IBM Rescue partition&lt;br /&gt;
     * /dev/sda3   Extended partition&lt;br /&gt;
     * /dev/sda5   Boot partition&lt;br /&gt;
     * /dev/sda6   Swap artition&lt;br /&gt;
     * /dev/sda7   Portage partition&lt;br /&gt;
     * /dev/sda8   Distfiles partition&lt;br /&gt;
     * /dev/sda9   Gentoo64 root&lt;br /&gt;
     * /dev/sda10  Gentoo32 root&lt;br /&gt;
     * /dev/sda11  /home partition&lt;br /&gt;
Once this was finished I proceeded to reboot and use the Gentoo Linux 2006.1 installation cd for the AMD64 architecture (which is what should be used &lt;br /&gt;
for a 64-bit installation on a Core 2 Duo). &lt;br /&gt;
&lt;br /&gt;
The installation was quite smooth and was done according to the Gentoo Handbook: [http://www.gentoo.org/doc/en/handbook/index.xml]&lt;br /&gt;
The only glitch the kernel that I built, which was done with a manual {{cmdroot|make menuconfig}} and not with Gentoo's genkernel.&lt;br /&gt;
Once I restarted the laptop, my kernel booted fine but was unable to mount the root partition. Turns out that it needed the following &lt;br /&gt;
.config entries:&lt;br /&gt;
      * CONFIG_PARTITION_ADVANCED&lt;br /&gt;
      * CONFIG_MSDOS_PARTITION&lt;br /&gt;
Once I added these entries to my .config and rebuilt the kernel, everything went fine and I booted into Linux.&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27702</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27702"/>
		<updated>2007-01-15T14:37:03Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27701</id>
		<title>User talk:Gmetal</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User_talk:Gmetal&amp;diff=27701"/>
		<updated>2007-01-15T14:34:45Z</updated>

		<summary type="html">&lt;p&gt;Gmetal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing Gentoo Linux 2006.1 on a Thinkpad T60=&lt;br /&gt;
&lt;br /&gt;
This document details my efforts on installing Gentoo Linux on my Lenovo Thinkpad T60 Model No. 2007FVG.&lt;/div&gt;</summary>
		<author><name>Gmetal</name></author>
		
	</entry>
</feed>