forge
Explore
Log in

Don't you dare go Hollow

wiki: Document debug options

Browse files at this commit

3c84de52156c8e91cafcf64b82bf5f1dda6ce0a6Ivan MolodetskikhParent: cd555bb
resources/default-config.kdlmodified+0 -38
@@ -480,41 +480,3 @@ binds {
480 // is working.480 // is working.
481 // Mod+Shift+Ctrl+T { toggle-debug-tint; }481 // Mod+Shift+Ctrl+T { toggle-debug-tint; }
482 }482 }
483-
484-// Settings for debugging. Not meant for normal use.
485-// These can change or stop working at any point with little notice.
486-debug {
487- // Render the monitors as if for a screencast or a screen capture.
488- // Useful for previewing the block-out-from window rule.
489- // preview-render "screencast"
490- // preview-render "screen-capture"
491-
492- // Make niri take over its DBus services even if it's not running as a session.
493- // Useful for testing screen recording changes without having to relogin.
494- // The main niri instance will *not* currently take back the services; so you will
495- // need to relogin in the end.
496- // dbus-interfaces-in-non-session-instances
497-
498- // Wait until every frame is done rendering before handing it over to DRM.
499- // wait-for-frame-completion-before-queueing
500-
501- // Enable direct scanout into overlay planes.
502- // May cause frame drops during some animations on some hardware.
503- // enable-overlay-planes
504-
505- // Disable the use of the cursor plane.
506- // The cursor will be rendered together with the rest of the frame.
507- // disable-cursor-plane
508-
509- // Override the DRM device that niri will use for all rendering.
510- // render-drm-device "/dev/dri/renderD129"
511-
512- // Enable the color-transformations capability of the Smithay renderer.
513- // May cause a slight decrease in rendering performance.
514- // enable-color-transformations-capability
515-
516- // Emulate zero (unknown) presentation time returned from DRM.
517- // This is a thing on NVIDIA proprietary drivers, so this flag can be
518- // used to test that we don't break too hard on those systems.
519- // emulate-zero-presentation-time
520-}
wiki/Configuration:-Debug-Options.mdadded+127 -0
@@ -0,0 +1,127 @@
1+### Overview
2+
3+Niri has several options that are only useful for debugging, or are experimental and have known issues.
4+They are not meant for normal use.
5+
6+> [!CAUTION]
7+> These options are **not** covered by the [config breaking change policy](./Configuration:-Overview.md#breaking-change-policy).
8+> They can change or stop working at any point with little notice.
9+
10+Here are all the options at a glance:
11+
12+```
13+debug {
14+ preview-render "screencast"
15+ // preview-render "screen-capture"
16+ enable-overlay-planes
17+ disable-cursor-plane
18+ render-drm-device "/dev/dri/renderD129"
19+ dbus-interfaces-in-non-session-instances
20+ wait-for-frame-completion-before-queueing
21+ emulate-zero-presentation-time
22+ enable-color-transformations-capability
23+}
24+```
25+
26+### `preview-render`
27+
28+Make niri render the monitors the same way as for a screencast or a screen capture.
29+
30+Useful for previewing the [`block-out-from`](./Configuration:-Window-Rules.md#block-out-from) window rule.
31+
32+```
33+debug {
34+ preview-render "screencast"
35+ // preview-render "screen-capture"
36+}
37+```
38+
39+### `enable-overlay-planes`
40+
41+Enable direct scanout into overlay planes.
42+May cause frame drops during some animations on some hardware (which is why it is not the default).
43+
44+Direct scanout into the primary plane is always enabled.
45+
46+```
47+debug {
48+ enable-overlay-planes
49+}
50+```
51+
52+### `disable-cursor-plane`
53+
54+Disable the use of the cursor plane.
55+The cursor will be rendered together with the rest of the frame.
56+
57+Useful to work around driver bugs on specific hardware.
58+
59+```
60+debug {
61+ disable-cursor-plane
62+}
63+```
64+
65+### `render-drm-device`
66+
67+Override the DRM device that niri will use for all rendering.
68+
69+You can set this to make niri use a different primary GPU than the default one.
70+
71+```
72+debug {
73+ render-drm-device "/dev/dri/renderD129"
74+}
75+```
76+
77+### `dbus-interfaces-in-non-session-instances`
78+
79+Make niri create its D-Bus interfaces even if it's not running as a `--session`.
80+
81+Useful for testing screencasting changes without having to relogin.
82+
83+The main niri instance will *not* currently take back the interfaces when you close the test instance, so you will need to relogin in the end to make screencasting work again.
84+
85+```
86+debug {
87+ dbus-interfaces-in-non-session-instances
88+}
89+```
90+
91+### `wait-for-frame-completion-before-queueing`
92+
93+Wait until every frame is done rendering before handing it over to DRM.
94+
95+Useful for diagnosing certain synchronization and performance problems.
96+
97+```
98+debug {
99+ wait-for-frame-completion-before-queueing
100+}
101+```
102+
103+### `emulate-zero-presentation-time`
104+
105+Emulate zero (unknown) presentation time returned from DRM.
106+
107+This is a thing on NVIDIA proprietary drivers, so this flag can be used to test that niri doesn't break too hard on those systems.
108+
109+```
110+debug {
111+ emulate-zero-presentation-time
112+}
113+```
114+
115+### `enable-color-transformations-capability`
116+
117+Enable the color-transformations capability of the Smithay renderer.
118+May cause a slight decrease in rendering performance.
119+
120+Currently, should cause no visible changes in behavior, but it will be needed for HDR support whenever that happens.
121+So, this flag exists to be able to make sure that nothing breaks.
122+
123+```
124+debug {
125+ enable-color-transformations-capability
126+}
127+```
wiki/_Sidebar.mdmodified+1 -0
@@ -10,6 +10,7 @@
10 * [Input](./Configuration:-Input.md)10 * [Input](./Configuration:-Input.md)
11 * [Window Rules](./Configuration:-Window-Rules.md)11 * [Window Rules](./Configuration:-Window-Rules.md)
12 * [Animations](./Configuration:-Animations.md)12 * [Animations](./Configuration:-Animations.md)
13+* [Debug Options](./Configuration:-Debug-Options.md)
13 14
14 ## Development15 ## Development
15 * [Design Principles](./Design-Principles.md)16 * [Design Principles](./Design-Principles.md)