WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Pi 4 dual Monitor  (Read 22401 times)

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Pi 4 dual Monitor
« Reply #15 on: August 09, 2021, 08:23:21 AM »
Hi Juanito
The last dmesg he posted shows  vc4  can't find  kernel/drivers/media/cec/cec.ko.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #16 on: August 09, 2021, 08:46:35 AM »
Reboot means power-off and power-on again.

Once you have rebooted to the console prompt, issue the command “tce-load -i Xorg-3d”. This will have the effect of loading the graphics-KERNEL module , which, if you entered the dtoverlay line mentioned previously into config.txt, will blank the screen briefly.

Code: [Select]
$ tce-load -i Xorg-3d
Xorg-3d.tcz: OK

its just says that the extension was loaded and the Screen didn't blank. Maybe because the extension "graphics-5.10.16-piCore-v7l.tcz" is listed in onboot.lst ?
« Last Edit: August 09, 2021, 08:54:19 AM by Rabie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: Pi 4 dual Monitor
« Reply #17 on: August 09, 2021, 12:26:20 PM »
graphics-5.10.16-piCore-v7l was missing a driver - I added it.

Please update graphics-5.10.16-piCore-v7l, reboot and check "dmesg | tail -20" to verfiy that the vc4 driver loads.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #18 on: August 09, 2021, 02:35:08 PM »
Hi Juanito,
graphics-5.10.16-piCore-v7l was missing a driver - I added it.

Please update graphics-5.10.16-piCore-v7l, reboot and check "dmesg | tail -20" to verfiy that the vc4 driver loads.

wow that driver did it, now both Screens works (See Attachments)

so now i need to let both Screens work with xrandr:
Code: [Select]
$ xrandr
xrandr : Failed to get size of gamma for output "default"
Screen 0: minimum 1280 x 1024, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
1280x1024      0.00*

could you show me the way ?

Edit: while booting the second Screen stucks like i said before on the rainbow Screen and then after it finished booting the second Screen works fine!
can i let the second Screen shows what the first Screen shows while booting ?
« Last Edit: August 09, 2021, 02:50:30 PM by Rabie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: Pi 4 dual Monitor
« Reply #19 on: August 10, 2021, 04:03:04 AM »
As per your Xorg.0.log, you are still using the fbturbo driver - I don't know if that effects xrandr, but it is blocking 3d acceleration.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #20 on: August 10, 2021, 04:14:20 AM »
Quote
As per your Xorg.0.log, you are still using the fbturbo driver - I don't know if that effects xrandr, but it is blocking 3d acceleration.

how do i uninstall it ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: Pi 4 dual Monitor
« Reply #21 on: August 10, 2021, 04:21:20 AM »
You could delete it from Xorg.tcz.dep - check also that you don't have it in onboot.lst

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #22 on: August 10, 2021, 04:23:37 AM »
Quote
As per your Xorg.0.log, you are still using the fbturbo driver - I don't know if that effects xrandr, but it is blocking 3d acceleration.

oh yes you are right! 
After i remove the Driver and restarted X server i am getting with xrandr the right information.
Code: [Select]
sudo rm /usr/local/share/X11/xorg.conf.d/fbturbo.conf
sudo rm /usr/local/lib/xorg/modules/drivers/fbturbo_drv.so


Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #23 on: August 10, 2021, 04:32:04 AM »
You could delete it from Xorg.tcz.dep - check also that you don't have it in onboot.lst

OMG it works:

Code: [Select]
$ xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 7680 x 7680
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1680x1050     59.88
   1600x900      60.00
   1280x1024     75.02    60.02
   1280x800      59.91
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    60.00
   832x624       74.55
   800x600       75.00    60.32
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08
HDMI-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1680x1050     59.88
   1600x900      60.00
   1280x1024     75.02    60.02
   1280x800      59.91
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    60.00
   832x624       74.55
   800x600       75.00    60.32
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08

Thank you very very much for your help!   :D :D

there is only on thing left:

