wiki: Update getting started
Browse files at this commitb6f6d6a7c24731fb8f03e797ade7805b76c334c6Parent: 5ff8b891 changed file +3 -9
- wiki/Getting-Started.md +3 -9
wiki/Getting-Started.mdmodified+3 -9
| @@ -10,6 +10,7 @@ To exit niri, press <kbd>Super</kbd><kbd>Shift</kbd><kbd>E</kbd>. | |||
| 10 | 10 | ||
| 11 | If you're not using a display manager, you should run `niri-session` (systemd/dinit) or `niri --session` (others) from a TTY. | 11 | If you're not using a display manager, you should run `niri-session` (systemd/dinit) or `niri --session` (others) from a TTY. |
| 12 | The `--session` flag will make niri import its environment variables globally into the system manager and D-Bus, and start its D-Bus services. | 12 | The `--session` flag will make niri import its environment variables globally into the system manager and D-Bus, and start its D-Bus services. |
| 13 | +The `niri-session` script will additionally start niri as a systemd/dinit service, which starts up a graphical session target required by some services like portals. | ||
| 13 | 14 | ||
| 14 | You can also run `niri` inside an existing desktop session. | 15 | You can also run `niri` inside an existing desktop session. |
| 15 | Then it will open as a window, where you can give it a try. | 16 | Then it will open as a window, where you can give it a try. |
| @@ -22,21 +23,13 @@ Finally, the [Xwayland](./Xwayland.md) page explains how to run X11 applications | |||
| 22 | 23 | ||
| 23 | ### NVIDIA | 24 | ### NVIDIA |
| 24 | 25 | ||
| 25 | -NVIDIA GPUs tend to have problems running niri (for example, the screen remains black upon starting from a TTY). | 26 | +NVIDIA GPUs can have problems running niri (for example, the screen remains black upon starting from a TTY). |
| 26 | Sometimes, the problems can be fixed. | 27 | Sometimes, the problems can be fixed. |
| 27 | You can try the following: | 28 | You can try the following: |
| 28 | 29 | ||
| 29 | 1. Update NVIDIA drivers. You need a GPU and drivers recent enough to support GBM. | 30 | 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. | 31 | 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 | 32 | ||
| 32 | -If niri runs but the screen flickers, try adding this into your niri config: | ||
| 33 | - | ||
| 34 | -``` | ||
| 35 | -debug { | ||
| 36 | - wait-for-frame-completion-before-queueing | ||
| 37 | -} | ||
| 38 | -``` | ||
| 39 | - | ||
| 40 | ### Asahi, ARM, and other kmsro devices | 33 | ### Asahi, ARM, and other kmsro devices |
| 41 | 34 | ||
| 42 | On some of these systems, niri fails to correctly detect the primary render device. | 35 | On some of these systems, niri fails to correctly detect the primary render device. |
| @@ -69,6 +62,7 @@ If you still get a black screen, try using each of the `card` devices. | |||
| 69 | ### Nix/NixOS | 62 | ### Nix/NixOS |
| 70 | 63 | ||
| 71 | 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. | 64 | 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. |
| 65 | +When this happens, you usually see a black screen when trying to start niri from a TTY. | ||
| 72 | 66 | ||
| 73 | Also, on Intel graphics, you may need a workaround described [here](https://nixos.wiki/wiki/Intel_Graphics). | 67 | Also, on Intel graphics, you may need a workaround described [here](https://nixos.wiki/wiki/Intel_Graphics). |
| 74 | 68 | ||