loading hdaps fails on a Thinkpad Z60m (and W500)

Bug #57315 reported by Gilles Schintgen
78
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Lucid by James Ward

Bug Description

here's the error message:

root@z60m:~# modprobe hdaps
FATAL: Error inserting hdaps (/lib/modules/2.6.15-26-686/kernel/drivers/hwmon/hdaps.ko): No such device or address

Revision history for this message
Simon Law (sfllaw) wrote :

Could you please include, as an attachment, of the output of `dmesg`? You
should upload it right after you finish trying to `modprobe hdaps`.

Changed in linux-source-2.6.15:
status: Unconfirmed → Needs Info
Revision history for this message
Gilles Schintgen (shigi) wrote :

Oops, I forgot to check the syslog:

hdaps: supported laptop not found!

So, please add the Z60m to the in-kernel whitelist. See also
http://www.ussg.iu.edu/hypermail/linux/kernel/0603.3/0573.html
and
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-April/015983.html

Daniel T Chen (crimsun)
Changed in linux-source-2.6.15:
importance: Untriaged → Wishlist
status: Needs Info → In Progress
Revision history for this message
Simon Law (sfllaw) wrote :

That patch, at http://lists.lm-sensors.org/pipermail/lm-sensors/2006-April/015983.html,
seems a bit sketchy. Shouldn't it say?

    HDAPS_DMI_MATCH_LENOVO("ThinkPad Z60m")

Changed in linux-source-2.6.15:
importance: Wishlist → Medium
status: In Progress → Confirmed
Revision history for this message
Gilles Schintgen (shigi) wrote : Re: [Bug 57315] Re: loading hdaps fails on a Thinkpad Z60m

> That patch, at
> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-April/015983.html,
> seems a bit sketchy. Shouldn't it say?
>
> HDAPS_DMI_MATCH_LENOVO("ThinkPad Z60m")

I think it should be OK, the DMI of the Z60m is still referring to IBM:

 SMBIOS 2.33 present.
Handle 0x0001, DMI type 1, 25 bytes.
 System Information
         Manufacturer: IBM
         Product Name: 2529ETG
         Version: ThinkPad Z60m
         Serial Number: *******
         UUID: ********-****-****-****-************
         Wake-up Type: Power Switch

Here's a more trustworthy source:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4f507ea1560805b16cf4a4359e304ae0db0c2dcb

Revision history for this message
Simon Law (sfllaw) wrote : Re: loading hdaps fails on a Thinkpad Z60m

Yes, that's a good patch to merge.

Revision history for this message
Gilles Schintgen (shigi) wrote : Re: [Bug 57315] Re: loading hdaps fails on a Thinkpad Z60m

On Wednesday 23 August 2006 20:25, Simon Law wrote:
> Yes, that's a good patch to merge.
So, will this be in one of the next dapper kernel updates?
That would be great!

BTW there are other models which need to be whitelisted. See bug 44976.

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this linux-source-2.6.15 kernel bug to the new "linux" package. We appreciate your patience and understanding as we make this transition. Also, if you would be interested in testing the upcoming Intrepid Ibex 8.10 release, it is available at http://www.ubuntu.com/testing . Please let us know your results. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote : Re: loading hdaps fails on a Thinkpad Z60m

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
James Ward (jamesward) wrote :

I have a Lenovo W500 and Ubuntu Jaunty. I get the same error when trying to modprobe hdaps:

[ 427.764275] hdaps: supported laptop not found!
[ 427.764277] hdaps: driver init failed (ret=-19)!

Please fix this for the Jaunty release.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

James, please attach your dmidecode information:

sudo dmidecode > dmidecode.log

Revision history for this message
James Ward (jamesward) wrote :
Changed in linux:
status: Confirmed → Triaged
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Thanks James. I'm attaching a patch for the Ubuntu kernel team to consider. I'll also inline here for easy review. Thanks.

ogasawara@yoji:~/ubuntu-jaunty$ git diff drivers/hwmon/hdaps.c

