Sony VAIO SVS13112ENB touchpad on Ubuntu

ubuntu_logo_81x81By default the <Fn-F1> key combination to toggle touchpad doesn’t work on SVS13112ENB. To use an alternative key combination do the following:

1. Run xinput:

$ xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ PixArt USB Optical Mouse                	id=9	[slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad              	id=11	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Video Bus                               	id=6	[slave  keyboard (3)]
    ↳ Sony Vaio Keys                          	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=10	[slave  keyboard (3)]

2. Add the following to a script (copy the full text below to any text editor to see it fully):

SYNSTATE=$(xinput list-props "SynPS/2 Synaptics TouchPad" | grep Enabled | grep -Eo '.$')
if [ $SYNSTATE = 0 ]; then
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1
else
    xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 0
fi

3. Assign a keyboard shortcut to execute the script whenever needed.

One thought on “Sony VAIO SVS13112ENB touchpad on Ubuntu”

Leave a Reply

Your email address will not be published. Required fields are marked *