{"id":1488,"date":"2017-04-10T17:26:25","date_gmt":"2017-04-10T22:26:25","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=1488"},"modified":"2017-04-12T14:15:37","modified_gmt":"2017-04-12T19:15:37","slug":"kensington-expert-mouse-ubuntu-configuration","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1488","title":{"rendered":"Kensington Expert Mouse Ubuntu Configuration"},"content":{"rendered":"<p>First identify the Expert Mouse&#8217;s device ID using xinput:<br \/>\n<code>$ xinput<br \/>\n\u00e2\u017d\u00a1 Virtual core pointer id=2 [master pointer (3)]<br \/>\n\u00e2\u017d\u0153 \u00e2\u2020\u00b3 Virtual core XTEST pointer id=4 [slave pointer (2)]<br \/>\n\u00e2\u017d\u0153 \u00e2\u2020\u00b3 Kensington Kensington Expert Mouse <strong>id=9<\/strong> [slave pointer (2)]<br \/>\n\u00e2\u017d\u0153 \u00e2\u2020\u00b3 Dell KB216 Wired Keyboard id=11 [slave pointer (2)]<br \/>\n\u00e2\u017d\u0153 \u00e2\u2020\u00b3 DELL Laser Mouse id=12 [slave pointer (2)]<br \/>\n\u00e2\u017d\u00a3 Virtual core keyboard id=3 [master keyboard (2)]<br \/>\n\u00e2\u2020\u00b3 Virtual core XTEST keyboard id=5 [slave keyboard (3)]<br \/>\n\u00e2\u2020\u00b3 Power Button id=6 [slave keyboard (3)]<br \/>\n\u00e2\u2020\u00b3 Power Button id=7 [slave keyboard (3)]<br \/>\n\u00e2\u2020\u00b3 Sleep Button id=8 [slave keyboard (3)]<br \/>\n\u00e2\u2020\u00b3 Dell KB216 Wired Keyboard id=10 [slave keyboard (3)]<br \/>\n\u00e2\u2020\u00b3 Dell WMI hotkeys id=13 [slave keyboard (3)]<\/code><\/p>\n<p>Next, get the ID of the button to change using &#8220;xinput test device_id&#8221;, e.g., this is the output from pressing the upper right button:<br \/>\n<code>$ xinput test 9<br \/>\nbutton press 8<br \/>\nbutton release 8 <\/code><\/p>\n<p>Physical button positions:<br \/>\n1 = Lower left button<br \/>\n2 = Upper left button<br \/>\n3 = Lower right button<br \/>\n4 = Upper right button<br \/>\n5 = scroll ring<\/p>\n<p>Button actions:<br \/>\n1 = left click<br \/>\n2 = middle click<br \/>\n3 = right click<br \/>\n8 = back<\/p>\n<p>Normally the physical button positions are assigned the same button actions. The command to do this (in case you wanted to reset to default) is <code>xinput --set-button-map 9 1 2 3 4 5 6 7 8<\/code> (again, where 9 is the device ID).<\/p>\n<p>In my case, middle-click is assigned to the upper left button and back is assigned to the upper right. I wanted to swap them, so the command is:<br \/>\n<code>xinput --set-button-map 9 1 8 3 4 5 6 7 2<\/code><br \/>\nwhere 9 is the device ID and &#8220;1 8 3 4 5 6 7 2&#8221; are the actions assigned to the first eight physical positions.<\/p>\n<p>To persist these settings, add the xinput command to ~\/.xsessionrc. For more details see <a href=\"http:\/\/www.thinkwiki.org\/wiki\/How_to_configure_the_TrackPoint\">How to configure the TrackPoint<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First identify the Expert Mouse&#8217;s device ID using xinput: $ xinput \u00e2\u017d\u00a1 Virtual core pointer id=2 [master pointer (3)] \u00e2\u017d\u0153 \u00e2\u2020\u00b3 Virtual core XTEST pointer id=4 [slave pointer (2)] \u00e2\u017d\u0153 \u00e2\u2020\u00b3 Kensington Kensington Expert Mouse id=9 [slave pointer (2)] \u00e2\u017d\u0153 \u00e2\u2020\u00b3 Dell KB216 Wired Keyboard id=11 [slave pointer (2)] \u00e2\u017d\u0153 \u00e2\u2020\u00b3 DELL Laser Mouse id=12 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1488","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1488"}],"version-history":[{"count":7,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1488\/revisions"}],"predecessor-version":[{"id":1496,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1488\/revisions\/1496"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}