Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Scroll with your trackpad
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
garn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 131

PostPosted: Tue Jan 13, 2004 9:23 pm    Post subject: HOWTO: Scroll with your trackpad Reply with quote

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
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Mon Jan 19, 2004 1:44 am    Post subject: Reply with quote

any work arounds for the 2.4.22 kernel?
Back to top
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Mon Jan 19, 2004 1:06 pm    Post subject: Reply with quote

Please fix the link, it's broken
Back to top
View user's profile Send private message
garn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 131

PostPosted: Tue Jan 20, 2004 2:01 am    Post subject: Reply with quote

He seems to have disappeared.

I'm mirroring the patch for now at:

http://nixel.mine.nu/adbhid.c-scroll-2.diff
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Thu Jan 22, 2004 5:04 am    Post subject: Reply with quote

shr1nk wrote:
any work arounds for the 2.4.22 kernel?


there was a patch developed for the 2.4 kernel. I just updated one version of it for ppc-sources-2.4.24:

http://desertsol.com/~kevin/touchpad_scroll/

here's the original discussion when it was developed:

https://forums.gentoo.org/viewtopic.php?t=69047&postdays=0&postorder=asc&start=0

I still have those original patches in the same place that I had then, they should still work too.
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Sun Jan 25, 2004 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
garn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 131

PostPosted: Sun Jan 25, 2004 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Sun Jan 25, 2004 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Wed Jan 28, 2004 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
garn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 131

PostPosted: Wed Jan 28, 2004 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
garn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 131

PostPosted: Sun Feb 01, 2004 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Sun Feb 01, 2004 11:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
garn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2003
Posts: 131

PostPosted: Mon Feb 02, 2004 12:55 am    Post subject: Reply with quote

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
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Thu Jun 24, 2004 12:05 am    Post subject: Reply with quote

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
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Thu Jun 24, 2004 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Thu Jun 24, 2004 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Sat Jun 26, 2004 6:10 pm    Post subject: Reply with quote

I updated this patch so it applies cleanly to gentoo-dev-sources-2.6.7-r5.

http://www.desertsol.com/~kevin/ppc/adbhid.c-scroll-2-gentoo-dev-sources-2.6.7-r5.diff.bz2

I'm also trying to update the other scrollwheel patch (the one where you hold down a key to scroll) since it doesn't interfere with pbbuttonsd but I can't quite get it to work.

https://forums.gentoo.org/viewtopic.php?t=69047
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum