forge
Explore
Log in

Don't you dare go Hollow

wiki: Mention kmsro in getting started

Browse files at this commit

1096f0cf0e6f3e332994256729efbe9ba2a5685cIvan MolodetskikhParent: 7897821
wiki/Getting-Started.mdmodified+29 -0
@@ -29,6 +29,35 @@ You can try the following:
29 1. Update NVIDIA drivers. You need a GPU and drivers recent enough to support GBM.29 1. Update NVIDIA drivers. You need a GPU and drivers recent enough to support GBM.
30 2. Make sure kernel modesetting is enabled. This usually involves adding `nvidia-drm.modeset=1` to the kernel command line. Find and follow a guide for your distribution. Guides from other Wayland compositors can help.30 2. Make sure kernel modesetting is enabled. This usually involves adding `nvidia-drm.modeset=1` to the kernel command line. Find and follow a guide for your distribution. Guides from other Wayland compositors can help.
31 31
32+### Asahi, ARM, and other kmsro devices
33+
34+On some of these systems, niri fails to correctly detect the primary render device.
35+If you're getting a black screen when starting niri on a TTY, you can try to set the device manually.
36+
37+First, find which devices you have:
38+
39+```
40+$ ls -l /dev/dri/
41+drwxr-xr-x@ - root 14 мая 07:07 by-path
42+crw-rw----@ 226,0 root 14 мая 07:07 card0
43+crw-rw----@ 226,1 root 14 мая 07:07 card1
44+crw-rw-rw-@ 226,128 root 14 мая 07:07 renderD128
45+crw-rw-rw-@ 226,129 root 14 мая 07:07 renderD129
46+```
47+
48+You will likely have one `render` device and two `card` devices.
49+
50+Open the niri config file at `~/.config/niri/config.kdl` and put your `render` device path like this:
51+
52+```
53+debug {
54+ render-drm-device "/dev/dri/renderD128"
55+}
56+```
57+
58+Save, then try to start niri again.
59+If you still get a black screen, try using each of the `card` devices.
60+
32 ### Nix/NixOS61 ### Nix/NixOS
33 62
34 There's a common problem of mesa drivers going out of sync with niri, so make sure your system mesa version matches the niri mesa version.63 There's a common problem of mesa drivers going out of sync with niri, so make sure your system mesa version matches the niri mesa version.