Input Lags (Keyboard and Mouse) on Linux Mint 17.2 (x64)

masterxxxxxl

Reputable
Aug 22, 2015
26
0
4,540
Hello,
Since I installed Linux Mint, Keyboard and Mouse do feel kinda sluggish, compared to windows. Especially, in cs:go It's really annoying, because the whole input reaction is delayed to about 250ms, which is fatal in Multiplayer FPS games. I also tried to increase the mouse polling rate to 500mhz, but this didn't help at all. Is there a way to get rid of these lags?
 


Sorry, I forgot to add these infos.
Keyboard: Roccat Isku
Mouse: Gigabyte Gm-M6880

I am using both via USB

 
(1) In a terminal, open up '/etc/modprobe.d/modprobe.conf'. Inside this file, you'll want to make sure a line reads, "options usbhid mousepoll=1". This will make it poll every 1 ms (1000 Hz). You can also use, "options usbhid mousepoll=2" to poll every 2 ms (500 Hz). You'll then need to restart the computer for these changes to take effect.

(2) In CS:GO, make sure that "m_rawinput" is set to "1".
 


Like written above, I have already done this (To 500mhz, because this is maximum with my mouse, according to evhz.c). It increased the reaction speed of the mouse minimally, but this sluggishness is still feelable, also on The Keyboard.
In csgo, raw Input is enabled by default, at least it has always been enabled.
 
I meant 500hz of course, this is a typo, because my mouse isnt capable of 100hz, according to evhz.c, the polling's max is exactly 500hz with my mouse.
I am using Cinnamon and Disabled most effects besides the "Window Effects"
In csgo, I am using lowest graphical settings, if u meant that
 
Try to run the game at native resolution and gimp the graphics settings. Also, disable the window effects as they too can affect CS:GO performance.

One another note, could you paste the results of 'ps aux' and 'lsmod' ? This might help me/us pinpoint the problem.
 
Lowering the ingame settings and turning off all animations didnt help...

