Intrepid: Missing hdaps_ec kernel module

Bug #297213 reported by Matthäus Brandl
116
This bug affects 14 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Medium
Brad Figg

Bug Description

Since the hdaps module doesn't support many newer Thinkpad models (mine included) and because the tp_smapi module is said to be better, I used the latter one in Hardy (named hdaps_ec) to support the integrated acceleration sensors.
But since I upgraded to Intrepid the hdaps_ec module is missing. (in both 2.6.27-6-generic and 2.6.27-7-generic)
A "locate hdaps_ec" only yields the module of the 2.6.24-21-generic kernel...

There are many people experiencing this problem, but the comment this in bug reports saying that hdaps doesn't support their model.
See e.g. #274512
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/274510/comments/5

description: updated
Changed in linux:
status: New → Confirmed
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

related discussion in the ubuntu kernel-team mailing list:
http://www.nabble.com/tp_smapi-merge-isues-from-l-u-m-to-u-i,-with-possible-u-i-p-effects-td19655743.html

matthaeus, you're not supposed to confirm your own bug reports!

Revision history for this message
Matthäus Brandl (matthaeus) wrote :

That's why I didn't. It was Gert van Dijk on 2008-11-12

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

you're right, sorry, there's something wrong with my launchpad-gm-scripts...

Revision history for this message
Matthäus Brandl (matthaeus) wrote :

No problem.
btw, can you give me some links explaining these abbreviations? (l-u-m, u-i, u-i-p) I know that this is not the right place but google is of no help...

description: updated
Revision history for this message
Michael Meese (pelennor) wrote :

Greetings!

I have the same problem. Anything changed yet?

Arnohr

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

(delayed) answer to matthaues:
l-u-m = linux ubuntu modules
u-i = ubuntu intrepid
u-i-p = ???

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

can you guys try loading the tp_smapi.ko module? it's available in the intrepid kernels...

Changed in linux:
importance: Undecided → Medium
status: Confirmed → Invalid
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

oops, wrong click, i meant incomplete

Changed in linux:
status: Invalid → Incomplete
Revision history for this message
Philipp Dreimann (philipp-dreimann-deactivatedaccount) wrote :

uhm I'm running jaunty kernels.. its not fixed there. (and should be fixed there as well)

Revision history for this message
Matthäus Brandl (matthaeus) wrote :

@Dimitrios:
I thought about that as well, but the result is as follows:
$ sudo modprobe tp_smapi
Runs with return 0
$ dmesg | tail shows:
[22475.378515] tp_smapi 0.37 loading...
[22475.381479] tp_smapi successfully loaded (smapi_port=0xb2).
$ lsmod | grep smapi shows:
tp_smapi 29712 0
thinkpad_ec 14736 1 tp_smapi

So it seems to be up and running nicely, but a test like
$ hdaps-gl yields
open: No such file or directory

I believe this is because tp_smapi for some reason doesn't publish the sensor data at all or not at the right spot. (I forgot where it should be, but I know that I looked for the information manually and didn't find it either)

Revision history for this message
Matthäus Brandl (matthaeus) wrote :

Btw, I'm now running on 2.6.27-9-generic, but no changes since I filed the bug

Revision history for this message
Philipp Dreimann (philipp-dreimann-deactivatedaccount) wrote :

you have to load the hdaps(_ec) module. the tp_smapi module itself does not fix the problem!

Revision history for this message
Matthäus Brandl (matthaeus) wrote :

Well thanks for your help, but actually the reason why I reported this bug is because most newer Thinkpad models are not supported by hdaps and the hdaps_ec module is not available...

% sudo modprobe hdaps
FATAL: Error inserting hdaps (/lib/modules/2.6.27-9-generic/kernel/drivers/hwmon/hdaps.ko): No such device
% dmesg | tail
[ 5029.144387] hdaps: supported laptop not found!
[ 5029.144400] hdaps: driver init failed (ret=-19)!
% sudo modprobe hdaps_ec
FATAL: Module hdaps_ec not found.

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

setting status back to new...

Changed in linux:
status: Incomplete → New
Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

I think the module is also called only "hdaps" sometimes, at least for me.

FYI, I have a fairly new Thinkpad (T500) and I get this to work with the following steps, not sure which parts need to be put into which ubuntu package to make this available without manual re-compilation:

- compile my own kernel and patch it with one patch for hdaps from http://cache.gmane.org//gmane/linux/drivers/hdaps/devel/1393-001.bin

- compile latest tp-smapi (version 0.40) with adding HDAPS=1 on the make command to enable HDAPS correctly

- install the additional modules provided by this tp-smapi and ensure that any similar modules installed by the kernel itself are removed:

 rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko
 rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko
 rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko

- add the following in a file "/etc/modprobe.d/local" to set the necessarz option
# enable thinkpad_ec
options thinkpad_ec force_io=1

# option to correctly set tilting through hdaps sensor
options hdaps invert=1

then tp-smapi and hdaps works fine for me after loading modules:
 modprobe tp_smapi
 modprobe hdaps

Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

Forgot one thing, also hdapsd needs to be updated to a later version, Bug 303915 is related here, it requests an update from latest debian which should have the necessary changes.

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

> Obviously a very simple thing to fix.

Is anyone going to fix it?

Revision history for this message
Tim Starling (tstarling) wrote :

I guess not. I tried emailling Ben Collins, who did the commit, no response. And I tried raising the issue on #ubuntu-kernel on Freenode, but nobody was interested enough to fix it. I gave up at that point, a few weeks ago. I haven't tried the mailing lists.

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

I have written to Ben Collins again asking for comment.

Revision history for this message
Rebecca Menessec (aloishammer-deactivatedaccount) wrote :

It sure would be nice to have this fixed before Jaunty GA, esp. if it really is a trivial fix. There's kind of no point in having hdapsd and hdaps-utils in universe, else.

If it's not going to be maintained in main, it might as well be moved to its own package in universe so it can be frobbed without having to involve main kernel source.

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
assignee: nobody → brad-figg
status: New → In Progress
Revision history for this message
Brad Figg (brad-figg) wrote :

Where does hdaps_ec come from? I've found the hdaps project on http://haps.sourceforge.net. If I'm going to try to get this into Jaunty I'd like to get the most recent, stable, version.

Revision history for this message
Geir Ove Myhr (gomyhr) wrote : Re: [Bug 297213] Re: Intrepid: Missing hdaps_ec kernel module

It should come from the tp_smapi module at http://tpctl.sourceforge.net/

There's some information at http://www.thinkwiki.org/wiki/HDAPS

Revision history for this message
Brad Figg (brad-figg) wrote :

Looking at both the latest release from http://tpctl.sourceforge.net/ and http://hdaps.sourceforge.net it looks like the driver hdaps_ec that is in hardy lum matches up with the hdaps driver from http://tpctl.sourceforge.net.

Revision history for this message
Brad Figg (brad-figg) wrote :

SRU Justification:

Impact: This seems to be a regression from Hardy that was not fixed for Intrepid. This should only affect ThinkPad users and provide additional functionality.

Fix: Add the hdaps_ec.ko module to the kernel. This is taken from the tp_smapi release found at http://tpctl.sourceforge.net.

Test: Run on a newer thinkpad, verify that hdaps_ec.ko is loaded.

Revision history for this message
Geir Ove Myhr (gomyhr) wrote :

Brad, thank you for taking responsibility for this. Do you have a
kernel already that we can test? (I see you don't have a PPA yet...)

Revision history for this message
Brad Figg (brad-figg) wrote :

I'm working on getting one put together now.

Revision history for this message
Brad Figg (brad-figg) wrote :

While I figure out how to put a proper PPA together you can get the kernel that I have build with the hdaps_ec driver. It is located at http://kernel.ubuntu.com/~bradf/.

Revision history for this message
Lele83x (lele83x) wrote :

Unbelievable ! The first Ubuntu release that uses a kernel with the proper hdaps patch doesn't have the hdaps_ec module !!!!!!!! What the f##k

Revision history for this message
Stefan Hammer (j-4-deactivatedaccount) wrote :

@ axx83: this is nothing!

hdapsd daemon, also needed to get APS working, is form year 2007 and doesn't work on newer thinkpads.
The youngest version is from April 2009, but nobody won't integrate it into the sources. There is an bug already existing: #300814

Revision history for this message
Geir Ove Myhr (gomyhr) wrote :

@Brad: I downloaded and installed the 2.6.28-11.43~lp297213bradf1 kernel packages. More specifically, I installed the packages
linux-headers-2.6.28-11_2.6.28-11.43~lp297213bradf1_all.deb
linux-headers-2.6.28-11-generic_2.6.28-11.43~lp297213bradf1_i386.deb
linux-image-2.6.28-11-generic_2.6.28-11.43~lp297213bradf1_i386.deb
linux-libc-dev_2.6.28-11.43~lp297213bradf1_i386.deb
with `dpkg -i linux-*.deb` and rebooted.

hdaps_ec did not show up at lsmod, and hdaps-pivot and hdaps-gl did not work right away. After `modprobe hdaps_ec` it worked well, cool!

@axx83 and jango: Complaining in a bug report does not help advance your case. It just makes everyone involved a little bit sad, unmotivated and less likely to follow up. Even though a working hdaps module is a really nice feature for us who have built-in accelerometers, it is not really of something most people have and the computer is totally usable without it, so I understand that it gets lower priority than bugs which causes crashes, hangs and loss of data.

Revision history for this message
Tim Starling (tstarling) wrote :

@Geir: it causes data loss if I drop my laptop enough.

Revision history for this message
Igor (igor47) wrote :

i got the hdaps working for now by downloading the smapi drivers from http://tpctl.sourceforge.net/

i then untarred, did 'make HDAPS=1', and then insmod hdaps.ko. this is on thinkpad x200s. i'd love to see the module incorporated into mainline ubuntu.

Revision history for this message
Brad Figg (brad-figg) wrote :

I posted the patch to the ubuntu kernel team mailing list for inclusion in Karmic. The request has been NAK'd
and the patch will not be accepted.

Please see: https://lists.ubuntu.com/archives/kernel-team/2009-April/date.html

When this was included in Hardy, the maintainers indicated that they would be attempting
to get the driver upstream. For whatever reason, this did not happen. It is quite a bit of work
for us to maintain drivers that are not upstream. It is felt that the maintainers of the two drivers
should work together to get a combined driver upstream.

Revision history for this message
Tom Jaeger (thjaeger) wrote :

Brad Figg wrote:
> I posted the patch to the ubuntu kernel team mailing list for inclusion in Karmic. The request has been NAK'd
> and the patch will not be accepted.
>
> Please see: https://lists.ubuntu.com/archives/kernel-
> team/2009-April/date.html
>
>
> When this was included in Hardy, the maintainers indicated that they would be attempting
> to get the driver upstream. For whatever reason, this did not happen.
IIRC, the reason is that the author of the drivers wants to remain
anonymous, and GregKH won't accept any code from anonymous authors for
fear they might have violated a NDA.

> It is quite a bit of work for us to maintain drivers that are not upstream.
This one I don't buy. How is it more work to rip the tp_smapi driver
out of the tpctl package than to include the whole thing?

> It is felt that the maintainers of the two drivers
> should work together to get a combined driver upstream.

I highly doubt that this is going to happen anytime soon.

Revision history for this message
Brad Figg (brad-figg) wrote :

>> It is quite a bit of work for us to maintain drivers that are not upstream.
>This one I don't buy. How is it more work to rip the tp_smapi driver
>out of the tpctl package than to include the whole thing?

For this example, there is already a hdaps driver upstream. I just doesn't have
the support that a part of the community desires. In order to put in a second
hdaps driver, I have to go into the package, pull out the desired bits, rename
where necessary and integrate them into our kernel tree.

Now, in this case that isn't a great deal of work. However, if you apply this to
all the requests that we get you can see how it can be quite a bit of work.

>> It is felt that the maintainers of the two drivers
>> should work together to get a combined driver upstream.

>I highly doubt that this is going to happen anytime soon.

That might be, however, that is what should have been happening all along. Even
when the driver was included into Hardy. And if you want it in Karmic that's what
it's going to take.

Also, if it goes upstream, all distros can take advantage of it and it benefits a larger
section of the community.

Revision history for this message
Tom Jaeger (thjaeger) wrote :

Brad Figg wrote:
>>> It is quite a bit of work for us to maintain drivers that are not upstream.
>> This one I don't buy. How is it more work to rip the tp_smapi driver
>> out of the tpctl package than to include the whole thing?
>
> For this example, there is already a hdaps driver upstream. I just doesn't have
> the support that a part of the community desires. In order to put in a second
> hdaps driver, I have to go into the package, pull out the desired bits, rename
> where necessary and integrate them into our kernel tree.
>
> Now, in this case that isn't a great deal of work. However, if you apply this to
> all the requests that we get you can see how it can be quite a bit of work.

For drivers that are not in mainline for one reason or another, there's
always a trade-off between the benefit to the community and the work
required to maintain the driver out-of tree, which has to be decided on
a case-by-case basis and not by some flawed slippery-slope argument.
Besides, all the work has been done in this case already.

>>> It is felt that the maintainers of the two drivers
>>> should work together to get a combined driver upstream.
>
>> I highly doubt that this is going to happen anytime soon.
>
> That might be, however, that is what should have been happening all along. Even
> when the driver was included into Hardy. And if you want it in Karmic that's what
> it's going to take.

It's not going to happen, though -- not until either Shem Multinymous
decides to come out of his anonymity or GregKH stops worrying about a
NDA that probably doesn't exist in the first place.

http://lkml.org/lkml/2008/9/15/126

> Also, if it goes upstream, all distros can take advantage of it and it benefits a larger
> section of the community.

If the kernel-team thinks that not including the driver in their kernel
will somehow help get this driver into mainline faster, I think they're
mistaken.

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

For users it's best if Ubuntu includes the patch until such time as it gets merged upstream.

Perhaps this represents an unreasonable amount of work. If so, then fair enough.

But I would hope that Ubuntu won't make users suffer merely because there's disagreement about who really ought to apply the patch.

Revision history for this message
Lele83x (lele83x) wrote :

what kind of non disclosure agreement could there be on an open source implementation of a probably patented technology ??? If it's open source and if the hardware is patented of course.

Really I don't understand the issue, if someone needs a legal analysis of this issue I could work on it with some help. But from a brief look it seems illogical.

Revision history for this message
Tom Jaeger (thjaeger) wrote :

On Mon, Apr 27, 2009 at 4:27 PM, Axx83 <email address hidden> wrote:
> what kind of non disclosure agreement could there be on an open source
> implementation of a probably patented technology ??? If it's open source
> and if the hardware is patented of course.
>
> Really I don't understand the issue, if someone needs a legal analysis
> of this issue I could work on it with some help. But from a brief look
> it seems illogical.

It doesn't seem like all the facts are out in the open. GregKH claims
he /knows/ the information was obtained illegally [1], which Shem
disputes [2].

[1] http://lkml.org/lkml/2008/10/7/403
[2] http://lkml.org/lkml/2008/10/7/428

Revision history for this message
Lele83x (lele83x) wrote :

That is completely ridiculous. Nda is a PERSONAL binding contract, If you are not under a nda yourself and you obtain infos that bind someone, no one can do anything to you, the infos are not protected by a patent, can't be anymore, no action can be taken against a third part using those info. NONE.

Now, the person who didn't respect the nda can be sued, but if no one knows who that was and the first party of the contract doesn't take action...WHAT IS THE PROBLEM ???

the only shadow on that is that the author of hdaps wants to remain anonymous...why would anyone do that if he has nothing to hide ? Probably not all is known

But my doubts stay.

Revision history for this message
Rebecca Menessec (aloishammer-deactivatedaccount) wrote :

Brad, I appreciate your efforts in trying to get this module into the default kernel. If there's anything I can do to get us closer to that goal (taking a cluestick to upstream, for instance), please let me know. Meantime, I'm unsubscribing to avoid the troll-spam flood. :(

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: In Progress → Won't Fix
Revision history for this message
Christoph Pegel (rio-eta-ori) wrote :

Why did you change the status to wontfix, Brad?
I tried your custom kernel, it works fine, so why not get it into upstream?

Revision history for this message
Brad Figg (brad-figg) wrote :

The status is changed to "Won't Fix" because of the issues covered earlier in this bug (see my previous comments).

Revision history for this message
RichardNeill (ubuntu-richardneill) wrote :

For anyone who wants an easy workaround, may I point this out:
http://meandmyubuntu.blogspot.com/2009/05/getting-hdasp-to-work-on-jaunty.html
It helped me a great deal - and took only 2 minutes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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