diff --git a/drivers/hwmon/hdaps.c b/drivers/hwmon/hdaps.c

index ae1fefa..58a58ff 100644

--- a/drivers/hwmon/hdaps.c

+++ b/drivers/hwmon/hdaps.c

@@ -525,6 +525,7 @@ static struct dmi_system_id __initdata hdaps_whitelist[] = {

        HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad T60"),

        HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad T61p"),

        HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad T61"),

+ HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad W500"),

        HDAPS_DMI_MATCH_NORMAL("IBM", "ThinkPad X40"),

        HDAPS_DMI_MATCH_NORMAL("IBM", "ThinkPad X41"),

        HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X60"),

Andy Whitcroft (apw)
Changed in linux:
assignee: nobody → apw
status: Triaged → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote :

@James Ward -- I have applied the patch suggested by Leann and built some test kernels. If you could test those and report back here that would be helpful. Note that there is a possibility that the axes may be inverted which would need checking too. The kernels are at the URL below:

    http://people.ubuntu.com/~apw/lp57315-jaunty/

Changed in linux:
status: In Progress → Incomplete
Revision history for this message
James Ward (jamesward) wrote :

Thanks Andy. I've tried your new kernel but still have the same problem:

jamesw@dos:~$ sudo modprobe hdaps
FATAL: Error inserting hdaps (/lib/modules/2.6.28-6-generic/kernel/drivers/hwmon/hdaps.ko): No such device

jamesw@dos:~$ dmesg|grep -i hdap
[ 156.468365] hdaps: supported laptop not found!
[ 156.468368] hdaps: driver init failed (ret=-19)!

jamesw@dos:~$ uname -a
Linux dos 2.6.28-6-generic #17~lp57315apw1 SMP Fri Jan 30 09:39:04 UTC 2009 i686 GNU/Linux

Revision history for this message
Andy Whitcroft (apw) wrote :

@James -- I have applied a modified patch to the latest Jaunty kernels. Could you test that and report back here. Kernels can be found at the URL below:

    http://people.ubuntu.com/~apw/lp57315-jaunty/

Revision history for this message
James Ward (jamesward) wrote :

Thanks Andy. I didn't see the i386 kernel image deb. Do I only need the headers?

Revision history for this message
Thomas Hood (jdthood) wrote :

I just marked several other reports as duplicates, all of them reports of hdaps failing to load on ThinkPads with "hdaps: driver init failed (ret=-19)!"

Revision history for this message
cullen (cullen+ubuntu) wrote :

Thanks Thomas, and anyone else who is looking into this. Yes there are quite a few duplicates. This has been an issue for quite some time now.

Revision history for this message
James Ward (jamesward) wrote :

Any word on this? I'm on the latest Jaunty and it's still not working. I have a Lenovo W500.

Thanks.

-James

Revision history for this message
James Ward (jamesward) wrote :

ping? I'm really hoping this can make it into Jaunty. I wish I could offer a bug bounty through Launchpad. :)

Revision history for this message
Erno Kuusela (erno-iki) wrote :

HDAPS works like a peach in Jaunty following the instructions at http://elf.org/x200-tablet-accelerometer !

No excuse now :)

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

It would be great if people would test and provide feedback for the modified test kernel Andy posted in comment 15:

https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/57315/comments/15

Revision history for this message
James Ward (jamesward) wrote :

On the latest karmic hdaps still doesn't work for me:
[ 8.932239] hdaps: supported laptop not found!
[ 8.932241] hdaps: driver init failed (ret=-19)!

It would be really great to get this fixed for the karmic release. Thanks.

Revision history for this message
Ali Sabil (asabil) wrote :

~$ dmesg | grep -i aps
[ 18.771023] hdaps: supported laptop not found!
[ 18.771025] hdaps: driver init failed (ret=-19)!
[ 49.734357] hdaps: supported laptop not found!
[ 49.734359] hdaps: driver init failed (ret=-19)!

