[SOLVED] logitech mx revolution middle button

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] logitech mx revolution middle button

Postby dave5424 » Dec 29th, '14, 23:59

hello,
mageia 4, kde

i have been trying for about a year now to set the middle button on my mouse to act like the ctrl key when i hold it down ie. when i hold it and press a hyperlink, it opens in new tab. i have tried xbindkeys and easystroke. it seems like the problem is the button is handled as a keyboard key and not a mouse key. easystroke wont recognize that button being pushed, when it will recognize all the rest of the buttons being pushed.

i can go into the keyboard short cuts inside of system settings and create a new global shortcut> send keyboard input, and set the trigger for the middle button, which comes up as search in the shortcut box. i just have no idea how to create an action that makes holding search equal holding down ctrl. i have done it in windows using setpoint. i have also tried and failed in lmde cinnamon.

if anyone would have any idea of how to do this i would be very grateful.

thank you
Last edited by dave5424 on Jan 23rd, '15, 07:38, edited 1 time in total.
dave5424
 
Posts: 4
Joined: Dec 29th, '14, 23:35

Re: logitech mx revolution middle button

Postby doktor5000 » Dec 30th, '14, 01:21

Have a look at https://wiki.archlinux.org/index.php/Lo ... Revolution and maybe https://wiki.archlinux.org/index.php/Al ... ns_Working
If you need xvkbd binary, you may need to install the package of that name, same for xmodmap.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: logitech mx revolution middle button

Postby dave5424 » Dec 30th, '14, 03:06

thank you for the quick response

i installed xbindkeys xvkbd
Code: Select all
touch ~/.xbindkeysrc
nano ~ /.xbindkeysrc

"/usr/bin/xvkbd -text "\[Control_L""
   c:0xE1


set xbindkeys to autostart
because the script in .xbindkeysrc had a typo, when i was in a text editor pressing the button output ol_L alot of the time i pressed it, so c:0xE1 is that button. i fixed the typo to:.
Code: Select all
"/usr/bin/xvkbd -text "\[Control_L]""
   c:0xE1

it no longer outputs text when i press the button, however it still doesn't open new tab when i hold it down and left click.

i added to the following to use the media wheel on the side to change tab.
Code: Select all
"/usr/bin/xvkbd -text "\[Control_L]\[Page_Up]""
     m:0x0 + b:13
"/usr/bin/xvkbd -text "\[Control_L]\[Page_Down]""
     m:0x0 + b:15

and that works just fine, so i'm part of the way there

thank you
Last edited by doktor5000 on Dec 30th, '14, 11:47, edited 1 time in total.
Reason: added code tags
dave5424
 
Posts: 4
Joined: Dec 29th, '14, 23:35

Re: logitech mx revolution middle button

Postby dave5424 » Dec 30th, '14, 04:35

ok i tried

Code: Select all
   echo "keycode 225 = Control_L" >> ~/.Xmodmap
  nano ~/.kde4/Autostart/middleclick
  #!/bin/sh
   xmodmap ~/.Xmodmap

   chmod +x ~/.kde4/Autostart/middleclick

no success

i tried
Code: Select all
nano ~/.xbindkeysrc
"/usr/bin/xvkbd -text "\[Control_L]""
     m:0x0 + b:17


no success. b:17 is pushing the media wheel down. i restarted after each change
Last edited by doktor5000 on Dec 30th, '14, 11:48, edited 1 time in total.
Reason: added code tags
dave5424
 
Posts: 4
Joined: Dec 29th, '14, 23:35

Re: logitech mx revolution middle button

Postby dave5424 » Jan 23rd, '15, 07:33

found the solution
Code: Select all
touch ~/.Xmodmap
nano ~/.Xmodmap
   clear Control
   add Control = Control_L Control_R XF86Search

touch ~/autostart
nano ~/autostart
   #!/bin/bash
   xmodmap ~/.Xmodmap

set ~/autostart to executable
set it to autostart from the method of your choice


i am now very very happy :D
dave5424
 
Posts: 4
Joined: Dec 29th, '14, 23:35


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest