Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mouse buttons on iBook G4
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
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Fri Apr 14, 2006 1:19 pm    Post subject: Mouse buttons on iBook G4 Reply with quote

I have a annoyance with the emulation of the right mouse button: After boot I have to press the key F12 about 4 times until it works. From then on it works fine.

I have F12 assigned to the right mouse button by mac-hid in the kernel:

From /etc/sysctl.conf:
Code:

# Enable Mouse Button Emulation
dev.mac_hid.mouse_button_emulation=1
# F11
dev.mac_hid.mouse_button2_keycode=87
# F12
dev.mac_hid.mouse_button3_keycode=88


I also tried it with mouseemu:

/etc/mouseemu.conf:
Code:

MID_CLICK="-middle 0 87"         # F11 with no modifier
RIGHT_CLICK="-right 0 88"        # F12 with no modifier
SCROLL="-scroll 56"              # Alt key
#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress


But there's absolutely no difference!

This is on an iBook G4 12" 1,33GHz (mid 2005) and I can reproduce it also on another iBook of the same model. On my iBook G3 800 this problem does not occur, with the same system and configuration.

So is this maybe an issue of the keyboard driver? What's the difference between the G3 and the G4 keyboards, I thought they're both ADB?
_________________
http://cmr.forestfactory.de/ibook/linux/
Back to top
View user's profile Send private message
infjms00
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 112
Location: Vigo, SPAIN

PostPosted: Sat May 06, 2006 6:08 pm    Post subject: Reply with quote

First make sure you don't have those keys assigned to other action if you use pbbuttons.
Have you added sysclt support on kernel?
Back to top
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Sat May 06, 2006 9:15 pm    Post subject: Reply with quote

infjms00 wrote:
First make sure you don't have those keys assigned to other action if you use pbbuttons.

magnum@ibookx ~ $ grep 88 /etc/pbbuttonsd.conf
magnum@ibookx ~ $ grep 87 /etc/pbbuttonsd.conf
magnum@ibookx ~ $

Is this what you mean?

infjms00 wrote:
Have you added sysclt support on kernel?

magnum@ibookx ~ $ zcat /proc/config.gz | grep SYSCTL
CONFIG_SYSCTL=y

Otherwise the mouse button emulation would not work at all i think.

cu, Magnum
_________________
http://cmr.forestfactory.de/ibook/linux/
Back to top
View user's profile Send private message
infjms00
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 112
Location: Vigo, SPAIN

PostPosted: Sun May 07, 2006 3:00 am    Post subject: Reply with quote

Take a look on your desktop environment key bindings, there might be something wrong there, Ia strange that you have to press it 4 times untill it works.

Does the center mouse button work fine?
Back to top
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Sun May 07, 2006 11:22 am    Post subject: Reply with quote

infjms00 wrote:
Take a look on your desktop environment key bindings, there might be something wrong there, Ia strange that you have to press it 4 times untill it works.

I use KDE 3.5.2 on all iBooks and I found nothing special in the key bindings.

To make sure it is not caused by KDE I started icewm and this did not solve the problem. I have to press one of the assigned keys exactly 4 times. On the 4th time it works and it keeps working until I reboot. It appears only after bootup, not if I restart X.

infjms00 wrote:
Does the center mouse button work fine?

It's the same for both mouse buttons. I can even do: F12 - F11 - F12 - F11 and only the last one works.

cu, Magnum
_________________
http://cmr.forestfactory.de/ibook/linux/
Back to top
View user's profile Send private message
infjms00
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 112
Location: Vigo, SPAIN

PostPosted: Mon May 08, 2006 11:30 am    Post subject: Reply with quote

Do this happen to all users? If you log as other user do you still have to press key 4 times to get it working?
Back to top
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Wed May 10, 2006 7:40 am    Post subject: Reply with quote

infjms00 wrote:
Do this happen to all users? If you log as other user do you still have to press key 4 times to get it working?

I created a new user for testing now and it also happened for this user.

I'm now upgrading to modular X on a testing machine and see what happens. The whole system update compiles for some days now.

For now I expect it to be a kernel or maybe a device (udev) issue. But no idea how to get further.

cu, Magnum
_________________
http://cmr.forestfactory.de/ibook/linux/
Back to top
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Thu May 25, 2006 9:34 am    Post subject: Reply with quote

There was no difference with modular X.

But I have norrowed it down with xev (which shows mouse events in X) and mev (which shows mouse events on console with gpm). In mev the mouse button events work as expected, while in xev the first event is displayed when I press one of the keys F11 and F12 for the 4th time.

The delay happens after reboot or after I kill and restart X by CTGL-ALT-BS. Only Loggin out and in again with kdm does not make it happen again.

One more interesting thing: I tried a kernel patch which allowes to use CTRL-LeftMouseButton to trigger the right mouse button. Here the right mouse button also works as expected when I press this key combination but only delayed when I use F11 or F12.

So for now I conclude that it is an issue of X. It is not an issue of KDE. It also does not seem to be an issue of the kernel, but why does it then only happen with my two G4 iBooks and not on the G3 iBook with nearly the same kernel, X and KDE?

Does anyone have an idea how I could go on debugging this? How can I further investigate the input handling of X?

cu, Magnum
_________________
http://cmr.forestfactory.de/ibook/linux/
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