Jump to content

Recommended Posts

Posted

How to run the Logitech Wireless Keyboard Mouse on Ubuntu

I’m running Ubuntu, I bought a new Logitech wireless keyboard and mouse and to my horror realized that Logitech does not create Linux compatible apps to configure their mouse and keyboards.

 

First you need to install Solaar, it's a Linux device manager for Logitech’s Unifying Receiver peripherals.

 

This will enable you to pair the keyboard and mouse with the Logitech Unifying receiver on Ubuntu, but you will not be able to configure the mouse with Solaar.

 

You are going to need a couple of applications in order to configure all the buttons on a Logitech MK705 wireless mouse, to install them run the following command:

sudo apt-get install xbindkeys xautomation x11-utils

 

You need to find the button numbers for the buttons on your mouse. Run xev. You will see a litle white windows appear, put your mouse in it and press your mouse buttons (it's best to do this one button at a time). On the MK705 it’s button 9 (front) and button 8 (rear), you should get output like this for each button:

ButtonRelease event, serial 37, synthetic NO, window 0x3c00001,
   root 0x2a0, subw 0x3c00002, time 1275186, (43,43), root:(268,595),
   state 0x410, button 3, same_screen YES

LeaveNotify event, serial 37, synthetic NO, window 0x3c00001,
   root 0x2a0, subw 0x0, time 1275186, (43,43), root:(268,595),
   mode NotifyUngrab, detail NotifyInferior, same_screen YES,
   focus YES, state 16

 

Create the xbindkeys config file using:

xbindkeys --defaults > $HOME/.xbindkeysrc

 

Next you need to add the key/button bindings to the config file.

You can open this file with

nano $HOME/.xbindkeysrc

 

This is for copying:

"xte 'keydown Control_L' 'key c' 'keyup Control_L'"
b:9

 

This is for pasting:

"xte 'keydown Control_L' 'key v' 'keyup Control_L'"
b:8

 

*b:9 means button 9 on the mouse (check button numbers with xev)

 

Reboot

 

I hope this helps others who want to use Logtech's devices on a Linux operating system.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • The JSE Investment and Finance Forum

    Platinum Wealth is a leading financial forum with an eye on the future of our country and the citizens of South Africa.  Even though the era of trading exclusively with physical goods is in the distant past, we as a civilization have always looked for new ways to prosper. Simply put, ways to get a better deal.  To have more, for less.  At Platinum Wealth we have created a bigger platform for you to do exactly that - a connected network of your peers giving the tips and tricks that have helped them reach their financial and investment goals.

    From personal finance and creating wealth, to financial news and small business, we cover it all at Platinum Wealth.  Pose your money and investment questions in our money and investment forums, we'll make sure they get answered.  We want to guide a new generation of money conscious readers.  We are here to share tips and practical knowledge that will help you live large without sacrificing your financial independence.

  • Tell a friend

    Love Platinum Wealth: The JSE and ZAR X Financial and Investment Forum? Tell a friend!
  • Topics

×
×
  • Create New...