Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
xfce:xfce4-settings:mouse [2012/04/23 09:54] nickxfce:xfce4-settings:mouse [2012/04/29 12:19] – [Device Properties] nick
Line 110: Line 110:
 First you need to find the correct device using the ''xinput'' utility. When you run this command it will list the devices on your system. First you need to find the correct device using the ''xinput'' utility. When you run this command it will list the devices on your system.
  
 +  $ xinput list
   Virtual core pointer              id=2    [master pointer  (3)]   Virtual core pointer              id=2    [master pointer  (3)]
     Virtual core XTEST pointer      id=4    [slave  pointer  (2)]     Virtual core XTEST pointer      id=4    [slave  pointer  (2)]
Line 116: Line 117:
     Virtual core XTEST keyboard     id=5    [slave  keyboard (3)]     Virtual core XTEST keyboard     id=5    [slave  keyboard (3)]
     Power Button                    id=6    [slave  keyboard (3)]     Power Button                    id=6    [slave  keyboard (3)]
 +
 +Now let's assume you want to modify a special property of the touchpad, lets say the coasting speed. If you run the command below it will show a long list with all the different properties.
 +
 +  $ xinput list-props "SynPS/2 Synaptics TouchPad"
 +  Device 'SynPS/2 Synaptics TouchPad':
 +  [...]
 +  Synaptics Coasting Speed (274): 45.000000
 +  Synaptics Scrolling Distance (252): 100, 100 
 +  [...]
 + 
 +Next it to translate the names into valid Xfconf property name. The following characters are allowed: ''A-Z a-z 0-9 - _'' and spaces are replaced with an underscore. So this means ''SynPS/2 Synaptics TouchPad'' will become ''SynPS2_Synaptics_TouchPad''. Same goes for the property name and devices properties are stored under ''/<device-name>/Properties/<prop-name>''.
 +
 +As you can see the value above is stored as a double (45.000), so to disable coasting you have to run the following xfconf-query command:
 +
 +  xfconf-query -c pointers -p /SynPS2_Synaptics_TouchPad/Properties/Synaptics_Coasting_Speed -n -t double -s 0
 +
 +Use ''xinput list-props'' to check if the property is applied.
 +
 +In case the device property is an array, it will be show like ''Synaptics Scrolling Distance''; a comma separated list. This value is an integer because the 100 has no precision.
 +
 +  xfconf-query -c pointers -p /SynPS2_Synaptics_TouchPad/Properties/Synaptics_Scrolling_Distance -n -t int -t int -s 50 -s 80
 +