T420 incompatible with tp_smapi?

T400/410/420 and T500/510/520 series specific matters only
Post Reply
Message
Author
chx1975
Freshman Member
Posts: 59
Joined: Thu Mar 24, 2011 6:44 pm
Location: Vancouver, Canada

T420 incompatible with tp_smapi?

#1 Post by chx1975 » Thu Apr 28, 2011 3:19 pm

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

chx1975
Freshman Member
Posts: 59
Joined: Thu Mar 24, 2011 6:44 pm
Location: Vancouver, Canada

Re: T420 incompatible with tp_smapi?

#2 Post by chx1975 » Thu Apr 28, 2011 3:38 pm

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;

chx1975
Freshman Member
Posts: 59
Joined: Thu Mar 24, 2011 6:44 pm
Location: Vancouver, Canada

Re: T420 incompatible with tp_smapi?

#3 Post by chx1975 » Thu Apr 28, 2011 3:52 pm

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 :D?

All in all, without any charge control, it's utterly useless.

Handle 0x0027, DMI type 126, 9 bytes
Inactive

Interesting.

boltzmann
Posts: 1
Joined: Mon May 16, 2011 10:35 am
Location: Rome,Italy

Re: T420 incompatible with tp_smapi?

#4 Post by boltzmann » Mon May 16, 2011 10:41 am

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;
Cannot apply the patch:

Code: Select all

 
$ patch < diff
patching file thinkpad_ec.c
patch: **** malformed patch at line 5: static int __init thinkpad_ec_init(void)
What am I doing wrong?

comps
Freshman Member
Posts: 83
Joined: Thu Jan 27, 2011 2:56 pm
Location: Prague, Czech Republic

Re: T420 incompatible with tp_smapi?

#5 Post by comps » Tue May 17, 2011 7:52 am

boltzmann wrote:What am I doing wrong?
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.

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: T420 incompatible with tp_smapi?

#6 Post by ThinkRob » Thu May 26, 2011 10:04 pm

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)
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

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad T400/410/420 and T500/510/520 Series”

Who is online

Users browsing this forum: No registered users and 6 guests