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

Appimage: Couldn't get handle for DRM Framebuffer #1641

Closed
3 tasks done
solisinvictum opened this issue Sep 15, 2023 · 3 comments
Closed
3 tasks done

Appimage: Couldn't get handle for DRM Framebuffer #1641

solisinvictum opened this issue Sep 15, 2023 · 3 comments
Labels

Comments

@solisinvictum
Copy link

solisinvictum commented Sep 15, 2023

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 nightly release?

  • This issue is present in the nightly release

Describe the Bug

[2023:09:15:06:14:31]: Error: Couldn't get handle for DRM Framebuffer [55]: Possibly not permitted: do [sudo setcap cap_sys_admin+p sunshine]

This error still occurs after: sudo setcap cap_sys_admin+p sunshine.Appimage

Expected Behavior

No response

Additional Context

No response

Host Operating System

Linux

Operating System Version

Debian 12

Architecture

64 bit

Sunshine commit or version

latest

Package

Linux - AppImage

GPU Type

none (software encoding)

GPU Model

123

GPU Driver/Mesa Version

123

Capture Method (Linux Only)

No response

Config

123

Apps

No response

Relevant log output

./sunshine.AppImage 
[encoder] -- [software]
[origin_pin_allowed] -- [wan]
[external_ip] -- [192.168.10.125]
[origin_web_ui_allowed] -- [wan]
[min_log_level] -- [verbose]
[2023:09:15:06:14:31]: Info: Sunshine version: 0.20.0
Cannot load libcuda.so.1
[2023:09:15:06:14:31]: Error: Couldn't load cuda: -1
[2023:09:15:06:14:31]: Error: Failed to gain CAP_SYS_ADMIN
[2023:09:15:06:14:31]: Warning: Couldn't expose some properties for card: /dev/dri/card0
[2023:09:15:06:14:31]: Error: Failed to gain CAP_SYS_ADMIN
[2023:09:15:06:14:31]: Error: Couldn't get handle for DRM Framebuffer [55]: Possibly not permitted: do [sudo setcap cap_sys_admin+p sunshine]
[2023:09:15:06:14:31]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2023:09:15:06:14:31]: Debug: Monitor description
[2023:09:15:06:14:31]: Debug: Resolution: 0x0
[2023:09:15:06:14:31]: Debug: Offset: 0x0
[2023:09:15:06:14:31]: Debug: Monitor description
[2023:09:15:06:14:31]: Debug: Resolution: 0x0
[2023:09:15:06:14:31]: Debug: Offset: 0x0
[2023:09:15:06:14:31]: Debug: Desktop resolution: 0x0
[2023:09:15:06:14:31]: Error: Unable to initialize capture method
[2023:09:15:06:14:31]: Error: Platform failed to initialize
[2023:09:15:06:14:31]: Error: Could not create Sunshine Mouse: Keine Berechtigung
[2023:09:15:06:14:31]: Error: Could not create Sunshine Touchscreen: Keine Berechtigung
[2023:09:15:06:14:31]: Error: Could not create Sunshine Keyboard: Keine Berechtigung
[2023:09:15:06:14:31]: Error: Unable to create some input devices! Are you a member of the 'input' group?
[2023:09:15:06:14:31]: Info: Falling back to XTest
[2023:09:15:06:14:31]: Info: Trying encoder [software]
Unable to init server: Verbindung ist gescheitert: Verbindungsaufbau abgelehnt
[2023:09:15:06:14:31]: Warning: Failed to create system tray
[2023:09:15:06:14:33]: Info: Encoder [software] failed
[2023:09:15:06:14:33]: Error: Couldn't find any working encoder matching [software]
[2023:09:15:06:14:33]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:15:06:14:33]: Info: Trying encoder [nvenc]
[2023:09:15:06:14:34]: Info: Encoder [nvenc] failed
[2023:09:15:06:14:34]: Info: Trying encoder [vaapi]
[2023:09:15:06:14:36]: Info: Encoder [vaapi] failed
[2023:09:15:06:14:36]: Fatal: Couldn't find any working encoder
[2023:09:15:06:14:36]: Error: Video failed to find working encoder
[2023:09:15:06:14:36]: Info: Open the Web UI to set your new username and password and getting started
[2023:09:15:06:14:36]: Info: File /home/user/.config/sunshine/sunshine_state.json doesn't exist
[2023:09:15:06:14:36]: Info: Adding avahi service Sunshine
[2023:09:15:06:14:36]: Info: Configuration UI available at [https://localhost:47990]
[2023:09:15:06:14:37]: Info: Avahi service Sunshine successfully established.
@ReenigneArcher
Copy link
Member

sudo setcap cap_sys_admin+p sunshine.Appimage

That won't work. We need to setcap on the internal binary file.

This used to work, but is now broken.

sudo setcap cap_sys_admin+p "$(readlink -f "$SUNSHINE_BIN_HERE")"

@LizardByte-bot
Copy link
Member

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

@LizardByte-bot
Copy link
Member

This issue was closed because it has been stalled for 10 days with no activity.

@LizardByte-bot LizardByte-bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants