
{"id":49280,"date":"2025-07-17T16:28:13","date_gmt":"2025-07-17T16:28:13","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=49280"},"modified":"2025-07-17T16:28:13","modified_gmt":"2025-07-17T16:28:13","slug":"adjust-touchpad-sensitivity-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2025\/07\/adjust-touchpad-sensitivity-ubuntu\/","title":{"rendered":"Adjust Touchpad Sensitivity in Ubuntu 24.04 | 25.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-40004\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/touchpad-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Touchpad is too sensitive? Here&#8217;s a step by step guide shows how to detect the touchpad pressure values and change the sensitivity accordingly in recent Ubuntu with default libinput driver.<\/p>\n<p>I&#8217;ve written about how to <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2023\/05\/adjust-touchpad-scrolling-ubuntu\/\" target=\"_blank\" rel=\"noopener\">adjust touchpad scrolling speed<\/a> in Ubuntu with Wayland and libinput. And, this one is for the touchpad mouse movement, tap down and up sensitivity.<\/p>\n<p><!--more--><\/p>\n<h3>Step 1: Install libinput-tools<\/h3>\n<p>Libinput has some command line tools for debugging, measuring, analyzing input devices in Linux.<\/p>\n<p>To install the tool, press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal, and run command:<\/p>\n<pre>sudo apt install libinput-tools<\/pre>\n<p><i>Run <code>sudo apt update<\/code> first to refresh package cache if package not found. And for Fedora, the package name is &#8220;libinput-utils&#8221;<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/apt-libinput-tools.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49281\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/apt-libinput-tools-700x439.webp\" alt=\"\" width=\"610\" height=\"383\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/apt-libinput-tools-700x439.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/apt-libinput-tools-300x188.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/apt-libinput-tools.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Step 2: Measure Touchpad Pressure<\/h3>\n<p>1. After installed the tools, run the command below to start measuring the touchpad pressure values when you tapping on it.<\/p>\n<pre>sudo libinput measure touchpad-pressure<\/pre>\n<p>As you see in the screenshot below, the default values are 10, 8, 130, 255 in my case. And, they mean:<\/p>\n<ul>\n<li>tap <b>DOWN<\/b>, when pressure over 10.<\/li>\n<li>tap <b>UP<\/b>, when pressure less than 8.<\/li>\n<li>palm touch, pressure over 130. Useful for accidental touches on the touchpad while typing.<\/li>\n<li>thumb touch, not sure what does it mean.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/libinput-pressure_processed.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49282\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/libinput-pressure_processed-700x457.webp\" alt=\"\" width=\"610\" height=\"398\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/libinput-pressure_processed-700x457.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/libinput-pressure_processed-300x196.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/libinput-pressure_processed-768x501.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/libinput-pressure_processed.webp 932w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Now start tapping on your touchpad with <b>single finger<\/b>. It will print the interactive values in terminal output. When tap DOWN\/UP detected, it will display <b>x<\/b> in the corresponding columns.<\/p>\n<p>2. In my case, tap lightly on touchpad results 40 ~ 50 pressure values. To make it less sensitive, I measured again by running the command below (press <b>Ctrl+C<\/b> to stop last command):<\/p>\n<pre>sudo libinput measure touchpad-pressure --touch-thresholds=<b>60<\/b>:<b>10<\/b><\/pre>\n<p>The command tells to treat pressure value over <b>60<\/b> as tap DOWN, and pressure less than <b>10<\/b> as tap UP.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/measure-press60.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49283\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/measure-press60-700x528.webp\" alt=\"\" width=\"610\" height=\"460\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/measure-press60-700x528.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/measure-press60-300x226.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/measure-press60.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>Re-run the last command again and again with different pressure values (replace &#8220;<b>60:10<\/b>&#8220;) until you found the correct thresholds for you!<\/b><\/p>\n<p>And, if you want to avoid accidental touches while typing, run the command below instead (replace pressure values) to also find out correct threshold for palm touch:<\/p>\n<pre>sudo libinput measure touchpad-pressure --touch-thresholds=<b>60<\/b>:<b>10<\/b> --palm-threshold=<b>100<\/b><\/pre>\n<h3>Step 3: Find out Device Name &amp; DMI Modalias<\/h3>\n<p>After found out the correct thresholds, you also need to know the name and modalias to identify your touchpad device.<\/p>\n<p><b>To find out touchpad name,<\/b> open terminal and run command:<\/p>\n<pre>libinput list-devices |grep Device<\/pre>\n<p>As the screenshot shows, it&#8217;s <b>Elan Touchpad<\/b> in my case.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/list-devicename.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49284\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/list-devicename-700x475.webp\" alt=\"\" width=\"610\" height=\"414\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/list-devicename-700x475.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/list-devicename-300x204.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/list-devicename.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>To find out dmi modalias,<\/b> run command:<\/p>\n<pre>cat \/sys\/class\/dmi\/id\/modalias<\/pre>\n<p>In the output, you just need to know the system vendor name (<b>svn<\/b>) and product version (<b>pvr<\/b>), while all others can be skipped by using asterisk wildcard <b>*<\/b>.<\/p>\n<p>In my case, vendor name is <b>LENOVO<\/b> and product version is <b>ThinkPadT480s<\/b>. So, the dmi modalias can be described as <b>dmi:*svnLENOVO:*:pvrThinkPadT480s*<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/dmi-modalias.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-49285\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/dmi-modalias.webp\" alt=\"\" width=\"682\" height=\"515\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/dmi-modalias.webp 682w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/dmi-modalias-300x227.webp 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a><\/p>\n<h3>Step 4: Add rule to configure touchpad sensitivity<\/h3>\n<p>Finally, run the command below to create a <code>quirks<\/code> configuration file:<\/p>\n<pre>sudo nano \/etc\/libinput\/local-overrides.quirks<\/pre>\n<p>NOTE: you may run <code>sudo mkdir -p \/etc\/libinput<\/code> first to create the directory in case it&#8217;s not exist. And, <b>the filename must be <code>local-overrides.quirks<\/code><\/b> according to the <a href=\"https:\/\/wayland.freedesktop.org\/libinput\/doc\/latest\/touchpad-pressure-debugging.html\" target=\"_blank\" rel=\"noopener\">libinput wiki<\/a>.<\/p>\n<p>When file opens, paste the lines below and change the values (text in bold) according to the last steps.<\/p>\n<pre>[Touchpad pressure override]\r\nMatchUdevType=touchpad\r\nMatchName=<b>Elan Touchpad<\/b>\r\nMatchDMIModalias=<b>dmi:*svnLENOVO:*:pvrThinkPadT480s*<\/b>\r\nAttrPressureRange=<b>60:10<\/b>\r\nAttrPalmPressureThreshold=<b>120<\/b>\r\nAttrThumbPressureThreshold=<b>100<\/b><\/pre>\n<p>When done, press Ctrl+S to save and Ctrl+X to exit the command line text editor.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/local-quirks.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49286\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/local-quirks-700x493.webp\" alt=\"\" width=\"610\" height=\"430\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/local-quirks-700x493.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/local-quirks-300x211.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/07\/local-quirks.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Finally, <b>log out and back in<\/b> to apply change.<\/p>","protected":false},"excerpt":{"rendered":"<p>Touchpad is too sensitive? Here&#8217;s a step by step guide shows how to detect the touchpad pressure values and change the sensitivity accordingly in recent Ubuntu with default libinput driver. I&#8217;ve written about how to adjust touchpad scrolling speed in Ubuntu with Wayland and libinput. And, this one is for the touchpad mouse movement, tap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":40004,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2371,1389],"class_list":["post-49280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-laptop","tag-touchpad"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/49280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=49280"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/49280\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/40004"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=49280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=49280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=49280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}