Verical Scrolling on (K)Ubuntu touchpads updated to 8.10

8 11 2008

Not so many days ago my good friend Carlo posted a column on his blog court of misanthropy with the instructions to enable the Mac flavored vertical finger scrolling on Ubuntu and Kubuntu laptops. You can find my plug of his article here.

Anyway since the updated Xorg 7.4 running onto the freshly delivered 8.10 Intrepid Ibex version of the Ubuntu and Kubuntu distros those “old” instructions aren’t valid anymore.

But Carlo’s a smart guy and has already provided a new procedure which he tested and should therefore run smoothly on your laptops.

As far as Carlo’s concerned it seems that the problem is the enabling of SHMConfing within an untrusted environment which is share among different users. It follows that the safest way to enable the two-fingers scrolling is use an XML file for the Hardware Abstraction Layer with the setting for this function.

The file must contain the following code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="input.x11_driver" contains="synaptics">
    <merge key="input.x11_options.SHMConfig" type="string">On</merge>
    <merge key="input.x11_options.TapButton2" type="string">3</merge>
    <merge key="input.x11_options.TapButton3" type="string">2</merge>
    <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
    <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
  </match>
</device>
</deviceinfo>

And it must be saved as:

/etc/hal/fdi/policy/11-synaptics-options.fdi

If you’re no Linux overlord just follow these plug ‘n’play instructions:

1- Download this file already cooked by Carlo and save it in your home folder (i.e. /home/TheOneElectronic)

2- Open up the console, check you’re in your /home and type:

sudo cp 11-synaptics-options.fdi /etc/hal/fdi/policy/

3- Restart the computer (it’s not enough to restart X)

The two-finger scrolling should now be working

Further option: how to enable (Q)GSynaptics e SHMConfig

If you happen to be the only user of your pc you could anyway enabling GSynaptics (QSynaptics for KDE) you must create the file /etc/hal/fdi/policy/shmconfig.fdi containing the following code:

<?xml version="1.0" encoding="ISO-8859-1"?>
 <deviceinfo version="0.2">
 <device>
 <match key="input.x11_driver" string="synaptics">
 <merge key="input.x11_options.SHMConfig" type="string">True</merge>
 </match>
 </device>
 </deviceinfo>

And here’s the simplified version:

1- download this file already prepared for you and put it in your /home

2- Open up the console, check you’re in your /home and type:

sudo cp shmconfig.fdi /etc/hal/fdi/policy/

3- Restart the computer

4- search and install (Q)GSynaptics with Synaptic or Adept

That’s all folks!

Advertisements