Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No mouse on Bazzite and Sunshine v2025.107.25026 #3556

Open
2 tasks done
bjoernwuest opened this issue Jan 18, 2025 · 5 comments
Open
2 tasks done

No mouse on Bazzite and Sunshine v2025.107.25026 #3556

bjoernwuest opened this issue Jan 18, 2025 · 5 comments

Comments

@bjoernwuest
Copy link

bjoernwuest commented Jan 18, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

Try to move away from Win11 for gaming. Try to find a Linux distro where Sunshine is actually working. Tried some distros (openSuse, Ubuntu 24.04/24.10, Xubuntu 24.04/24.10, Fedora 41, Mint, Gentoo, Manjaro, Arch, CachyOS, ..., and Bazzite). Bazzite seems to be the only distro where Sunshine detects my video card (Nvidia 4060) so I am quite happy. At least this is the status "out of the box" with Bazzite.

Yet, Moonlight does not show mouse when connected. The log says

Warning: No KMS cursor plane found. Cursor may not be displayed while streaming

I tried to do

setcap cap_sys_admin+p $(readlink -f $(which sunshine))

but since Bazzite is read-only system, it complains that I cannot do this command and would rather need to bundle it in a RPM (which I have not clue how to do).

Also, following other "tricks" like running screen recorder, accessibility tools, setting KWIN-...flags, etc. all did not work. Interestingly, when running a screen recorder and connecting via Moonlight I can see the mouse "inside" the screen recorder video, but not on the screen itself. So at least Moonlight provides info on mouse movement, but Sunshine simply does not seem able to render it to Moonlight?

Also found a ticket where a migration "away from kmsgrab" is discussed. May this be related?

Expected Behavior

Would love to see the mouse pointer :)

Additional Context

No response

Host Operating System

Linux

Operating System Version

Bazzite "downloaded on Jan 17th 2025"

Architecture

amd64/x86_64

Sunshine commit or version

v2025.107.25026

Package

other (not listed)

GPU Type

NVIDIA

GPU Model

4060

GPU Driver/Mesa Version

565.77

Capture Method

KMS (Linux)

Config

Apps

Relevant log output

Warning: No KMS cursor plane found. Cursor may not be displayed while streaming
@cgutman
Copy link
Collaborator

cgutman commented Jan 18, 2025

In particular, this is likely due to missing the modeset=1 parameter for the nvidia kernel module.

@bjoernwuest
Copy link
Author

Thank for the quick reply. modeset was / is set:

bash-5.2# rpm-ostree kargs rhgb quiet root=UUID=bdb23ce2-80b0-4a8a-a307-52d2256b1bc14 rootflags=subvol=root rw ostree=ostree/boot.0/default/ea967519f4b11d0b812f95d00995f4d7de6464fe8be98e477f0b7ff79ca4fe6f/0 bluetooth.disable_ertm=1 preemnt=full rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1

How to check "setcap". Found this PR which I assume may have done it already for Bazzite, but not sure: #3050

@ReenigneArcher
Copy link
Member

setcap is set automatically in the rpm spec file when using our Fedora copr build.

@bjoernwuest
Copy link
Author

Ok, then it seems that things do not work properly even setcap and modeset are applied. Today, got notification about new build of sunshine (version 118) but still try to figure out how to install this in bazzite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants