Hi, I have a Dell 9500 XPS machine equipped with this touchpad: I: Bus=0011 Vendor=0002 Product=0001 Version=0063 N: Name="PS/2 Logitech Wheel Mouse" P: Phys=isa0060/serio1/input0 S: Sysfs=/devices/platform/i8042/serio1/input/input4 U: Uniq= H: Handlers=mouse0 event3 B: PROP=1 B: EV=7 B: KEY=70000 0 0 0 0 B: REL=3 It is being recognized as a mouse (I guess by the kernel itself, or by something weird in udev?) and this causes X to recognize it as a mouse and not a touchpad. Related lines in dmesg: [ 0.336074] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 0.336076] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 0.345968] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 [ 0.867212] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x0f5002) [ 0.867748] psmouse serio1: elantech: elantech_send_cmd query 0x02 failed. [ 0.867750] psmouse serio1: elantech: failed to query capabilities. [ 1.248790] input: PS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input4 I tried browsing for similar issues and I saw the following notes: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1882388 Reproducible: Always $ uname -a Linux tardis 5.8.6-gentoo #2 SMP Fri Sep 4 14:27:07 CEST 2020 x86_64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz GenuineIntel GNU/Linux $ emerge --info Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r6, 5.8.6-gentoo x86_64) ================================================================= System uname: Linux-5.8.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-10750H_CPU_@_2.60GHz-with-gentoo-2.7 KiB Mem: 32628404 total, 30221776 free KiB Swap: 131071996 total, 131071996 free Timestamp of repository gentoo: Fri, 04 Sep 2020 06:30:01 +0000 Head commit of repository gentoo: a0eea86567ed026fae76889f67f72608725e5435 sh bash 5.0_p18 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 ccache version 3.7.11 [disabled] app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo dev-util/ccache: 3.7.11::gentoo dev-util/cmake: 3.16.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.33.1-r1::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 sublime-text location: /var/lib/layman/sublime-text masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.leaseweb.com/gentoo/" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j12" PKGDIR="/var/cache/binpkgs" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi activities alsa amd64 archive arts async bash-completion berkdb branding bzip2 cairo cardbus cli crypt cryptsetup css cups curlwrappers dbus declarative dell dga dhcp directfb djbfft dri dts dvb dvd dvdr elogind emboss encode exif fat fbcon fbsplash fftw flac foomaticdb fortran fpx ftp gdbm gif glibc-omitfp gnutls gphoto2 gpm gs gtk gui gzip hostonly hpn hybrid-auth iconv icq icu idea ieee1394 imagemagick imap ios ipod iproute2 ipv6 irda jabber javascript john jpeg jpeg2k jumbo-build kde kipi kpathsea kwallet lapack laptop lcdfilter libglvnd libnotify libtirpc lilo lm_sensors mad mbox messages mime mmap mmx mmxext mng mozilla mp3 mp4 mpeg mplayer msn multilib mysqli nagios-dns ncurses nls nocd nptl nsplugin ntfs ntlm nvidia octave ogg opengl optimization optimized-qmake oscar pam pango pcapnav pcmcia pcntl pcre pda pdf perl phonon plasma pm-utils png policykit posix ppds pulseaudio python qml qt5 radius rdesktop readline replytolist samba scanner seccomp semantic-desktop sharedmem silc slp sms sockets sox spell split-usr sse sse2 sse3 sse4 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg sysfs sysvipc tcpd threads tiff truetype udev udisks uefi unicode upower usb userlocales v4l v4l2 vcd vorbis widgets wifi winbind wps wxwidgets x264 xcb xcomposite xml xmlrpc xv xvid xvmc yahoo zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics libinput v4l" 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="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="i965 intel iris 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This sounds like a misconfigured kernel (missing a driver or 2 or 3), can you reproduce the problem with a generic kernel like gentoo-kernel-bin-5.8.6? I somewhat doubt that there is a real bug here, and think it's even much less likely that there would be anything to fix for gentoo maintainers.
*** Bug 740368 has been marked as a duplicate of this bug. ***
Created attachment 658386 [details] config
Please have a look at the config file, maybe I indeed forgot something, there's always some quirk to learn :-) but I doubt this: [ 0.867212] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x0f5002) [ 0.867748] psmouse serio1: elantech: elantech_send_cmd query 0x02 failed. [ 0.867750] psmouse serio1: elantech: failed to query capabilities. Is the result of something missing... if you have suggestions, I'm all ears.
Please try a generic kernel, if it works there then the dmesg output can be very enlightening as to what bus & drivers are used
(In reply to Ben Kohler from comment #5) > Please try a generic kernel, if it works there then the dmesg output can be > very enlightening as to what bus & drivers are used Sorry to report, no change: $ dmesg | grep serio [ 1.147969] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 1.147980] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 1.149709] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 [ 1.662856] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x0f5002) [ 1.666038] psmouse serio1: elantech: elantech_send_cmd query 0x02 failed. [ 1.668602] psmouse serio1: elantech: failed to query capabilities. [ 6.826855] input: PS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input4
Please share the full dmesg output, not a grep
Created attachment 658392 [details] dmesg from my kernel config
Created attachment 658396 [details] dmesg from default kernel
(In reply to Stefano from comment #9) > Created attachment 658396 [details] > dmesg from default kernel What is this "default kernel"? Is this just vanilla-sources built from your own config?
(In reply to Ben Kohler from comment #10) > (In reply to Stefano from comment #9) > > Created attachment 658396 [details] > > dmesg from default kernel > > What is this "default kernel"? Is this just vanilla-sources built from your > own config? it's this: sys-kernel/gentoo-kernel-bin-5.8.6:5.8.6::gentoo USE="initramfs -test" 0 KiB isn't this what you asked me to test?
[ 1.474582] input: DELL097D:00 04F3:311C Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-DELL097D:00/0018:04F3:311C.0001/input/input6 # CONFIG_I2C_DESIGNWARE_PCI is not set
(In reply to Ben Kohler from comment #12) > [ 1.474582] input: DELL097D:00 04F3:311C Touchpad as > /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-DELL097D:00/0018: > 04F3:311C.0001/input/input6 > > > > # CONFIG_I2C_DESIGNWARE_PCI is not set Thanks, I had noticed that different line while going through it (thanks for the advice btw!), and tried enabling that option, but apparently there is also something else, because it does not produce the same result. I'll keep looking, but if you have any further suggestions I'd appreciate them.
Created attachment 658406 [details] Working config Adding a couple of other options finally fixed the issue.