Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mouse not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
neoire
n00b
n00b


Joined: 15 Aug 2015
Posts: 5

PostPosted: Mon Aug 17, 2015 11:36 pm    Post subject: Mouse not working Reply with quote

Setup: X server with i3 as wm, nvidia card + driver from nvidia as well. Both mouse and keyboard are USB.

After starting X, everything seems to work, including keyboard. Mouse doesn't respond. Relevant line from logs:

Code:
[  4850.676] (II) config/udev: Adding input device Razer Razer DeathAdder (/dev/input/event0)
[  4850.676] (**) Razer Razer DeathAdder: Applying InputClass "evdev pointer catchall"
[  4850.676] (II) Using input driver 'evdev' for 'Razer Razer DeathAdder'
[  4850.676] (**) Razer Razer DeathAdder: always reports core events
[  4850.676] (**) evdev: Razer Razer DeathAdder: Device: "/dev/input/event0"
[  4850.810] (EE) evdev: Razer Razer DeathAdder: Unable to open evdev device "/dev/input/event0".
[  4850.810] (EE) PreInit returned 2 for "Razer Razer DeathAdder"
[  4850.810] (II) UnloadModule: "evdev"
[  4850.810] (II) config/udev: Adding input device Razer Razer DeathAdder (/dev/input/mouse0)
[  4850.810] (II) No input driver specified, ignoring this device.
[  4850.810] (II) This device may have been added with another device file.


After a few searches on Google, the only relevant solution was to set

Code:
CONFIG_USB_EHCI_TT_NEWSCHED=y


But that didn't work for me. I'm kind of lost as to where to go next for debugging. Suggestions?

Thanks in advance!
Geoff

Possibly relevant information. Listing /dev/input gives:

Code:
crw-rw---- 1 root input 13, 64 Aug 15 15:38 /dev/input/event0
crw-rw---- 1 root input 13, 65 Aug 15 15:38 /dev/input/event1
crw-rw---- 1 root input 13, 66 Aug 15 15:38 /dev/input/event2
crw-rw---- 1 root input 13, 67 Aug 15 15:38 /dev/input/event3
crw-rw---- 1 root input 13, 68 Aug 15 15:38 /dev/input/event4
crw-rw---- 1 root input 13, 69 Aug 15 15:38 /dev/input/event5
crw-rw---- 1 root input 13, 63 Aug 15 15:38 /dev/input/mice
crw-rw---- 1 root input 13, 32 Aug 15 15:38 /dev/input/mouse0

/dev/input/by-id:
total 0
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-046d_G11_Keyboard-event-kbd -> ../event3
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-046d_Gaming_Keyboard-event-if01 -> ../event2
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-046d_Gaming_Keyboard-event-kbd -> ../event1
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-Razer_Razer_DeathAdder-event-mouse -> ../event0
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-Razer_Razer_DeathAdder-mouse -> ../mouse0

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 Aug 15 15:38 pci-0000:00:1d.0-usb-0:1.3.1:1.0-event-kbd -> ../event1
lrwxrwxrwx 1 root root 9 Aug 15 15:38 pci-0000:00:1d.0-usb-0:1.3.1:1.1-event -> ../event2
lrwxrwxrwx 1 root root 9 Aug 15 15:38 pci-0000:00:1d.0-usb-0:1.3.4:1.0-event-kbd -> ../event3
lrwxrwxrwx 1 root root 9 Aug 15 15:38 pci-0000:00:1d.0-usb-0:1.6:1.0-event-mouse -> ../event0
lrwxrwxrwx 1 root root 9 Aug 15 15:38 pci-0000:00:1d.0-usb-0:1.6:1.0-mouse -> ../mouse0



emerge --info:

Code:
Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8159336 total,   5626432 free
KiB Swap:    8388600 total,   8388600 free
Timestamp of repository gentoo: Sat, 15 Aug 2015 18:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
TrogChurninator
n00b
n00b


Joined: 22 Aug 2015
Posts: 3

PostPosted: Sat Aug 22, 2015 11:01 am    Post subject: Reply with quote

I am currently running into the same problem. I too am using the nvidia-drivers and a Razer Deathadder as mouse, although other mice also don't seem to work.
Maybe interesting to note is that the live environment also has the same problem. I am new to Gentoo so it might be very possible that the problem entirely exists between keyboard and chair.

Things I tried:
Enabled "Improved Transaction Translator scheduling" in kernel
https://forums.gentoo.org/viewtopic-p-7168648.html
and to enable "CONFIG_USB_EHCI_TT_NEWSCHED=y"

Disabling OHCI in kernel as this is replaced by ITTS according to a source I fail to find again.

Tried different xorg.conf settings as suggested by
http://www.gentoo-wiki.info/HOWTO_Advanced_Mouse

Tried a whole bunch more kernel settings as suggested by the answer over here:
https://unix.stackexchange.com/questions/140634/razer-ouroboros-mouse-not-working
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6965

PostPosted: Sat Aug 22, 2015 2:21 pm    Post subject: Re: Mouse not working Reply with quote

neoire wrote:

Code:
[  4850.676] (II) config/udev: Adding input device Razer Razer DeathAdder (/dev/input/event0)
[  4850.676] (**) Razer Razer DeathAdder: Applying InputClass "evdev pointer catchall"
...
[  4850.676] (**) evdev: Razer Razer DeathAdder: Device: "/dev/input/event0"
[  4850.810] (EE) evdev: Razer Razer DeathAdder: Unable to open evdev device "/dev/input/event0".




Here's the logic:
- found mouse as /dev/input/event0
- applying mouse rules "evdev pointer catchall"
- /dev/input/even0 cannot work (i don't know myself why).


I think you can break this by modifying the "evdev pointer catchall" to not try to use anything, except the real mouse, as this event0 is not that good.
You need to find who provide this, and alter it to only works on the mouse itself.

As a blind guess, you can look into /etc/X11/xorg.conf.d/97-evdev.conf
In it, alter it so
Code:
        MatchDevicePath "/dev/input/event*"

No more match any event, but only the one you wish

Code:
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-Razer_Razer_DeathAdder-mouse -> ../mouse0


So a
Code:
        MatchDevicePath "/dev/input/mouse0"



This might solve your problem (well, more a workaround than a solve)
Back to top
View user's profile Send private message
TrogChurninator
n00b
n00b


Joined: 22 Aug 2015
Posts: 3

PostPosted: Sun Aug 23, 2015 12:41 pm    Post subject: Reply with quote

For me it doesn't seem to work, the error stays the same. I have tried both /event5 and /mouse0 (the two elements listed when I list /dev/input/by-id).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6965

PostPosted: Sun Aug 23, 2015 12:56 pm    Post subject: Reply with quote

Sorry about that (remember i said "might").

What you could do (if you're in mood to still follow bad advises), is deleting the bad link. You know they are just symlinks create by the dev manager?
So a little "rm input0" (not really input0, it's input0 for OP, dunno for you, but the one that is showing the problem), as long as you don't unplug and replug the mouse, dev manager will stay blind to it, and will not recreate them.

So a little rm, follow by running xorg, if the mouse works, you know better who to blame : dev manager or the device.

If you wish more help (if previous test works), reporting your dev manager (and version), would be next step.
But for dev manager trouble, bugzilla should be more appropriate then.
Back to top
View user's profile Send private message
TrogChurninator
n00b
n00b


Joined: 22 Aug 2015
Posts: 3

PostPosted: Sun Aug 23, 2015 1:31 pm    Post subject: Reply with quote

I appreciate any kind of advice, as I am already out of ideas and randomly flipping switches and pressing buttons :)

rm'ing mouse0 and/or event5 does not seem to change anything, even the Xlog seems to be the same, so either I didn't actually delete the symlinks (they do show op red when ls -l)

Guess I should try different mice as my options are running out. My thinking is that if it is a kernel (module) issue, the live CD shouldn't have the same problem. Is that the right assumption to make? Anyway, I hope OP has more success than I do.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6965

PostPosted: Sun Aug 23, 2015 1:51 pm    Post subject: Reply with quote

awwww, removing mouse0 symlink is certainly bad, it's not what i suggest you.

OP is reporting this:
[ 4850.810] (EE) evdev: Razer Razer DeathAdder: Unable to open evdev device "/dev/input/event0".

So the event0 (for him) is bad, but the mouse0 is not pointing at what event0 is pointing, and i suppose is pointing to the part that works (at least a part that xorg doesn't report as not working)
Code:
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-Razer_Razer_DeathAdder-event-mouse -> ../event0
lrwxrwxrwx 1 root root 9 Aug 15 15:38 usb-Razer_Razer_DeathAdder-mouse -> ../mouse0


I don't know if event5 is bad for you, but you should look at your xorg and see where it fail, but removing mouse0 is a proof you didn't get what i said correctly.

And the (they do show op red) is really not good too.
If you symlink A->B (so A is a symlink of B).
if you remove B: than you have no B, and A is now shown in red (the symlink is pointing to something dead)
if you remove A: than B is there, and there's just no A. That's what i suggest you, remove the symlink.

I'm unsure what you have done, but for me, i think you've done everything exactly the worster you could have done it ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum