Difference between revisions of "FAQ/Touchpad"

From GalliumOS Wiki
< FAQ
Jump to: navigation, search
m
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
  
A common issue that presents itself to many GalliumOS users is the lack of palm detection as well as the lack of disabling the touch pad for a fraction of a second while the user is typing.
+
A common issue that presents itself to many GalliumOS users is the lack of palm detection as well as the inability to disable the touch pad for a fraction of a second while the user is typing. If you have had frustration dealing with the touchpad in GalliumOS, there is a way to fix this and have something very close to stock ChromeOS behavior.  
  
If you have had frustration dealing with the touchpad in GalliumOS, there is a way to fix this and get near to stock ChromeOS behavior.
+
This guide will assume that your hardware is equipped with an 'Elan' 'Cypress' or 'Synaptics' touchpad.  Nearly all Chromebooks use this hardware.
  
This guide will assume that your hardware is equipped with an 'Elan' touchpad.  Nearly all Chromebooks use this hardware, however - some do notThe following tweaks will likely work regardless, however your experience may vary.
+
==Before you start==
 +
 
 +
Verify your hardware is using an Elan / Cypress / Synaptics touchpad.  Open up a terminal, and issue the following command:
 +
 
 +
<code>xfce4-mouse-settings</code>
 +
 
 +
If your touchpad is Elan / Cypress / Synaptics hardware, you will see it clearly(In my example, this is a Elan pad, but the fix will work for any of the three touchpads mentioned, and maybe others!)
  
==Before you start==
+
[[File:Elan_verify.png|centre|thumb|604x604px|This is an Elan touchpad - Cypress and Synaptics are also confirmed working!]]
  
 
We will be making changes to the input system.  It's advised that before you begin this process, you have a backup of anything critical - just in case.
 
We will be making changes to the input system.  It's advised that before you begin this process, you have a backup of anything critical - just in case.
Line 19: Line 25:
 
This will install libinput on your system, and configure it with the default settings.   
 
This will install libinput on your system, and configure it with the default settings.   
  
