T420 incompatible with tp_smapi?
T420 incompatible with tp_smapi?
I upgraded to latest BIOS 83ET52WW (1.22 ) but loading tp_smapi (actually thinkpad_ec) still results in FATAL: Error inserting thinkpad_ec (/lib/modules/2.6.38-ARCH/extra/thinkpad_ec.ko.gz): No such device or in dmesg thinkpad_ec: no ThinkPad embedded controller!
uname -a
Linux veyron2 2.6.38-ARCH #1 SMP PREEMPT Sun Apr 17 15:18:58 CEST 2011 x86_64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz GenuineIntel GNU/Linux
uname -a
Linux veyron2 2.6.38-ARCH #1 SMP PREEMPT Sun Apr 17 15:18:58 CEST 2011 x86_64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz GenuineIntel GNU/Linux
Re: T420 incompatible with tp_smapi?
http://lists.freebsd.org/pipermail/free ... 84573.html solves it:
Code: Select all
--- thinkpad_ec.orig 2011-04-28 13:30:44.759955841 -0700
+++ thinkpad_ec.c 2011-04-28 13:31:32.539954894 -0700
@@ -471,11 +471,13 @@
static int __init thinkpad_ec_init(void)
{
+/*
if (!check_dmi_for_ec()) {
printk(KERN_WARNING
"thinkpad_ec: no ThinkPad embedded controller!\n");
return -ENODEV;
}
+*/
if (request_region(TPC_BASE_PORT, TPC_NUM_PORTS, "thinkpad_ec")) {
reserved_io = 1;
Re: T420 incompatible with tp_smapi?
However, charging tresholds or force discharge can't be set :smapi_request: SMAPI error: SMAPI fuction is not available (func=2116)
yes, fuction... (force discharge is 2118, otherwise the same)
Reading various bits seems to work, manufacture date is 2011-03-19, the serial is 479, is this the #479 T420 in the world
?
All in all, without any charge control, it's utterly useless.
Handle 0x0027, DMI type 126, 9 bytes
Inactive
Interesting.
yes, fuction... (force discharge is 2118, otherwise the same)
Reading various bits seems to work, manufacture date is 2011-03-19, the serial is 479, is this the #479 T420 in the world
All in all, without any charge control, it's utterly useless.
Handle 0x0027, DMI type 126, 9 bytes
Inactive
Interesting.
Re: T420 incompatible with tp_smapi?
Cannot apply the patch:chx1975 wrote:http://lists.freebsd.org/pipermail/free ... 84573.html solves it:
Code: Select all
--- thinkpad_ec.orig 2011-04-28 13:30:44.759955841 -0700 +++ thinkpad_ec.c 2011-04-28 13:31:32.539954894 -0700 @@ -471,11 +471,13 @@ static int __init thinkpad_ec_init(void) { +/* if (!check_dmi_for_ec()) { printk(KERN_WARNING "thinkpad_ec: no ThinkPad embedded controller!\n"); return -ENODEV; } +*/ if (request_region(TPC_BASE_PORT, TPC_NUM_PORTS, "thinkpad_ec")) { reserved_io = 1;
Code: Select all
$ patch < diff
patching file thinkpad_ec.c
patch: **** malformed patch at line 5: static int __init thinkpad_ec_init(void)
Re: T420 incompatible with tp_smapi?
Probably using copy&paste from here, the file actual file has tabs whereas the patch posted here is malformed (uses spaces), so either comment that check manually or get a correct patch.boltzmann wrote:What am I doing wrong?
Re: T420 incompatible with tp_smapi?
That's also not the best way to hack around it...
Personally I'd add a line to 'tp_whitelist' in check_dmi_for_ec(void)
Personally I'd add a line to 'tp_whitelist' in check_dmi_for_ec(void)
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Code: Select all
Current laptop: X1 Carbon 3
Current workstation: none-
- Similar Topics
- Replies
- Views
- Last post
-
-
Thinkpad T420 Windows 10 drivers
by suman09 » Tue Jan 03, 2017 11:30 pm » in ThinkPad T400/410/420 and T500/510/520 Series - 2 Replies
- 939 Views
-
Last post by kfzhu1229
Wed Jan 04, 2017 12:28 am
-
-
-
T420 Upgrade Options for CPU/Memory
by Farro » Tue Jan 24, 2017 4:19 am » in ThinkPad T400/410/420 and T500/510/520 Series - 8 Replies
- 1883 Views
-
Last post by jaspen-meyer
Tue Feb 28, 2017 8:32 am
-
-
-
T420/s/i/si running Windows XP
by Whitieiii » Tue Jan 24, 2017 6:01 pm » in ThinkPad T400/410/420 and T500/510/520 Series - 3 Replies
- 874 Views
-
Last post by Whitieiii
Tue Jan 24, 2017 8:00 pm
-
-
-
WTB: Thinkpad T420 W/ NO HDD NO Power Supply
by Whitieiii » Tue Jan 24, 2017 10:44 pm » in Marketplace - Forum Members only - 1 Replies
- 275 Views
-
Last post by RealBlackStuff
Wed Jan 25, 2017 9:36 am
-
Who is online
Users browsing this forum: No registered users and 6 guests




