https://wiki.archlinux.org/api.php?action=feedcontributions&user=Adriaanzon&feedformat=atomArchWiki - User contributions [en]2024-03-28T22:12:35ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Logitech_MX_Master&diff=472895Logitech MX Master2017-04-03T21:02:57Z<p>Adriaanzon: Fix punctuation</p>
<hr />
<div>[[Category:Mice]]<br />
[http://www.logitech.com/en-us/product/mx-master Logitech MX Master]<br />
<br />
== Usage ==<br />
<br />
The mouse should work with no special configuration if using the unified receiver USB dongle. Plug in the dongle, then press the {{ic|connect}} button on the mouse.<br />
<br />
To use [[Bluetooth]], change the channel on the bottom of the mouse, and click the {{ic|connect}} button. Now, search for the mouse with a bluetooth manager of your choice and pair. In future it should connect as soon as you switch to that channel when your bluetooth is active. If you have problems with the mouse not showing when scanning, see [[Bluetooth#Device_does_not_show_up_in_scan|Bluetooth LE device does not show up in scan]]<br />
<br />
== Mappings for extra buttons ==<br />
<br />
The vertical wheel and the two buttons near it should work right away, however the thumb button requires some special treatment, and you might want to remap the rest.<br />
<br />
To remap the buttons of the mouse you can use the packages {{Pkg|xbindkeys}} and {{Pkg|xautomation}}.<br />
<br />
''xbindkeys'' will redirect the buttons and ''xte'' (which is included in xautomation) will execute the custom key presses. To do so, create a config file named {{ic|.xbindkeysrc}} in your home directory.<br />
<br />
Here is a sample configuration for the vertical scroll wheel and the two buttons near it:<br />
<br />
# thumb wheel up => increase volume and unmute <br />
"amixer -D pulse set Master 4000+ unmute"<br />
b:6 <br />
<br />
# thumb wheel down => lower volume <br />
"amixer -D pulse set Master 4000-" <br />
b:7 <br />
<br />
# backward button => previous song <br />
"xte 'key XF86AudioPrev'" <br />
b:8 <br />
<br />
# forward button => next song <br />
"xte 'key XF86AudioNext'" <br />
b:9<br />
<br />
If using PulseAudio (more info [[Xbindkeys#Volume_control|here]]):<br />
<br />
# thumb wheel up => increase volume<br />
"pactl set-sink-volume @DEFAULT_SINK@ +2%"<br />
b:6<br />
<br />
# thumb wheel down => lower volume<br />
"pactl set-sink-volume @DEFAULT_SINK@ -2%"<br />
b:7<br />
<br />
If you prefer to get a visual feedback on how the volume level changes you could use the following lines instead <br />
(Might work in GNOME too but I have only tested on KDE)<br />
<br />
# thumb wheel up => increase volume<br />
"xte 'key XF86AudioRaiseVolume'"<br />
b:6<br />
<br />
# thumb wheel down => lower volume<br />
"xte 'key XF86AudioLowerVolume'"<br />
b:7<br />
<br />
<br />
Now start {{ic|xbindkeys}}, preferably add that to the autostart list of your desktop environment.<br />
<br />
The thumb button is special. With the Logitech software available for Windows and Mac, you would be able to map up to 5 actions to it: by pressing the button or by pressing the button and moving the mouse in one of four directions. As of November 2015, there is no way to enable the direction feature using Arch. <br />
<br />
If you look at the keys the button triggers you will notice that it sends a series of keys, confusing xbindkeys. You need to add a short sleep here so xbindkeys will only react on the first keys send so we can at least map one action to it:<br />
<br />
# thumb button => play/pause music <br />
# Credit to gregmuellegger https://bbs.archlinux.org/viewtopic.php?pid=1551271#p1551271 <br />
# We need a sleep here since the button triggers a few more key codes. <br />
# It also triggers Control+Mod2+Control_L and Alt+Mod2+Alt_L. The sleep <br />
# prevents that X receives those keypresses simultaniously. Therefore they <br />
# might interfere and trigger unwanted actions. By the sleep we make sure that<br />
# the Alt+Left is receive as distinct event. <br />
"sleep 0.1 && xte 'key XF86AudioPlay'" <br />
m:0xc + c:23<br />
<br />
Remember that all changes to {{ic|~/.xbindkeysrc}} require a restart of the xbindkeys process: <br />
<br />
$ pkill xbindkeys && xbindkeys<br />
<br />
== Power ==<br />
<br />
Battery status can be read as described on [[Logitech Unifying Receiver]]. e.g. Solaar ({{AUR|solaar}}) has s system tray utility.<br />
<br />
== Smart shift ==<br />
<br />
In order to change the sensitivity of changing the mouse wheel mode (between hyperfast and click-to-click), install {{AUR|solaar-git}}. A slider appears that can be set somewhere between 0 and 50 (inclusive). 0 means always in hyperfast mode, 50 means always in click-to-click mode.<br />
<br />
To change the sensitivity, change this value somewhere between 0 and 50.</div>Adriaanzon