You are not logged in.

#1 2023-12-30 02:29:02

polypoyo
Member
Registered: 2022-05-21
Posts: 2

Unable to start any GUI

I'm trying to use my computer for in-home streaming with Sunshine, Gamescope, and Steam, but I can't get the compositor to work. I'm using a custom script, linked below.

What interested me about the log was this line:

Failed to open device: '/dev/dri/card0': Resource temporarily unavailable

And in X11's case:

amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)

I have an autologin on tty1 and this line in my zshrc to start the script:

if [ $(tty) = "/dev/tty1" ]; then exec ~/.local/bin/steamstream; fi

Custom script and full log: https://gist.github.com/polypoyo/f0b319 … 68d7b1de5f

inxi -G output:

Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] driver: amdgpu v: kernel
  Display: server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3 driver: X: loaded: modesetting
    unloaded: amdgpu,radeon gpu: amdgpu tty: 156x40 resolution: 1920x1080
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast platforms: gbm,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa v: 23.3.1-arch1.1 note: console (EGL sourced)
    renderer: llvmpipe (LLVM 16.0.6 256 bits), AMD Radeon RX 570 Series (radeonsi polaris10 LLVM
    16.0.6 DRM 3.49 6.1.69-1-lts)
  API: Vulkan Message: No Vulkan data available.

Offline

#2 2023-12-30 03:05:47

polypoyo
Member
Registered: 2022-05-21
Posts: 2

Re: Unable to start any GUI

Update: Rebooting made cage work, and the error for gamescope is different:

# Prefer regular gamescope
$ gamescope -e --expose-wayland -- /home/epb/.local/bin/steamsession
vblank: Using timerfd.
wlserver: [backend/headless/backend.c:67] Creating headless backend
wlserver: [libseat] [libseat/libseat.c:62] Seat opened with backend 'logind'
wlserver: [backend/session/session.c:109] Successfully loaded libseat session
vulkan: vkCreateInstance failed (VkResult: -9)
drm: warning: picking an arbitrary DRM device
drm: Immediate flips are not supported by the KMS driver
drm: found new connector 'DP-3'
drm: found new connector 'DVI-D-1'
drm: found new connector 'DP-2'
drm: Connector make SAM model SAMSUNG
drm: [colorimetry]: EDID with colorimetry detected. Using it
drm: [colorimetry]: r 0.639648 0.330078
drm: [colorimetry]: g 0.299805 0.599609
drm: [colorimetry]: b 0.150391 0.059570
drm: [colorimetry]: w 0.312500 0.329102
drm: found new connector 'HDMI-A-1'
drm: found new connector 'DP-1'
drm: CRTC 53 has no degamma LUT support
drm: CRTC 53 has no VALVE1_CRTC_REGAMMA_TF support
drm: CRTC 55 has no degamma LUT support
drm: CRTC 55 has no VALVE1_CRTC_REGAMMA_TF support
drm: CRTC 57 has no degamma LUT support
drm: CRTC 57 has no VALVE1_CRTC_REGAMMA_TF support
drm: CRTC 59 has no degamma LUT support
drm: CRTC 59 has no VALVE1_CRTC_REGAMMA_TF support
drm: CRTC 61 has no degamma LUT support
drm: CRTC 61 has no VALVE1_CRTC_REGAMMA_TF support
drm: CRTC 63 has no degamma LUT support
drm: CRTC 63 has no VALVE1_CRTC_REGAMMA_TF support
drm: Connectors:
drm:   DP-3 (disconnected)
drm:   DVI-D-1 (disconnected)
drm:   DP-2 (disconnected)
drm:   HDMI-A-1 (connected)
drm:   DP-1 (disconnected)
drm: selecting connector HDMI-A-1
drm: selecting mode 1920x1080@60Hz
gamescope: ../gamescope/src/rendervulkan.cpp:241: bool CVulkanDevice::BInit(VkInstance, VkSurfaceKHR): Assertion `instance' failed.
/home/epb/.local/bin/steamstream: line 4: 10025 Aborted                 (core dumped) "$@"

# Gamescope in cage?
$ cage -s -- gamescope -e --expose-wayland -- /home/epb/.local/bin/steamsession
amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
vblank: Using timerfd.
wlserver: [backend/headless/backend.c:67] Creating headless backend
vulkan: vkCreateInstance failed (VkResult: -9)
SDL_Vulkan_CreateSurface failed: Parameter 'instance' is invalid
# Just cage?
$ cage -s -- /home/epb/.local/bin/steamsession
amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
/home/epb/.local/bin/steamsession: line 3: xhost: command not found
steam.sh[10120]: Running Steam on arch rolling 64-bit
[upnp] -- [enabled]
[resolutions] -- [[
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    1600x900
]]
[origin_web_ui_allowed] -- [pc]
[2023:12:29:21:56:49]: Info: Sunshine version: v0.21.0
steam.sh[10120]: STEAM_RUNTIME is enabled automatically
Cannot load libcuda.so.1
[2023:12:29:21:56:49]: Error: Couldn't load cuda: -1

Last edited by polypoyo (2023-12-30 05:58:27)

Offline

#3 2023-12-30 17:09:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: Unable to start any GUI

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General
And the outputs of

glxinfo -B; glxinfo32 -B; vulkaninfo

inxi is only for screenshots on r/unixporn, but even then your vulkan installation seems broken.
https://wiki.archlinux.org/title/Vulkan

"Failed to open device: '/dev/dri/card0': Resource temporarily unavailable" could be:
- simpledrm device false positive
- late KMS (amdgpu kernel module isn't in the initramfs and you autostart X11)
- insufficient permissions (you're not sourcing /etc/X11/xinit/xinitrc.d/50-systemd-user.sh or this is a bothced seatd installation instead of logind)

Offline

Board footer

Powered by FluxBB