USB Gaming mouse not working

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

USB Gaming mouse not working

Postby DarkAge on Mon Jan 21, 2013 9:24 pm

Hello,

I have a sharkoon drakonia laser gaming mouse which does not work at all in linux mint 14. I have googled around and stumbled upon two answers.

1. Installing wine and installing the mouse software [Did not work, unless I did something wrong]
2. Recompiling the kernel

Now first of all, I am a complete noob with linux so I have no idea how to recompile a kernel without screwing anything up. Secondly I can't believe to fix a mouse issue I have to recompile the kernel, isnt there anything else I could do. Also if I do recompile the kernel and the mouse does start working, how will I be able to configure my mouse's buttons? It requires the drakonia configurator software, which is windows only and which I installed through wine and it didn't want to apply the settings to the mouse.

If anyone has a solution to this mouse problem please help me out. If recompiling the kernel is the only way, could someone please give me a step by step guide for my system on how to achieve this.

Here is some info.
Code: Select all
Kernel      : Linux 3.5.0-17-generic (x86_64)
Compiled      : #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012


Code: Select all
$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 0bc2:5031 Seagate RSS LLC FreeAgent GoFlex USB 3.0
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 19d2:0082 ZTE WCDMA Technologies MSM
Bus 001 Device 004: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 002 Device 004: ID 09da:9090 A4 Tech Co., Ltd XL-750BK Laser Mouse
Bus 002 Device 003: ID 04d9:a067 Holtek Semiconductor, Inc.

A4 Tech is the mouse I am using in the meantime. It has a laser problem so its barely usable. Holtek Semiconductor would seem to be the drakonia mouse.

Code: Select all
$ xinput --list --short
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ A4TECH USB Device                          id=10   [slave  pointer  (2)]
⎜   ↳ A4TECH USB Device                          id=11   [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)]
    ↳   USB Keyboard                             id=8   [slave  keyboard (3)]
    ↳   USB Keyboard                             id=9   [slave  keyboard (3)]
    ↳ Holtek USB Gaming Mouse                    id=12   [slave  keyboard (3)]

Holtek USB Gaming Mouse seems to be the drakonia mouse but reads it under keyboard.
DarkAge
Level 1
Level 1
 
Posts: 8
Joined: Sun Jan 20, 2013 6:44 pm

Linux Mint is funded by ads and donations.
 

Re: USB Gaming mouse not working

Postby bigj231 on Mon Jan 21, 2013 11:42 pm

Try turning off the computer, unplugging both mice, plugging the one you want back in, and reboot.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 684
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Re: USB Gaming mouse not working

Postby DarkAge on Tue Jan 22, 2013 8:01 am

Ah sorry I forgot to mention I have already tried multiple reboots/reconnects. All that happens is linux gets booted with the mouse pointer stuck in the center of the screen. I can't move the cursor. The led lights on the mouse are working and I have programmed the mouse buttons on windows for certain keyboard shortcuts. The mouse buttons work, it's just the cursor that doesn't move.
DarkAge
Level 1
Level 1
 
Posts: 8
Joined: Sun Jan 20, 2013 6:44 pm

Re: USB Gaming mouse not working

Postby bigj231 on Tue Jan 22, 2013 12:12 pm

You might have to edit your xorg.conf. It's been a while since I had to, but there are quite a few tutorials out there for it. Here's one I found: http://www.wikihow.com/Configure-X11-in-Linux. There are plenty more if you search on google.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 684
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Re: USB Gaming mouse not working

Postby DarkAge on Tue Jan 22, 2013 7:01 pm

I have been trying what you suggested however I have run into some problems.

When I run Xorg -configure it does not create xorg.conf in /etc/X11/ but says it is using one in /root/xorg.conf.new

Also what exactly would I need to edit in xorg.conf to get the mouse to work?
DarkAge
Level 1
Level 1
 
Posts: 8
Joined: Sun Jan 20, 2013 6:44 pm

Re: USB Gaming mouse not working

Postby bigj231 on Wed Jan 23, 2013 2:16 pm

Like I said previously. It's been a long time since I've had to edit my xorg.conf. So if what I tell you breaks your system, not my fault.
You need to look in the input section and add in the info that your previous xinput query shows you for your mouse. Set your mouse as a pointing device instead of a keyboard. Here is the X.org manual: http://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml. You will be modifying the inputdevice section
Also, look at where the current xorg.conf is located. That is where you need to put the new one. If there wasn't one there before, then it doesn't go there.

It seems that unless you made one, it doesn't exist by default. See this question on askubuntu: http://askubuntu.com/questions/4662/where-is-the-x-org-config-file-how-do-i-configure-x-there. Now, there is a better way to do it though. See the second answer in the link above, or just use the manual.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 684
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Re: USB Gaming mouse not working

Postby DarkAge on Wed Jan 23, 2013 9:04 pm

I found my xorg.conf file in /etc/X11. However according to what I have come to understand it bypasses the input device settings there because hot plugging is enabled by default.

I also found that custom .confs go into /usr/share/X11/xorg.conf.d/ one of which is 10-evdev.conf. InputClass is recommended when hotplugging is enabled instead of custom configs with InputDevice.

10-evdev.conf
Code: Select all
Section "InputClass"
    Identifier "evdev pointer catchall"
    MatchIsPointer "on"
    MatchDevicePatch "/dev/input/event*"
    Driver "evdev"
EndSection


I have tried changing identifier to the gaming mouse, and MatchUSBID to the gaming mouses' but it still reads it as keyboard.

I found the confs now I just need someone to help me out with what I need to write in them to force the mouse to read as a mouse.
DarkAge
Level 1
Level 1
 
Posts: 8
Joined: Sun Jan 20, 2013 6:44 pm

Re: USB Gaming mouse not working

Postby DarkAge on Sat Jan 26, 2013 6:56 am

Anyone have any ideas? I'm technically without a mouse..
DarkAge
Level 1
Level 1
 
Posts: 8
Joined: Sun Jan 20, 2013 6:44 pm

Re: USB Gaming mouse not working

Postby DarkAge on Sun Jan 27, 2013 11:40 am

Looking at cat /proc/bus/input/devices I realised something.

Code: Select all
I: Bus=0003 Vendor=04d9 Product=a067 Version=0110
N: Name="Holtek USB Gaming Mouse"
P: Phys=usb-0000:00:1d.0-1.7/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.0/input/input4
U: Uniq=
H: Handlers=sysrq kbd event4
B: PROP=0
B: EV=120013
B: KEY=e080ffdf01cfffff fffffffffffffffe
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=09da Product=9090 Version=0111
N: Name="A4TECH USB Device"
P: Phys=usb-0000:00:1d.0-1.8/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:1.0/input/input5
U: Uniq=
H: Handlers=sysrq kbd event5 js0
B: PROP=0
B: EV=12001f
B: KEY=4c37fff072ff32d bf54445600000000 c00000000000001 30c100b17c007 ffa67bfad951dfff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=ffffff01000701ff
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=09da Product=9090 Version=0111
N: Name="A4TECH USB Device"
P: Phys=usb-0000:00:1d.0-1.8/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:1.1/input/input6
U: Uniq=
H: Handlers=mouse0 event6
B: PROP=0
B: EV=17
B: KEY=ffff0000 0 0 0 0
B: REL=143
B: MSC=10


Ok first of all I have two mice connected. 'A4TECH USB Device' is the temporary mouse that I am using. The laser is screwed so it does not function properly and it has programmable buttons. Holtek USB Gaming Mouse is the mouse I am trying to get to work and it too has programmable buttons.

From what I have come to understand, the computer reads the mouse as 2 seperate devices. A mouse part (laser) and a keyboard part (programmable buttons). Therefore the A4TECH USB Device has two handlers, mouse0 and kbd. One for the movement of the cursor and one for the programmable buttons. As I have mentioned earlier the Holtek mouses' programmable buttons work, but the cursor does not move. According to cat /proc/bus/input/devices, for Holtek, the os detects only 1 component, the keyboard component of the mouse but not the laser component. There is only 1 handler, the kbd, but no mouse0 like with A4TECH.

Since I have only recently moved from windows to linux I am a noob at it. With windows this would be solved by installing the drivers for the mouse, however with linux I don't know how this would work.

From this analysis, would changing the xorg config have any affect? This seems to be a detection problem for the laser component of the mouse. If the os cant detect it, then what is there to configure?

Furthermore, even though A4TECH has a mouse0 and a kbd handler, it shows up under virtual core pointer in xinput. Technically, Holtek USB Gaming Mouse should also be under the core pointer category even though only 1 component seems to be detected. I guess the OS thinks of Holtek as a keyboard, whereas in A4TECH's case, it thinks of it as a mouse with a keyboard component.

Edit: According to lsusb the OS does detect the 2 components of the mouse, but according to xinput it only reads one of them.
DarkAge
Level 1
Level 1
 
Posts: 8
Joined: Sun Jan 20, 2013 6:44 pm

Re: USB Gaming mouse not working

Postby bigj231 on Mon Jan 28, 2013 1:30 am

It could be possible that the kernel is missing support for that particular mouse. Unfortunately, this caliber of question is beyond my limited skill. It seems like you are on the right track, and I wish I could help you more. :( I'll stay subscribed to this topic, so if you come up with more information, I might be able to help.

I would suggest googling for something along the lines of "add mouse handler usb device linux kernel" without the quotes. Other than that piece of advice, I've got nothing. Good luck with it, and let us know if you find out anything else.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 684
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 11 guests