-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Jesper, Jesper Juhl wrote: > I just had a nice chat with the guys there and we got some > improvements made by them and us merged up. And I /think/ we agreed > that I'll maintain the driver, merge fixes/features etc and eventually > try to get it merged. Thanks a ton! I am really excited to see that you guys made so much progress over the past few days! Of course, I immediately had to give it a try :) > Currently the driver loads, initializes the accelerometer and we can > read data from it. And here is a first support request - the kernel module does not load for me :( I have a Thinkpad T42, running SUSE Linux 9.3 (Kernel 2.6.11 with SUSE patches). The APS works on Windows, so I know the accelerometer is there. I have downloaded the sources from your site mentioned below, ran "make" and "make install". Then I created the /dev/hdaps0 device node by running "mknod hdaps0 c 228 0". (I picked this out of another message in the discussion) However, running "modprobe ibm_hdaps" only yields an error: FATAL: Error inserting ibm_hdaps (/lib/modules/2.6.11.4-21.7-default/kernel/drivers/misc/ibm_hdaps.ko): No such device or address In /var/log/messages, I only see: Jul 4 07:17:20 metis kernel: ibm_hdaps: unsupported module, tainting kernel. Jul 4 07:17:20 metis kernel: init 1 50239260 (The last number differs every time I load the module) Passing "debug=1" did not really reveal any more info. How could I provide you with more detail? I also tried to load Henrik's module, but it also spits out an error "failed to allocate I/O", then a long number of "latch_check" lines and "initialize() ret: -5". Maybe the accelerometer on the T42 uses a different port range? Or could it be that some other kernel module is blocking this I/O range? I have no clue... > I'll be working on adding sysfs stuff to it tomorrow so it's generally > useful (at least for monitoring things - not yet for parking disk > heads). Maybe there is some kind of all-purpose ATA command that instructs the disk drive to park the heads? Jens, could you give us a hint on how a userspace application would do that? > Once I've got the sysfs stuff sorted I'll publish a new version. > > The most recent version of the driver is currently at > http://lemonshop.dk/ibm_hpaps/ (note: this is most likely not going to > be the permanent home of this driver, but it's where it lives for > now). Should we try to move the sources over to the hdaps.sf.net CVS tree? Even though I am more a Subversion fan, having at least some kind of version control would make it easier for others to participate and make sure we can send patches against the latest version. > Patches are welcome at jesper.juhl@gmail.com Attached please find a diff against ibm_hdaps.c I found on the URL above - - I moved some stuff to a separate header file (attached) and added printing out the driver name and copyright during module initialization (taken from Henrik's files). I also added an "uninstall" target to the Makefile. I hope you find it useful! Bye, LenZ - -- - ------------------------------------------------------------------ Lenz Grimmer -o) [ICQ: 160767607 | Jabber: LenZGr@jabber.org] /\\ http://www.lenzg.org/ V_V -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCyNBpSVDhKrJykfIRAmLjAJwI1xaQEeW98M4yLVema2u+b9gX9wCfSufx BuNm1Kcfk48FAn1e3pMa27M= =yy24 -----END PGP SIGNATURE-----