Sponsored Content
Operating Systems Linux Evdev and joystick on passtrough,windows see it as mouse Post 303026183 by Linusolaradm1 on Wednesday 21st of November 2018 11:36:50 AM
Old 11-21-2018
Evdev and joystick on passtrough,windows see it as mouse

I have setup a working vm with gpu passtrough
To avoid the use of synergi(commercial) or double keyboard/mouse(sic!) I passtrough my three usb devices using EVDEV
Editing the vm I put those lines
Code:
  </devices>
  <qemu:commandline>
    <qemu:arg value='-object'/>
    <qemu:arg value='input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse'/>
    <qemu:arg value='-object'/>
    <qemu:arg value='input-linux,id=kbd1,evdev=/dev/input/by-id/usb-_USB_Keyboard-event-kbd,grab_all=on,repeat=on'/>
    <qemu:arg value='-object'/> 
    <qemu:arg value='input-linux,id=joypad1,evdev=/dev/input/by-id/usb-Logitech_Logitech_R__Precision_TM__Gamepad-event-joystick'/> 
  </qemu:commandline>


And i can swith between the machine with gpu and linux host simply use ctrlLEFT+ctrlright
Mouse work..
Keyboard too...
But joystick not..is recognized as hid mouse(sic!),if I pass it using spice is recognized as joypad(which is good).
Why?
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Building a better mouse trap, or How many lines of code does it take to trap a mouse?

Hello all, I'm hoping to get a little insight from some of the wily veterans amongst you. I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
Discussion started by: mph
4 Replies

2. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

3. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

4. Linux

Vga passtrough with only one monitor,is possible?

I have one monitor,two vga cards,one is nvidia(host) the other ati rs450(guest),I use this script for use a vm windows with a native gpu(the ati rs450) I see this video and seems to be possible using only one monitor,but I don't understand how to do The video QEMU VGA passthrough without a... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

5. Linux

Vfio passtrough gpu, a question about hdmi

The situation videocard n°1 Nvidia Ge-force(used on host linux) videocard n°2 Ati radeon(used on guest windows 7) host is Slackware 14.2,kernel 4.18.15 I had set vfio to pass a ati card to windows7 guest Configure /etc/modprobe.d/vfio.conf options vfio-pci... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies
input-linux-mouse(7)							GGI						      input-linux-mouse(7)

NAME
input-linux-mouse - Direct mouse input SYNOPSIS
input-linux-mouse: [<mousetype>] [,<file>] [,[b<bauds>][r<rts>][d<dtr>]] DESCRIPTION
This input opens a file (usually a device file or pipe) and reads mouse protocol data from it. OPTIONS
mousetype Indicates what type of mouse is attached. The following types are supported: o ms, Microsoft : Two button Microsoft compatible mice. o ms3, IntelliMouse, mman+ : Serial Intellimouse or compatible. Supports four buttons for mice like the Logitech MouseMan+. o MouseSystems, msc : MouseSystems compatible (used in most 3-button mice). o Logitech, logi : Used in older Logitech serial mice. o mm, MMSeries : MM series mice. o Sun : Sun mice. The protocol is the same as 'msc' protocol except it used only 3 bytes per packet. o MouseMan, mman : MouseMan protocol. o BusMouse, bm : Non-PS/2 busmice. o LinuxUSB, lnxusb : IMPS2 that doesn't choke on USB (no init attempted). o ps2, PS/2 : PS/2 mice (most non-serial mice use this protocol) o imps2, IMPS/2 : PS/2 IntelliMouse and compatible (not USB, see lnxusb for that.) o mmanps2, MouseManPlusPS/2 : PS/2 Logitech MouseMan+ and compatible. Most of the strings supported by GPM, SVGAlib and XFree can be specified. If you find one that isn't, please report. The special value auto tells input-linux-mouse to read ~/.ggi/input/linux-mouse, and if that fails, $sysconfdir/ggi/input/linux- mouse. If none of the two files are found, input-linux-mouse tries to auto-detect the mouse, and as a last resort uses the mouse information specified in /etc/vga/libvga.config. file The file to read mouse protocol data from; defaults to /dev/mouse. baud Baud rate of mouse device. rts Turns off RTS if set to 0; turns RTS on if set to a number greater than 0. dtr Turns off DTR if set to 0; turns DTR on if set to a number greater than 0. FEATURES
o Generates evPtr* events. FILES
~/.ggi/input/linux-mouse and $sysconfdir/ggi/input/linux-mouse consists of the following entries: mouse mousetype mdev file where mousetype and file has the same semantics as the invocation options of the same names. libgii-1.0.x 2003-08-11 input-linux-mouse(7)
All times are GMT -4. The time now is 08:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy