Bug 1324910

Summary: xsetmode device not found
Product: Red Hat Enterprise Linux 6 Reporter: Martin Krajnak <mkrajnak>
Component: xorg-x11-server-utilsAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8CC: tpelka
Target Milestone: rcKeywords: FastFix
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-26 04:36:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Krajnak 2016-04-07 14:43:53 UTC
Description of problem:
xsetmode is unable to set mode of a touch screen device.
Command refuses any device name from input devices list.

Version-Release number of selected component (if applicable):
xorg-x11-server-utils-7.7-14.el6.x86_64
kernel-2.6.32-637.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.run xsetpointer -l
2.copy the name of a touch screen device (in my case "QUANTA OpticalTouchscreen")
3.run xsetmode "QUANTA OpticalTouchscreen" RELATIVE

Actual results:
Extended device QUANTA OpticalTouchscreen not found

Expected results:
should set selected mode without errors

Additional info:
xinput --set-mode "QUANTA OpticalTouchscreen" RELATIVE
works on the same system.

Failed test case for xsetmode.

Comment 1 Peter Hutterer 2016-10-26 04:19:30 UTC
Cause here is that xsetmode checks for the device XI 1.x 'use' field, but only allows IsXExtensionDevice. Since xorg server 1.4 or so, pointer devices have a use field of IsXExtensionPointer. Since then, xsetmode has not worked and it has since been retired upstream.

https://cgit.freedesktop.org/xorg/app/xsetmode/commit/?id=62d6775725efa06fe8c504b28b3a614598e67c5c

Since xsetmode has not been working for all of RHEL6, this is not something that will be fixed. As noted, xinput set-mode is the equivalent command that works and is maintained.

Comment 2 RHEL Program Management 2016-10-26 04:36:03 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.