tp_smapi_dkms works one boot only - until hardware reset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tp-smapi (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
TL;DR version:
thinkpad_ec works once, but not ever again after a reboot until you do a hardware reset.
DMI info here:
https:/
Detailed version:
I run Linux 2.6.38-8-generic #42-Ubuntu SMP x86_64 on my Thinkpad Edge 15 with Intel Core i3 M370.
To loosen the charging policy and activate hard drive protection, you need tp_smapi & hdaps < thinkpad_ec < thinkpad_acpi.
For this I installed tp-smapi-dkms version 0.40-9:
$ aptitude install tp-smapi-dkms
$ modprobe -a tp_smapi hdaps
$ echo "thinkpad_ec" >> /etc/modules
$ echo "tp_smapi" >> /etc/modules
$ echo "hdaps" >> /etc/modules
$ update-initramfs -u
No problems, running fine. They show in lsmod. There is now a directory called /sys/devices/
$ echo 60 > /sys/devices/
$ echo 90 > /sys/devices/
No problem. But on REBOOT (hard or soft), thinkpad_ec cannot be loaded anymore.
dmesg:
[ 18.666480] thinkpad_ec: thinkpad_
[ 18.668188] thinkpad_ec: initial ec test failed
[ 18.719701] thinkpad_ec: thinkpad_
[ 18.721802] thinkpad_ec: initial ec test failed
[ 18.799916] thinkpad_ec: thinkpad_
[ 18.801368] thinkpad_ec: initial ec test failed
...
[ 23.063877] thinkpad_ec: thinkpad_
[ 23.063881] thinkpad_ec: initial ec test failed
Checking modules:
$ modprobe thinkpad_ec
FATAL: Error inserting thinkpad_ec (/lib/modules/
$ modprobe -a tp_smapi hdaps
WARNING: Error inserting tp_smapi (/lib/modules/
WARNING: Error inserting hdaps (/lib/modules/
$ find /lib/modules/
/lib/modules/
/lib/modules/
/lib/modules/
/lib/modules/
$ for i in `find /lib/modules/
$ aptitude remove tp_smapi_dkms
$ aptitude install tp_smapi_dkms
$ modprobe thinkpad_ec
FATAL: Error inserting thinkpad_ec (/lib/modules/
No avail. Not after reboot, not after shutdown.
But, if you remove the battery and AC power and leave the laptop grasping for air for a few minutes (hardware reset, older models have a button for this on the backside), THEN it works again!
Now officially I am supposed to mention what I expected to happen, which is ofcourse the flawlessly loading of the modules after as many reboots as I please.
On an extra note, although I didn't understand it at the time, I now realize I've had the exact same problem in Ubuntu 10.04 LTS.
Google tells us that throughout history, there have always been similar problems ranging from recent to a couple of years back. But where they state that a fix is released, they implicitly say that they are not the same as this bug. There are also a few possibly related bugreports active. But none of them mention the Thinkpad Edge specifically, or more importantly, that the cause of their problem is simply rebooting.
DMI information in comment #3
description: | updated |
Changed in tp-smapi (Ubuntu): | |
status: | New → Confirmed |
Changed in tp-smapi (Ubuntu): | |
importance: | Undecided → Medium |
I've also tried a some thoughts from previous bugreports for which fixes have been released, but I forgot some of it.
I tried the mentioned force_io: d/local. conf
$ cat /etc/modprobe.
# thinkpad Edge 15 specific options for thinkpad_ec, tp_smapi, hdapm
options thinkpad_ec force_io=1
#options hdaps invert=1
I tried running that other package instead (but removed it again):
$ aptitude install tp-smapi-source
$ module-assistant prepare tp-smapi
$ module-assistant auto-install tp-smapi
$ modprobe tp-smapi
Didn't work either. But I haven't messed around with this for a long time, because I came to understand that I need the dkms version for my laptop anyway.