[gutsy] hdaps does not support Z60t and Z61m

Bug #45014 reported by Hubert Figuiere
22
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned
Declined for Hardy by Steve Langasek
linux-source-2.6.22 (Ubuntu)
Won't Fix
Medium
Unassigned
Declined for Hardy by Steve Langasek

Bug Description

Neither Z60t nor Z61m are accepted by the hdaps module present in Gutsy, despite both being listed as supported on [0].

[0] http://www.thinkwiki.org/wiki/Active_Protection_System#Models_featuring_this_Technology

Revision history for this message
Hubert Figuiere (hub) wrote :

changing package to the right one

Revision history for this message
zdzichu (zdzichu-gmail) wrote :

Moved to current kernel.
Please add tp_smapi to Ubuntu kernel. Tp_smapi supports newer ThinkPads (it works iwth my z61t).
http://sourceforge.net/project/showfiles.php?group_id=1212&package_id=171579

Changed in linux-source-2.6.15:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Carlos Perelló Marín (carlos) wrote :

The same applies to the X61s

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

There is also more information about the status of tp_smapi for the different available Thinkpad computers on http://www.thinkwiki.org/wiki/Tp_smapi

Revision history for this message
Terry L. Triplett (terry-triplett) wrote :

Ditto for z61m.

Philipp Kern (pkern)
description: updated
description: updated
Changed in linux-source-2.6.22:
status: New → Triaged
Revision history for this message
Shem Multinymous (multinymous) wrote :

Unlike the mainline kernel, which uses a whiltelist to detect the accelerometer, tp_smapi queries the hardware for accelerometer support so it automatically supports new ThinkPad models (as long as Lenovo keeps the current interface).

Revision history for this message
Noel J. Bergman (noeljb) wrote :

Another vote for supporting tp_smapi. I've reported the same problems as others in the various related bugs (each with a different model or two), and have it working on my T61p following:

  http://www.thinkwiki.org/wiki/Tp_smapi
  http://www.nabble.com/tp_smapi-0.34-and-hdaps-td14712633.html

Shem, by the way, I've got the same EC values as were reported on the thread, and patched the call in hdaps.c to use:

  if (!((data.val[0x1]!=0x00 || data.val[0x2]!=0x60 ||data.val[0x3]!=0x00 || data.val[0xF]!=0x00) ||
      (data.val[0x1]!=0x01 || data.val[0x2]!=0x00 ||data.val[0x3]!=0x00 || data.val[0xF]!=0x00))) {
          printk(KERN_WARNING
   "bad hdaps_check_ec reply 0x%02x,0x%02x,0x%02x,0x%02x",
   data.val[0x1], data.val[0x2],
   data.val[0x3], data.val[0xF]);

   return -EIO;
 }

I didn't have to make any changes to the kernel, I just needed to build and load tp_smapi and the replacement hdaps module, so this could be put out as an alternative package, so long as it was kept in sync with the kernel releases, if there is some reason for keeping the mainline kernel module.

Revision history for this message
ignoto (crocefabiopa) wrote :

I'm with you guys, another vote for supporting tp_smapi.
I can't wait to see my accelerometers work fine, I have a ThinkPad T61

Revision history for this message
katossi (guillermo-juarez) wrote :

Please add tp_smapi to Ubuntu!!

Revision history for this message
omichalek (bng) wrote :

[Feisty] ThinkPad Z60t

$ hdaps-gl
$ open: No such file or directory

$ hdaps-pivot
$ open: No such file or directory

$ sudo modprobe hdaps
$ FATAL: Error inserting hdaps (/lib/modules/2.6.24-8-generic/kernel/drivers/hwmon/hdaps.ko): No such device

Please add support for hd active protection!

Revision history for this message
Noel J. Bergman (noeljb) wrote :

> Please add support for hd active protection!

There are two separate issues. One is getting the sensor working, which is handled by using tp_smapi. The second issue involves kernel support, and so far Ben Colins has rejected maintaining that code in Ubuntu on the grounds that it is too much for them to maintain locally. It either needs to be adopted into the mainstream kernel or it won't happen.

Revision history for this message
omichalek (bng) wrote :

>getting the sensor working, which is handled by using tp_smapi
that seems to be ground to it all .)
>It either needs to be adopted into the mainstream kernel or it won't happen.
that is probably what I asked for

Revision history for this message
DaveAbrahams (boostpro) wrote :

Okay, now I'm confused. I installed hdapsd and hdaps-utils. I built and installed the latest tp_smapi.

  modprobe hdaps tp_smapi

works.

  hdaps-gl

works and shows me a 3d reorienting laptop as I tilt my machine.

  /etc/init.d/hdapsd start

doesn't work:

   * Not starting hdapsd: /sys/block/sda/queue/protect does not exist

(yes, I do have /dev/sda and /sys/block/sda/queue).

Since the sensors are clearly working I'm left to conclude that the missing in-kernel support is solely concerned with providing that "protect" device, which is what actually activates protection on the drive. Is that right?

Revision history for this message
Noel J. Bergman (noeljb) wrote :
Revision history for this message
Pieter (diepes) wrote :

I have been fiddling to load hdaps on my R61.
I had to modprobe hdaps_ec seems it has a new name when used with the tp_smapi module

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 bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

This bug is still valid, latest hdaps module loads now with my X61s laptop, however, it does not detect the laptop movements, so it's useless...

Changed in linux:
status: Incomplete → New
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Guys,

As stated in http://www.thinkwiki.org/wiki/Tp_smap :

"Ubuntu ships tp_smapi in their linux-ubuntu-modules Package since Hardy, so you don't have to build it yourself. Please note that they have renamed tp_smapi's modified hdaps module to hdaps_ec. You should load hdaps_ec, not hdaps. "

If running Hardy, please verify you have the linux-ubuntu-modules package installed. For Intrepid, the linux-ubuntu-modules code was merged with the linux source package so the linux-ubuntu-modules package doesn't exist for Intrepid.

So it seems the tp_smapi module is available for Ubuntu kernels (for at least Hardy and Intrepid). Regarding the remaining issue, please refer to Noel's comments:

https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/45014/comments/11
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/45014/comments/14

I'm going to mark this as a duplicate of bug 45014 for now as it seems you will need the same resolution. Please continue to track this issue using that report. Thanks.

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

I meant to say I'm going to mark this as a duplicate of Bug 139881 . Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

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.