Skip to contentSkip to conversation

usb tablet working with linux/xfree86 guest in absolute mode

Qemu-devel Jim C. Brown 3 participants 4 messages Apr 14, 2006 – Apr 15, 2006

lore
Share & tools
lore
#0 lore raw

The tablet works with the evtouch driver.

To get this to work in a guest:

make sure you have support for usb hid and evdev in the kernel (or as modules).

make sure you have the devices /dev/input/event0 /dev/input/event1 ...
they might be called /dev/input/evdev0 etc

download the evtouch driver, and install the evtouch_drv.o to

	/usr/X11R6/lib/modules/input

	You can download the driver from
	http://www.stz-softwaretechnik.de/~ke/touchscreen/evtouch.html

Change the default mouse in XF86Config/xorgconfig:

Section "InputDevice"
Identifier "Mouse1"
Driver "evtouch"
Option "Protocol" "usb"
Option "Device" "/dev/input/event0"
Option "DeviceName" "touchscreen"
Option "SendCoreEvents"
Option "CorePointer"
Option "MinX" "0"
Option "MinY" "0"
Option "MaxX" "32767"
Option "MaxY" "32767"
Option "ReportingMode" "Raw"
EndSection

Sample working config is at http://jma-box.student.umd.edu:8080/XF86Config-4

Now restart the X server, and it should work.

Scrolling and the middle button don't seem to be supported by the driver.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#1 lore raw

Hi,

Quoted 1 line · Jim C. Brown

The tablet works with the evtouch driver.

Great work!

Quoted 2 lines

Scrolling and the middle button don't seem to be supported by the driver.

How about using the old ps2 for that (not disabling it completely, after all)?

Ciao,
Dscho

#2 lore raw
Quoted 8 lines · Johannes Schindelin

Hi,

Quoted 2 lines · Jim C. Brown

The tablet works with the evtouch driver.

Quoted 8 lines

Great work!

Quoted 2 lines

Scrolling and the middle button don't seem to be supported by the driver.

How about using the old ps2 for that (not disabling it completely, after all)?

The following patch (to the evtouch driver) enables both the middle button and scroll wheel:

http://www.cs.utexas.edu/users/aliguori/evtouch-middle-scroll.diff

I'll send it to the maintainer of evtouch and see if he'll include it for future versions.

Regards,

Anthony Liguori

Quoted 10 lines

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#3 lore raw
Quoted 11 lines · Anthony Liguori

The following patch (to the evtouch driver) enables both the middle button and scroll wheel:

http://www.cs.utexas.edu/users/aliguori/evtouch-middle-scroll.diff

I'll send it to the maintainer of evtouch and see if he'll include it for future versions.

Regards,

Anthony Liguori

Binary driver and sample config available at:

http://jma-box.student.umd.edu:8080/evtouch_drv.o
http://jma-box.student.umd.edu:8080/XF86Config-4

Note that you must have the Option "Emulate3Buttons" "off". Otherwise the middle button will not work.

Binary driver was compiled with X.org 6.8.2 but it works with XFree86 4.2.1

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.