[gutsy] hdaps does not support Z60t and Z61m

Bug #45014 reported by Hubert Figuiere on 2006-05-16
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Declined for Hardy by Steve Langasek
linux-source-2.6.22 (Ubuntu)
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

Hubert Figuiere (hub) wrote :

changing package to the right one

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

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

The same applies to the X61s

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

Ditto for z61m.

Philipp Kern (pkern) on 2007-09-29
description: updated
description: updated
Changed in linux-source-2.6.22:
status: New → Triaged
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).

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:


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))) {
   "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.

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

katossi (guillermo-juarez) wrote :

Please add tp_smapi to Ubuntu!!

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!

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.

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

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

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

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!

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

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:


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.

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

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  Edit
Everyone can see this information.

Other bug subscribers