Bug 1399371

Summary: mouse control disabled after installing xorg-x11-drv-libinput
Product: [Fedora] Fedora Reporter: customercare
Component: control-centerAssignee: Control Center Maintainer <control-center-maint>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 24CC: bnocera, control-center-maint, customercare, fmuellner, hdegoede, klember, leigh123linux, mkasik, ofourdan, peter.hutterer, rstrode, tiagomatos
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 19:22:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description customercare 2016-11-28 21:58:24 UTC
Description of problem:

with the cinnamon update today, libinput got installed and TOOK OVER mouse control, which has unwanted sideeffects as ...

the mousewheel is now upsidedown,
the mouse accelerationcontrols are gone, 
mouse gnome-mouse-prefs are not working,
accuracy of the mouse movements if gone to warpspeeds..

Not very plesant to work with atm.

Deinstallating libinput is not an option, as it wanst to deinstall cinnamon entirely :(

How can i get rid of libinput ?

Version-Release number of selected component (if applicable):

xorg-x11-drv-libinput-0.19.0-2.fc24.x86_64 



Additional info:

'ImPS/2 BYD TouchPad' is really a ps/2 mouse, not a touchpad.


BEFORE LIBINPUT props:

$ xinput list-props 11
Device 'ImPS/2 BYD TouchPad':
    Device Enabled (151):    1
    Coordinate Transformation Matrix (153):    1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (278):    0
    Device Accel Constant Deceleration (279):    1.600000
    Device Accel Adaptive Deceleration (280):    1.000000
    Device Accel Velocity Scaling (281):    10.000000
    Device Product ID (273):    2, 5
    Device Node (274):    "/dev/input/event3"
    Evdev Axis Inversion (282):    0, 0
    Evdev Axes Swap (284):    0
    Axis Labels (285):    "Rel X" (161), "Rel Y" (162), "Rel Vert Wheel" (277)
    Button Labels (286):    "Button Left" (154), "Button Middle" (155), "Button Right" (156), "Button Wheel Up" (157), "Button Wheel Down" (158), "Button Horiz Wheel Left" (159), "Button Horiz Wheel Right" (160)
    Evdev Scrolling Distance (287):    1, 1, 1
    Evdev Middle Button Emulation (288):    0
    Evdev Middle Button Timeout (289):    50
    Evdev Third Button Emulation (290):    0
    Evdev Third Button Emulation Timeout (291):    1000
    Evdev Third Button Emulation Button (292):    3
    Evdev Third Button Emulation Threshold (293):    20
    Evdev Wheel Emulation (294):    0
    Evdev Wheel Emulation Axes (295):    0, 0, 4, 5
    Evdev Wheel Emulation Inertia (296):    10
    Evdev Wheel Emulation Timeout (297):    200
    Evdev Wheel Emulation Button (298):    4
    Evdev Drag Lock Buttons (299):    0


ACTUAL LIBINPUT props:

[marius@eve ~]$ xinput list-props 11
Device 'ImPS/2 BYD TouchPad':
	Device Enabled (151):	1
	Coordinate Transformation Matrix (153):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Accel Speed (289):	0.000000
	libinput Accel Speed Default (290):	0.000000
	libinput Accel Profiles Available (291):	1, 1
	libinput Accel Profile Enabled (292):	1, 0
	libinput Accel Profile Enabled Default (293):	1, 0
	libinput Natural Scrolling Enabled (294):	1
	libinput Natural Scrolling Enabled Default (295):	0
	libinput Send Events Modes Available (273):	1, 0
	libinput Send Events Mode Enabled (274):	0, 0
	libinput Send Events Mode Enabled Default (275):	0, 0
	libinput Left Handed Enabled (296):	0
	libinput Left Handed Enabled Default (297):	0
	libinput Scroll Methods Available (298):	0, 0, 1
	libinput Scroll Method Enabled (299):	0, 0, 0
	libinput Scroll Method Enabled Default (300):	0, 0, 0
	libinput Button Scrolling Button (301):	2
	libinput Button Scrolling Button Default (302):	274
	libinput Middle Emulation Enabled (303):	0
	libinput Middle Emulation Enabled Default (304):	0
	Device Node (276):	"/dev/input/event3"
	Device Product ID (277):	2, 5
	libinput Drag Lock Buttons (305):	<no items>
	libinput Horizonal Scroll Enabled (278):	1

Comment 1 customercare 2016-11-28 22:12:28 UTC
Update:

Under Cinnamon, it works as expected.. the mouse movement is too slow, compared with before that switch, but thats adjustable.

Under GNOME:

the above problems persist.

Comment 2 Peter Hutterer 2016-11-28 23:45:42 UTC
leigh: why is cinnamon-desktop requiring xorg-x11-drv-libinput? shouldn't be needed, we have it in comps for the default install and AFAIR cinnamon supports both drivers anyway so it doesn't matter what is installed. Can we remove this please?

Comment 3 leigh scott 2016-11-29 01:04:57 UTC
(In reply to customercare from comment #0)

> How can i get rid of libinput ?

override it

su
ln -s /usr/share/X11/xorg.conf.d/10-evdev.conf /etc/X11/xorg.conf.d/99-cinnamon-evdev.conf
ln -s /usr/share/X11/xorg.conf.d/60-libinput.conf /etc/X11/xorg.conf.d/99-cinnamon-libinput.conf


as I don't intend to readd the override to cinnamon-desktop

http://pkgs.fedoraproject.org/cgit/rpms/cinnamon-desktop.git/commit/?h=f24&id=273605b8fb3795731b0888ef484bfab21ac2d7a8

Comment 4 leigh scott 2016-11-29 01:07:06 UTC
(In reply to Peter Hutterer from comment #2)
> leigh: why is cinnamon-desktop requiring xorg-x11-drv-libinput? shouldn't be
> needed, we have it in comps for the default install and AFAIR cinnamon
> supports both drivers anyway so it doesn't matter what is installed. Can we
> remove this please?

Yes, I will do it next time I rebuild it unless you wish to do it sooner.

Comment 5 leigh scott 2016-11-29 01:26:09 UTC
(In reply to customercare from comment #1)
> Update:
> 
> Under Cinnamon, it works as expected.. the mouse movement is too slow,
> compared with before that switch, but thats adjustable.
> 

So mouse acceleration working is working as expected after adjusting it in cinnamon-settings

Is mousewheel still upside down?, if so maybe that's a libinput hardware detection issue.

gnome-mouse-prefs?, do you mean cinnamon-settings?

> Under GNOME:
> 
> the above problems persist.

So Gnome is broken?

And Cinnamon is working OK?

Comment 6 Peter Hutterer 2016-11-29 03:59:50 UTC
(In reply to leigh scott from comment #5)
> Is mousewheel still upside down?, if so maybe that's a libinput hardware
> detection issue.

fwiw, for the BYD touchpads that's a kernel bug, see bug 1352159.

Comment 7 customercare 2016-11-29 09:26:57 UTC
To clarify this:

I have installed both desktops: Cinnamon and Gnome .

I like gnome, but it has a degrading performance over time of usage,
so i use Cinnamon @ Work .

--

The problems occure with GNOME, since the libinput driver for Cinnamon got installed.

a) The accelleration controls in PREFS are not working for Gnome.
   (This could be a different problem, i observed it before)

b) The accelleration props for xinput are gone
   (checked it under Cinnamon, and new options appeared, due to the switch to libinput in general)

c) The MouseWheel was upsidedown under GNOME

--

There are no problems under Cinnamon. I just had to slightly adjust the mousemovement speed. The Mousewheel is working normaly. 

--

My PS/2 Mouse is misdetected as a TouchPad, but that was also the case long before those changes happend. As it worked ok for years, i won't call it a bug, just a minor glitch.

Comment 8 leigh scott 2016-11-29 10:21:40 UTC
(In reply to customercare from comment #7)
> To clarify this:
> 
> I have installed both desktops: Cinnamon and Gnome .
> 
> I like gnome, but it has a degrading performance over time of usage,
> so i use Cinnamon @ Work .
> 
> --
> 
> The problems occure with GNOME, since the libinput driver for Cinnamon got
> installed.
> 

Since gnome is libinput only I doubt cinnamon caused it.

Comment 9 customercare 2016-11-29 13:27:30 UTC

Scott is right, it was this libinput driver for Xorg 

xorg-x11-drv-libinput-0.19.0-2.fc24.x86_64

DNF Log:

Nov 28 14:01:22 INFO Upgraded: cinnamon-translations-3.2.0-1.fc24.noarch
Nov 28 14:01:22 INFO Upgraded: cinnamon-control-center-filesystem-3.2.0-1.fc24.x86_64
Nov 28 14:01:24 INFO Upgraded: libva-1.7.3-1.fc24.x86_64
Nov 28 14:01:24 INFO Upgraded: cjs-1:3.2.0-1.fc24.x86_64
Nov 28 14:01:25 INFO Upgraded: cinnamon-menus-3.2.0-1.fc24.x86_64
Nov 28 14:01:25 INFO Installed: compat-wxBase3-gtk2-3.0.2-7.fc24.x86_64
Nov 28 14:01:26 INFO Installed: compat-wxGTK3-gtk2-3.0.2-7.fc24.x86_64
Nov 28 14:01:26 INFO Upgraded: NetworkManager-l2tp-1.2.4-1.fc24.x86_64
Nov 28 14:01:27 INFO Upgraded: muffin-3.2.0-1.fc24.x86_64
Nov 28 14:01:27 INFO Installed: hddtemp-0.3-0.35.beta15.fc24.x86_64
Nov 28 14:01:27 INFO Installed: inxi-2.3.3-1.fc24.noarch
Nov 28 14:01:28 INFO Installed: xapps-1.0.2-1.fc24.x86_64
Nov 28 14:01:28 INFO Installed: xorg-x11-drv-libinput-0.19.0-2.fc24.x86_64
Nov 28 14:01:28 INFO Upgraded: cinnamon-desktop-3.2.0-3.fc24.x86_64
Nov 28 14:01:28 INFO Upgraded: nemo-extensions-3.2.0-1.fc24.x86_64
Nov 28 14:01:29 INFO Upgraded: nemo-3.2.0-1.fc24.x86_64
Nov 28 14:01:29 INFO Upgraded: cinnamon-settings-daemon-3.2.0-1.fc24.x86_64
Nov 28 14:01:29 INFO Upgraded: cinnamon-control-center-3.2.0-1.fc24.x86_64
Nov 28 14:01:30 INFO Upgraded: cinnamon-screensaver-3.2.0-2.fc24.x86_64
Nov 28 14:01:30 INFO Upgraded: cinnamon-session-3.2.0-1.fc24.x86_64
Nov 28 14:01:31 INFO Upgraded: cinnamon-3.2.1-1.fc24.x86_64
Nov 28 14:01:31 INFO Upgraded: nemo-preview-3.2.0-1.fc24.x86_64
Nov 28 14:01:31 INFO Upgraded: nemo-fileroller-3.2.0-1.fc24.x86_64
Nov 28 14:01:31 INFO Upgraded: nemo-image-converter-3.2.0-1.fc24.x86_64
Nov 28 14:01:31 INFO Upgraded: NetworkManager-l2tp-gnome-1.2.4-1.fc24.x86_64
Nov 28 14:01:35 INFO Upgraded: libva-utils-1.7.3-1.fc24.x86_64
Nov 28 14:01:35 INFO Upgraded: libva-intel-driver-1.7.3-1.fc24.x86_64
Nov 28 14:01:35 INFO Upgraded: kodi-eventclients-16.1-3.fc24.x86_64

Comment 10 Peter Hutterer 2016-11-30 22:05:36 UTC
more likely a control-center issue, reassigning

judging by the xinput output in comment #0 the device doesn't look like a touchpad based on the properties (despite the Touchpad string in the name). tapping isn't available and neither are scroll methods other than button scrolling.

what's the output of xinput list --long for this device?

Please attach an evemu-describe for this device too, makes reproducing this easier.

Comment 11 customercare 2016-11-30 23:18:48 UTC
⎜   ↳ ImPS/2 BYD TouchPad                     	id=11	[slave  pointer  (2)]
	Reporting 7 classes:
		Class originated from: 11. Type: XIButtonClass
		Buttons supported: 7
		Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
		Button state:
		Class originated from: 11. Type: XIValuatorClass
		Detail for Valuator 0:
		  Label: Rel X
		  Range: -1.000000 - -1.000000
		  Resolution: 0 units/m
		  Mode: relative
		Class originated from: 11. Type: XIValuatorClass
		Detail for Valuator 1:
		  Label: Rel Y
		  Range: -1.000000 - -1.000000
		  Resolution: 0 units/m
		  Mode: relative
		Class originated from: 11. Type: XIValuatorClass
		Detail for Valuator 2:
		  Label: Rel Horiz Scroll
		  Range: -1.000000 - -1.000000
		  Resolution: 0 units/m
		  Mode: relative
		Class originated from: 11. Type: XIValuatorClass
		Detail for Valuator 3:
		  Label: Rel Vert Scroll
		  Range: -1.000000 - -1.000000
		  Resolution: 0 units/m
		  Mode: relative
		Class originated from: 11. Type: XIScrollClass
		Scroll info for Valuator 2
		  type: 2 (horizontal)
		  increment: 15.000000
		  flags: 0x0
		Class originated from: 11. Type: XIScrollClass
		Scroll info for Valuator 3
		  type: 1 (vertical)
		  increment: 15.000000
		  flags: 0x0



what is a "evemu-describe" ?? 


# EVEMU 1.3
# Kernel: 4.8.8-200.fc24.x86_64
# DMI: dmi:bvnAmericanMegatrendsInc.:bvr2201:bd12/10/2013:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnASUSTeKCOMPUTERINC.:rnM5A97R2.0:rvrRev1.xx:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
# Input device name: "ImPS/2 BYD TouchPad"
# Input device ID: bus 0x11 vendor 0x02 product 0x05 version 0000
# Supported events:
#   Event type 0 (EV_SYN)
#     Event code 0 (SYN_REPORT)
#     Event code 1 (SYN_CONFIG)
#     Event code 2 (SYN_MT_REPORT)
#     Event code 3 (SYN_DROPPED)
#     Event code 4 ((null))
#     Event code 5 ((null))
#     Event code 6 ((null))
#     Event code 7 ((null))
#     Event code 8 ((null))
#     Event code 9 ((null))
#     Event code 10 ((null))
#     Event code 11 ((null))
#     Event code 12 ((null))
#     Event code 13 ((null))
#     Event code 14 ((null))
#   Event type 1 (EV_KEY)
#     Event code 272 (BTN_LEFT)
#     Event code 273 (BTN_RIGHT)
#     Event code 274 (BTN_MIDDLE)
#   Event type 2 (EV_REL)
#     Event code 0 (REL_X)
#     Event code 1 (REL_Y)
#     Event code 8 (REL_WHEEL)
# Properties:
#   Property  type 0 (INPUT_PROP_POINTER)
N: ImPS/2 BYD TouchPad
I: 0011 0002 0005 0000
P: 01 00 00 00 00 00 00 00
B: 00 0b 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 07 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 02 03 01 00 00 00 00 00 00
B: 03 00 00 00 00 00 00 00 00
B: 04 00 00 00 00 00 00 00 00
B: 05 00 00 00 00 00 00 00 00
B: 11 00 00 00 00 00 00 00 00
B: 12 00 00 00 00 00 00 00 00
B: 14 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00




Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: M5A97 R2.0
        Version: Rev 1.xx
        Serial Number: XXXXXXXXXXXXXXXXXXXXX
        Asset Tag: To be filled by O.E.M.
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: To be filled by O.E.M.
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: MS
        Internal Connector Type: None
        External Reference Designator: Mouse
        External Connector Type: PS/2
        Port Type: Mouse Port

Comment 12 customercare 2016-11-30 23:22:42 UTC
(In reply to leigh scott from comment #3)
> (In reply to customercare from comment #0)
> su
> ln -s /usr/share/X11/xorg.conf.d/10-evdev.conf
> /etc/X11/xorg.conf.d/99-cinnamon-evdev.conf
> ln -s /usr/share/X11/xorg.conf.d/60-libinput.conf
> /etc/X11/xorg.conf.d/99-cinnamon-libinput.conf
> 
> 

I adjusted it, as 60- isn't available : 

drwxr-xr-x. 2 root root 4096 28. Nov 14:01 .
drwxr-xr-x. 8 root root 4096 29. Okt 12:32 ..
-rw-r--r--. 1 root root 1099  1. Jun 2016  10-evdev.conf
-rw-r--r--. 1 root root 1350 15. Nov 05:42 10-quirks.conf
-rw-r--r--. 1 root root 2827  5. Feb 2016  50-synaptics.conf
-rw-r--r--. 1 root root  115  5. Feb 2016  50-vmmouse.conf
-rw-r--r--. 1 root root 1385  5. Feb 2016  50-wacom.conf
-rw-r--r--. 1 root root  788 19. Jul 05:17 90-libinput.conf
-rw-r--r--. 1 root root  157  6. Nov 08:50 nvidia.conf

Comment 13 customercare 2016-11-30 23:27:46 UTC
@Scott: 

Tried it out and rebooted: NO CHANGE 


X is still using libinput, and under gnome ist up-side-down scrolling.

removing links again...

Comment 14 Peter Hutterer 2016-12-01 21:02:56 UTC
'l' sorts after 'e' so if you put both symlinks in place, you overrode your evdev override with libinput again :)

device looks like a normal mouse, but this is the BYD touchpad, have you looked at Bug 1352159, specifically comment 7 there?

Comment 15 customercare 2016-12-01 21:28:24 UTC
i think i can answere this without it: USERSPACE 

why, because some time after the update, i had to restart the X Server,
and BEFORE the restart it worked ok, after the restart i got the up-side-down thinggy. All with the same kernel running.

Comment 16 Peter Hutterer 2016-12-01 22:43:56 UTC
(In reply to customercare from comment #15)
> i think i can answere this without it: USERSPACE 

right, but it would've taken less than 2 minutes to provide a definitive answer...

if the wheel behaviour is correct (i.e. not inverted by the kernel) then you have natural scrolling enabled. Now that I re-check the list-props output above it does say:
	libinput Natural Scrolling Enabled (294):	1

so this command should fix that issue then:
gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false

Comment 17 Fedora End Of Life 2017-07-26 00:00:39 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 18 Fedora End Of Life 2017-08-08 19:22:04 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.