Skip to content

Instantly share code, notes, and snippets.

@raaed0
Forked from notro/fbtft.conf
Last active September 2, 2017 08:34
Show Gist options
  • Save raaed0/415feb4eaea6ac10fb4226cd669b5cb9 to your computer and use it in GitHub Desktop.
Save raaed0/415feb4eaea6ac10fb4226cd669b5cb9 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
Section "Device"
Identifier "myfb"
Driver "fbdev"
Option "fbdev" "/dev/fb8"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment