Page 1 of 1

[SOLVED] Mouse configuration and emulate3buttons

PostPosted: Oct 20th, '11, 15:21
by jj83
OK, I have a netbook with Mageia1 32-bit installed. I used to use Mandriva 2010.2. The install is fresh, so we are not talking about migrations problems. The touch pad only has two buttons, and Mageia does not want to emulate the middle mouse button when I press both simultaneously. I have tried everything from trying to add Option "Emulate3Buttons" "yes" to xorg.conf, adding the line to hal demon fdi file to set it to true, adding the env option to udev policy file and finally, adding XEMU3=yes to /etc/sysconf/mouse.

Nothing seems to work. Could someone tell me what governs the mouse in Mageia? Is it HAL, udev, X11 or something else? Options for any of these don't seem to make a difference.

Re: Mouse configuration and emulate3buttons

PostPosted: Oct 21st, '11, 22:29
by David_Batson
You might try using xinput as in this example. You need xorg-X11-apps (or something similar for xinput, although it may be installed already).

http://www.thinkwiki.org/wiki/How_to_co ... ing_xinput

Re: Mouse configuration and emulate3buttons

PostPosted: Oct 23rd, '11, 16:01
by jj83
Sorry about the delay, I haven't tried this yet. I'll let you know when I get a chance to fiddle with the netbook.

Re: Mouse configuration and emulate3buttons

PostPosted: Oct 26th, '11, 12:22
by jj83
Thank you David! xinput works! However, it only works for a single session.
The command which finally solved it was:
xinput set-int-prop "ImPS/2 Generic Wheel Mouse" "Evdev Middle Button Emulation" 8 1
The identifier (first set of quotation marks) I got from the command:
xinput list

I then tried to place this command in several start up scripts for X. Including /etc/X11/Xsession and $HOME/.xsession. In both of those cases, nothing happened. It was as if the mouse settings are overwritten at some point during boot.

Eventually, I put the command in a shell script and had the shell script executed during GNOME start up, as a startup application. Problem solved, albeit for a single user, in a very messy way.

Thank you for your help.

Re: [SOLVED] Mouse configuration and emulate3buttons

PostPosted: Oct 28th, '11, 23:59
by David_Batson
Here is how I do it in Fedora 15 Gnome (I have 3 posts in that thread).

http://forums.fedoraforum.org/showthread.php?t=267052