hdaps installed 11.10 amd64

Bug #878010 reported by Sjoerd Zandstra
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hdapsd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Wed Oct 19 11:11:02 2011: Starting hdapsd
Wed Oct 19 11:11:02 2011: WARNING: You did not supply any devices to protect, trying autodetection.
Wed Oct 19 11:11:02 2011: Adding autodetected device: sda
Wed Oct 19 11:11:02 2011: Could not find a suitable interface

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote :

This is a VERY important system utility - my hardware depends on it. Worked fine before the 11.10 upgrade but now seems broken. Please tell me there is some setting that fixes this issue in an easy way.

Kiwinote (kiwinote)
affects: software-center (Ubuntu) → hdapsd (Ubuntu)
Revision history for this message
Evgeni Golov (evgeni) wrote :

hdapsd did not change between 11.04 and 11.10, so unlikely a bug here.
what hardware are you running? do you have tp-smapi installed?

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote :

Hi Evgeni, thank you for your prompt reply. I am running a Lenovo R60 Type 9456-HTG - Intel Centrino Duo, 1GB RAM, 80GB HDD (Hitachi Travelstar 80 GB 5400 rpm, SATA-100). I am not sure about tp-smapi - I tried to install it using a how-to on the web but I don't get the impression it was successful. HDD protection did work in 11.04. I have installed the AWN applet and it says: "sda protected from shocks" but when I move my laptop it doesn't actually park the heads!??!

Revision history for this message
Evgeni Golov (evgeni) wrote :

the AWN applet is just a status view, it wont help you here.

can you please post the output of
1. sudo modinfo hdaps
2. sudo modprobe hdaps (shouldnt output anything actually)
3. dmesg |grep hdaps

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote :

1.:
filename: /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/hdaps.ko
license: GPL v2
description: IBM Hard Drive Active Protection System (HDAPS) driver
author: Robert Love
srcversion: 6D40BA5C430D561BA82F64E
depends: input-polldev
vermagic: 3.0.0-12-generic SMP mod_unload modversions
parm: invert:invert data along each axis. 1 invert x-axis, 2 invert y-axis, 3 invert both axes. (int)

2.:
FATAL: Error inserting hdaps (/lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/hdaps.ko): No such device

3.:
[ 29.470370] hdaps: supported laptop not found!
[ 29.470375] hdaps: driver init failed (ret=-19)!
[12877.808581] hdaps: supported laptop not found!
[12877.808585] hdaps: driver init failed (ret=-19)!

Okay, that all means pretty much nothing to me :(

Revision history for this message
Evgeni Golov (evgeni) wrote :

But enough for me to explain it to you :)

1. says you are using the in-kernel hdaps driver
2. says the driver cannot load as it cannot find the hdaps device
3. more info about 2 :)

Could you please install linux-headers-generic and tp-smapi-dkms and rerun the commands above?

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote : Re: [Bug 878010] Re: hdaps installed 11.10 amd64
Download full text (3.4 KiB)

I would firstly like to thank you for all the assistance you are giving
me. I tried to install the packages you listed but in each case it says
that the packages are already installed and most recent (see below for
details)

1.:
filename: /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/hdaps.ko
license: GPL v2
description: IBM Hard Drive Active Protection System (HDAPS) driver
author: Robert Love
srcversion: 6D40BA5C430D561BA82F64E
depends: input-polldev
vermagic: 3.0.0-12-generic SMP mod_unload modversions
parm: invert:invert data along each axis. 1 invert x-axis, 2
invert y-axis, 3 invert both axes. (int)

2.:
FATAL: Error inserting hdaps
(/lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/hdaps.ko): No
such device

3.:
[ 29.470370] hdaps: supported laptop not found!
[ 29.470375] hdaps: driver init failed (ret=-19)!
[12877.808581] hdaps: supported laptop not found!
[12877.808585] hdaps: driver init failed (ret=-19)!
[15560.206898] hdaps: supported laptop not found!
[15560.206905] hdaps: driver init failed (ret=-19)!

Hmmm, that's almost the same...? I keep noticing x86 in the path. Do you
think that the fact that I am running amd64 has anything to do with the
issue?

thank you again for your help on this issue.

Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-generic is already the newest version.
The following packages were automatically installed and are no longer
required:
  liblash3 libboost-filesystem1.42.0 libdb5.1-java-gcj
libopencascade-foundation-6.3.0 gcj-4.6-jre-lib
  libdb4.7-java gcj-4.6-base libenet0debian1 libgcj-bc libbluray0
libdb4.7-java-gcj libboost-system1.42.0
  libquicktime1 libboost-signals1.42.0 libmp4v2-0
libboost-program-options1.42.0 libdbi0
  libboost-iostreams1.42.0 libgcj11 libgcj12 libdb5.1-java
libopencascade-modeling-6.3.0 xulrunner-1.9.2
  libmatroska3 libboost-thread1.42.0 gcj-4.5-base wine1.2-gecko
libaqhbci19 libhx25 gcj-4.5-jre-lib
  libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libgcj-common
libboost-regex1.42.0 libebml3 python-gweather
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
zandstra@zandstra-thinkpad-r60:~$ sudo apt-get install tp-smapi-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
tp-smapi-dkms is already the newest version.
tp-smapi-dkms set to manually installed.
The following packages were automatically installed and are no longer
required:
  liblash3 libboost-filesystem1.42.0 libdb5.1-java-gcj
libopencascade-foundation-6.3.0 gcj-4.6-jre-lib
  libdb4.7-java gcj-4.6-base libenet0debian1 libgcj-bc libbluray0
libdb4.7-java-gcj libboost-system1.42.0
  libquicktime1 libboost-signals1.42.0 libmp4v2-0
libboost-program-options1.42.0 libdbi0
  libboost-iostreams1.42.0 libgcj11 libgcj12 libdb5.1-java
libopencascade-modeling-6.3.0 xulrunner-1.9.2
  libmatroska3 libboost-thread1.42.0 gcj-4.5-base wine1.2-gecko
libaqhbci19 libhx25 gcj-4.5-jre-lib
  libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libgcj-common
libboost-regex1.42.0 libebml3 python-gweather
Use 'apt...

Read more...

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote :
Download full text (3.2 KiB)

I would firstly like to thank you for all the assistance you are giving me. I tried to install the packages you listed but in each case it says that the packages are already installed and most recent (see below for details)

1.:
filename: /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/hdaps.ko
license: GPL v2
description: IBM Hard Drive Active Protection System (HDAPS) driver
author: Robert Love
srcversion: 6D40BA5C430D561BA82F64E
depends: input-polldev
vermagic: 3.0.0-12-generic SMP mod_unload modversions
parm: invert:invert data along each axis. 1 invert x-axis, 2 invert y-axis, 3 invert both axes. (int)

2.:
FATAL: Error inserting hdaps (/lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/hdaps.ko): No such device

3.:
[ 29.470370] hdaps: supported laptop not found!
[ 29.470375] hdaps: driver init failed (ret=-19)!
[12877.808581] hdaps: supported laptop not found!
[12877.808585] hdaps: driver init failed (ret=-19)!
[15560.206898] hdaps: supported laptop not found!
[15560.206905] hdaps: driver init failed (ret=-19)!

Hmmm, that's almost the same...? I keep noticing x86 in the path. Do you think that the fact that I am running amd64 has anything to do with the issue?

thank you again for your help on this issue.

Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-generic is already the newest version.
The following packages were automatically installed and are no longer required:
  liblash3 libboost-filesystem1.42.0 libdb5.1-java-gcj libopencascade-foundation-6.3.0 gcj-4.6-jre-lib
  libdb4.7-java gcj-4.6-base libenet0debian1 libgcj-bc libbluray0 libdb4.7-java-gcj libboost-system1.42.0
  libquicktime1 libboost-signals1.42.0 libmp4v2-0 libboost-program-options1.42.0 libdbi0
  libboost-iostreams1.42.0 libgcj11 libgcj12 libdb5.1-java libopencascade-modeling-6.3.0 xulrunner-1.9.2
  libmatroska3 libboost-thread1.42.0 gcj-4.5-base wine1.2-gecko libaqhbci19 libhx25 gcj-4.5-jre-lib
  libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libgcj-common libboost-regex1.42.0 libebml3 python-gweather
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
zandstra@zandstra-thinkpad-r60:~$ sudo apt-get install tp-smapi-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
tp-smapi-dkms is already the newest version.
tp-smapi-dkms set to manually installed.
The following packages were automatically installed and are no longer required:
  liblash3 libboost-filesystem1.42.0 libdb5.1-java-gcj libopencascade-foundation-6.3.0 gcj-4.6-jre-lib
  libdb4.7-java gcj-4.6-base libenet0debian1 libgcj-bc libbluray0 libdb4.7-java-gcj libboost-system1.42.0
  libquicktime1 libboost-signals1.42.0 libmp4v2-0 libboost-program-options1.42.0 libdbi0
  libboost-iostreams1.42.0 libgcj11 libgcj12 libdb5.1-java libopencascade-modeling-6.3.0 xulrunner-1.9.2
  libmatroska3 libboost-thread1.42.0 gcj-4.5-base wine1.2-gecko libaqhbci19 libhx25 gcj-4.5-jre-lib
  libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libgcj-common libboost-regex1.42.0 libebml3 python-gweather
Use 'apt...

Read more...

Revision history for this message
Evgeni Golov (evgeni) wrote :

okay, could you try a
dpkg-reconfigure tp-smapi-dkms
and show sudo modinfo hdaps after that?

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote :

OK, I've done the reconfigure...

1.:
DKMS: install Completed.
zandstra@zandstra-thinkpad-r60:~$ sudo modinfo hdaps
filename: /lib/modules/3.0.0-12-generic/updates/dkms/hdaps.ko
license: GPL v2
description: IBM Hard Drive Active Protection System (HDAPS) driver
author: Robert Love
srcversion: B9CA1754AD78F1E3A6FC3C3
depends: thinkpad_ec
vermagic: 3.0.0-12-generic SMP mod_unload modversions
parm: invert:axis orientation code (uint)

2.: & 3.:
zandstra@zandstra-thinkpad-r60:~$ sudo modprobe hdaps
zandstra@zandstra-thinkpad-r60:~$ dmesg |grep hdaps
[ 29.470370] hdaps: supported laptop not found!
[ 29.470375] hdaps: driver init failed (ret=-19)!
[12877.808581] hdaps: supported laptop not found!
[12877.808585] hdaps: driver init failed (ret=-19)!
[15560.206898] hdaps: supported laptop not found!
[15560.206905] hdaps: driver init failed (ret=-19)!
[27888.644239] hdaps: LENOVO ThinkPad R60 detected, setting orientation 1
[27888.644369] hdaps: initial mode latch is 0x05
[27888.644504] hdaps: setting ec_rate=250, filter_order=2
[27888.644726] hdaps: device successfully initialized.
[27888.645213] hdaps: driver successfully loaded.

Looks more promising . . . but . . . still not working?

latest attempt at starting: . . .

zandstra@zandstra-thinkpad-r60:~$ hdapsd start
Wed Oct 19 18:48:50 2011: Starting hdapsd
Wed Oct 19 18:48:50 2011: WARNING: You did not supply any devices to protect, trying autodetection.
Wed Oct 19 18:48:50 2011: Adding autodetected device: sda
Wed Oct 19 18:48:50 2011: Selected interface: HDAPS
Wed Oct 19 18:48:50 2011: WARNING: Could not find hdaps input device (No such file or directory). You may be using an incompatible version of the hdaps module. Falling back to reading the position from sysfs (uses more power).
Use '-y' to silence this warning.
Wed Oct 19 18:48:50 2011: Could not open /sys/block/sda/device/unload_heads
Does your kernel/drive support IDLE_IMMEDIATE with UNLOAD?

Revision history for this message
Evgeni Golov (evgeni) wrote :

hah, it works!
you just started it wrong
try sudo /etc/init.d/hdapsd start
or sudo hdapsd for testing

Revision history for this message
Sjoerd Zandstra (sjoerd-6) wrote :

Brilliant!!! You are a super star! Thank you so much.

Revision history for this message
Evgeni Golov (evgeni) wrote :

:)
Beer, flattr (https://flattr.com/profile/evgeni) and better documentation always welcome ;)

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hdapsd (Ubuntu):
status: New → Confirmed
Revision history for this message
Evgeni Golov (evgeni) wrote :

Besides hitting "me too", more information would pe nice.
I don't see how this could be fixed besides of adding "Recommends: tp-smapi-dkms" to hdapsd

Evgeni Golov (evgeni)
Changed in hdapsd (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.