[Ubuntu-zh] 求助!触摸屏
Zhengpeng Hou
zhengpeng-hou在ubuntu.com
星期日 一月 2 16:04:18 UTC 2011
1 你用的什么版本? 为什么还会有hal?
2 xinput应该以普通用户去执行.
2011/1/2 BX <btbxbob在gmail.com>:
> 我买了一个小的5.6寸触摸屏(tft屏幕+电阻触摸面板)
> 然后在第一次连接的时候,可以正常使用。
> xinput list返回结果中,有一个
> eGalax Inc. USB TouchController id=8 [slave pointer (2)]
> 于是用xinput set-int-prop 8 (后面忘了具体的)对其进行校准
> 然后将校准命令写进了/etc/X11/Xsession.d
> 重启后触摸屏失效。(在win7下确认触屏未损坏)
> 此时用xinput list返回结果变成
> ⎡ Virtual core pointer id=2 [master pointer (3)]
> ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
> ⎜ ↳ eGalax Inc. USB TouchController id=8 [slave pointer
> (2)] ***************
> ⎜ ↳ eGalax Inc. USB TouchController id=9 [slave pointer
> (2)] ***************
> ⎜ ↳ Microsoft Comfort Curve Keyboard 2000 id=11 [slave pointer (2)]
> ⎜ ↳ USB Optical Mouse id=12 [slave pointer (2)]
> ⎣ Virtual core keyboard id=3 [master keyboard (2)]
> ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
> ↳ Power Button id=6 [slave keyboard (3)]
> ↳ Power Button id=7 [slave keyboard (3)]
> ↳ Microsoft Comfort Curve Keyboard 2000 id=10 [slave keyboard (3)]
>
> 也就是多了一个触摸屏……用xinput test 8或者9都没有反应
> 在hal-device中查询:hal-device | grep -i "touch" -5
>
> 26: udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0_logicaldev_input'
> linux.hotplug_type = 2 (0x2) (int)
> linux.subsystem = 'input' (string)
> input.device = '/dev/input/event5' (string)
> input.product = 'eGalax Inc. USB TouchController' (string)
> button.has_state = false (bool)
> info.addons.singleton = { 'hald-addon-input' } (string list)
> info.subsystem = 'input' (string)
> info.product = 'eGalax Inc. USB TouchController' (string)
> info.udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0_logicaldev_input'
> (string)
> linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/input/input5/event5'
> (string)
> info.parent =
> '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0' (string)
> info.category = 'input' (string)
> info.capabilities = { 'input', 'button' } (string list)
> input.originating_device =
> '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0' (string)
> linux.device_file = '/dev/input/event5' (string)
>
> 83: udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0'
> linux.hotplug_type = 2 (0x2) (int)
> usb.configuration = 'USB TouchScreen' (string)
> info.linux.driver = 'usbtouchscreen' (string)
> linux.subsystem = 'usb' (string)
> info.subsystem = 'usb' (string)
> info.product = 'USB Vendor Specific Interface' (string)
> info.udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0'
> (string)
> usb.linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0' (string)
> usb.configuration_value = 1 (0x1) (int)
> usb.num_configurations = 1 (0x1) (int)
> usb.num_interfaces = 1 (0x1) (int)
> usb.device_class = 0 (0x0) (int)
>
> 84: udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial'
> info.vendor = 'D-WAV Scientific Co., Ltd' (string)
> usb_device.configuration = 'USB TouchScreen' (string)
> linux.hotplug_type = 2 (0x2) (int)
> linux.subsystem = 'usb' (string)
> info.linux.driver = 'usb' (string)
> usb_device.linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-2' (string)
> usb_device.configuration_value = 1 (0x1) (int)
> usb_device.num_configurations = 1 (0x1) (int)
> usb_device.num_interfaces = 1 (0x1) (int)
> usb_device.device_class = 0 (0x0) (int)
> usb_device.device_subclass = 0 (0x0) (int)
> usb_device.device_protocol = 0 (0x0) (int)
> usb_device.vendor_id = 3823 (0xeef) (int)
> usb_device.product_id = 1 (0x1) (int)
> usb_device.vendor = 'D-WAV Scientific Co., Ltd' (string)
> info.udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial' (string)
> info.subsystem = 'usb_device' (string)
> usb_device.product = 'eGalax TouchScreen' (string)
> usb_device.num_ports = 0 (0x0) (int)
> usb_device.max_power = 100 (0x64) (int)
> info.product = 'eGalax TouchScreen' (string)
> usb_device.device_revision_bcd = 256 (0x100) (int)
> usb_device.version = 1.1 (double)
> usb_device.speed = 1.5 (double)
> usb_device.linux.device_number = 2 (0x2) (int)
> usb_device.is_self_powered = false (bool)
> usb_device.can_wake_up = true (bool)
> usb_device.bus_number = 5 (0x5) (int)
> linux.device_file = '/dev/bus/usb/005/002' (string)
> linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-2' (string)
>
> 邮件内容比较长,感谢拨冗阅读。对于这种情况有没有什么提示?
> BX
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
关于邮件列表 ubuntu-zh 的更多信息