Created
June 1, 2020 15:01
-
-
Save antegallya/648e32c51828c638acfb347d49ba9e1c to your computer and use it in GitHub Desktop.
multi-head RPi on virtual screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "Monitor" | |
Identifier "real_monitor" | |
EndSection | |
Section "Screen" | |
Identifier "real_screen" | |
# Device configured in /usr/share/X11/xorg.conf.d/99-fbturbo.conf | |
Device "Allwinner A10/A13 FBDEV" | |
Monitor "real_monitor" | |
EndSection | |
Section "Device" | |
Identifier "dummy_videocard" | |
Driver "dummy" | |
# VideoRam size in KiB. | |
# 1024x768 24bpp would need 3072 KiB | |
# Didn't check why it is 1024 * 768 * 4 instead of *3. | |
# Since memory on RPi is tight, we should try to be parsimonious. | |
# We should also try to be safe and give at least two buffers. | |
VideoRam 8192 | |
EndSection | |
Section "Monitor" | |
Identifier "dummy_monitor" | |
EndSection | |
Section "Screen" | |
Identifier "dummy_screen" | |
Device "dummy_videocard" | |
Monitor "dummy_monitor" | |
SubSection "Display" | |
Depth 24 | |
# Set the dummy screen resolution. | |
Modes "1024x768" | |
EndSubSection | |
EndSection | |
Section "ServerLayout" | |
Identifier "XineramaLayout" | |
# Screen 0 is the primary screen. Swap real_screen and dummy_screen to | |
# change the primary. | |
Screen 0 "real_screen" 0 0 | |
# Replace RightOf by LeftOf/Above/Below for different placement. | |
Screen 1 "dummy_screen" RightOf "real_screen" | |
# Extend display on both screens using Xinerama. | |
Option "Xinerama" "on" | |
EndSection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment