Garuda qtile wayland edition black screen issue

When i boot into the wayland edition (default is fine), the screen is black and only the mouse shows. I can attach my garuda-inxi from my default to this post.

garuda inxi:

System:
  Kernel: 6.0.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=c53636f1-b3a9-4d15-9703-2fd7a50e7690 rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=e2bccabc-8e88-4821-a32a-e82a2ee5c922 loglevel=3
  Desktop: Qtile v: 0.22.1 wm: LG3D vt: 1 dm: SDDM Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME B550M-A (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 1004
    date: 08/12/2020
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M510
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: AMD Ryzen 3 3100 bits: 64 type: MT MCP arch: Zen 2 gen: 3
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 2199 high: 2200 min/max: 2200/3906 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2200 2: 2200
    3: 2200 4: 2200 5: 2196 6: 2200 7: 2200 8: 2200 bogomips: 57492
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: Gigabyte driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands
    process: GF 14nm built: 2016-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    ports: active: HDMI-A-1 empty: DP-1, DP-2, DP-3, DVI-D-1 bus-ID: 0b:00.0
    chip-ID: 1002:67df class-ID: 0300 temp: 48.0 C
  Display: x11 server: X.Org v: 21.1.4 compositor: Picom v: git-c4107
    driver: X: loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Samsung LF24T35
    serial: <filter> built: 2021 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
    size: 528x297mm (20.79x11.69") diag: 606mm (23.9") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    vendor: Gigabyte driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 0b:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
  Sound API: ALSA v: k6.0.2-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 09:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp9s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 0a:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp10s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-5:4 chip-ID: 8087:0029 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
Drives:
  Local Storage: total: 1.82 TiB used: 6.84 GiB (0.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B
    speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter> rev: 5B2QGXA7
    temp: 34.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 4B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 914.16 GiB size: 914.16 GiB (100.00%) used: 6.84 GiB
    (0.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
    (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 914.16 GiB size: 914.16 GiB (100.00%) used: 6.84
    GiB (0.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 914.16 GiB size: 914.16 GiB (100.00%) used: 6.84
    GiB (0.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 914.16 GiB size: 914.16 GiB (100.00%) used: 6.84
    GiB (0.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.5 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.05 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 56.1 C mobo: N/A gpu: amdgpu temp: 48.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 849
Info:
  Processes: 318 Uptime: 22m wakeups: 4 Memory: 15.5 GiB used: 3.05 GiB
  (19.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1066 libs: 300
  tools: pamac,paru Shell: fish v: 3.5.1 default: Bash v: 5.1.16
  running-in: alacritty inxi: 3.3.22
Garuda (2.6.8-1):
  System install date:     2022-10-22
  Last full system update: 2022-10-22
  Is partially upgraded:   Yes
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:

Terminal output should be added into the thread as text only--no screenshots.

Please edit your post, remove the screenshots and paste in the terminal output as text.

3 Likes

Just follow my instructions

garblage_screen :smiley:

or search for black screen on the forum.

Reminder from template:
Please post the terminal/konsole input and output as text (no pictures) from the the following command:

garuda-inxi
3 Likes

Hi! I just updated to text :slight_smile:

Hi! I just updated to text :slight_smile:

Thank you, it looks great.

Can you switch to a TTY? Try to press CTRL+ALT+F2 on the black screen and see if you can log in with your username and password, then run:

qtile start -b wayland
2 Likes

Hello! Here is the output I get from running that command:

Traceback (most recent call last):
  File "/usr/bin/qtile", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/libqtile/scripts/main.py", line 66, in main
    options.func(options)
  File "/usr/lib/python3.10/site-packages/libqtile/scripts/start.py", line 88, in start
    q = make_qtile(options)
  File "/usr/lib/python3.10/site-packages/libqtile/scripts/start.py", line 51, in make_qtile
    kore = libqtile.backend.get_core(options.backend)
  File "/usr/lib/python3.10/site-packages/libqtile/backend/__init__.py", line 15, in get_core
    return importlib.import_module(f"libqtile.backend.{backend}.core").Core(*args)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/libqtile/backend/wayland/__init__.py", line 2, in <module>
    from libqtile.backend.wayland.inputs import InputConfig  # noqa: F401
  File "/usr/lib/python3.10/site-packages/libqtile/backend/wayland/inputs.py", line 26, in <module>
    from pywayland.protocol.wayland import WlKeyboard
ModuleNotFoundError: No module named 'pywayland'

You need to install python-pywayland in order for this to work then.

3 Likes

Hi! After installing pip installing pywayland and pywlroots (installed these based on what the stdout told me), I get this in the terminal after typing qtile start -b wayland:

amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
00:00:00.054 [xwayland/server.c:443] Cannot find Xwayland binary "/usr/bin/Xwayland"
Traceback (most recent call last):
  File "/usr/bin/qtile", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/libqtile/scripts/main.py", line 66, in main
    options.func(options)
  File "/usr/lib/python3.10/site-packages/libqtile/scripts/start.py", line 88, in start
    q = make_qtile(options)
  File "/usr/lib/python3.10/site-packages/libqtile/scripts/start.py", line 51, in make_qtile
    kore = libqtile.backend.get_core(options.backend)
  File "/usr/lib/python3.10/site-packages/libqtile/backend/__init__.py", line 15, in get_core
    return importlib.import_module(f"libqtile.backend.{backend}.core").Core(*args)
  File "/usr/lib/python3.10/site-packages/libqtile/backend/wayland/core.py", line 230, in __init__
    self._xwayland = xwayland.XWayland(self.display, self.compositor, True)
  File "/home/leo_zhang/.local/lib/python3.10/site-packages/wlroots/xwayland.py", line 80, in __init__
    raise RuntimeError("Unable to create a wlr_xwayland.")
RuntimeError: Unable to create a wlr_xwayland.
fish: Job 1, 'qtile start -b wayland' terminated by signal SIGSEGV (Address boundary error)

Qtile - ArchWiki

In order to run Qtile as a Wayland compositor you will need to install python-pywlroots.

Did you install python-pywlroots?

2 Likes

Hi! Yes I have.

Okay, you may also need python-xkbcommon according to this: Installing Qtile — Qtile 0.22.2.dev19+g40655f6.d20221021 documentation

Have you checked to see if this binary is actually there or not?

ls /usr/bin/ | grep wayland

If not, you may need to find out where it is and make sure it is on your PATH, or set up a symlink to it.

2 Likes

Hi! Yes I already have that xkbcommon package installed. Here is my output for ls /usr/bin/ | grep wayland:

 ╰─λ ls /usr/bin/ | grep wayland
.rwxr-xr-x   35k root 16 Jun 11:17  eglgears_wayland
.rwxr-xr-x   31k root 16 Jun 11:17  egltri_wayland
.rwxr-xr-x   35k root 16 Jun 11:17  es2gears_wayland
.rwxr-xr-x   30k root 11 Jun 05:24  es2gears_wayland32
.rwxr-xr-x  492k root  1 Jul 04:05  putsurface_wayland
.rwxr-xr-x   225 root 26 Jul 04:37  pywayland-scanner
.rwxr-xr-x   68k root 28 Sep 02:16  qtwaylandscanner
.rwxr-xr-x  268k root  8 Sep 03:41  vkcube-wayland
.rwxr-xr-x   43k root  1 Jul 17:50  wayland-scanner

I am not sure how to get xwayland. I checked the arch wiki and its confusing. Could you please show me step by step?

Thank you.