Walter-X
Posts: 2
Joined: Tue Mar 03, 2020 7:27 am

Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 9:39 am

I've two monitors installed at the 2 hdmi ports of the raspberry pi 4.

I'm using raspbian buster lite without graphical gui.

Is it possible to configure the monitor settings not to be mirrored and set as one extended screen over the two monitors?

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 10:19 am

Under the Preferences menu you should have something about screen settings or ArandR. That will show you the current setup for your screens.

You can drag the two screen boxes around to the configuration you prefer.
[edit] I should have read the original post more carefully. I did a Dougie and missed the "without GUI" bit :(
Last edited by rpdom on Tue Mar 03, 2020 11:38 am, edited 1 time in total.
Unreadable squiggle

wildfire
Posts: 606
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 10:42 am

Walter-X wrote:
Tue Mar 03, 2020 9:39 am
I'm using raspbian buster lite without graphical gui.
rpdom wrote:
Tue Mar 03, 2020 10:19 am
Under the Preferences menu you should have something about screen settings or ArandR. That will show you the current setup for your screens.

You can drag the two screen boxes around to the configuration you prefer.
@OP I don't believe what you want is possible but I could be wrong.
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

aBUGSworstnightmare
Posts: 1886
Joined: Tue Jun 30, 2015 1:35 pm

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 11:27 am

Should be possible with legacy driver as it creates two framebuffer devices
Search the forum for a how-to

User avatar
HermannSW
Posts: 2575
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 2:54 pm

aBUGSworstnightmare wrote:
Tue Mar 03, 2020 11:27 am
Should be possible with legacy driver as it creates two framebuffer devices
Wrong, the Pi4B does create only one framebuffer device, even if two HDMI monitors are connected.
So mirroring is all that is possible without X11.
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 2:55 pm

HermannSW wrote:
Tue Mar 03, 2020 2:54 pm
aBUGSworstnightmare wrote:
Tue Mar 03, 2020 11:27 am
Should be possible with legacy driver as it creates two framebuffer devices
Wrong, the Pi4B does create only one framebuffer device, even if two HDMI monitors are connected.
So mirroring is all that is possible without X11.
Wrong Wrong. Using the legacy drivers (Disable FKMS) on Pi4 you will get two framebuffers, but you won't get 3D acceleration.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8739
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 3:30 pm

And using the DRM API you can attach whatever image planes you fancy to each of the screens, replacing the default mirrored frame buffer.
It all depends what you actually want to do on those two screens. Extending the console over two screens would be a very odd use case.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

wildfire
Posts: 606
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 6:55 pm

6by9 wrote:
Tue Mar 03, 2020 3:30 pm
Extending the console over two screens would be a very odd use case.
That's how I read it 6by9, it appears from the OP that that is what he wants to do though why? Clarification required I think.

Extend by width (why?) or extend by height (more feasible but again why?).
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

User avatar
HermannSW
Posts: 2575
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Raspberry Pi 4 two monitors with extended screen

Tue Mar 03, 2020 7:34 pm

Thanks for correcting me, after disabling FKMS as jamesh proposed, really two framebuffers are there.

I just made my con_show tool display image on /dev/fb1 (1024x768, right), and raspivid preview show on 1360x768 /dev/fb0 left.
I did fill top 10 rows of both framebuffers with red/blue:
Image
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

Nightwing2012
Posts: 49
Joined: Sat Oct 29, 2011 9:19 pm

Re: Raspberry Pi 4 two monitors with extended screen

Sun Mar 15, 2020 5:28 am

Thank you jamesh and 6by9 for that very informative item of comment out and use the old drivers. Doing a 4th gen con box myself.

Need to dig into how to do the DRM API image plane said in one post.

Return to “Advanced users”