Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602258 - switching to libinput crashes gnome-shell for touchpad input on laptop
Summary: switching to libinput crashes gnome-shell for touchpad input on laptop
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-10 15:16 UTC by Mehmet Giritli
Modified: 2017-01-31 18:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mehmet Giritli 2016-12-10 15:16:18 UTC
I can not get gnome or even gdm started since I get a segfault for gnome-session. I traced the issue down to libinput switch from synaptics. This is what I see in journal:

Dec 10 17:33:55 frodo gnome-session-binary[472]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec 10 17:33:55 frodo org.gnome.Shell.desktop[495]: Current serial number in output stream:  259
Dec 10 17:33:55 frodo org.gnome.Shell.desktop[495]: Serial number of failed request:  258
Dec 10 17:33:55 frodo org.gnome.Shell.desktop[495]: Value in failed request:  0x12c
Dec 10 17:33:55 frodo org.gnome.Shell.desktop[495]: Minor opcode of failed request:  57 ()
Dec 10 17:33:55 frodo org.gnome.Shell.desktop[495]: Major opcode of failed request:  131 (XInputExtension)
Dec 10 17:33:55 frodo org.gnome.Shell.desktop[495]: X Error of failed request:  BadValue (integer parameter out of range for operation)
 


In the Xorg logs I see: (I suspect that "no resolution or size hints, assuming a size of 69x50mm" could be a hint, but I dont really know)

    38.393] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/event9)
[    38.393] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "libinput touchpad catchall"
[    38.393] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 22 paused 0
[    38.393] (II) Using input driver 'libinput' for 'AlpsPS/2 ALPS GlidePoint'
[    38.394] (**) AlpsPS/2 ALPS GlidePoint: always reports core events
[    38.394] (**) Option "Device" "/dev/input/event9"
[    38.394] (**) Option "_source" "server/udev"
[    38.394] (II) input device 'AlpsPS/2 ALPS GlidePoint', /dev/input/event9 is tagged by udev as: Touchpad
[    38.395] (II) AlpsPS/2 ALPS GlidePoint: no resolution or size hints, assuming a size of 69x50mm
[    38.395] (II) input device 'AlpsPS/2 ALPS GlidePoint', /dev/input/event9 is a touchpad
[    38.395] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input8/event9"
[    38.395] (II) XINPUT: Adding extended input device "AlpsPS/2 ALPS GlidePoint" (type: TOUCHPAD, id 10)
[    38.396] (**) Option "AccelerationScheme" "none"
[    38.396] (**) AlpsPS/2 ALPS GlidePoint: (accel) selected scheme none/0
[    38.396] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration factor: 2.000
[    38.396] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration threshold: 4
[    38.397] (II) input device 'AlpsPS/2 ALPS GlidePoint', /dev/input/event9 is tagged by udev as: Touchpad
[    38.397] (II) AlpsPS/2 ALPS GlidePoint: no resolution or size hints, assuming a size of 69x50mm
[    38.397] (II) input device 'AlpsPS/2 ALPS GlidePoint', /dev/input/event9 is a touchpad
[    38.397] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/mouse0)
[    38.398] (II) No input driver specified, ignoring this device.
[    38.398] (II) This device may have been added with another device file.


I have: 

dev-libs/libinput
      Latest version available: 1.5.2
      Latest version installed: 1.5.2

x11-drivers/xf86-input-libinput
      Latest version available: 0.22.0
      Latest version installed: 0.22.0


libinput-list-devices gives:

Device:           AlpsPS/2 ALPS GlidePoint
Kernel:           /dev/input/event9
Group:            5
Seat:             seat0, default
Size:             73.07x51.13mm
Capabilities:     pointer 
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: enabled
Calibration:      n/a
Scroll methods:   *edge 
Click methods:    none
Disable-w-typing: enabled
Accel profiles:   none
Rotation:         n/a



emerge info:
Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.22-r4, 4.8.12-gentoo-r1-frodo.giritli.eu x86_64)
=================================================================
System uname: Linux-4.8.12-gentoo-r1-frodo.giritli.eu-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-gentoo-2.2
KiB Mem:     4008492 total,   2440832 free
KiB Swap:   18354932 total,  18354932 free
Timestamp of repository gentoo: Fri, 09 Dec 2016 09:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::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: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /mnt/autofs/mordor-portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

rion
    location: /var/lib/layman/rion
    masters: gentoo
    priority: 0

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 1

