LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   synaptics driver configuration in xorg.conf file (https://www.linuxquestions.org/questions/linux-newbie-8/synaptics-driver-configuration-in-xorg-conf-file-778877/)

Sapfeer 12-30-2009 08:16 AM

synaptics driver configuration in xorg.conf file
 
I'm trying to configure my Synaptics touchpad via xorg.conf file, but it doesn't work... Here is my settings:
Code:

Section "InputDevice"
  Identifier  "SynPS/2 Synaptics TouchPad"
  Driver    "synaptics"
  Option    "Device" "/dev/input/event9"
  Option    "SendCoreEvents"
  Option    "Protocol"          "auto-dev"
  Option    "SHMConfig"          "true"
  Option    "LeftEdge"          "1700" 
  Option    "RightEdge"          "5300" 
  Option    "TopEdge"          "1700" 
  Option    "BottomEdge"        "4200" 
  Option    "FingerLow"          "25"   
  Option    "FingerHigh"        "30"   
  Option    "MaxTapTime"        "180" 
  Option    "VertEdgeScroll"      "true" 
  Option    "HorizEdgeScroll"      "true" 
  Option    "CornerCoasting"      "true" 
  Option    "CoastingSpeed"      "0.30" 
  Option    "CircularScrolling"    "true" 
  Option    "CircScrollTrigger"    "8"   
  Option    "VertScrollDelta"      "100" 
  Option    "HorizScrollDelta"    "100" 
  Option    "MinSpeed"          "0.10" 
  Option    "MaxSpeed"          "0.60" 
  Option    "AccelFactor"        "0.0020"   
  Option    "VertTwoFingerScroll"  "true" 
  Option    "HorizTwoFingerScroll"  "true" 
  Option    "TapButton1"        "1"
  Option    "TapButton2"        "2"
  Option    "TapButton3"        "3"
EndSection

and here is configuration options from lshal command:
Code:

udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX3_port_logicaldev_input'
  info.capabilities = {'input', 'input.touchpad'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX3_port'  (string)
  info.product = 'SynPS/2 Synaptics TouchPad'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX3_port_logicaldev_input'  (string)
  input.device = '/dev/input/event9'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX3_port'  (string)
  input.product = 'SynPS/2 Synaptics TouchPad'  (string)
  input.x11_driver = 'synaptics'  (string)
  linux.device_file = '/dev/input/event9'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/devices/platform/i8042/serio4/input/input9/event9'  (string)

and here is output of /proc/bus/input/devices file:
Code:

I: Bus=0011 Vendor=0002 Product=0007 Version=a5b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio4/input0
S: Sysfs=/devices/platform/i8042/serio4/input/input9
U: Uniq=
H: Handlers=mouse1 event9
B: EV=b
B: KEY=420 70000 0 0 0 0
B: ABS=11000003

I can't find out why settings, I put in xorg.conf don't apply to synaptics driver after reboot. I can add such settings in one of the hal configuration files, but I want to know why does my present configuration doesn't work...

Dave_Devnull 12-30-2009 01:34 PM

Which distro is this? I had some Ubuntu issues of this nature and ended up finding that xorg.conf was empty/depreciated. AFAIR my answers came in the .hal files like you say, but I'm not sure if this was Ubuntu specific. My memory is not good but it rings a bell.

ewaller 12-30-2009 04:21 PM

Many distros now use hal fdi files for this purpose.

On Arch and Gentoo, the fdi files live in /etc/hal/fdi/policy/

on my system, my synaptics fdi file looks like:

/etc/hal/fdi/policy/11-x11-synaptics.fdi
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>                 
<deviceinfo version="0.2">                                   
  <device>                                                   
    <match key="info.product" contains="ETPS/2 Elantech Touchpad">
        <append key="info.capabilities" type="strlist">input.touchpad</append>                                                                     
    </match>                                                             
    <match key="info.capabilities" contains="input.touchpad">           
        <merge key="input.x11_driver" type="string">synaptics</merge>   
        <merge key="input.x11_options.TapButton1" type="string">1</merge>
        <merge key="input.x11_options.TapButton2" type="string">2</merge>
        <merge key="input.x11_options.TapButton3" type="string">3</merge>
        <merge key="input.x11_options.SHMConfig" type="string">true</merge>                                                                       
        <!-- Arbitrary options can be passed to the driver using         
            the input.x11_options property since xorg-server-1.5. -->   
        <!-- EXAMPLES:                                                   
        Switch on shared memory, enables the driver to be configured at runtime                                                                   
        <merge key="input.x11_options.SHMConfig" type="string">true</merge>                                                                       

        Maximum movement of the finger for detecting a tap
        <merge key="input.x11_options.MaxTapMove" type="string">2000</merge>                                                                       

        Enable vertical scrolling when dragging along the right edge
        <merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>                                                                   

        Enable vertical scrolling when dragging with two fingers anywhere on the touchpad                                                         
        <merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>                                                             

        Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad
        <merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>

        If on, circular scrolling is used
        <merge key="input.x11_options.CircularScrolling" type="string">true</merge>

        For other possible options, check CONFIGURATION DETAILS in synaptics man page
        -->
        <merge key="input.x11_options.CircularScrolling" type="string">true</merge>
        <merge key="input.x11_options.CircScrollTrigger" type="string">3</merge>
        <merge key="input.x11_options.LBCornerButton" type="string">2</merge>
        <merge key="input.x11_options.RBCornerButton" type="string">3</merge>
        <merge key="input.x11_options.AccelFactor" type="string">2</merge>
    </match>
  </device>
</deviceinfo>


Dave_Devnull 12-31-2009 01:55 AM

Quote:

Originally Posted by ewaller (Post 3809289)
Many distros now use hal fdi files for this purpose.

On Arch and Gentoo, the fdi files live in /etc/hal/fdi/policy/

Now there you go - I've learned something :-)

Sapfeer 12-31-2009 07:03 AM

Thanks all for your answers!

Dave_Devnull
I'm using Ubuntu Netbook Remix 9.10.

ewaller
I have .fdi file in my hal policy directory too, but I just want to want, why don't settings in xorg.conf file apply to synaptics driver.

I suppose it is just because such settings are controlled by hal and not by X server... So, anyway, I can make my stuff work in other way.

Thanks a lot for your answers


All times are GMT -5. The time now is 10:19 PM.