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
XGALAGA(6x)															       XGALAGA(6x)

NAME
xgalaga - X11 version of the famous Galaga game SYNOPSIS
xgalaga [options] xgalaga-hyperspace [options] INSTRUCTIONS
It's Galaga, you know how to play Galaga, stop bothering me. (Ship follows the mouse, button fires. Auto-fire by holding it down, so no- one accuses me of breaking their mouse!) The xgalaga-hyperspace version features some new weapons and different gameplay. OPTIONS
-scores Prints out the high score file and exits -display host:dpy Set your display -mouse Use mouse control (same as 'm'). -keyboard Use keyboard control (same as 'k'). If you have a joystick it can also be used if you select keyboard control. -nosound Turn sound OFF -level lvl Choose starting level (>= 1) -window Run in a window, not full screen. Full screen is the default. -winsize widthxheight Set window size. -b Turn buffered mode off, use this if it runs too slowly. Will cause flicker, maybe lots, maybe only a little. KEYBOARD COMMANDS
p - pauses q - end this game Q - end xgalaga immediately b - Toggle buffering (flicker vs. speed.) m - Use mouse control. Note that you may switch in mid-game. k - Use keyboard control s - Toggle sound x - use your shields (xgalaga-hyperspace only) alt-enter - Toggle full screen node. AUTHORS
Joe Rumsey, <joe@rumsey.org> (Original author) Vincent Renardias <vincent@waw.com> (man page) 2.1 8 February 2008 XGALAGA(6x)
All times are GMT -4. The time now is 11:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy