Package: hdapsd
Version: 1:20090129-1
Severity: normal

hdapsd, by default, sets a udev rule, z60_hdapsd.rules. This rule file
is present in my current installation under /etc/udev/rules.d/

On 2.6.28, I had no issues. I never saw the following error message
there.

Wed Apr  1 02:48:51 2009: WARNING: Cannot open hdaps position input file
/dev/input/hdaps/accelerometer-event (No such file or directory). You
may be using an incompatible version of the hdaps module, or missing the
required udev rule.                                                  
Falling back to reading the position from sysfs (uses more power).              
               
Use '-y' to silence this warning.                                               
               

And there's no /dev/input/hdaps/ folder. And that's probably because the udev 
rule
is not being matched.

I also noticed that on 2.6.29, hdaps and tp-smapi modules cannot
coexists. On .28, both could be loaded, tp-smapi being the first.

So on .29, if I only use the tp-smapi module, hdapsd will not start. And
that looks to be because of this:
grep -q hdaps /proc/modules || modprobe hdaps && sleep 1
Because hdaps module will not load anymore.

Oh!! Not only that. Manually starting hdapsd will also not work with
tp-smapi + 2.6.29

champaran:~# echo -1 > /sys/block/sda/device/unload_heads
champaran:~# hdapsd -a -d sda -s 20
Wed Apr  1 03:04:23 2009: WARNING: Cannot open hdaps position input file
/dev/input/hdaps/accelerometer-event (No such file or directory). You
may be using an incompatible version of the hdaps module, or missing the
required udev rule.
Falling back to reading the position from sysfs (uses more power).
Use '-y' to silence this warning.
Wed Apr  1 03:04:23 2009: Starting hdapsd
Wed Apr  1 03:04:23 2009: Could not open
/sys/devices/platform/hdaps/position: No such file ordirectory.
Do you have the hdaps module loaded?
champaran:~# lsmod |less
champaran:~# lsmod |grep smapi
tp_smapi               19096  0
thinkpad_ec             6448  1 tp_smapi


And with just the hdaps kernel module, things work. Just with the exception of 
the udev
rule warning. And some others also.
champaran:~# modprobe hdaps
WARNING: All config files need .conf: /etc/modprobe.d/oss-compat, it
will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/kqemu, it will be
ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/pnp-hotplug, it
will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/display_class, it
will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will
be ignored in a future release.
champaran:~# hdapsd -a -d sda -s 20
Wed Apr  1 03:09:00 2009: WARNING: Cannot open hdaps position input file
/dev/input/hdaps/accelerometer-event (No such file or directory). You
may be using an incompatible version of the hdaps module, or missing the
required udev rule.
Falling back to reading the position from sysfs (uses more power).
Use '-y' to silence this warning.
Wed Apr  1 03:09:00 2009: Starting hdapsd
Wed Apr  1 03:09:00 2009: Could not open
/sys/devices/platform/hdaps/sampling_rate: No such file or directory.
Do you have the hdaps module loaded?



So actually, in case it is switching to the polling mode. :-(
Probably, we just need a newer tp-smapi-source.

Ritesh

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-custom (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hdapsd depends on:
ii  libc6                         2.9-4      GNU C Library: Shared libraries

Versions of packages hdapsd recommends:
ii  tp-smapi-modules- 0.40-1+1snapshot.12674 tp_smapi modules for Linux (kernel
ii  tp-smapi-modules- 0.40-2+2.6.29.1        tp_smapi modules for Linux (kernel

hdapsd suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to