Bug 1547691

Summary: Mouse not working in rawhide
Product: [Fedora] Fedora Reporter: Milan Crha <mcrha>
Component: mutterAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: ajax, alexl, awilliam, bskeggs, bugzilla.redhat.com, caillon+fedoraproject, candrews, daniel, fmuellner, fschwarz, ignatenko, jglisse, john.j5live, mclasen, mfabian, otaylor, peter.hutterer, petersen, pnemade, rclark, renault, rhughes, robatino, rstrode, thatslyude, walters, yaneti
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mutter-3.27.91-2.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-05 15:52:38 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1469204, 1551990    

Description Milan Crha 2018-02-21 18:08:29 UTC
I've a virtual machine with rawhide, which I updated to the latest few minutes ago. It brought in gdm-3.27.4-4.fc28.x86_64 and thousands of other updates. Since then, clicking in gdm with mouse does literally nothing. Once again, this is a virtual machine, not a real machine. When I log in (using keyboard only), the mouse does what it should do, thus clicking on buttons, Activities, whatever does the same as before the update. Yes, I did restart whole virtual machine after he update.

Comment 1 Yanko Kaneti 2018-02-21 18:51:42 UTC
I've been trying unsuccessfully to pinpoint the issue in the last couple days.
And I am on real hardware.  The mouse pointer moves ok, just does not seem to be registered in the compositor windows, and the buttons don't do anything.

Today a breakthrough :) Its the mesa upgrade that broke it. 

mesa-17.3.5-1.fc27       - works
mesa-18.0.0-0.1.rc4.fc28 - doesn't work

Comment 2 Yanko Kaneti 2018-02-21 18:59:00 UTC
With everytihng else the same.

And FWIF - the mouse works fine in weston, so I suspect some mutter/shell oddity

Comment 3 Couret Charles-Antoine 2018-02-21 18:59:47 UTC
The same bug. I don't have this issue from TTY with kernel layer.
GNOME Shell is concerned too (not only GDM).

Comment 4 Yanko Kaneti 2018-02-21 19:52:36 UTC
I've isolated it a bit further to the mesa-dri-drivers
i.e everything 18.0.0-0.1.rc4.fc28 but with mesa-dri-drivers-17.3.5-1.fc27.x86_64  works fine

Comment 5 Yanko Kaneti 2018-02-21 23:42:22 UTC
Rebuilt 18.0.0-0.1.rc4 on F27 current to isolate the toolchain/llvm, but it was still broken the same way, so probably the problem is isolated to mesa.

Comment 6 Jens Petersen 2018-02-22 06:08:45 UTC
Should this move to Mesa component then?

Comment 7 Jens Petersen 2018-02-22 06:14:00 UTC
I can use the mouse fine in Xorg Gnome though -
so Wayland GNOME shell does seem to be an issue.

Comment 8 Jens Petersen 2018-02-22 06:45:14 UTC
Also I am not sure if the host display system (Wayland vs Xorg) matters?

Comment 9 Igor Gnatenko 2018-02-22 07:13:04 UTC
Mind reporting this to upstream bugs.freedesktop.org?

Comment 10 Jens Petersen 2018-02-22 07:52:40 UTC
Against which product? :)

Comment 11 Yanko Kaneti 2018-02-22 12:33:40 UTC
Bisected to mesa commit  

e5ff036c67 st/dri: Add support for BGR[A/X]1010102 formats

Filed a bug upstream https://bugs.freedesktop.org/show_bug.cgi?id=105208

Straight up reverting that commit on top of 18.0  rc4 and applying the reveret to the mesa packages fixes it for me..

Comment 12 Daniel Stone 2018-02-22 13:03:10 UTC
This is ultimately a Mutter bug: https://gitlab.gnome.org/GNOME/mutter/issues/2

Comment 13 Yanko Kaneti 2018-02-26 17:44:36 UTC
There are pending mutter patches to fix the issue without disabling 10-bits in mesa completely. Moving to mutter

Comment 14 Jens Petersen 2018-02-28 12:19:11 UTC
*** Bug 1550046 has been marked as a duplicate of this bug. ***

Comment 15 Adam Williamson 2018-02-28 17:23:08 UTC
I'm backporting the current state of MR#36 to Rawhide and F28 so we have a fix for this (whenever we can get a damn compose built).

Comment 16 Jens Petersen 2018-03-01 05:42:08 UTC
Thanks, however neither mutter-3.27.91-1.fc28 nor mutter-3.27.91-2.fc28
start GNOME Shell for me.  Downgrading to mutter-3.27.1-4.fc28
allows both GNOME and Xorg GNOME to start.

Comment 17 Jens Petersen 2018-03-01 05:43:35 UTC
This also agrees with Fedora-Workstation-Live-x86_64-28-20180221.n.0.iso
booting to a black screen (desktop session).

Comment 18 Parag Nemade 2018-03-01 06:47:11 UTC
I confirm after updating to latest mutter-3.27.91-1.fc28 build, mouse still not working in f28 installed in virtual machine.

Comment 19 Parag Nemade 2018-03-01 14:36:31 UTC
Looks like mouse start working after installing build mutter-3.27.91-2.fc28

Comment 20 Adam Williamson 2018-03-02 17:48:08 UTC
Jens, sounds like you possibly have a different bug here, if it works for Parag?

Comment 21 Jens Petersen 2018-03-05 03:04:19 UTC
Yeah I dunno: anyway Fedora-Workstation-Live-x86_64-28-20180302.n.0.iso
Live instance works fine for me, so this can be closed now I think.

Comment 22 Adam Williamson 2018-03-05 15:52:38 UTC
Roger, closing. Thanks!

Comment 23 Milan Crha 2018-03-05 17:13:45 UTC
Okay, I can confirm the mouse clicks on the elements of gdm do work, but I also noticed that any mouse move, either above an element or even on the grey background where is exactly nothing to click on, generates high CPU usage. The CPU usage goes back down as soon as I stop moving the mouse. The 'top' shows gnome-shell killing the CPU, when I'm logged in GNOME.

This problem is more visible in Wayland session (and gdm), but I see it in X.org too, it's only not that significant.

I have installed up-to-date rawhide, with mutter-3.27.91-2.fc29.x86_64 and gnome-shell-3.27.91-2.fc29.x86_64 and also 3.27.91 gnome-shell-extensions.

I downgraded these to older versions, where mouse doesn't work in Wayland, but it also does that high CPU usage, thus it's nothing new, it had been there even before. It made me think of Fedora 27 and I see a high CPU usage in gdm when moving mouse here and there too.

I guess you want a new bug for this high CPU usage (thus higher power consumption), do you not? Or, if it's known in F27, then probably no big deal, because it's not a regression. I'd mention that both of these machines are virtual, not real, and they are updated as of today. I tried also with F26 virtual machine and the gdm doesn't consume that much CPU as F27 and rawhide, when moving the mouse, it's quite insignificant CPU usage in F26 with compare of the two newer Fedoras.

Comment 24 Adam Williamson 2018-03-05 21:48:41 UTC
Yes, I'd say file that as a separate bug. If it broke between 26 and 27 it certainly seems worth at least considering as a bug.

Comment 25 Milan Crha 2018-03-06 10:03:44 UTC
Okay, I filled bug #1551990. I'm unsure I chose the right component, neither I know whether I should CC there any person from the power consumption team (supposing there's anyone at all).