Bug 99245 - 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 NOTOURBUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: 1.5.0
Hardware: Other All
: medium major
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-02 07:21 UTC by mehmet.giritli
Modified: 2017-01-03 01:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description mehmet.giritli 2017-01-02 07:21:44 UTC
I'm on a gentoo distro and 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 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. Switching back to synaptics+evdev resolves the issue. 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.


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
Comment 1 Peter Hutterer 2017-01-03 01:06:13 UTC
minor opcode is the one for XIChangeProperty, so this is an indication that your desktop environment (i.e. gdm) is trying to set a property in the libinput driver with an invalid value.

Unless there's a bug in the driver that an otherwise valid value is rejected I'm going to have to punt this to gnome, sorry.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.