Your output will look something like this: [https://wiki.galliumos.org/Libinput_install.png]
+
Your output will look something like this:
  
 
[[File:Libinput_install.png|centre|thumb|604x604px|Installing libinput]]
 
[[File:Libinput_install.png|centre|thumb|604x604px|Installing libinput]]
Line 33: Line 39:
 
<code>sudo nano /usr/share/X11/xorg.conf.d/90-libinput.conf</code>
 
<code>sudo nano /usr/share/X11/xorg.conf.d/90-libinput.conf</code>
  
Your terminal will now be editing the configuration, and you will see something like this: [https://wiki.galliumos.org/images/1/10/Libinput_edit1.png]
+
Your terminal will now be editing the configuration, and you will see something like this:
  
[[File:Libinput_edit1.png|centre|thumb|604x604px|Let's edit libinput!]]  
+
[[File:Libinput_edit2.png|centre|thumb|604x604px|Let's edit libinput!]]  
  
 
Notice the 'third' entry.  This is the entry that contains the line:  
 
Notice the 'third' entry.  This is the entry that contains the line:  
  
MatchIsTouchpad "on"
+
<code>MatchIsTouchpad "on"</code>
 +
 
 +
You will add this line:
 +
 
 +
<code>Option "Tapping" "true"</code>
  
You will add the line: Option "Tapping" "true" to the entry.  See above screencapture and double check everything.
+
See above screencapture and double check everything.
  
Once you have added this line and double checked you have it in the right place: issue a control + x (hold down ctrl key and press x).  You will be prompted to save the file, the 'Y' key will save the file.
+
Once you have added this line and double checked you have it in the right place: issue a control + x (hold down ctrl key and press x).  You will be prompted to save the file, the 'y' key will save the file.
  
 
==Test our changes==
 
==Test our changes==
Line 56: Line 66:
  
 
==Tweak mouse acceleration==
 
==Tweak mouse acceleration==
 +
 +
At this point - your touchpad should be ignoring movements/clicks/taps for a moment while you are typing.  However, your mouse cursor may be too 'slow' or too 'fast' for your personal preferences.  Thankfully, this is very easy to fix.
 +
 +
First up - we'll need to verify the device ID# of your touchpad.  Open a terminal, and issue the following command:
 +
 +
<code>xinput</code>
 +
 +
This will return the device ID of your touchpad.  As you can see in my example - the ID number is 10.  Your ID number may not be the same, so take your time here and make sure you have the correct device ID.
 +
 +
[[File:check_elan_device.png|centre|thumb|604x604px|determining the device ID number]]
 +
 +
Now, we can go ahead and begin to tweak the acceleration. 
 +
 +
<code>xinput --set-prop 10 'libinput Accel Speed' 0.2</code>
 +
 +
You will need to replace ## with the device ID of the 'Elan / Cypress / Synaptics Touchpad' as determined by the above instructions.  In my case, the device ID is '10' - however this very well may not the case on your system.
 +
 +
These changes will take effect right away, so go ahead and play with the mouse and determine if it is 'too fast' or 'too slow' for your personal preference.  If it's too fast, try again with a speed of 0.15, if it's too slow, try again with a setting of 0.25.  Continue to change the acceleration until you have a mouse speed that 'feels right' to you.
 +
 +
Once you are happy with the acceleration level, we're going to want to have this setting apply on every reboot.  Open up a terminal, and issue the following command:
 +
 +
<code>nano ~/.bashrc</code>
 +
 +
Press control+v a few times to page forward, until you are at the end of the file.  On a new line, simply add the following:
 +
 +
<code>xinput --set-prop foo 'libinput Accel Speed' bar</code>
 +
 +
Where foo is the device ID determined earlier, and bar is the acceleration setting that worked well for you.  For my personal settings, it looks something like this:
 +
 +
<code>xinput --set-prop 10 'libinput Accel Speed' 0.125</code>
 +
 +
Once you have added the proper line to your .bashrc file, hold down the ctrl key, press the 'x' key, and answer 'y' to save the file.  At this point, you can reboot and your custom mouse speed should take effect after login!
 +
 +
==Final Notes==
 +
 +
Now that we have made these changes, please note that the default XFCE GUI mouse settings in your control panel will no longer function.  Any changes you need to make need to made in the above mentioned configuration files.
 +
 +
==Help!  I hate this and and want to revert to stock behavior!==
 +
 +
Easy as pie.  Open up a terminal and simple issue this command:
 +
 +
<code>sudo apt purge xserver-xorg-input-libinput</code>
 +
 +
And then reboot.  All of your settings are back to stock GalliumOS behavior.

Latest revision as of 00:03, 28 April 2018

Introduction

A common issue that presents itself to many GalliumOS users is the lack of palm detection as well as the inability to disable the touch pad for a fraction of a second while the user is typing. If you have had frustration dealing with the touchpad in GalliumOS, there is a way to fix this and have something very close to stock ChromeOS behavior.

This guide will assume that your hardware is equipped with an 'Elan' 'Cypress' or 'Synaptics' touchpad. Nearly all Chromebooks use this hardware.

Before you start

Verify your hardware is using an Elan / Cypress / Synaptics touchpad. Open up a terminal, and issue the following command:

xfce4-mouse-settings

If your touchpad is Elan / Cypress / Synaptics hardware, you will see it clearly. (In my example, this is a Elan pad, but the fix will work for any of the three touchpads mentioned, and maybe others!)

This is an Elan touchpad - Cypress and Synaptics are also confirmed working!

We will be making changes to the input system. It's advised that before you begin this process, you have a backup of anything critical - just in case.

Required Software

To start off, we are going to need to install libinput. Open up a terminal, and issue the following command:

sudo apt install xserver-xorg-input-libinput

This will install libinput on your system, and configure it with the default settings.

Your output will look something like this:

Installing libinput

If you choose to reboot or restart your xorg session at this point before configuration, do so at your own risk - I recommend that you follow along with this guide and configure the input before rebooting.

Enable 'Tapping'

This will set your touchpad to be what most users expect - a single 'tap' will be a 'left click', a 'tap with two fingers' will be a 'right click', and a 'tap with three fingers' will be a middle click.

We're going to open up a terminal, and issue the following command:

sudo nano /usr/share/X11/xorg.conf.d/90-libinput.conf

Your terminal will now be editing the configuration, and you will see something like this:

Let's edit libinput!

Notice the 'third' entry. This is the entry that contains the line:

MatchIsTouchpad "on"

You will add this line:

Option "Tapping" "true"

See above screencapture and double check everything.

Once you have added this line and double checked you have it in the right place: issue a control + x (hold down ctrl key and press x). You will be prompted to save the file, the 'y' key will save the file.

Test our changes

Now that we have installed libinput and enabled proper tapping - this is a great time to reboot. Issue the following command in your terminal (or use the power key or any other method you prefer to reboot your machine)

sudo reboot

At this point, you may notice that the mouse cursor is 'faster' or 'slower' than you are used to; that's fine. We'll address this in the next section. For the moment, you should be able to move your cursor, issue a left click with a single tap, issue a right click with a two finger tap, and issue a middle click with a three finger tap.

To test this, open a web browser and search your favorite search engine for anything. In the results - a single tap should open a link, a double finger tap on the link should open the right click menu, and a triple finger tap on the link should open the link in a new tab.

Tweak mouse acceleration

At this point - your touchpad should be ignoring movements/clicks/taps for a moment while you are typing. However, your mouse cursor may be too 'slow' or too 'fast' for your personal preferences. Thankfully, this is very easy to fix.

First up - we'll need to verify the device ID# of your touchpad. Open a terminal, and issue the following command:

xinput

This will return the device ID of your touchpad. As you can see in my example - the ID number is 10. Your ID number may not be the same, so take your time here and make sure you have the correct device ID.

determining the device ID number

Now, we can go ahead and begin to tweak the acceleration.

xinput --set-prop 10 'libinput Accel Speed' 0.2

You will need to replace ## with the device ID of the 'Elan / Cypress / Synaptics Touchpad' as determined by the above instructions. In my case, the device ID is '10' - however this very well may not the case on your system.

These changes will take effect right away, so go ahead and play with the mouse and determine if it is 'too fast' or 'too slow' for your personal preference. If it's too fast, try again with a speed of 0.15, if it's too slow, try again with a setting of 0.25. Continue to change the acceleration until you have a mouse speed that 'feels right' to you.

Once you are happy with the acceleration level, we're going to want to have this setting apply on every reboot. Open up a terminal, and issue the following command:

nano ~/.bashrc

Press control+v a few times to page forward, until you are at the end of the file. On a new line, simply add the following:

xinput --set-prop foo 'libinput Accel Speed' bar

Where foo is the device ID determined earlier, and bar is the acceleration setting that worked well for you. For my personal settings, it looks something like this:

xinput --set-prop 10 'libinput Accel Speed' 0.125

Once you have added the proper line to your .bashrc file, hold down the ctrl key, press the 'x' key, and answer 'y' to save the file. At this point, you can reboot and your custom mouse speed should take effect after login!

Final Notes

Now that we have made these changes, please note that the default XFCE GUI mouse settings in your control panel will no longer function. Any changes you need to make need to made in the above mentioned configuration files.

Help! I hate this and and want to revert to stock behavior!

Easy as pie. Open up a terminal and simple issue this command:

sudo apt purge xserver-xorg-input-libinput

And then reboot. All of your settings are back to stock GalliumOS behavior.