Mehmet-s-Repo
    location: /Dropbox/local_portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 googleearth AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 Oracle-BCLA-JavaSE google-talkplugin skype-4.0.0.7-copyright Google-TOS AdobeFlash-11.x MakeMKV-EULA LastPass google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -ggdb"
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/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="-O2 -pipe -march=core2 -ggdb"
DISTDIR="/usr/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/mtmp"
USE="64bit X a52 aac acl acpi alsa amd64 applet aspell bash-completion beagle berkdb bidi bluetooth bluray branding brasero bzip2 cairo ccache cdda cddax cddb cdr cdrom cdrtools cli colord cpufreq cracklib crypt css cups cxx dbus deskbar dga dhcpcd disk-partition dri dtmf dts dvd dvdnav dvdr dvi dvipdfm eds egl emboss encode evo exif extra faac faad fam fbcon fbcondecor ffmpeg firefox flac galago gdbm gif gles2 gnome gnome-keyring gnome-online-accounts gnutls google gpm gps graphics gstreamer gtk gtk3 h323 hal hddtemp iconv icu inotify introspection ipv6 java java6 javascript jingle jpeg jpeg2k kpathsea laptop lcms libav libnotify libsecret mad matroska mmx mmxext mng modemmanager modules mp3 mp4 mpeg multilib musicbrainz nautilus ncurses networkmanager nfs nls nptl nsplugin offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pstricks pulseaudio python qt3 qt3support qt4 readline samba science sdl seccomp sendto session smp sms speex spell sqlite sse sse2 ssl startup-notification svg systemd tcpd theora threads tiff totem tracker truetype udev udisks unicode upnp-av upower usb v4l v4l2 vala vdpau vim-syntax vorbis wav wavpack wifi wmf wps wxwidgets x264 xattr xcb xml xv xvid zemberek zeroconf zip 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="ssse3 sse sse2 mmx sse4_1" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="tr en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2016-12-31 13:19:18 UTC
What is your x11-drivers/xf86-input-libinput? This looks to me like a libinput bug
Comment 2 Mehmet Giritli 2017-01-02 07:07:54 UTC
(In reply to Pacho Ramos from comment #1)
> What is your x11-drivers/xf86-input-libinput? This looks to me like a
> libinput bug

As I already mention in the report, 

I have: 

dev-libs/libinput
      Latest version available: 1.5.2
      Latest version installed: 1.5.2

x11-drivers/xf86-input-libinput
      Latest version available: 0.22.0
      Latest version installed: 0.22.0

I'm thinking about reporting this upstream as well...
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2017-01-02 14:29:18 UTC
(In reply to Mehmet Giritli from comment #2)
> (In reply to Pacho Ramos from comment #1)
> > What is your x11-drivers/xf86-input-libinput? This looks to me like a
> > libinput bug
> 
> As I already mention in the report, 
> 
> I have: 
> 
> dev-libs/libinput
>       Latest version available: 1.5.2
>       Latest version installed: 1.5.2
> 
> x11-drivers/xf86-input-libinput
>       Latest version available: 0.22.0
>       Latest version installed: 0.22.0
> 
> I'm thinking about reporting this upstream as well...

Please sync your tree and see if 1.5.3 and 0.23.0 fix your issues.
Comment 4 Matt Turner gentoo-dev 2017-01-26 00:06:14 UTC
Any update?
Comment 5 N. Andrew Walsh 2017-01-31 17:35:40 UTC
I may have a related issue. After upgrading xf86-input-libinput, I get the following error in my Xorg.0.log:

[  5711.285] (II) config/udev: Adding input device Kensington      Kensington Expert Mouse (/dev/input/mouse1) 
[  5711.285] (II) No input driver specified, ignoring this device. 
[  5711.285] (II) This device may have been added with another device file. 
[  5711.381] (II) config/udev: Adding input device Kensington      Kensington Expert Mouse (/dev/input/event18) 
[  5711.381] (**) Kensington      Kensington Expert Mouse: Applying InputClass "evdev pointer catchall" 
[  5711.381] (**) Kensington      Kensington Expert Mouse: Applying InputClass "libinput pointer catchall" 
[  5711.381] (II) LoadModule: "libinput" 
[  5711.381] (II) Loading /usr/lib64/xorg/modules/input/libinput_drv.so 
[  5711.381] (II) Module libinput: vendor="X.Org Foundation" 
[  5711.381]    compiled for 1.18.4, module version = 0.23.0 
[  5711.381]    Module class: X.Org XInput Driver 
[  5711.381]    ABI class: X.Org XInput driver, version 22.1 
[  5711.381] (EE) libinput: module ABI major version (22) doesn't match the server's version (24) 
[  5711.381] (II) UnloadModule: "libinput" 
[  5711.381] (II) Unloading libinput 
[  5711.381] (EE) Failed to load module "libinput" (module requirement mismatch, 0) 

I just synced, though, so I'll report back if the error persists.
Comment 6 Matt Turner gentoo-dev 2017-01-31 17:38:09 UTC
> [  5711.381] (EE) libinput: module ABI major version (22) doesn't match the server's version (24) 

Please reemerge xf86-input-libinput. It seems to be compiled against an older xorg-server ABI.
Comment 7 N. Andrew Walsh 2017-01-31 17:58:08 UTC
yup, that fixed my issue. Sorry, false alarm :(
Comment 8 Matt Turner gentoo-dev 2017-01-31 18:44:43 UTC
Okay, thanks for confirming. Strange that it wasn't automatically rebuilt on xorg-server upgrade.