Skip to content

Instantly share code, notes, and snippets.

@notro
Created February 11, 2015 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save notro/63fc8f563b5f85010d30 to your computer and use it in GitHub Desktop.
Save notro/63fc8f563b5f85010d30 to your computer and use it in GitHub Desktop.
xorg configuration for use with FBTFT on Raspian: /etc/X11/xorg.conf.d/fbtft.conf
# FBTFT xorg config file
#
# startx -- -layout TFT
# startx -- -layout HDMI
#
# startx
# When -layout is not set, the first is used: TFT
#
Section "ServerLayout"
Identifier "TFT"
Screen 0 "ScreenTFT"
EndSection
Section "ServerLayout"
Identifier "HDMI"
Screen 0 "ScreenHDMI"
EndSection
Section "Screen"
Identifier "ScreenHDMI"
Monitor "MonitorHDMI"
Device "DeviceHDMI"
Endsection
Section "Screen"
Identifier "ScreenTFT"
Monitor "MonitorTFT"
Device "DeviceTFT"
Endsection
Section "Monitor"
Identifier "MonitorHDMI"
Endsection
Section "Monitor"
Identifier "MonitorTFT"
Endsection
Section "Device"
Identifier "DeviceHDMI"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
Section "Device"
Identifier "DeviceTFT"
Option "fbdev" "/dev/fb1"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment