diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf new file mode 100644 index 0000000..1cd5036 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf @@ -0,0 +1,41 @@ +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" +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 diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend new file mode 100644 index 0000000..2953b55 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend @@ -0,0 +1,2 @@ +# provide visionfive2 specific X11 config +FILESEXTRAPATHS:prepend:visionfive2 := "${THISDIR}/${PN}:" diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend new file mode 100644 index 0000000..0bd371d --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend @@ -0,0 +1,5 @@ +RDEPENDS:${PN}:append:visionfive2 = " \ + xf86-video-modesetting \ + ${PN}-extension-glx \ + xserver-xf86-config \ +"