LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-03-2021, 05:22 AM   #1
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619
Blog Entries: 19

Rep: Reputation: 76
Dual monitor on RPi4


Has anyone had any luck with using 2 displays connected to the RPi4 ?
With the default /boot/config.txt I can get one display to work in whatever port I use but if I try both at the same time the second display just shows the color boot splash.
On the RPiOS it seems to work fine.

If I put this in the config.txt I can get the text console to appear on both displays:
Code:
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
But if I start X I don't get the normal window manager appearance, instead just the application bar and the rest black (both monitors show the same thing).
xrandr seems to have an issue and is not showing the second display anyway so I don't know how to tell it to use the second display as an extension rather than duplicating them.

Last edited by louigi600; 03-15-2021 at 02:42 AM.
 
Old 03-03-2021, 05:59 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,200

Rep: Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419
I think you can find some ideas/info here: https://www.raspberrypi.org/forums/v...c.php?t=244558
 
Old 03-03-2021, 06:19 AM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
@PAN64
I saw that ... but it seems to be an old thread ... on RPiOS it now works out of the box.
As I edited above: by uncommenting some stuff in the config.txt I can get both monitors to sow something ... but not much control over it.
On slackwarearm-current xrandr does not show the 2 displays so I'm not sure how to tell X what to do with them + there is something else wrong because I don't get the normal window manager appearance.

Last edited by louigi600; 03-03-2021 at 06:34 AM.
 
Old 03-03-2021, 06:33 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,200

Rep: Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419Reputation: 5419
there were some config.txt settings to try and probably you can try that tvservice command too (if available).
Probably this issue is slackware specific (and does not depend on the config), but first I would check this config file line by line.
 
Old 03-03-2021, 07:58 AM   #5
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
With a little work I got the /opt/vc to work on slackwarearm-current:
Code:
root@rpi4:/opt/vc/bin# ./tvservice -l
2 attached device(s), display ID's are : 
Display Number 2, type HDMI 0
Display Number 7, type HDMI 1
root@rpi4:/opt/vc/bin# ./tvservice -n -v 2
device_name=SAM-S24F350
root@rpi4:/opt/vc/bin# ./tvservice -n -v 7
device_name=SAM-S24D330
root@rpi4:/opt/vc/bin# ./tvservice -m DMT -v 2
Group DMT has 18 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive 
           mode 5: 640x480 @ 72Hz 4:3, clock:31MHz progressive 
           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive 
           mode 8: 800x600 @ 56Hz 4:3, clock:36MHz progressive 
           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive 
           mode 10: 800x600 @ 72Hz 4:3, clock:50MHz progressive 
           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive 
           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive 
           mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive 
           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive 
           mode 21: 1152x864 @ 75Hz 4:3, clock:108MHz progressive 
           mode 28: 1280x800 @ 60Hz 16:10, clock:83MHz progressive 
           mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive 
           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive 
           mode 47: 1440x900 @ 60Hz 16:10, clock:106MHz progressive 
           mode 58: 1680x1050 @ 60Hz 16:10, clock:146MHz progressive 
           mode 83: 1600x900 @ 60Hz 16:9, clock:108MHz progressive 
           mode 85: 1280x720 @ 60Hz 16:9, clock:74MHz progressive 
root@rpi4:/opt/vc/bin# ./tvservice -m DMT -v 7
Group DMT has 18 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive 
           mode 5: 640x480 @ 72Hz 4:3, clock:31MHz progressive 
           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive 
           mode 8: 800x600 @ 56Hz 4:3, clock:36MHz progressive 
           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive 
           mode 10: 800x600 @ 72Hz 4:3, clock:50MHz progressive 
           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive 
           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive 
           mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive 
           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive 
           mode 21: 1152x864 @ 75Hz 4:3, clock:108MHz progressive 
           mode 28: 1280x800 @ 60Hz 16:10, clock:83MHz progressive 
           mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive 
           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive 
           mode 47: 1440x900 @ 60Hz 16:10, clock:106MHz progressive 
           mode 58: 1680x1050 @ 60Hz 16:10, clock:146MHz progressive 
           mode 83: 1600x900 @ 60Hz 16:9, clock:108MHz progressive 
           mode 85: 1280x720 @ 60Hz 16:9, clock:74MHz progressive 
