Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396459

Summary: ~sys-fs/udev-171: mistake a mouse for a joystick
Product: Gentoo Linux Reporter: nobody <noreply>
Component: [OLD] Core systemAssignee: udev maintainers <udev-bugs>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description nobody 2011-12-29 21:58:23 UTC
udev create a symlink to my mouse and /dev/input/js0

Of course then, game like etqw mistake js0 for a joystick and try use it with unexpected result from a mouse :P

No joystick is plug in that computer.
The mouse is usb : 
ls /dev/input/by-id/
usb-045e_Microsoft_Internet_Keyboard_Pro-event-if01  usb-Microsoft_Microsoft®_SideWinder™_X3_Mouse-event-mouse
usb-045e_Microsoft_Internet_Keyboard_Pro-event-kbd   usb-Microsoft_Microsoft®_SideWinder™_X3_Mouse-mouse

This is a new mouse, so i'm not sure about other udev versions, but i've tried the 171-r2 & 171-r5

Just by its presence the /dev/input/js0 show a problem as i have 0 joystick, but xorg also see the mouse/joystick
[ 90339.278] (II) config/udev: Adding input device Microsoft Microsoft® SideWinder™ X3 Mouse (/dev/input/js0)


Reproducible: Always

Steps to Reproduce:
1. plug the mouse
2. run etqw
3. mistake a joystick presence with the mouse
4. Easy workaround (until next udev start or plugin/out the mouse) -> rm /dev/input/js0



emerge --info udev
Portage 2.1.10.37 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.12.2-r0, 2.6.38.7 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38.7-i686-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.1
Timestamp of tree: Thu, 29 Dec 2011 21:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.4.3-r3
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -mfpmath=sse"
DISTDIR="/mnt/faramir/distfiles"
EMERGE_DEFAULT_OPTS="--buildpkg --autounmask=n --jobs=4 --keep-going --quiet-build=n --accept-properties=-interactive"
FEATURES="assume-digests binpkg-logs buildpkg distcc distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org ftp://mirror.ovh.net/gentoo-distfiles http://gentoo.mirror.sdv.fr/  http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-Ol -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://faramir/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amarok audacious autoipd berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbase dbus declarative divx dri dts dvd dvdr dvdread embedded emboss encode exif extras fam fbsplash ffmpeg firefox flac fortran ftp gdbm gdu gif glitz gmedia gnome gpm gstreamer gtk hal hddtemp iconv imap ipod java javascript jpeg jpeg2k kdrive lame lcms ldap libcaca libnotify live lm_sensors logrotate lzo mad maildir matroska mdnsresponder-compat mikmod minizip mjpeg mng modplug modules moznomail moznoxft mp3 mp4 mp4live mpeg mpeg2 mplayer msn mudflap musepack nautilus ncurse ncurses network nfs nls nptl nptlonly nsplugin ntfs ogg openal opengl openmp pam pango pcre pdf png policykit ppds pppd python qt3support qt4 readline sdl sdl-image sensord session skins smp spell sql sqlite ssl startup-notification stream subtitles svg sysfs tcpd tga theora threads thunderbird tiff timidity truetype udev unicode usb v4l v4l2 vcd vdpau vlm vorbis webkit wma wmf wxwindows x264 x86 xcb xcomposite xine xinerama xml xorg xosd xulrunner xv xvid zip" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-fs/udev-171-r5 was built with the following:
USE="acl extras gudev hwdb keymap rule_generator -action_modeswitch -build -debug -edd -floppy -introspection (-selinux) -test"
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-01-18 00:40:35 UTC
Do you have this problem with >=sys-fs/udev-197-r2? If you do, reopen the bug. Thanks!
Comment 2 nobody 2013-01-18 08:30:55 UTC
I won't go past 171 udev version, that is still in tree.
So i cannot test with 197-r2

I suppose this one will never get fix.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-01-18 09:49:25 UTC
(In reply to comment #2)
> I won't go past 171 udev version, that is still in tree.
> So i cannot test with 197-r2

Bug 452556 -> The problems that blocked stabilization have been solved. Separate /usr is still supported. If you use uclibc, you can use 197-r3 and uclibc head and it is supported too. There is no reason to stick to 171 or switching to eudev other than a lot of FUD and the only thing they provide: 
Support for older kernels than 2.6.39. If you use higher kernel, nothing is stopping you from upgrading for test.

> 
> I suppose this one will never get fix.

You are right if you are sticking with 171 which will be removed after bug 452556 has been done. We don't have your hardware and setup to test the new version. If you don't plan on still testing it after reading this comment, you can change the status as RESOLVED, CANTFIX (or I'll do it after, depending on your reply here)
Comment 4 nobody 2013-01-18 19:22:28 UTC
It's ok don't worry, but i prefer stick to udev-171 and live with that bug.

And your solve isn't one anyway, just another test to see if upstream has fix that.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-01-19 19:22:20 UTC
(In reply to comment #4)
> It's ok don't worry, but i prefer stick to udev-171 and live with that bug.
> 
> And your solve isn't one anyway, just another test to see if upstream has
> fix that.

To track the changes between 171 and 197 regarding the code involved with your problem would be a task requiring hours for someone not knowing the code inside out. So it's not unreasonable to ask an user to test the current at all, heck, if you had filed this to upstream bugtracking system, they would have asked you the same!

197-r3 is stable now on amd64, and soon as rest of the arch's are done, 171 will be gone.
Comment 6 nobody 2013-01-19 21:57:49 UTC
(In reply to comment #5)
> To track the changes between 171 and 197 regarding the code involved with
> your problem would be a task requiring hours for someone not knowing the
> code inside out. So it's not unreasonable to ask an user to test the current
> at all, heck, if you had filed this to upstream bugtracking system, they
> would have asked you the same!
I never said it was unreasonable, just that for me, it's not an option.
And i know upstream would have force me to upgrade, but i didn't report this one upstream, but within my distro, as this version is still support by it.
You can at least grant me that by the time when i report this one, this was the case, even you are showing me it won't go long, and i was sure upstream have already drop support for that version.

Mr Suominen, you seems to make a mountain out of nothing, for a bug that i could easy workaround, and that i have agree & set cantfix myself, and already state you don't have to worry about it.
If by my french->english translate, i have upset you in some way, i'm sorry. It wasn't done for that. It was just a bug report for a minor annoyance.

If i upgrade udev, i will report its status (still bug or fix) with that newer version.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-01-19 22:01:18 UTC
(In reply to comment #6)
> one upstream, but within my distro, as this version is still support by it.

Sorry, but it's not supported anymore.

> If i upgrade udev, i will report its status (still bug or fix) with that
> newer version.

Thanks!