You are not logged in.

#1 2014-11-15 14:52:44

codingTornado
Member
Registered: 2011-11-25
Posts: 5

A4Tech USB mouse detected as Joystick

I hope there isn't a duplicate to this, I couldn't find one, but my searching skills aren't exactly superb.

Hello, I'm trying to play FEZ on steam but the game is unplayable due to, what appears to be, my mouse being picked up as a joystick by steam.
Currently the game behaves as if the walk-left key was stuck, and loads as if a gamepad(which I don't have and there aren't any other input devices other than the keyboard or mouse) was plugged in.
Based on the console output from Dota2(which happily behaves <3 doto never fails me)

 Found joystick 'A4TECH USB Device' (03000000da0900006690000011010000), but no recognized controller configuration for it.

I found that the issue might be my USB mouse being detected as a joystick, and so I followed their suggestions to fix the issue with no results.

Things I tried:

  • Deleting the /dev/input/js0 that was being created, I gather, because of the mistaken id.(source)

  • Disabling via xinput everything A4TECH except for the one that actually allows me to use the mouse.(source)

  • Disabling via xinput the mouse and key events.(source)

xinput list output:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ A4TECH USB Device                         id=8    [slave  pointer  (2)]
⎜   ↳ A4TECH USB Device                         id=10   [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)]
    ↳ Webcam C170                               id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]
    ↳ A4TECH USB Device (keys)                  id=9    [slave  keyboard (3)]

Since steam is not officially supported for Arch I figured this would be the best place to come looking for help. Please, if you need any more information ask me.
Thank you

Offline

#2 2014-12-06 23:49:51

X-NicON
Member
Registered: 2013-02-27
Posts: 2

Re: A4Tech USB mouse detected as Joystick

Hi!
I use A4Tech mouse. With latest updates, appeared the same problem sad
Searching, I found a solution that helped me. you should also help.

I have a game FEZ, same problem. Games use /dev/input/event*. Removing unnecessary. the problem will be solved.
Yes, I understand that this is a hack, and not the normal fix.

The mouse is defined as 2 devices, the second we need to remove.

cat /proc/bus/input/devices

Find:

(...)
I: Bus=0003 Vendor=09da Product=8090 Version=0111
N: Name="A4Tech USB Full Speed"
P: Phys=usb-0000:00:13.5-2.4/input0
S: Sysfs=/devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2.4/1-2.4:1.0/0003:09DA:8090.003B/input/input70
U: Uniq=
H: Handlers=event2 mouse0 
B: PROP=0
B: EV=17
B: KEY=ffff0000 0 0 0 0
B: REL=143
B: MSC=10

I: Bus=0003 Vendor=09da Product=8090 Version=0111
N: Name="A4Tech USB Full Speed"
P: Phys=usb-0000:00:13.5-2.4/input1
S: Sysfs=/devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2.4/1-2.4:1.1/0003:09DA:8090.003C/input/input71
U: Uniq=
H: Handlers=sysrq kbd event3 js0 
B: PROP=0
B: EV=12001f
B: KEY=3007f 0 0 4c3ffff17aff32d bf54445600000000 c00000000000001 130c130b17c007 ffa67bfad951dfff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=ffffff01000701ff
B: MSC=10
B: LED=1f
(...)

     
as event3 and js0
If you remove event3 then the problem is solved. only until you reboot.

What attributes it has

udevadm info -a  /dev/input/event3

I chose and made a rule for udev:

cat /etc/udev/rules.d/52-a4tech.rules

SUBSYSTEM=="input", ATTRS{name}=="*A4Tech*", ATTRS{phys}=="*/input1", RUN+="/usr/bin/rm /dev/input/%k"

Use this rule and should all work. FEZ now works correctly.

more here
http://stackoverflow.com/questions/6990 … input-stre
https://bbs.archlinux.org/viewtopic.php?id=190485

Offline

#3 2015-03-24 16:39:10

alexzk
Member
Registered: 2014-11-02
Posts: 25

Re: A4Tech USB mouse detected as Joystick

Proposed solution above has 1 side effect - extra buttons of mouse will not work as programmed hmm

So...I made a trick, named my joystick in such a way ("input/event_0"), so it is alphabetically is BEFORE mouse (and therefore is used by steam etc...):

SUBSYSTEM=="input", ATTRS{name}=="*Microntek*", ATTRS{phys}=="*/input0", SYMLINK+="input/event_0"


(change Mircontek by your device string)

Offline

#4 2015-04-02 05:59:39

RandomNumber4
Member
Registered: 2014-10-06
Posts: 4

Re: A4Tech USB mouse detected as Joystick

X-NicON wrote:

SUBSYSTEM=="input", ATTRS{name}=="*A4Tech*", ATTRS{phys}=="*/input1", RUN+="/usr/bin/rm /dev/input/%k"

Thank you, it helped.

Offline

#5 2015-07-14 20:37:52

speccyfanatic
Member
Registered: 2015-07-14
Posts: 3

Re: A4Tech USB mouse detected as Joystick

Hi everyone.
I have an A4TECH G3-280A wireless mouse that has the same problem.
Initially I was mostly playing wine games, so it didn't bother me much, as I could just turn that "joystick" off in wine's control panel.
But back on topic of root cause smile
cat /proc/bus/input/devices :

(...)
I: Bus=0003 Vendor=09da Product=054f Version=0111
N: Name="A4TECH USB Device"
P: Phys=usb-0000:00:1d.0-1.8.1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1.8/6-1.8.1/6-1.8.1:1.0/0003:09DA:054F.0023/input/input49
U: Uniq=
H: Handlers=sysrq kbd js0 event2 
B: PROP=0
B: EV=12001f
B: KEY=3007f 0 0 4c3ffff17aff32d bf54445600000000 c00000000000001 130c130b17c007 ffa67bfad951dfff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=ffffff01000701ff
B: MSC=10
B: LED=1f
I: Bus=0003 Vendor=09da Product=054f Version=0111
N: Name="A4TECH USB Device"
P: Phys=usb-0000:00:1d.0-1.8.1/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1.8/6-1.8.1/6-1.8.1:1.1/0003:09DA:054F.0024/input/input50
U: Uniq=
H: Handlers=event3 mouse0 
B: PROP=0
B: EV=17
B: KEY=ffff0000 0 0 0 0
B: REL=103
B: MSC=10

So in my case udev line was a little different:

SUBSYSTEM=="input", ATTRS{name}=="*A4TECH*", ATTRS{phys}=="*/input0", RUN+="/usr/bin/rm /dev/input/%k"

Seems to be working nicely.

Offline

#6 2016-02-25 17:05:19

theringoffire
Member
Registered: 2014-01-25
Posts: 19

Re: A4Tech USB mouse detected as Joystick

This also applies for my Sharkoon FireGlider Mouse, that is / is seen as a A4.
Note the A4TECH upper case spelling and check the correct input number, 0 also in my case.

Offline

Board footer

Powered by FluxBB