Skip to content

Commit b9c8823

Browse files
committed
add docs for custom x11 config in readme
1 parent beaa5a0 commit b9c8823

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,30 @@ hooks:
150150
egpu: /home/michael/tmp/egpu.sh
151151
```
152152
153+
### Custom X11 config
154+
155+
Since version `0.20.0`, a custom x11 config template can be configured by creating a file at `/usr/share/egpu-switcher/x11-template.conf`. The default template is shown below, you can use it as a starting point.
156+
157+
```
158+
# autogenerated by egpu-switcher
159+
{{if .Modesetting}}
160+
Section "Module"
161+
Load "modesetting"
162+
EndSection
163+
{{end}}
164+
165+
Section "Device"
166+
Identifier "{{.Id}}"
167+
Driver "{{.Driver}}"
168+
BusID "{{.Bus}}"
169+
Option "AllowEmptyInitialConfiguration"
170+
Option "AllowExternalGpus" "True"
171+
EndSection
172+
```
173+
174+
> [!TIP]
175+
> For safety, and to stop egpu-switcher from printing warnings, the file should be owned by `root:root` and have a mode of `644`.
176+
153177
---
154178
155179
## Troubleshooting

0 commit comments

Comments
 (0)