while booting the second Screen stucks like i said before on the rainbow Screen and then after it finished booting the second Screen works fine!
can i let the second Screen shows what the first Screen shows while booting ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: Pi 4 dual Monitor
« Reply #24 on: August 10, 2021, 04:41:48 AM »
I suspect that you will only see data on one screen during boot - I don't know this for sure, you'll have to google or search/post a question on the raspberrypi forums to find out..

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #25 on: August 10, 2021, 05:01:58 AM »
I suspect that you will only see data on one screen during boot - I don't know this for sure, you'll have to google or search/post a question on the raspberrypi forums to find out..

Okay, Thanx

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #26 on: August 10, 2021, 07:13:43 AM »
Hi Juanito,

after all the freerdp didn't work with the "/Multimon:force" option

Code: [Select]
xfreerdp /sec:rdp /drive:USB-Stick,/mnt/ /multimon:force +multitransport +auto-reconnect -themes -wallpaper /cert-ignore /bpp:15 /kbd:0x00000407 /d:domain /v:server:port /f

Code: [Select]
[10:31:04:365] [5420:5421] [INFO][com.freerdp.core] - freerdp_connect:freerdp_set_last_error_ex resetting error state
[10:31:04:365] [5420:5421] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[10:31:04:365] [5420:5421] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[10:31:04:365] [5420:5421] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[10:31:04:787] [5420:5421] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[10:31:04:795] [5420:5421] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[10:31:04:796] [5420:5421] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[10:31:04:807] [5420:5421] [ERROR][com.freerdp.core.gcc] - WARNING: true multi monitor support was not advertised by server!
[10:31:04:807] [5420:5421] [ERROR][com.freerdp.core.gcc] - Sending multi monitor information anyway (may break connectivity!)
[10:31:05:912] [5420:5421] [INFO][com.freerdp.gdi] - Local framebuffer format  PIXEL_FORMAT_BGRX32
[10:31:05:912] [5420:5421] [INFO][com.freerdp.gdi] - Remote framebuffer format PIXEL_FORMAT_RGB16
[10:31:05:048] [5420:5421] [INFO][com.winpr.clipboard] - initialized POSIX local file subsystem
[10:31:05:146] [5420:5442] [INFO][com.freerdp.channels.rdpdr.client] - Loading device service drive [USB-Stick] (static)
[10:31:05:147] [5420:5421] [INFO][com.freerdp.channels.rdpsnd.client] - [static] Loaded fake backend for rdpsnd

it says that the multi monitor support was not advertised by server, but it actually works with TinyCore with the same freerdp version.
« Last Edit: August 10, 2021, 07:15:24 AM by Rabie »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #27 on: August 11, 2021, 02:37:48 AM »
there is a thing i found out maybe effect this option /multimon

when i install freerdp.tcz and try to start it, it asks for the libnettle.so.7
Code: [Select]
xfreerdp: error while loading shared libraries: libnettle.so.7: cannot open shared object file: No such file or directory
and when installing nettle.tcz
i get the latest version:
Code: [Select]
/usr/local/lib/libnettle.a
/usr/local/lib/libnettle.so.8.1
/usr/local/lib/libnettle.so.8
/usr/local/lib/libnettle.so

so i downloaded the old one from V11.x/armv7
is that why the freerdp isn't working with /multimon ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: Pi 4 dual Monitor
« Reply #28 on: August 12, 2021, 08:42:30 AM »
so i downloaded the old one from V11.x/armv7
is that why the freerdp isn't working with /multimon ?

Did you try it (use the "sudo ldconfig" command first)?

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Pi 4 dual Monitor
« Reply #29 on: August 12, 2021, 09:50:46 AM »
so i downloaded the old one from V11.x/armv7
is that why the freerdp isn't working with /multimon ?

Did you try it (use the "sudo ldconfig" command first)?

yes now i did but freerdp still asking for "libnettle.so.7"
« Last Edit: August 12, 2021, 10:20:25 AM by Rabie »