root@rpi4:/opt/vc/bin# ./tvservice -s -v 2
state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
root@rpi4:/opt/vc/bin# ./tvservice -s -v 7
state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
root@rpi4:/opt/vc/bin#
Xrandr produces an error message and only detects one monitor:
Code:
root@rpi4:/opt/vc/bin# cat /tmp/xrandr.log 
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080      0.00* 
root@rpi4:/opt/vc/bin#

Last edited by louigi600; 03-03-2021 at 08:07 AM.
 
1 members found this post helpful.
Old 03-11-2021, 05:40 AM   #6
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Am I the only loony that wants to connect 2 displays on the RPi4 running slackware ?
 
Old 03-14-2021, 10:36 PM   #7
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,303
Blog Entries: 4

Rep: Reputation: 193Reputation: 193
I just tried on my Pi400 and get the same results. I can get a duplicate on both monitors because xrandr thinks there is only one
 
Old 03-21-2021, 12:03 PM   #8
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
I did a little experiment today and now apparently the 2 displays are now working right on my RPi4 with current.
I started off with doing the update, hoping that it would bring some fix. Unfortunately after the update everything looked the same: xrandr outputting a warning and only one display detected, also odd black background instead of the default gray fluxbox background output duplicated on both display.

So I started thinking maybe it's an issue with xorg.conf so I removed the default one that was there (so that X would autodetect properly) restarted X ... low and behold the background is now ok and by default second display is set to be an extension right of first display. Very good ... Last time I was using 2 monitors on a Slackware system I remember having to tinker to get it to do this: now it's doing the most sensible thing by default.
Very nice.
 
2 members found this post helpful.
Old 03-21-2021, 03:50 PM   #9
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 213

Rep: Reputation: 59
Hi Louigi,

Thanks for this thread, it turns out deleting xorg.conf solved the issue on my chromebook too. What it did was changing the xorg display driver from fbturbo to default fbdev. Not only it fixed hdmi display for me, also it made video playback on a well known website behaving as it should, even in full HD. Which means it now works better than on chrome OS on this device.

Regards,
Alex
 
Old 03-25-2021, 04:21 PM   #10
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,303
Blog Entries: 4

Rep: Reputation: 193Reputation: 193
I renamed /etc/X11/xorg.conf.d and nothing changed
renamed the xorg.conf.d in /usr/local/X11 and X froze after starting.
I notice that rasbian switched to dual somewhere in the middle of the boot process, as the second monitor will switch from the color screen to text then.
 
Old 03-25-2021, 04:47 PM   #11
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
It's not the folder you need to remove or rename, just get rid of /etc/X11/xorg.conf or maybe /etc/X11/xorg.conf.d/xorg.conf
Have you edited /boot/config.txt ? You will get nothing unill you put something like this in there:
max_framebuffers=2
 
1 members found this post helpful.
Old 03-25-2021, 06:59 PM   #12
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,303
Blog Entries: 4

Rep: Reputation: 193Reputation: 193
ohh, wow, non thinking moment, ok, put the folders back and deleted the xorg.conf. I had forgotten I overwrote my Slackware SD card when I was messing with berryboot and so when I installed Slackware again I forgot yo edit the boot/config.txt.

I am working now

For search purposes. Raspberry Pi 400 Slackware works with Dual monitors.

Last edited by enine; 03-25-2021 at 07:01 PM.
 
1 members found this post helpful.
  


Reply

Tags
rpi4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RPi4 (Sarpi) - rc.local ntpdate "hack" fails to update date/time eduardr Slackware - ARM 8 03-31-2020 07:56 PM
RPi4 (Sarpi) - Installs OK from USB stick, but not from pre-mounted dir on /floppy eduardr Slackware - ARM 2 03-22-2020 02:59 AM
SARPI (fatdog) on RPi4 - no HDMI video [SOLVED] arfon Slackware - ARM 4 03-17-2020 01:47 AM
[SOLVED] Arduino IDE on RPi4 SlackwareARM -current using modified Slackbuild TheTKS Slackware - ARM 3 02-15-2020 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration