Touchscreen stops functioning correctly in Xorg if the device is removed/reinserted

Bug #212073 reported by Dustin Spicuzza
2
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
Low
Bryce Harrington

Bug Description

Binary package hint: xorg

When using a touchscreen that requires specific calibration options (ie... the generic evdev driver won't work out of the box with it), then when the device is unplugged/powered off/removed, the device file in /dev is no longer associated with the device, and the driver does not know to reload the device when it is reinserted.

This is fixed by allowing Xorg drivers to receive arbitrary options via the HAL hotplug mechanism (which is currently implemented, but only supports the evdev driver for simple cases, and does NOT allow most options to be set). Upstream has fixed this with commit 47eb658e802775021e3efec109f95431cca188ca in Xorg git... its a pretty simple patch, and doesn't change any major components.

After the Xorg patch is applied, then the user can use FDI files placed in /etc/hal/fdi/information to configure the device. The following is an example FDI file I use with the evtouch driver, and my eGalax touchscreen:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
          <match key="info.udi" contains="usb_device_eef_1_noserial_if0_logicaldev_input">

                <merge key="input.x11_driver" type="string">evtouch</merge>

        <merge key="input.x11_options.MinX" type="string">1931</merge>
        <merge key="input.x11_options.MinY" type="string">1869</merge>
        <merge key="input.x11_options.MaxX" type="string">59</merge>
        <merge key="input.x11_options.MaxY" type="string">125</merge>
                <merge key="input.x11_options.SwapY" type="string">1</merge>

                <merge key="input.x11_options.MoveLimit" type="string">40</merge>

                <!-- <merge key="input.x11_options.Calibrate" type="string">1</merge> -->

      </match>
  </device>
</deviceinfo>

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

This will be fixed in Intrepid, but unlikely for Hardy.

Changed in xorg:
importance: Undecided → Low
milestone: none → later
status: New → Confirmed
Bryce Harrington (bryce)
Changed in xorg-server:
milestone: later → intrepid-alpha-5
Revision history for this message
Bryce Harrington (bryce) wrote :

Probably this will be fixed as part of our input-hotplug enablement work.

Changed in xorg-server:
assignee: nobody → bryceharrington
status: Confirmed → Triaged
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The patch is already in Intrepid, closing as fixed.

Changed in xorg-server:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.