Skip to content

Instantly share code, notes, and snippets.

@leon332157
Last active November 2, 2023 16:54
Show Gist options
  • Save leon332157/cb31aa42d055b3e17d24b19551bbd492 to your computer and use it in GitHub Desktop.
Save leon332157/cb31aa42d055b3e17d24b19551bbd492 to your computer and use it in GitHub Desktop.
X11 config for cwt18 arch on visionfive2
Section "Device"
Identifier "Video Device"
Driver "modesetting"
# Option "Atomic" "true"
Option "NoCursor" "true"
EndSection
Section "OutputClass"
Identifier "starfive display"
MatchDriver "starfive"
Option "PrimaryGPU" "true"
EndSection
Section "Monitor"
Identifier "Monitor"
# Option "DPMS" "false"
EndSection
Section "Screen"
Identifier "Screen"
Monitor "Monitor"
Device "Video Device"
DefaultDepth 16
EndSection
Section "ServerLayout"
Identifier "Server Layout"
Screen "Screen"
EndSection
Section "ServerFlags"
Option "DefaultServerLayout" "Server Layout"
# Enable support for DRM format modifiers
# Option "Debug" "dmabuf_capable"
# Disable screen blanking. Disable DPMS in the Monitor section as well.
# Option "BlankTime" "35790"
# Option "StandbyTime" "35790"
# Option "SuspendTime" "35790"
# Option "OffTime" "35790"
EndSection
@leon332157
Copy link
Author

Change the default bitdepth to 16 for internal HDMI output to show the correct color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment