View previous topic :: View next topic |
Author |
Message |
garn Tux's lil' helper
Joined: 10 Sep 2003 Posts: 131
|
Posted: Tue Jan 13, 2004 9:23 pm Post subject: HOWTO: Scroll with your trackpad |
|
|
http://bobcat.edgewall.com/~jonas/powerbook/trackpad/
^-- Download this patch, apply to a 2.6 kernel. If you get an error about Kconfig, the correct path is arch/ppc/Kconfig
On the website it says pbbuttonsd does not work with this, the fix:
/etc/pbbuttonsd.conf
Code: |
dev_ADB = "/dev/null"
|
This does disable the notap/nodrag/etc however, so you are stuck with a trackpad that acts on tap. Not acceptable. In linux/drivers/macintosh/adbhid.c the line under /* Map btn2 (tap-click) to the left button */ can be commented out (ie // btn1 |= btn2;) and now notap is in effect.
Sorry if this howto isn't that detailed, let me know whats unclear and I'll fix it up. |
|
Back to top |
|
|
shr1nk Tux's lil' helper
Joined: 21 Jun 2003 Posts: 90
|
Posted: Mon Jan 19, 2004 1:44 am Post subject: |
|
|
any work arounds for the 2.4.22 kernel? |
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Mon Jan 19, 2004 1:06 pm Post subject: |
|
|
Please fix the link, it's broken |
|
Back to top |
|
|
garn Tux's lil' helper
Joined: 10 Sep 2003 Posts: 131
|
|
Back to top |
|
|
zojas Veteran
Joined: 22 Apr 2002 Posts: 1138 Location: Phoenix, AZ
|
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Sun Jan 25, 2004 4:37 pm Post subject: |
|
|
It is working well for me.
Kernel gentoo-development-sources-2.6.2_pre2
What about a right-klick emulation like the one in the synaptic-driver?
Is this possible? |
|
Back to top |
|
|
garn Tux's lil' helper
Joined: 10 Sep 2003 Posts: 131
|
Posted: Sun Jan 25, 2004 5:59 pm Post subject: |
|
|
gordin wrote: | It is working well for me.
Kernel gentoo-development-sources-2.6.2_pre2
What about a right-klick emulation like the one in the synaptic-driver?
Is this possible? |
you mean like the physical button is a left click and tapping the trackpad is a right click?
Look for the "/* Map btn2 (tap-click) to the left button */" and commented out the 2 lines under it.
(that might make it middle click though, if so set btn3 to btn2 and btn2 to 0) |
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Sun Jan 25, 2004 6:48 pm Post subject: |
|
|
I would like to tap on the right lower corner of the touchpad to simulate a right click. Otherwise a left click.
But tap on the trackpad for right and the physical button for left is good enough for me.
Or is there a way to do this the other way round. Mapping the physical button to right click? That would be even better. |
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Wed Jan 28, 2004 10:20 am Post subject: |
|
|
Hmm,
it just stoped working. The touchpad acted normal (without scrolling)...
I had to reboot to have scrolling again.
I can not reproduce it so far. |
|
Back to top |
|
|
garn Tux's lil' helper
Joined: 10 Sep 2003 Posts: 131
|
Posted: Wed Jan 28, 2004 5:11 pm Post subject: |
|
|
gordin wrote: | Hmm,
it just stoped working. The touchpad acted normal (without scrolling)...
I had to reboot to have scrolling again.
I can not reproduce it so far. |
I've had it happen to me also, not sure what caused it either. |
|
Back to top |
|
|
garn Tux's lil' helper
Joined: 10 Sep 2003 Posts: 131
|
Posted: Sun Feb 01, 2004 9:09 pm Post subject: |
|
|
gordin wrote: | I would like to tap on the right lower corner of the touchpad to simulate a right click. Otherwise a left click. |
Okay I'm working modifying Jonas' patch so the different corners can do different things. I think I'll see if I can have it use sysctl so each user can set different things, like lower right doing right click, upper right middle clicking, right hand side scroll, left hand side scroll, whatever they want.
...But I don't know anything about kernel programming, so sysctl might take a while. |
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Sun Feb 01, 2004 11:38 pm Post subject: |
|
|
I've done some work by myself.
Right klick is working when you tap on the right lower corner of the touchpad. But from time to time I have also a left click, too. I try to clean the code somewhat tomorrow an post it then. Mybe you could find my mistake...
@garn: hope you have not done to much already. Maybe you can use something of my code. |
|
Back to top |
|
|
garn Tux's lil' helper
Joined: 10 Sep 2003 Posts: 131
|
Posted: Mon Feb 02, 2004 12:55 am Post subject: |
|
|
I got the right click in the lower left working, kinda, it doesn't always go, sometimes you have to double tap. I don't have tap work at all except for in that corner, you wanted tap to be left unless it was in that corner? Then your bug might just be you're tapping outside the corner.
http://nixel.mine.nu/ibook/adbhid-20040201.diff
Just did to today, might have some really stupid mistakes. The behaviour is scroll with right side, right click with a tap in lower right, left click with hard button. |
|
Back to top |
|
|
zojas Veteran
Joined: 22 Apr 2002 Posts: 1138 Location: Phoenix, AZ
|
Posted: Thu Jun 24, 2004 12:05 am Post subject: |
|
|
I got the patch posted in the first message to apply to gentoo-dev-sources-2.6.7-r5. scrolling works fine.
I also commented out the line in the kernel so notap is active, and I've set dev_adb to /dev/null in pbbuttonsd.conf
all that is fine, but the problem I'm having is that my ibook won't go to sleep when I close the lid. I have to press the power button to get it to sleep.
unfortunately, the first time I booted with this kernel was with the scroll patch applied, so I'm not sure if this lid issue is because of my pbbutonsd.conf setting, the new kernel, or the scrolling patch...anybody else run into this issue?
I may try setting dev_ADB back to /dev/adb to see what happens, but I'm assuming I won't be able to sleep at all then if pbbuttonsd doesn't work _________________ http://www.desertsol.com/~kevin/ppc |
|
Back to top |
|
|
gordin Guru
Joined: 11 Oct 2002 Posts: 300 Location: Germany/WI
|
Posted: Thu Jun 24, 2004 8:49 am Post subject: |
|
|
It is because of the entry dev_adb=/dev/null in pbbuttons.conf
But as long as you have the scrollpatch apllied into your kernel you cannot change this...
So it seems you can only have lidclose detection _or_ touchpad scroll wheel functionality.
Haven't found a way around it.
Quote: | I may try setting dev_ADB back to /dev/adb to see what happens, but I'm assuming I won't be able to sleep at all then if pbbuttonsd doesn't work |
Your mouse (touchpad?) won't work! |
|
Back to top |
|
|
zojas Veteran
Joined: 22 Apr 2002 Posts: 1138 Location: Phoenix, AZ
|
Posted: Thu Jun 24, 2004 12:55 pm Post subject: |
|
|
ok. interestingly enough, it will wake from sleep when I open the lid. that's probably a firmware action _________________ http://www.desertsol.com/~kevin/ppc |
|
Back to top |
|
|
zojas Veteran
Joined: 22 Apr 2002 Posts: 1138 Location: Phoenix, AZ
|
|
Back to top |
|
|
|