Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
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? PM or catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Laptop: X270, running Fedora
Desktop: Intellistation 285 (currently dead)
Workstation: owned by my employer
Toy: Miata!
Laptop: X270, running Fedora
Desktop: Intellistation 285 (currently dead)
Workstation: owned by my employer
Toy: Miata!
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Virtualization on T420
by Berator » Sat Nov 22, 2025 10:25 am » in ThinkPad T400/T410/T420 and T500/T510/T520 Series - 3 Replies
- 6790 Views
-
Last post by axur-delmeria
Sun Nov 23, 2025 11:56 am
-
-
- 4 Replies
- 6746 Views
-
Last post by Kiriakos
Sun Feb 15, 2026 12:25 pm
-
-
T520 vs T420: Did I Choose the Right One?
by londonwhite » Thu Jan 15, 2026 2:21 am » in ThinkPad T400/T410/T420 and T500/T510/T520 Series - 8 Replies
- 6825 Views
-
Last post by deickos
Sat Apr 04, 2026 11:32 am
-
-
-
T420 Lid Sensor Trigger Location? (WARNING: PICS)
by T_B » Fri Jan 16, 2026 11:08 pm » in ThinkPad T400/T410/T420 and T500/T510/T520 Series - 2 Replies
- 4952 Views
-
Last post by T_B
Mon Jan 19, 2026 11:24 pm
-
Who is online
Users browsing this forum: No registered users and 78 guests




