Skip to content

Instantly share code, notes, and snippets.

@pkitslaar
Last active August 5, 2016 08:57
Show Gist options
  • Save pkitslaar/511c766fe7da9f99c6e01668e85f6147 to your computer and use it in GitHub Desktop.
Save pkitslaar/511c766fe7da9f99c6e01668e85f6147 to your computer and use it in GitHub Desktop.
Fixing the touchpad sensitivy for xfce4 in crouton on Samsung XE303C12

Fixing the touchpad sensitivy inside xfce4 using crouton on Samsung Chromebook XE303C12

Background

In the default setup of crouton the touchpad on the Samsung XE3303C12 has very poor performance (need to press very hard to make cursor move).

Analysis

Based on comments at dnschneid/crouton#628 one needs to update /usr/local/bin/croutonxinitrc-wrapper file to set the correct sensitivity.

Start at line 113 we see the following code.

113     # Configure trackpad settings if needed                                
114     if synclient >/dev/null 2>&1; then                                     
115         case "`awk -F= '/_RELEASE_BOARD=/{print $2}' '/var/host/lsb-release    '`" in                                                                     
116             butterfly*|falco*)                                      
117                 SYNCLIENT="FingerLow=1 FingerHigh=5 $SYNCLIENT";;          
118             parrot*|peppy*|wolf*)                                          
119                 SYNCLIENT="FingerLow=5 FingerHigh=10 $SYNCLIENT";;         
120         esac                                                               
121         if [ -n "$SYNCLIENT" ]; then                                       
122             synclient $SYNCLIENT                                           
123         fi                                                                 
124     fi          

Checking the content of /var/host/lsb-release on the XE303C12 Chromebook, I see the following.

(precise)pieter@localhost:~$ awk -F= '/_RELEASE_BOARD=/{print $2}' '/var/host/lsb-release'
daisy-signed-mp-v3keys

So, my board is named daisy.

Fix

Update line 116 to read.

116             butterfly*|falco*|daisy*)                                      
117                 SYNCLIENT="FingerLow=1 FingerHigh=5 $SYNCLIENT";;

Now, the touchpad works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment