ublue-os / bazzite

Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
3.6k stars 211 forks source link

invisible mouse cursor in gamescope #1354

Open unicornsandcandies opened 1 month ago

unicornsandcandies commented 1 month ago

Describe the bug

To replicate: Hold steam button and use right touchpad to simulate mouse

Cursor is invisible in every game that doesn't theme it by their own

What did you expect to happen?

I expected mouse cursor to show up, so I can choose options in a game launcher (without using the touchscreen)

Output of rpm-ostree status

State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
                   Digest: sha256:c53a8b7cdb78233b3b13f58a6f770b18a0abb8f6f283e9cf4cf33d3c8f552a74
                  Version: 40.20240712.0 (2024-07-12T04:58:14Z)
          LayeredPackages: plymouth-theme-script
            LocalPackages: pedro-raccoon-1.1-1.1.x86_64

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
                   Digest: sha256:4194afb903fc79b1028d4f3140f694c2a220497678405a72e3de3e3ff3b62b27
                  Version: 40.20240710.0 (2024-07-11T02:46:00Z)
          LayeredPackages: plymouth-theme-script
            LocalPackages: pedro-raccoon-1.1-1.1.x86_64

Hardware

Galileo Steam Deck OLED

Extra information or context

No response

WuffyTopside commented 1 month ago

Same issue in Bazzite Deck KDE on Deck LCD. Might be a problem with the underlying Fedora image. That, or it might be Steam not handling the mouse info properly.

unicornsandcandies commented 1 month ago

Same issue in Bazzite Deck KDE on Deck LCD. Might be a problem with the underlying Fedora image. That, or it might be Steam not handling the mouse info properly.

I don't know if it happened for you but the cursor was weird already for some time. It was black and overly big. Not like the theme I've set in the desktop mode.

WuffyTopside commented 1 month ago

My cursor is fine in desktop mode. People are saying it might be a Wayland issue, so I'm going to test it.

unicornsandcandies commented 1 month ago

My cursor is fine in desktop mode. People are saying it might be a Wayland issue, so I'm going to test it.

Isn't the desktop mode also using Wayland on deck? I mean, I'm on gnome deck and the cursor is fine on the desktop only

WuffyTopside commented 1 month ago

Yes, they both use Wayland. From what I saw, the issue is how Steam talks to Wayland, or something along those lines at least.

unicornsandcandies commented 1 month ago

Update: It works when docked with physical mouse for some weird reason

20240713_205047 20240713_205031

WuffyTopside commented 1 month ago

Odd. I'm not sure what's going on.

KyleGospo commented 1 month ago

I'm not able to reproduce this problem on my OLED, but I'm running the GNOME image. Let me dig a little bit and I might have questions for you.

KyleGospo commented 1 month ago

Can one of you give me the contents of: $XDG_CONFIG_HOME/gtk-3.0/settings.ini

WuffyTopside commented 1 month ago

Unfortunately, I'm unable to provide file contents of any kind. I ended up just installing Chimera OS because I lack patience and forethought. I apologize.

unicornsandcandies commented 1 month ago

Can one of you give me the contents of: $XDG_CONFIG_HOME/gtk-3.0/settings.ini

deck@fedora:~$ $XDG_CONFIG_HOME/gtk-3.0/settings.ini
-bash: /gtk-3.0/settings.ini: Nie ma takiego pliku ani katalogu
deck@fedora:~$ cat .config/gtk-3.0/settings.ini
[Settings]
gtk-application-prefer-dark-theme=0
deck@fedora:~$
WuffyTopside commented 1 month ago

Here's the contents of ~/.config/gtk-3.0/settings.ini from a fresh install. The only change made is to the theme, since my taskbar decided it wanted to play hide-and-seek with me.

[Settings]
gtk-application-prefer-dark-theme=true
gtk-button-images=true
gtk-cursor-theme-name=breeze_cursors
gtk-cursor-theme-size=24
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-font-name=Noto Sans,  11
gtk-icon-theme-name=breeze-dark
gtk-menu-images=true
gtk-modules=colorreload-gtk-module
gtk-primary-button-warps-slider=true
gtk-sound-theme-name=ocean
gtk-toolbar-style=3
gtk-xft-dpi=172032
jpwchang commented 1 month ago

@KyleGospo For the record I'm also on the GNOME image and also seeing this exact problem.

WuffyTopside commented 1 month ago

There's a way to get a cursor until this is fixed. Just switch to desktop mode and launch the games that use a cursor from there.

jpwchang commented 1 month ago

I checked gamescope-stdout.log and found the same libei-related error that was reported over in discord as a possible clue:

[gamescope] [Error] wlserver: Gamescope built without libei, XTEST will not be available!

KyleGospo commented 1 month ago

I checked gamescope-stdout.log and found the same libei-related error that was reported over in discord as a possible clue:

[gamescope] [Error] wlserver: Gamescope built without libei, XTEST will not be available!

The newest build has this restored. Let me know if updating fixes it for you.

jpwchang commented 1 month ago

@KyleGospo I pasted that log message right after updating to bazzite-deck-gnome 40.20240714.0 this morning. Or is there a newer build than that?

KyleGospo commented 1 month ago

@KyleGospo I pasted that log message right after updating to bazzite-deck-gnome 40.20240714.0 this morning. Or is there a newer build than that?

Turning it back on broke gnome for me, I'm interested in KDE testing.

Seems we're going to have to ship separate solutions for the two for a minute.

jpwchang commented 1 month ago

Makes sense, I'm perfectly happy to wait a while longer since this doesn't really affect my workflow all that much. The more important point was that I just wanted to flag the fact that this evidently isn't a KDE-only issue!

WuffyTopside commented 1 month ago

I can check KDE when the fix drops. When it does, @ me so I know to check it.

jpwchang commented 1 month ago

Happy to report that after running another update the issue appears resolved, at least here on GNOME! Perhaps @WuffyTopside can confirm on KDE?

Thanks for the quick fix!

WuffyTopside commented 1 month ago

I'm happy to report that the cursor is now visible in Gamescope on KDE! Thanks @jpwchang , and to the whole Bazzite dev team!