Same issue with karmic on a thinkpad X200

Revision history for this message
meist3r (meist3r) wrote :

I can confirm that hdaps does not work with the default karmic kernel and a Thinkpad R60

Revision history for this message
Ellie Frost (stillinbeta) wrote :

I had my T400 working beautifully under Jaunty, but with Karmic I'm also out of luck. I'm not exactly a kernel dev, so any help would be much appreciated.

Revision history for this message
James Ward (jamesward) wrote :

Still not working with Lucid Alpha 1 and W500:
[ 1330.722855] hdaps: supported laptop not found!
[ 1330.722862] hdaps: driver init failed (ret=-19)!

How do I put a bounty on this bug so that we can finally get it fixed?

Revision history for this message
Ellie Frost (stillinbeta) wrote :

I'm running Lucid Beta, on at T400, and this script: http://homepage.univie.ac.at/s.hammer/install_hdapsd worked absolutely flawlessly for me. I installed tp_smapi before, I don't know if that'd make a difference, but things are currently working beautifully. It even installed the panel applet for me.

Revision history for this message
Daniel Castro (castromd) wrote :

Hi Still In Beta,

I ran that script and it looks like it installed alright. I have the panel applet with a blue play icon. But I'm not sure how to really test if it's working.

root@danicast-laptop:/home/danicast# cat /var/log/syslog | grep hdaps
Apr 14 19:30:47 danicast-laptop kernel: [ 1566.869576] hdaps: inverting axis (3) readings.
Apr 14 19:30:47 danicast-laptop kernel: [ 1566.869580] hdaps: LENOVO ThinkPad T61 detected.
Apr 14 19:30:47 danicast-laptop kernel: [ 1566.870207] input: hdaps as /devices/platform/hdaps/input/input14
Apr 14 19:30:47 danicast-laptop kernel: [ 1566.870289] hdaps: driver successfully loaded.

If I move the laptop or bang it against the desk I don't see any difference in the panel icon or in the syslog output. Am I missing something? Adjusting the sensitivity? This is on a T61 btw.

Any help appreciated! Thanks.

Revision history for this message
Daniel Castro (castromd) wrote :

Sorry I got a bit ahead of myself there. After a restart the panel applet started working. It goes to pause blue icon now each time I move/hit the laptop.

NICE!

Is there a log or a file I can check that says or records each time the HDD is parked? I thought it would be on /var/log/syslog but it isn't.

Also forgot to mention this is on 9.10.

I'll run this script tomorrow on my work laptop, it's a W500. Fingers crossed.

Still In Beta, who wrote this script? Is beautiful.

Thanks again!

Revision history for this message
Daniel Castro (castromd) wrote :

Ran the script on a W500 with 9.10.
The panel applet was giving an error. I had to make sure the libpanel-applet2-dev and it's dependencies was properly installed (it wasn't with the script) the ran the panel applet installation part of the script again, reboot and it is working fine.

I will still like to know where the park/unpark events are been logged to if anyone knows.

Oh yes, and who wrote this script? Very nice. Thanks!

Andy Whitcroft (apw)
Changed in linux (Ubuntu):
assignee: Andy Whitcroft (apw) → nobody
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Erno Kuusela (erno-iki) wrote :

Still happens at least on X200s in Oneiric,

[14687.271021] hdaps: supported laptop not found!
[14687.271024] hdaps: driver init failed (ret=-19)!

(i had a separate bug for this on X200s but it was marked a duplicate of this, so i'm reopening this one. is that right?)

Changed in linux (Ubuntu):
status: Expired → New
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 57315

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: dapper
Revision history for this message
Erno Kuusela (erno-iki) wrote :

Apport-collect complains "you are not the reporter or subscriber of this problem report, or the report is a duplicate or already closed".

Changing status as requested.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: oneiric
removed: dapper
Revision history for this message
Tim Gardner (timg-tpi) wrote :

I'm expiring this bug.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.