{"id":1496,"date":"2017-02-04T13:32:00","date_gmt":"2017-02-04T12:32:00","guid":{"rendered":"https:\/\/www.hutsky.cz\/blog\/?p=1496"},"modified":"2022-06-12T11:51:23","modified_gmt":"2022-06-12T10:51:23","slug":"scroll-emulation-with-trackman-marble-in-debian-9","status":"publish","type":"post","link":"https:\/\/www.hutsky.cz\/blog\/2017\/02\/scroll-emulation-with-trackman-marble-in-debian-9\/","title":{"rendered":"Scroll emulation with Trackman Marble in Debian 9"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-1498\" src=\"https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_-150x150.jpeg\" alt=\"images-duckduckgo-com\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_-150x150.jpeg 150w, https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_-300x300.jpeg 300w, https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_-100x100.jpeg 100w, https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_-200x200.jpeg 200w, https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_-450x450.jpeg 450w, https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/images.duckduckgo.com_.jpeg 570w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>Spending a lot of time with mouse and keyboard, I decided I would give it a try with trackball. A friend lent me Logitech Trackman Marble for a week to see if I can get used to it. The one drawback in Linux is that there&#8217;s no support for scroll emulation by default. It was relatively easy to set this up on my laptop with help of <em>xinput<\/em>, but at home, where I&#8217;m using Debian 9 (currently &#8216;testing&#8217; branch) with Mate, this didn&#8217;t work. So this had to go to a good old X.Org configuration file:<\/p>\n<pre class=\"\"># cat \/usr\/share\/X11\/xorg.conf.d\/50-trackball.conf \nSection \"InputClass\"\n&nbsp;&nbsp; &nbsp;Identifier&nbsp; \"Marble Mouse\"\n&nbsp;&nbsp; &nbsp;MatchProduct \"Logitech USB Trackball\"\n&nbsp;&nbsp; &nbsp;MatchIsPointer \"on\"\n&nbsp;&nbsp; &nbsp;MatchDevicePath \"\/dev\/input\/event*\"\n&nbsp;&nbsp; &nbsp;Driver \"evdev\"\n&nbsp;&nbsp; &nbsp;Option \"ButtonMapping\" \"1 2 3 4 5 6 7 8 9\"\n&nbsp;&nbsp; &nbsp;Option \"EmulateWheel\" \"true\"\n&nbsp;&nbsp; &nbsp;Option \"EmulateWheelButton\" \"8\"\n&nbsp;&nbsp; &nbsp;Option \"ZAxisMapping\" \"4 5\"\n&nbsp;&nbsp; &nbsp;Option \"XAxisMapping\" \"6 7\"\n&nbsp;&nbsp; &nbsp;Option \"Emulate3Buttons\" \"true\"\n&nbsp;&nbsp; &nbsp;Option \"EmulateWheelInertia\" \"10\"\nEndSection\n# cat \/etc\/debian_version \n9.0<\/pre>\n<p>By the way, after two days of using it, I think I&#8217;m getting used to it, so I&#8217;ll probably buy one for myself.<\/p>\n<p><strong>9 February 2018 update:<br>\n<\/strong>As Debian testing keeps rolling on and on, the above mentioned stopped worked for me, and had to be replaced by the following (obviously, there has been a driver change):<\/p>\n<pre class=\"\">#cat \/etc\/debian_version \nbuster\/sid\n# cat \/usr\/share\/X11\/xorg.conf.d\/50-trackball.conf \nSection \"InputClass\"\n        Identifier      \"Marble Mouse\"\n        MatchProduct    \"Logitech USB Trackball\"\n        Driver          \"libinput\"\n        Option          \"ScrollMethod\" \"button\"\n        Option          \"ScrollButton\" \"8\"\n\tOption\t\t\"MiddleEmulation\" \"on\"\nEndSection\n<\/pre>\n\n\n<p><strong>12 June 2022 update:<\/strong><\/p>\n\n\n\n<p>When running on a system with Wayland, like RHEL 9, this has to be set this way in the command line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gsettings set org.gnome.desktop.peripherals.trackball scroll-wheel-emulation-button 8<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Spending a lot of time with mouse and keyboard, I decided I would give it a try with trackball. A friend lent me Logitech Trackman Marble for a week to see if I can get used to it. The one &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.hutsky.cz\/blog\/2017\/02\/scroll-emulation-with-trackman-marble-in-debian-9\/\"> <span class=\"screen-reader-text\">Scroll emulation with Trackman Marble in Debian 9<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[10,48,18,34],"class_list":["post-1496","post","type-post","status-publish","format-standard","hentry","category-hardware","tag-debian","tag-hardware","tag-linux","tag-mate"],"_links":{"self":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/1496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/comments?post=1496"}],"version-history":[{"count":7,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/1496\/revisions"}],"predecessor-version":[{"id":1889,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/1496\/revisions\/1889"}],"wp:attachment":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/media?parent=1496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/categories?post=1496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/tags?post=1496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}