Skip to content

Commit

Permalink
add docs for custom x11 config in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hertg committed Jan 26, 2025
1 parent beaa5a0 commit b9c8823
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,30 @@ hooks:
egpu: /home/michael/tmp/egpu.sh
```
### Custom X11 config
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.

```
# autogenerated by egpu-switcher
{{if .Modesetting}}
Section "Module"
Load "modesetting"
EndSection
{{end}}

Section "Device"
Identifier "{{.Id}}"
Driver "{{.Driver}}"
BusID "{{.Bus}}"
Option "AllowEmptyInitialConfiguration"
Option "AllowExternalGpus" "True"
EndSection
```
> [!TIP]
> For safety, and to stop egpu-switcher from printing warnings, the file should be owned by `root:root` and have a mode of `644`.
---
## Troubleshooting
Expand Down

0 comments on commit b9c8823

Please sign in to comment.