[SOLVED] Mouse configuration and emulate3buttons

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Mouse configuration and emulate3buttons

Postby jj83 » Oct 20th, '11, 15:21

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.
jj83
 
Posts: 18
Joined: Sep 10th, '11, 19:16
Location: Greece

Re: Mouse configuration and emulate3buttons

Postby David_Batson » Oct 21st, '11, 22:29

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
David_Batson
 
Posts: 128
Joined: May 1st, '11, 05:19

Re: Mouse configuration and emulate3buttons

Postby jj83 » Oct 23rd, '11, 16:01

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.
jj83
 
Posts: 18
Joined: Sep 10th, '11, 19:16
Location: Greece

Re: Mouse configuration and emulate3buttons

Postby jj83 » Oct 26th, '11, 12:22

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.
jj83
 
Posts: 18
Joined: Sep 10th, '11, 19:16
Location: Greece

Re: [SOLVED] Mouse configuration and emulate3buttons

Postby David_Batson » Oct 28th, '11, 23:59

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
David_Batson
 
Posts: 128
Joined: May 1st, '11, 05:19


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron