Re: Ignore accidental input
Johannes Berg wrote: If you want to, feel free, it isn't really bothering me enough right now to fix it. Ok, after some hours of reading the kernel source, here my patch. I'm not familiar with kernel programming, so this is only a small hack and I'm happy that I got it working at all ;-) It works for me, but a solution to make it switchable at runtime would still be nice. cu, Magnum -- Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26 Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86 http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2 PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641 --- linux-2.6.17-rc4_orig/drivers/input/mousedev.c 2006-05-17 11:58:11.0 +0200 +++ linux-2.6.17-rc4/drivers/input/mousedev.c 2006-05-17 11:46:28.0 +0200 @@ -275,12 +275,14 @@ * We rely on the fact that mousedev_mix always has 0 * motion packet so we won't mess current position. */ + /* set_bit(0, mousedev-packet.buttons); set_bit(0, mousedev_mix.packet.buttons); mousedev_notify_readers(mousedev, mousedev_mix.packet); mousedev_notify_readers(mousedev_mix, mousedev_mix.packet); clear_bit(0, mousedev-packet.buttons); clear_bit(0, mousedev_mix.packet.buttons); + */ } mousedev-touch = mousedev-pkt_count = 0; mousedev-frac_dx = 0;
Re: Ignore accidental input
Johannes Berg wrote: Matthias Grimm wrote: notap: the trackpad only move the cursor I tried implementing that in appletouch but it didn't work. Need someone more familiar with the input layer. Did you get any futher with this issue? Please let me know if there's anything I could help you with. cu, Magnum -- Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26 Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86 http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2 PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Fri, 2006-05-12 at 10:40 +0200, Magnus Rosenbaum wrote: Did you get any futher with this issue? No, I never really looked into it any more. If you want to, feel free, it isn't really bothering me enough right now to fix it. johannes signature.asc Description: This is a digitally signed message part
Re: Ignore accidental input
On Fri, 2006-04-28 at 20:52 +0200, Matthias Grimm wrote: On Thu, 27 Apr 2006 15:26:22 +0200 Michel Dänzer [EMAIL PROTECTED] wrote: On Wed, 2006-04-26 at 20:02 +0200, Matthias Grimm wrote: On Tue, 25 Apr 2006 23:53:57 +0200 Børge Holen [EMAIL PROTECTED] wrote: I've been lookin at both the mouseemu and pbbuttonsd and I got to agree with Jörg that the ignore while typing is done far better with pbbuttonsd than the mouseemu. Do you use the NoTapTyping option with pbbuttonsd? It was reported as dangerous because it might cause severe machine lockups. I was suspecting that option as well, but I had frequent sudden poweroffs even with it disabled, so I'm back on pmud for now. Are you sure that these poweroffs are caused by pbbuttonsd? No, it could also be a kernel bug I guess. Still, it's never happened with pmud in years[0], but as soon as I run pbbuttonsd, it usually happens at least once a day. So at the very least, something that pbbuttonsd does differently than pmud seems to trigger it. To freeze the machine is not easy but possible, but to power it off? I don't think pbbuttonsd is capable of doing this. As Brad pointed out, it's possible when dealing with the PMU. [0] It did happen occasionally when I was running cpudyn along with pmud, but much less frequently than with pbbuttonsd without a cpufreq daemon. -- Earthling Michel Dänzer | Debian (powerpc), X and DRI developer Libre software enthusiast| http://svcs.affero.net/rm.php?r=daenzer
Re: Ignore accidental input
On Thu, 27 Apr 2006 14:57:43 +0200 Johannes Berg [EMAIL PROTECTED] wrote: On Wed, 2006-04-26 at 20:00 +0200, Matthias Grimm wrote: Is this already available in the driver or do you have to patch it? No, I'd have to patch it, but see my earlier mail. Is it possible to change the trackpad mode as well? like with the ADB Trackpad: notap, tap, drag and lock? I would like to update pbbuttonsd to support this for USB trackpads as well. What are those modes? I wonder that you don't know. Anyway, the ADB trackpad supports four operating modes: notap: the trackpad only move the cursor tap : tapping with a finger on the trackpad emits a left mouse button click drag : tapping on the trackpad and moving the finger on the trackpad right afterwards emulates mouse movement with pressed left mouse button for instance to move a window on screen. lock : same as drag except that lifting the finger from the pad doesn't release the left mouse button. To release the button another short tap is needed. The ADB Trackpad performs all of those modes in hardware. Are similar modes available in the USB trackpad and if so, are they accessible from user space? Best Regards Matthias -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Fri, Apr 28, 2006 at 08:52:57PM +0200, Matthias Grimm wrote: Are you sure that these poweroffs are caused by pbbuttonsd? To freeze the machine is not easy but possible, but to power it off? I don't think pbbuttonsd is capable of doing this. Actually, the moment you talk to the PMU chip directly, you can cause a poweroff problem. The hardware has a watchdog style setup where it will shutdown if it doesn't get the communication between the OS and the PMU chip that it expects. It's been a big problem with trying to get Linux working on older m68k based PowerBooks. Brad Boyer [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Wed, 2006-04-26 at 08:09 +0200, Michael Schmitz wrote: Nope, something like 'dont send mouse clicks when the user taps the touchpad'. Ignoring events while typing we can already do in user space. Figuring out if the mouse button was hit, or just the surface of the pad is something only the kernel driver can handle. Looking at the code again, you can already do that in userspace by seeing the difference between BTN_TOUCH (tap) and BTN_LEFT (button). I haven't been able to come up with a proper patch, whenever I don't send any touch events to userspace I don't even get a mouse movement any more. IOW -- a patch that completely disables the touchpad is easy, but one that simply ignores tap events doesn't seem to be possible for some strange reason. johannes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
Nope, something like 'dont send mouse clicks when the user taps the touchpad'. Ignoring events while typing we can already do in user space. Figuring out if the mouse button was hit, or just the surface of the pad is something only the kernel driver can handle. That ought to be easy to add, just some sysfs variable can do it. If you want, I can cook up a patch later today. That would be great; plese do! Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Wed, 2006-04-26 at 20:00 +0200, Matthias Grimm wrote: Is this already available in the driver or do you have to patch it? No, I'd have to patch it, but see my earlier mail. Is it possible to change the trackpad mode as well? like with the ADB Trackpad: notap, tap, drag and lock? I would like to update pbbuttonsd to support this for USB trackpads as well. What are those modes? johannes signature.asc Description: This is a digitally signed message part
Re: Ignore accidental input
On Wed, 2006-04-26 at 20:02 +0200, Matthias Grimm wrote: On Tue, 25 Apr 2006 23:53:57 +0200 Børge Holen [EMAIL PROTECTED] wrote: I've been lookin at both the mouseemu and pbbuttonsd and I got to agree with Jörg that the ignore while typing is done far better with pbbuttonsd than the mouseemu. Do you use the NoTapTyping option with pbbuttonsd? It was reported as dangerous because it might cause severe machine lockups. I was suspecting that option as well, but I had frequent sudden poweroffs even with it disabled, so I'm back on pmud for now. -- Earthling Michel Dänzer | Debian (powerpc), X and DRI developer Libre software enthusiast| http://svcs.affero.net/rm.php?r=daenzer
Re: Ignore accidental input
Right ... is there a ioctl available from the appletouch driver, so this functionality can be added to trackpad? No. What precisely would you be looking for? Something like 'ignore all events now' and 'send events again'? Nope, something like 'dont send mouse clicks when the user taps the touchpad'. Ignoring events while typing we can already do in user space. Figuring out if the mouse button was hit, or just the surface of the pad is something only the kernel driver can handle. Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Wed, 2006-04-26 at 08:09 +0200, Michael Schmitz wrote: Nope, something like 'dont send mouse clicks when the user taps the touchpad'. Ignoring events while typing we can already do in user space. Figuring out if the mouse button was hit, or just the surface of the pad is something only the kernel driver can handle. That ought to be easy to add, just some sysfs variable can do it. If you want, I can cook up a patch later today. johannes signature.asc Description: This is a digitally signed message part
Re: Ignore accidental input
On Wed, 26 Apr 2006 15:11:12 +0200 Johannes Berg [EMAIL PROTECTED] wrote: On Wed, 2006-04-26 at 08:09 +0200, Michael Schmitz wrote: Nope, something like 'dont send mouse clicks when the user taps the touchpad'. Ignoring events while typing we can already do in user space. Figuring out if the mouse button was hit, or just the surface of the pad is something only the kernel driver can handle. That ought to be easy to add, just some sysfs variable can do it. If you want, I can cook up a patch later today. Is this already available in the driver or do you have to patch it? Is it possible to change the trackpad mode as well? like with the ADB Trackpad: notap, tap, drag and lock? I would like to update pbbuttonsd to support this for USB trackpads as well. Best Regards Matthias -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Tue, 25 Apr 2006 23:53:57 +0200 Børge Holen [EMAIL PROTECTED] wrote: I've been lookin at both the mouseemu and pbbuttonsd and I got to agree with Jörg that the ignore while typing is done far better with pbbuttonsd than the mouseemu. Do you use the NoTapTyping option with pbbuttonsd? It was reported as dangerous because it might cause severe machine lockups. Best Regards Matthias
Re: Ignore accidental input
On Wednesday 26 April 2006 20:02, you wrote: On Tue, 25 Apr 2006 23:53:57 +0200 Børge Holen [EMAIL PROTECTED] wrote: I've been lookin at both the mouseemu and pbbuttonsd and I got to agree with Jörg that the ignore while typing is done far better with pbbuttonsd than the mouseemu. Do you use the NoTapTyping option with pbbuttonsd? It was reported as dangerous because it might cause severe machine lockups. NoTapTyping = yes ; switch trackpad to 'notap-mode' while typing Jup thats the one. flawless! Whenever I work on some larger projects here, I would be . if it hangs hard. Probably the day before the Macbook pro 17 comes into my posession. børge Best Regards Matthias
Re: Ignore accidental input
On Mon, 2006-04-24 at 15:38 +0200, Michael Schmitz wrote: Right ... is there a ioctl available from the appletouch driver, so this functionality can be added to trackpad? No. What precisely would you be looking for? Something like 'ignore all events now' and 'send events again'? johannes signature.asc Description: This is a digitally signed message part
Re: Ignore accidental input
On Tuesday 25 April 2006 13:25, you wrote: On Mon, 2006-04-24 at 15:38 +0200, Michael Schmitz wrote: Right ... is there a ioctl available from the appletouch driver, so this functionality can be added to trackpad? No. What precisely would you be looking for? Something like 'ignore all events now' and 'send events again'? No,plainly kille the trackpad. I can handle the appletouch mod in 2.6.15. But in 2.6.17-rc2 its nonexistant here, Had little time to look deeply, but at first glance I cant see choice of the Apple touchpad within make menuconfig. Børge. johannes
Re: Ignore accidental input
Børge Holen wrote: I can handle the appletouch mod in 2.6.15. But in 2.6.17-rc2 its nonexistant here, Had little time to look deeply, but at first glance I cant see choice of the Apple touchpad within make menuconfig. Device Drivers - USB support - Apple USB Touchpad support -- Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26 Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86 http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2 PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Tuesday 25 April 2006 23:34, Magnus Rosenbaum wrote: Børge Holen wrote: I can handle the appletouch mod in 2.6.15. But in 2.6.17-rc2 its nonexistant here, Had little time to look deeply, but at first glance I cant see choice of the Apple touchpad within make menuconfig. Device Drivers - USB support - Apple USB Touchpad support Thanks a lot. =D Under USB as a mather o`fact, seems kinda weird I didnt look there. I've been lookin at both the mouseemu and pbbuttonsd and I got to agree with Jörg that the ignore while typing is done far better with pbbuttonsd than the mouseemu. Børge -- Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26 Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86 http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2 PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641
Re: Ignore accidental input
In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. You can use mouseemu to ignore trackpad input while typing. Or you can use the aptly named trackpad binary from powerpc-utils. Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Monday 24 April 2006 11:27, Michael Schmitz wrote: In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. You can use mouseemu to ignore trackpad input while typing. Or you can use the aptly named trackpad binary from powerpc-utils. That wont work cuz of the usb trackpad. Børge Michael
Re: Ignore accidental input
Or you can use the aptly named trackpad binary from powerpc-utils. That wont work cuz of the usb trackpad. Right ... is there a ioctl available from the appletouch driver, so this functionality can be added to trackpad? Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
Børge Holen wrote: In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. You can use mouseemu to ignore trackpad input while typing. I dunno if its hw or a sw bug, but sometimes the trackpad ... like right now.!. I cannot move the cursor more than an inch back / forth. and it shakes heavily. This was not the case this morning, but I suspect that the movement startet soon after I left and kept X from suspending. Which driver do you use for the trackpad or which model is your computer? Early versions of the appletouch driver had problems with fuzz. -- Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26 Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86 http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2 PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Sunday 23 April 2006 10:54, you wrote: Børge Holen wrote: In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. You can use mouseemu to ignore trackpad input while typing. I have to install another program to shut down the trackpad then? nevermind I found the /sbin/trackpad. I dunno if its hw or a sw bug, but sometimes the trackpad ... like right now.!. I cannot move the cursor more than an inch back / forth. and it shakes heavily. This was not the case this morning, but I suspect that the movement startet soon after I left and kept X from suspending. Which driver do you use for the trackpad or which model is your computer? Early versions of the appletouch driver had problems with fuzz. PowerBook5,7, appletouch: 17 model detected. debian reports version 1.1.3-18 from testing. I never seemed to check out the powerpc-utils. It does not load /sbin/trackpad from init.d. So, as a option to shut down the driver I can move /sbin/trackpad, or find whatever loads it... Børge
Re: Ignore accidental input
Børge Holen [EMAIL PROTECTED] writes: On Sunday 23 April 2006 10:54, you wrote: Børge Holen wrote: In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. You can use mouseemu to ignore trackpad input while typing. I have to install another program to shut down the trackpad then? nevermind I found the /sbin/trackpad. I simply run the following command upon each restart, # trackpad notap -- William
Re: Ignore accidental input
On Sunday 23 April 2006 13:09, William Xu wrote: Børge Holen [EMAIL PROTECTED] writes: On Sunday 23 April 2006 10:54, you wrote: Børge Holen wrote: In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. You can use mouseemu to ignore trackpad input while typing. I have to install another program to shut down the trackpad then? nevermind I found the /sbin/trackpad. I simply run the following command upon each restart, # trackpad notap Yes tried that, gave me this error writing /dev/adb: No such device or address Found this on google: tility only works with trackpads on the ADB bus. If you have a post Feb 2005 Powerbook your trackpad is on the USB bus and you need the appletouch kernel module to make it work. however, I have enabled the usbbus and it tells me so during the boot progress, and this does not fix the flickering of the cursor. Børge
Re: Ignore accidental input
Børge Holen wrote: I have to install another program to shut down the trackpad then? Yes :-) The block-trackpad-while-typing functionality is also in pbbuttons, but will be removed because mouseemu does the job better. nevermind I found the /sbin/trackpad. As you already noted, this program only works with ADB trackpads. PowerBook5,7, appletouch: 17 model detected. Ok, so you have a USB trackpad. I never seemed to check out the powerpc-utils. It does not load /sbin/trackpad from init.d. So, as a option to shut down the driver I can move /sbin/trackpad, or find whatever loads it... To remove the appletouch driver during sleep you can do: === before going to sleep === chvt 1 rmmod appletouch === after wakeup === modprobe appletouch chvt 7 /sbin/trackpad is not the driver, it's only a small utility to control tapping on ADB trackpads. I have never used it, because pbbuttons does this job for me. cu, Magnum -- Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26 Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86 http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2 PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ignore accidental input
On Sun, 2006-04-23 at 19:09 +0800, William Xu wrote: I simply run the following command upon each restart, # trackpad notap This is for ATP touchpads *ONLY*. Please realise that the appletouch drives the *USB* touchpad in newer hardware. johannes signature.asc Description: This is a digitally signed message part
Re: Ignore accidental input
Hi Magnus, Magnus Rosenbaum [EMAIL PROTECTED] wrote: Børge Holen wrote: I have to install another program to shut down the trackpad then? Yes :-) The block-trackpad-while-typing functionality is also in pbbuttons, but will be removed because mouseemu does the job better. Please not! I use pbbuttons and this functionality. mouseemu did a bad, job last time I used it. It did not remove the modifier I've used to generate the second and third mouse keys. And it could not work with the Fn key. Did anyone of these issues changed? Bye, Jörg. -- Nicht was du bist, ist es was dich ehrt, wie du bist bestimmt den Wert. Wünsche hat man oft und viel, nur wer lernt erreicht sein Ziel. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Ignore accidental input
Hi. In osX we got the opportunity to turn on the Ignore accidental input. Is there a similar option in linux. The random input from the pad itself can be pretty annoying. I dunno if its hw or a sw bug, but sometimes the trackpad ... like right now.!. I cannot move the cursor more than an inch back / forth. and it shakes heavily. This was not the case this morning, but I suspect that the movement startet soon after I left and kept X from suspending. I seem never to use it, but I also saw no option, neither a userspace program or in the kernel to turn it off. Børge