You are not logged in.

#1 2008-12-23 11:38:05

smajchl
Member
From: Prague
Registered: 2008-03-11
Posts: 4
Website

evdev 2.1.0-1 ignores settings given by HAL (Xorg 1.5.3-4)

I am trying to configure Mighty mouse by HAL in new Xorg this is /etc/hal/fdi/policy/10-x11-input.fdi :

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.touchpad">
      <match key="info.product" contains="Synaptics TouchPad">
        <merge key="input.x11_driver" type="string">synaptics</merge>
        <merge key="input.x11_options.LeftEdge" type="string">1700</merge>
        <merge key="input.x11_options.RightEdge" type="string">5300</merge>
        <merge key="input.x11_options.TopEdge" type="string">1700</merge>
        <merge key="input.x11_options.BottomEdge" type="string">4200</merge>
        <merge key="input.x11_options.FingerLow" type="string">25</merge>
        <merge key="input.x11_options.FingerHigh" type="string">30</merge>
        <merge key="input.x11_options.MaxTapTime" type="string">180</merge>
        <merge key="input.x11_options.MaxTapMove" type="string">220</merge>
        <merge key="input.x11_options.VertScrollDelta" type="string">100</merge>
        <merge key="input.x11_options.MinSpeed" type="string">0.20</merge>
        <merge key="input.x11_options.MaxSpeed" type="string">0.70</merge>
        <merge key="input.x11_options.AccelFactor" type="string">0.00850</merge>
        <merge key="input.x11_options.SHMConfig" type="string">on</merge>
        <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
        <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
        <merge key="input.x11_options.VertEdgeScroll" type="string">0</merge>
        <merge key="input.x11_options.HorizEdgeScroll" type="string">0</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>
      </match>
    </match>

    <match key="info.product" string="Genius Optical Mouse">
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.x11_options.Sensitivity" type="string">0.4</merge>
    </match>

    <match key="info.product" string="Apple Computer, Inc. Mighty Mouse">
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.x11_options.HWHEELRelativeAxisButtons" type="string">7 6</merge>
      <merge key="input.x11_options.Buttons" type="string">8</merge>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.x11_options.XkbLayout" type="string">vok,cz</merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:alt_shift_toggle</merge>
    </match>

  </device>
</deviceinfo>

hal-device shows my options allright:

0: udi = '/org/freedesktop/Hal/devices/usb_device_3f0_11d_noserial_if0_logicaldev_input'
  input.device = '/dev/input/event3'  (string)
  input.product = 'Apple Computer, Inc. Mighty Mouse'  (string)
  linux.sysfs_path = '/sys/class/input/input4/event3'  (string)
  info.subsystem = 'input'  (string)
  input.x11_driver = 'evdev'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_11d_noserial_if0_logicaldev_input'  (string)
  info.category = 'input'  (string)
  input.x11_options.HWHEELRelativeAxisButtons = '7 6'  (string)
  info.capabilities = { 'input', 'input.mouse' } (string list)
  input.x11_options.Buttons = '8'  (string)
  linux.subsystem = 'input'  (string)
  linux.device_file = '/dev/input/event3'  (string)

but in /var/log/Xorg.0.log they aren't, if I set input.x11_driver to "mouse" instead of "evdev", than there are my options in Xorg log, but it crashes like I cant move the cursor and type on keyboard :-) The synaptics touchpad works allright. You can see it in Xorg.0.log:

(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 2.1.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.1
(**) Apple Computer, Inc. Mighty Mouse: always reports core events
(**) Apple Computer, Inc. Mighty Mouse: Device: "/dev/input/event3"
(II) Apple Computer, Inc. Mighty Mouse: Found 4 mouse buttons
(II) Apple Computer, Inc. Mighty Mouse: Found x and y relative axes
(II) Apple Computer, Inc. Mighty Mouse: Configuring as mouse
(**) Apple Computer, Inc. Mighty Mouse: YAxisMapping: buttons 4 and 5
(**) Apple Computer, Inc. Mighty Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Apple Computer, Inc. Mighty Mouse" (type: MOUSE)
(II) config/hal: Adding input device Genius Optical Mouse
(**) Genius Optical Mouse: always reports core events
(**) Genius Optical Mouse: Device: "/dev/input/event2"
(II) Genius Optical Mouse: Found 3 mouse buttons
(II) Genius Optical Mouse: Found x and y relative axes
(II) Genius Optical Mouse: Configuring as mouse
(**) Genius Optical Mouse: YAxisMapping: buttons 4 and 5
(**) Genius Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Genius Optical Mouse" (type: MOUSE)
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) AT Translated Set 2 keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "evdev"
(**) AT Translated Set 2 keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "vok,cz"
(**) AT Translated Set 2 keyboard: xkb_layout: "vok,cz"
(**) Option "xkb_options" "grp:alt_shift_toggle"
(**) AT Translated Set 2 keyboard: xkb_options: "grp:alt_shift_toggle"

(II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
(II) LoadModule: "synaptics"

(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 0.99.2
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.1
(II) Synaptics touchpad driver version 0.99.2
(**) Option "Device" "/dev/input/event0"
(II) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5472
(II) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4448
(II) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
(II) SynPS/2 Synaptics TouchPad: finger width range 0 - 0
(II) SynPS/2 Synaptics TouchPad: buttons: left right middle double triple
(**) Option "SHMConfig" "on"
(**) Option "LeftEdge" "1700"
(**) Option "RightEdge" "5300"
(**) Option "TopEdge" "1700"
(**) Option "BottomEdge" "4200"
(**) Option "FingerLow" "25"
(**) Option "FingerHigh" "30"
(**) Option "MaxTapTime" "180"
(**) Option "MaxTapMove" "220"
(**) Option "VertScrollDelta" "100"
(**) Option "VertEdgeScroll" "0"
(**) Option "HorizEdgeScroll" "0"
(**) Option "VertTwoFingerScroll" "1"
(**) Option "HorizTwoFingerScroll" "1"
(**) Option "TapButton1" "1"
(**) Option "TapButton2" "2"
(**) Option "TapButton3" "3"
(--) SynPS/2 Synaptics TouchPad touchpad found
(**) SynPS/2 Synaptics TouchPad: always reports core events
(II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
(--) SynPS/2 Synaptics TouchPad touchpad found

Please help me, where is the problem? I have read that evdev 2.1.0-1 is OK, but it seems it isn't :-(

Offline

#2 2008-12-24 10:27:17

smajchl
Member
From: Prague
Registered: 2008-03-11
Posts: 4
Website

Re: evdev 2.1.0-1 ignores settings given by HAL (Xorg 1.5.3-4)

I think that problem must be in evdev driver, because driver synaptics works OK and driver mouse doesn't work, but at least loads cofiguration what evdev doesn't. But I don't know if it is problem of this version or generally of evdev, please help me.

Offline

#3 2009-01-02 19:24:26

smajchl
Member
From: Prague
Registered: 2008-03-11
Posts: 4
Website

Re: evdev 2.1.0-1 ignores settings given by HAL (Xorg 1.5.3-4)

Please help me just to manage if this is my mistake or bug and bug of what, i would like to write a bugreport.

Offline

#4 2009-01-06 10:45:24

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: evdev 2.1.0-1 ignores settings given by HAL (Xorg 1.5.3-4)

I had the same problem, it would not load the synaptics driver, and always used evdev so the trackpad would not work properly.

I found that it was not finding 'input.touchpad' so the options are never loaded.  Try changing it to 'input.mouse'

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
   <match key="info.capabilities" contains="input.mouse">
      <match key="info.product" contains="Synaptics TouchPad">
        <merge key="input.x11_driver" type="string">synaptics</merge>

Last edited by Wittfella (2009-01-06 10:47:35)

Offline

Board footer

Powered by FluxBB