{"id":18,"date":"2020-08-26T18:53:50","date_gmt":"2020-08-26T18:53:50","guid":{"rendered":"https:\/\/tekweis.com\/?p=18"},"modified":"2020-08-26T18:53:50","modified_gmt":"2020-08-26T18:53:50","slug":"mouse-wheel-is-backwards-fix","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2020\/08\/26\/mouse-wheel-is-backwards-fix\/","title":{"rendered":"Mouse wheel is backwards fix"},"content":{"rendered":"\n<div class=\"wp-block-image is-style-default\"><figure class=\"alignleft size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/Logitech-m705.png\" alt=\"\" class=\"wp-image-19\" width=\"255\" height=\"270\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/Logitech-m705.png 340w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/Logitech-m705-283x300.png 283w\" sizes=\"auto, (max-width: 255px) 100vw, 255px\" \/><figcaption>The Logitech M705 Marathon mouse<\/figcaption><\/figure><\/div>\n\n\n\n<p>My old Logitech mouse finally needed to be replaced. It has lasted me almost 10 years. I just picked up a <a rel=\"noreferrer noopener\" href=\"https:\/\/www.officedepot.com\/a\/products\/982143\/Logitech-M705-Marathon-Wireless-Mouse-GrayBlack\/\" data-type=\"URL\" data-id=\"https:\/\/www.officedepot.com\/a\/products\/982143\/Logitech-M705-Marathon-Wireless-Mouse-GrayBlack\/\" target=\"_blank\">Logitech M705 wireless marathon mouse<\/a> from Office Depot for 29 dollars. Just a bit smaller than I care for, but a very nice mouse. Only problem; When I use this mouse on Linux, the mouse wheel scrolling is backwards. To fix, use the <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/linuxhint.com\/change_mouse_touchpad_settings_xinput_linux\/\" data-type=\"URL\" data-id=\"https:\/\/linuxhint.com\/change_mouse_touchpad_settings_xinput_linux\/\" target=\"_blank\">xinput<\/a><\/strong> command.<\/p>\n\n\n\n<p>From your terminal use the<strong> xinput &#8211;list<\/strong> to show all devices. I found my mouse as device<strong> 12<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"868\" height=\"305\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list.png\" alt=\"\" class=\"wp-image-20\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list.png 868w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-300x105.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-768x270.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-660x232.png 660w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><figcaption>Notice id=12 is my Logitech M705 mouse.<\/figcaption><\/figure>\n\n\n\n<p>Now I run the command <strong>xinput &#8211;list-props 12<\/strong> to show me a detailed list of all options for my Logitech mouse. I notice the option I need to change is, &#8220;<strong>Natural Scrolling Enabled (288)<\/strong>&#8220;. It is set at 1, which means enabled. This is what is causing the backwards scrolling.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"524\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-mouse.png\" alt=\"\" class=\"wp-image-21\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-mouse.png 948w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-mouse-300x166.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-mouse-768x425.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-list-mouse-660x365.png 660w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><figcaption>Natural scrolling option 288 is the culprit.<\/figcaption><\/figure>\n\n\n\n<p>Now I need to disable Natural Scrolling, and change the value to 0. I run the command: <strong>xinput &#8211;set-prop 12 288 0<\/strong>. I then run xinput &#8211;list-props 12 to see that the setting is disabled (Set at zero).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"541\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-mouse.png\" alt=\"\" class=\"wp-image-22\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-mouse.png 942w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-mouse-300x172.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-mouse-768x441.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-mouse-660x379.png 660w\" sizes=\"auto, (max-width: 942px) 100vw, 942px\" \/><figcaption>Natural scrolling is disabled.<\/figcaption><\/figure>\n\n\n\n<p>Great! Everything is working except for one thing&#8230;. If I log out and sign back in, the mouse-wheel is backwards again. To fix, I add a line at the bottom of my <strong>~\/.bashrc<\/strong> file that runs the command: <strong>xinput &#8211;set-prop 12 288 0<\/strong>. Now it works everytime I sign in.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"71\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-bashrc.png\" alt=\"\" class=\"wp-image-23\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-bashrc.png 939w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-bashrc-300x23.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-bashrc-768x58.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/xinput-set-bashrc-660x50.png 660w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>My old Logitech mouse finally needed to be replaced. It has lasted me almost 10 years. I just picked up a Logitech M705 wireless marathon mouse from Office Depot for 29 dollars. Just a bit smaller than I care for, but a very nice mouse. Only problem; When I use this mouse on Linux, the\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2020\/08\/26\/mouse-wheel-is-backwards-fix\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":1,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}