ps aux:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.2 0.0 33628 2932 ? Ss 13:57 0:01 /sbin/init
root 2 0.0 0.0 0 0 ? S 13:57 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 13:57 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 13:57 0:00 [kworker/0:0H]
root 7 0.3 0.0 0 0 ? S 13:57 0:01 [rcu_sched]
root 8 0.1 0.0 0 0 ? S 13:57 0:01 [rcuos/0]
root 9 0.1 0.0 0 0 ? S 13:57 0:00 [rcuos/1]
root 10 0.0 0.0 0 0 ? S 13:57 0:00 [rcuos/2]
root 11 0.0 0.0 0 0 ? S 13:57 0:00 [rcuos/3]
root 12 0.0 0.0 0 0 ? S 13:57 0:00 [rcuos/4]
root 13 0.0 0.0 0 0 ? S 13:57 0:00 [rcuos/5]
root 14 0.0 0.0 0 0 ? S 13:57 0:00 [rcuos/6]
root 15 0.0 0.0 0 0 ? S 13:57 0:00 [rcuos/7]
root 16 0.0 0.0 0 0 ? S 13:57 0:00 [rcu_bh]
root 17 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/0]
root 18 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/1]
root 19 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/2]
root 20 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/3]
root 21 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/4]
root 22 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/5]
root 23 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/6]
root 24 0.0 0.0 0 0 ? S 13:57 0:00 [rcuob/7]
root 25 0.0 0.0 0 0 ? S 13:57 0:00 [migration/0]
root 26 0.0 0.0 0 0 ? S 13:57 0:00 [watchdog/0]
root 27 0.0 0.0 0 0 ? S 13:57 0:00 [watchdog/1]
root 28 0.0 0.0 0 0 ? S 13:57 0:00 [migration/1]
root 29 0.0 0.0 0 0 ? S 13:57 0:00 [ksoftirqd/1]
root 31 0.0 0.0 0 0 ? S< 13:57 0:00 [kworker/1:0H]
root 32 0.0 0.0 0 0 ? S< 13:57 0:00 [khelper]
root 33 0.0 0.0 0 0 ? S 13:57 0:00 [kdevtmpfs]
root 34 0.0 0.0 0 0 ? S< 13:57 0:00 [netns]
root 35 0.0 0.0 0 0 ? S< 13:57 0:00 [writeback]
root 36 0.0 0.0 0 0 ? S< 13:57 0:00 [kintegrityd]
root 37 0.0 0.0 0 0 ? S< 13:57 0:00 [bioset]
root 38 0.0 0.0 0 0 ? S< 13:57 0:00 [kworker/u17:0]
root 39 0.0 0.0 0 0 ? S< 13:57 0:00 [kblockd]
root 40 0.0 0.0 0 0 ? S< 13:57 0:00 [ata_sff]
root 41 0.0 0.0 0 0 ? S 13:57 0:00 [khubd]
root 42 0.0 0.0 0 0 ? S< 13:57 0:00 [md]
root 43 0.0 0.0 0 0 ? S< 13:57 0:00 [devfreq_wq]
root 44 0.1 0.0 0 0 ? S 13:57 0:01 [kworker/0:1]
root 45 0.0 0.0 0 0 ? S 13:57 0:00 [khungtaskd]
root 46 0.0 0.0 0 0 ? S 13:57 0:00 [kswapd0]
root 47 0.0 0.0 0 0 ? SN 13:57 0:00 [ksmd]
root 48 0.0 0.0 0 0 ? SN 13:57 0:00 [khugepaged]
root 49 0.0 0.0 0 0 ? S 13:57 0:00 [fsnotify_mark]
root 50 0.0 0.0 0 0 ? S 13:57 0:00 [ecryptfs-kthre
root 51 0.0 0.0 0 0 ? S< 13:57 0:00 [crypto]
root 63 0.0 0.0 0 0 ? S< 13:57 0:00 [kthrotld]
root 65 0.1 0.0 0 0 ? S 13:57 0:00 [kworker/1:1]
root 84 0.0 0.0 0 0 ? S< 13:57 0:00 [deferwq]
root 85 0.0 0.0 0 0 ? S< 13:57 0:00 [charger_manage
root 128 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_0]
root 129 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_1]
root 130 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_2]
root 131 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_3]
root 132 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_4]
root 133 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_5]
root 136 0.0 0.0 0 0 ? S 13:57 0:00 [kworker/u16:4]
root 139 0.0 0.0 0 0 ? S 13:57 0:00 [kworker/u16:7]
root 140 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_6]
root 141 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_7]
root 148 0.0 0.0 0 0 ? S 13:57 0:00 [kworker/u16:8]
root 169 0.0 0.0 0 0 ? S 13:57 0:00 [scsi_eh_8]
root 170 0.0 0.0 0 0 ? S 13:57 0:00 [usb-storage]
root 206 0.1 0.0 0 0 ? S 13:57 0:00 [kworker/1:2]
root 265 0.0 0.0 0 0 ? S 13:57 0:00 [jbd2/sdb1-8]
root 266 0.0 0.0 0 0 ? S< 13:57 0:00 [ext4-rsv-conve
root 393 0.0 0.0 19472 652 ? S 13:57 0:00 upstart-udev-br
root 400 0.0 0.0 51756 1940 ? Ss 13:57 0:00 /lib/systemd/sy
root 454 0.0 0.0 0 0 ? S< 13:57 0:00 [edac-poller]
root 461 0.0 0.0 0 0 ? S< 13:57 0:00 [kmpathd]
root 462 0.0 0.0 0 0 ? S< 13:57 0:00 [kmpath_handler
root 469 0.0 0.0 0 0 ? S< 13:57 0:00 [kvm-irqfd-clea
root 496 0.0 0.0 0 0 ? S< 13:57 0:00 [hd-audio0]
root 499 0.0 0.0 0 0 ? S< 13:57 0:00 [hd-audio1]
root 586 0.0 0.0 15388 680 ? S 13:57 0:00 upstart-socket-
root 766 0.0 0.1 272696 7776 ? Ss 13:57 0:00 smbd -F
root 844 0.0 0.0 15272 628 ? S 13:57 0:00 upstart-file-br
syslog 868 0.0 0.0 255840 1404 ? Ssl 13:57 0:00 rsyslogd
message+ 914 0.0 0.0 39964 1976 ? Ss 13:57 0:00 dbus-daemon --s
root 917 0.0 0.0 17284 932 tty4 Ss+ 13:57 0:00 /sbin/getty -8
root 919 0.0 0.0 17284 944 tty5 Ss+ 13:57 0:00 /sbin/getty -8
root 926 0.0 0.0 17284 936 tty2 Ss+ 13:57 0:00 /sbin/getty -8
root 927 0.0 0.0 17284 932 tty3 Ss+ 13:57 0:00 /sbin/getty -8
root 930 0.0 0.0 17284 940 tty6 Ss+ 13:57 0:00 /sbin/getty -8
root 959 0.0 0.0 12780 948 ? Ss 13:57 0:00 anacron -s
root 976 0.0 0.0 4364 688 ? Ss 13:57 0:00 acpid -c /etc/a
root 980 0.0 0.0 19188 728 ? Ss 13:57 0:00 /usr/sbin/irqba
root 985 0.0 0.0 73220 3256 ? Ss 13:57 0:00 /usr/sbin/cups-
root 989 0.0 0.0 23652 1012 ? Ss 13:57 0:00 cron
root 1017 0.0 0.1 330232 6400 ? Ssl 13:57 0:00 /usr/sbin/Modem
root 1018 0.0 0.0 19292 1460 ? Ss 13:57 0:00 /usr/sbin/bluet
root 1037 0.0 0.0 0 0 ? S< 13:57 0:00 [krfcommd]
root 1129 0.0 0.0 134376 4176 ? Ss 13:57 0:00 mdm
avahi 1134 0.0 0.0 32344 1676 ? S 13:57 0:00 avahi-daemon: r
avahi 1137 0.0 0.0 32220 464 ? S 13:57 0:00 avahi-daemon: c
root 1143 0.0 0.0 194884 4528 ? S 13:57 0:00 mdm
root 1150 5.7 1.2 261132 76724 tty8 Ss+ 13:57 0:32 /usr/bin/X :0 -
root 1160 0.0 0.0 43448 1808 ? Ss 13:57 0:00 /lib/systemd/sy
root 1164 0.0 0.0 0 0 ? S 13:57 0:00 [kauditd]
root 1236 0.0 0.0 1053980 6100 ? Sl 13:57 0:00 /usr/sbin/conso
root 1303 0.0 0.0 281072 4880 ? Sl 13:57 0:00 /usr/lib/policy
root 1320 0.0 0.0 342152 5996 ? Ssl 13:57 0:00 NetworkManager
root 1351 0.0 0.0 272696 3428 ? S 13:57 0:00 smbd -F
root 1357 0.0 0.0 10228 3680 ? S 13:57 0:00 /sbin/dhclient
root 1375 0.0 0.0 189140 716 ? Ssl 13:57 0:00 /usr/lib/vmware
mdm 1408 0.0 0.0 24436 580 ? S 13:57 0:00 dbus-launch --a
mdm 1422 0.0 0.0 39112 1012 ? Ss 13:57 0:00 //bin/dbus-daem
root 1425 0.0 0.0 6968 564 ? Ss 13:57 0:00 /usr/bin/vmnet-
nobody 1433 0.0 0.0 32492 1504 ? S 13:57 0:00 /usr/sbin/dnsma
root 1473 0.0 0.0 6940 192 ? Ss 13:57 0:00 /usr/bin/vmnet-
root 1485 0.0 0.0 17124 5632 ? Ss 13:57 0:00 /usr/bin/vmnet-
root 1488 0.0 0.0 9612 1120 ? S 13:57 0:00 /usr/bin/vmnet-
root 1490 0.0 0.0 6940 196 ? Ss 13:57 0:00 /usr/bin/vmnet-
root 1501 0.0 0.0 17124 5632 ? Ss 13:57 0:00 /usr/bin/vmnet-
root 1518 0.0 0.0 30392 848 ? Ss 13:57 0:00 /usr/sbin/vmwar
kernoops 1527 0.0 0.0 37140 1004 ? Ss 13:57 0:00 /usr/sbin/kerne
root 1632 0.0 0.0 191444 2784 ? Ss 13:57 0:00 nmbd -D
root 1838 0.0 0.2 83676 12588 ? Ss 13:57 0:00 /usr/sbin/atiev
root 1866 0.0 0.0 22404 1584 ? Ss 13:57 0:00 /usr/bin/vmware
root 1914 0.0 0.0 17284 936 tty1 Ss+ 13:57 0:00 /sbin/getty -8
christo+ 1922 0.0 0.0 220388 3620 ? Sl 13:57 0:00 /usr/bin/gnome-
christo+ 1932 0.0 0.2 399496 12416 ? Ssl 13:57 0:00 cinnamon-sessio
christo+ 2449 0.0 0.0 10616 316 ? Ss 13:57 0:00 /usr/bin/ssh-ag
christo+ 2452 0.0 0.0 24436 580 ? S 13:57 0:00 /usr/bin/dbus-l
christo+ 2453 0.0 0.0 39744 1796 ? Ss 13:57 0:00 //bin/dbus-daem
christo+ 2542 0.0 0.0 337524 5316 ? Sl 13:57 0:00 /usr/lib/at-spi
christo+ 2546 0.0 0.0 39244 1876 ? S 13:57 0:00 /bin/dbus-daemo
christo+ 2549 0.0 0.0 124908 3256 ? Sl 13:57 0:00 /usr/lib/at-spi
christo+ 2560 0.1 0.4 990360 30308 ? Sl 13:57 0:00 /usr/lib/cinnam
christo+ 2569 1.5 0.1 445000 6468 ? S<l 13:57 0:08 /usr/bin/pulsea
rtkit 2571 0.0 0.0 168912 1276 ? SNl 13:57 0:00 /usr/lib/rtkit/
root 2580 0.0 0.0 239360 4516 ? Sl 13:57 0:00 /usr/lib/upower
christo+ 2643 0.0 0.0 193908 2960 ? Sl 13:57 0:00 /usr/lib/gvfs/g
christo+ 2647 0.0 0.0 345660 3120 ? Sl 13:57 0:00 /usr/lib/gvfs/g
christo+ 2803 0.0 0.0 296240 5344 ? Sl 13:57 0:00 /usr/lib/gvfs/g
root 2806 0.0 0.0 371956 5544 ? Sl 13:57 0:00 /usr/lib/udisks
christo+ 2816 0.0 0.0 283232 3320 ? Sl 13:57 0:00 /usr/lib/gvfs/g
christo+ 2821 0.0 0.0 197544 2764 ? Sl 13:57 0:00 /usr/lib/gvfs/g
christo+ 2825 0.0 0.0 209708 3336 ? Sl 13:57 0:00 /usr/lib/gvfs/g
colord 2829 0.0 0.1 301452 7696 ? Sl 13:57 0:00 /usr/lib/colord
christo+ 2843 0.0 0.0 388520 5388 ? Sl 13:57 0:00 /usr/lib/cinnam
christo+ 2848 0.0 0.3 241380 18600 ? Sl 13:57 0:00 /usr/bin/python
christo+ 2850 7.5 3.3 1702160 203548 ? Sl 13:57 0:41 cinnamon --repl
christo+ 2874 0.2 0.1 484888 9016 ? Sl 13:57 0:01 roccateventhand
christo+ 2875 0.0 0.1 227876 9036 ? Sl 13:57 0:00 /usr/lib/policy
christo+ 2876 0.8 0.9 1164316 55304 ? Sl 13:57 0:04 nemo -n
christo+ 2877 0.0 0.2 696440 16596 ? Sl 13:57 0:00 nm-applet
christo+ 2878 0.0 0.3 319088 18536 ? Sl 13:57 0:00 /usr/bin/python
christo+ 2993 0.0 0.0 54724 2832 ? S 13:57 0:00 /usr/lib/x86_64
christo+ 3012 0.0 0.2 241136 13748 ? Sl 13:57 0:00 /usr/bin/python
christo+ 3018 0.0 0.0 178304 2728 ? Sl 13:57 0:00 /usr/lib/dconf/
root 3023 0.0 0.0 287716 4252 ? Sl 13:57 0:00 /usr/lib/accoun
christo+ 3033 0.0 0.0 356672 3684 ? Sl 13:57 0:00 /usr/lib/gvfs/g
christo+ 3080 0.0 0.0 121784 2756 ? Sl 13:57 0:00 /usr/lib/gvfs/g
root 3164 0.0 0.0 74856 3784 ? Ss 13:57 0:00 /usr/sbin/cupsd
christo+ 3440 0.0 0.1 382212 9572 ? Sl 13:58 0:00 cinnamon-screen
christo+ 3441 0.0 0.0 25700 4860 ? S 13:58 0:00 /usr/bin/python
christo+ 3444 0.0 0.0 4440 400 ? S 13:58 0:00 sh -c /usr/lib/
christo+ 3445 0.1 0.6 567164 38324 ? Sl 13:58 0:00 /usr/bin/python
christo+ 3647 0.0 0.2 215852 17860 ? Sl 13:58 0:00 /usr/bin/python
christo+ 3804 0.1 0.3 615748 21664 ? Sl 13:58 0:00 gnome-terminal
christo+ 3827 0.0 0.0 14820 812 ? S 13:58 0:00 gnome-pty-helpe
christo+ 3829 0.0 0.0 24284 3916 pts/2 Ss 13:58 0:00 bash
christo+ 3963 9.3 5.8 1266712 358120 ? Sl 13:58 0:46 /usr/lib/firefo
root 4281 0.0 0.0 0 0 ? S< 13:58 0:00 [kworker/u17:2]
christo+ 4781 0.0 0.0 4440 400 ? S 13:59 0:00 sh -c STEAM_FRA
christo+ 4782 0.0 0.0 4440 396 ? S 13:59 0:00 /bin/sh /usr/ga
christo+ 4784 0.0 0.0 14188 1836 ? S 13:59 0:00 bash /home/chri
christo+ 4868 4.8 2.6 483980 161700 ? Sl 13:59 0:22 /home/christoph
christo+ 4887 0.0 0.8 134920 53448 ? S 13:59 0:00 /home/christoph
christo+ 4889 0.0 0.0 4440 632 ? S 13:59 0:00 sh -c "/home/ch
christo+ 4890 0.3 0.4 407852 29004 ? Sl 13:59 0:01 /home/christoph
christo+ 4892 0.0 0.1 132208 11032 ? S 13:59 0:00 /home/christoph
root 4906 0.0 0.0 0 0 ? S 13:59 0:00 [kworker/0:2]
root 5016 0.0 0.0 4440 396 ? S 13:59 0:00 sh -c /etc/ati/
root 5017 0.0 0.0 4440 640 ? S 13:59 0:00 /bin/sh /etc/at
christo+ 5053 0.0 0.3 194824 20172 ? Sl 13:59 0:00 /home/christoph
root 5262 0.0 0.0 4440 636 ? S 14:02 0:00 /bin/sh -c run-
root 5263 0.0 0.0 4332 608 ? S 14:02 0:00 run-parts --rep
root 5267 0.0 0.0 4440 684 ? S 14:02 0:00 /bin/sh /etc/cr
root 5318 0.0 0.0 4340 356 ? S 14:02 0:00 sleep 1648
root 5327 0.0 0.0 0 0 ? S 14:03 0:00 [kworker/u16:0]
root 5328 0.2 0.0 0 0 ? S 14:03 0:00 [kworker/1:0]
root 5411 0.0 0.0 0 0 ? S 14:06 0:00 [kworker/0:0]
christo+ 5414 0.0 0.0 19912 1268 pts/2 R+ 14:06 0:00 ps aux



lsmod:
Module Size Used by
vmnet 51269 13
vmw_vsock_vmci_transport 26278 0
vsock 34903 1 vmw_vsock_vmci_transport
vmw_vmci 62966 1 vmw_vsock_vmci_transport
vmmon 84056 0
rfcomm 69160 0
bnep 19624 2
bluetooth 391136 10 bnep,rfcomm
binfmt_misc 17468 1
joydev 17381 0
hid_roccat_isku 15061 0
hid_roccat 13485 1 hid_roccat_isku
hid_roccat_common 13791 1 hid_roccat_isku
snd_hda_codec_hdmi 46368 1
snd_hda_codec_realtek 65580 1
snd_hda_intel 56451 5
snd_hda_codec 192906 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 13602 1 snd_hda_codec
snd_pcm 102099 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
snd_seq_midi 13324 0
snd_seq_midi_event 14899 1 snd_seq_midi
ppdev 17671 0
snd_rawmidi 30144 1 snd_seq_midi
snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi
usbhid 52659 0
kvm_amd 59987 0
kvm 451552 1 kvm_amd
nvidia 8591811 53
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29482 2 snd_pcm,snd_seq
serio_raw 13462 0
dm_multipath 22873 0
snd 69322 21 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
scsi_dh 14882 1 dm_multipath
lp 17759 0
k10temp 13126 0
edac_core 62291 0
edac_mce_amd 22617 0
sp5100_tco 13979 0
i2c_piix4 22155 0
parport_pc 32701 1
parport 42348 3 lp,ppdev,parport_pc
mac_hid 13205 0
soundcore 12680 1 snd
shpchp 37032 0
dm_mirror 22135 0
dm_region_hash 20862 1 dm_mirror
dm_log 18411 2 dm_region_hash,dm_mirror
hid_generic 12548 0
hid 106148 5 hid_generic,hid_roccat_isku,usbhid
pata_acpi 13038 0
usb_storage 62209 0
nouveau 1097199 0
pata_atiixp 13271 0
floppy 69418 0
mxm_wmi 13021 1 nouveau
ttm 85150 1 nouveau
r8169 67581 0
video 19476 1 nouveau
mii 13934 1 r8169
i2c_algo_bit 13413 1 nouveau
drm_kms_helper 55071 1 nouveau
drm 303102 5 ttm,drm_kms_helper,nvidia,nouveau
ahci 25819 2
wmi 19177 2 mxm_wmi,nouveau
libahci 32716 1 ahci
 
Inside '/etc/modprobe.d/, there should be a file called "nvidia-graphics-drivers.conf". Paste the configuration here. It also seems that 'lsmod' returned that the nouveau drivers are loaded which shouldn't be the case.
 
Seems like there's no file On My Pc that's named like this. At least, "find" can't find it, I also ran it with su...
are you sure this is the correct file to look after? I installed the Proprietary Nvidia Driver, but the File is nowhere to find. I also searched for that filename specifically, without results.
 
Now nouveau is uninstalled, but I still experience this weird input delay. This didnt help, but at least it's safe to say that its not nouveau that's making these problems. I am now running completely on the nvidia driver.
 
easier way to diagnose this problem is to grab a generic usb mouse, which you can find pretty much anywhere like a second hand store for $1 (or borrow from a friend) and/or plug mouse into the PS/2 adapter/port and see if the issue still remains present.
 
Two quick questions: (a) how many USB 2 ports do you have?, and (b) how many USB 3 ports do you have? Could you share us the results from this perl script?:

START_HERE :: {
#!/usr/bin/perl
my @cmd = `lsusb -v`;
my $previous_line = '';
my $pattern = '0000.0000';
foreach (@cmd) {
if ( /$pattern/ ) {
if ( (! ($previous_line =~ /^#/)) && (! ($previous_line =~ /$pattern/)) ) {
print $previous_line;
}
} elsif (! ($previous_line =~ /$pattern/)) {
print $previous_line;
}
$previous_line = $_;
}
print $previous_line if not ($previous_line =~ /$pattern/);
} :: END HERE!
 
(a): I have 7 USB 2.0 Ports, (b) No USB 3 Ports.


results from the perl script:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ohci_hcd
iProduct 2 OHCI PCI host controller
iSerial 1 0000:00:14.5
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 2 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 002 Device 002: ID 15a4:1336 Afatech Technologies, Inc. SDHC/MicroSD/MMC/MS/M2/CF/XD Flash Card Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x15a4 Afatech Technologies, Inc.
idProduct 0x1336 SDHC/MicroSD/MMC/MS/M2/CF/XD Flash Card Reader
bcdDevice 1.00
iManufacturer 1 Generic
iProduct 2 Mass Storage Device
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:13.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Port 5: 0000.0503 highspeed power enable connect
Port 6: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ohci_hcd
iProduct 2 OHCI PCI host controller
iSerial 1 0000:00:13.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 3
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 2 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ohci_hcd
iProduct 2 OHCI PCI host controller
iSerial 1 0000:00:13.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 3
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 2 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:12.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 004 Device 003: ID ffc0:0040
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0xffc0
idProduct 0x0040
bcdDevice 0.00
iManufacturer 1 Mouse
iProduct 2 USB Laser Mouse
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 64
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0005 1x 5 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Bus 004 Device 002: ID 1e7d:319c ROCCAT
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1e7d ROCCAT
idProduct 0x319c
bcdDevice 1.00
iManufacturer 1 ROCCAT
iProduct 2 ROCCAT Isku
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 63
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 296
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ohci_hcd
iProduct 2 OHCI PCI host controller
iSerial 1 0000:00:12.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 3
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 2 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0103 power enable connect
Port 3: 0000.0303 lowspeed power enable connect
Device Status: 0x0001
Self Powered

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 3.13
iManufacturer 3 Linux 3.13.0-37-generic ohci_hcd
iProduct 2 OHCI PCI host controller
iSerial 1 0000:00:12.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 3
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 2 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Device Status: 0x0001
Self Powered
 
It seems that both devices are connected to the same base. Try to place them in different sections (e.g., mouse in USB port 1 and keyboard in USB port 7).

[update -- edit]
Damn, I forgot to add in the colorize module in the perl script I wrote ...
 
I put the mouse in another USB Port. It feels like the mouse movement is getting recognized faster, but the keyboard and mouseclicks still seem to get recognized delayed, at least in csgo, the shots and movement seem to be delayed heavily. At least thanks for this partial Success :)