Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Rabie on August 05, 2021, 03:21:51 AM

Title: Pi 4 dual Monitor
Post by: Rabie on August 05, 2021, 03:21:51 AM
Hello there,

i have installed piCore 13.x armv7l on pi 4 and i want to use 2 Monitors.

Anyway i have used on TinyCore pure64 xrandr for that

so i installed xrandr on piCore but i am getting the following:

Code: [Select]
$xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920x1080, maximum 1920x1080
default connected 1920x1080+0+0 0mm x 0mm
  1920x1080        0.00*

i already tried to add a new Mode like:
Code: [Select]
$cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

$xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr: Failed to get size of gamma for output default


How can i get this to work with xrandr ?

Thank you
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 08, 2021, 07:21:44 AM
Hi,

i found out that there is just one Framebuffer in PiCore:
Code: [Select]
$ls /dev/fb*
/dev/fb0

i don't know if this possible to make piCore work with 2 Monitors
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 08, 2021, 07:54:28 AM
Have you tried using Xorg-3d and dtoverlay=vc4-kms-v3d-pi4?

Are both of the monitors hdmi?

Do you see both monitors mentioned in Xorg.0.log?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 08, 2021, 10:04:37 AM
Hi Juanito,
Quote
Have you tried using Xorg-3d and dtoverlay=vc4-kms-v3d-pi4?

i just tried that and the second Monitor stucks on the rainbow screen while booting.

Quote
Are both of the monitors hdmi?

the first one is direkt from HDMI to HDMI
the second is from HDMI to DVI (because my second Monitor doesn't has HDMI) But it work's when its the only Monitor connected

Quote
Do you see both monitors mentioned in Xorg.0.log?

i dont think so, it just says that the system use some Default Screen
Here ist the Log File (See Attachtment)

Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 08, 2021, 11:31:25 AM
I see a couple of problems:

* the expat2 extension does not seem to be loaded?
* the xf86-video-fbturbo extension prevents 3d acceleration from working

You could try deleting /usr/local/share/X11/xorg.conf.d/fbturbo.conf and re-starting X
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 08, 2021, 02:04:38 PM
Hi Juanito,
Quote
* the expat2 extension does not seem to be loaded?
its already installed if this what you mean
Code: [Select]
$ tce-load -wi expat2
expat2 is already installed!

Quote
You could try deleting /usr/local/share/X11/xorg.conf.d/fbturbo.conf and re-starting X

nothing happens, the second Monitor still stuck on the rainbow screen
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 08, 2021, 02:13:58 PM
Could you attach the latest Xorg.0.log
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 08, 2021, 02:28:31 PM
Could you attach the latest Xorg.0.log
yes of course!

i hope, i am not doing it wrong
i did it like that:

Code: [Select]
sudo rm /usr/local/share/X11/xorg.conf.d/fbturbo.conf
startx
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 08, 2021, 03:17:22 PM
The fbturbo driver is still being loaded, could you delete /usr/local/lib/xorg/modules/drivers/fbturbo_drv.so, exit the gui and re-start X
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 08, 2021, 04:34:39 PM
The fbturbo driver is still being loaded, could you delete /usr/local/lib/xorg/modules/drivers/fbturbo_drv.so, exit the gui and re-start X

so i deleted the driver
Code: [Select]
sudo rm /usr/local/share/X11/xorg.conf.d/fbturbo.conf
sudo rm /usr/local/lib/xorg/modules/drivers/fbturbo_drv.so

i saw in the log that it loaded some lib:
/usr/local/lib/xorg/modules/libfbdevhw.so

so i deleted it too
Code: [Select]
sudo rm /usr/local/lib/xorg/modules/libfbdevhw.so

this is the new Log
do i have to kill some process bevor i start X again ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 09, 2021, 03:34:44 AM
You should not delete /usr/local/lib/xorg/modules/libfbdevhw.so, this has nothing to do with the fbturbo driver.

Xorg is still using the fbturbo driver, which must mean that you have either not deleted it or are rebooting after having deleted it.

Do you see at least one of the screens blank when you load Xorg-3d (which loads graphics-KERNEL) and it enters kms mode?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 09, 2021, 04:30:08 AM
Hi Juanito,

Quote
Xorg is still using the fbturbo driver, which must mean that you have either not deleted it or are rebooting after having deleted it.
no i deleted both Files and did not reboot

i think i was doing the restart from X wrong :o

i deleted both Files:
Code: [Select]
sudo rm /usr/local/share/X11/xorg.conf.d/fbturbo.conf
sudo rm /usr/local/lib/xorg/modules/drivers/fbturbo_drv.so

and then i killed the x server:
Code: [Select]
sudo pkill -f "/usr/local/lib/xorg/Xorg -logfile /tmp/xorg.log -nolisten tcp"
and now when i do:
Code: [Select]
$sudo Xorg -configurethis what i get: (See Log)

and if i run:
Code: [Select]
$startxfailed in waitforX

Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 09, 2021, 07:00:05 AM
To exit to the console prompt you can use the exittc icon.

There is no need to use “Xorg -configure”, the automatic configuration should work.

First we need to check that you are in kms mode - if you reboot to the console prompt and then load Xorg-3d, do you see the screen blank and then come back again?

Does “dmesg | tail -20” show vc4 and v3d being initialised?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 09, 2021, 08:10:18 AM
Quote
First we need to check that you are in kms mode - if you reboot to the console prompt and then load Xorg-3d, do you see the screen blank and then come back again?
i am sorry but I don't even know how do i enter the kms mode i just did like you said " with exittc => exit to prompt " is this the same as reboot to console prompt ?


Quote
First we need to check that you are in kms mode - if you reboot to the console prompt and then load Xorg-3d, do you see the screen blank and then come back again?
what do you mean with load Xorg-3d and the screen blanck ?

Quote
Does “dmesg | tail -20” show vc4 and v3d being initialised?


Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 09, 2021, 08:16:27 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.
Title: Re: Pi 4 dual Monitor
Post by: Rich 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.
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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 ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito 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.
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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 ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito 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.
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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 ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito 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
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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

Title: Re: Pi 4 dual Monitor
Post by: Rabie 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 ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito 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..
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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.
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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 ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito 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)?
Title: Re: Pi 4 dual Monitor
Post by: Rabie 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"
Title: Re: Pi 4 dual Monitor
Post by: Rich on August 12, 2021, 11:05:06 AM
Hi Rabie
... but freerdp still asking for "libnettle.so.7"
sudo ldconfig  will not effect which libraries  freerdp  will look for.

... so i downloaded the old one from V11.x/armv7 ...
You also need to load the extension.
If you overwrite your existing nettle extension with the the old version, you need to reboot to load it.
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 12, 2021, 12:20:42 PM
... but freerdp still asking for "libnettle.so.7"
sudo ldconfig  will not effect which libraries  freerdp  will look for.

I thought the old nettle extension had been mounted somewhere and the libs copied into the root filesystem.
Title: Re: Pi 4 dual Monitor
Post by: Rich on August 12, 2021, 12:29:13 PM
Hi Juanito
tce-load runs  ldconfig  in the  update_system()  function which gets called by the  install()  function.
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 12, 2021, 12:33:13 PM
Yes, but when you manually mount an extension in, say, /tmp and copy the files to / ldconfig is needed 🙂
Title: Re: Pi 4 dual Monitor
Post by: Rich on August 12, 2021, 12:41:36 PM
Hi Juanito
You are correct sir. I missed this part when I read your reply:
... and the libs copied into the root filesystem.

I really should pay closer attention. :-[
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 12, 2021, 02:00:45 PM
Hi Rich,
Quote
You also need to load the extension.
If you overwrite your existing nettle extension with the the old version, you need to reboot to load it.

i already did all of that and the freerdp is working fine with one Monitor but the Problem what i am facing is like i mentioned before:
Quote
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.

that is why i thought that the old nettle extension is the Problem.

And maybe its because the piCore take the two Monitors as one Large Screen ? (See Attachment)
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 14, 2021, 06:05:51 AM
The problem with the unmet dep on libnettle.so.7 seems to have been caused by the gnutls dep file.

The gnutls extension is the same in piCore-12.x and piCore-13.x, but the dep file in piCore-13.x was missing p11-kit and nettle.

The update to nettle in piCore-13.x (libnettle.so.7 -> libnettle.so.8 ) then broke gnutls and perhaps other extensions.

I created a nettle7 extension for backwards compatibility and adjusted the gnutls dep file accordingly - you will need to update your local copy.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 15, 2021, 05:52:27 AM
Hi Juanito,

i just installed the new nettle7 extension and this got the freerdp to work with both Monitors!

the next problem what i have is:

the rdp image structure is loading Lines / blockwise screen layout (Realy slow)
even when i use the the "/gdi:hw" Option.

So i tried to reload the fbturbo driver again to see if it's better and indeed it is! (See this topic: https://www.raspberrypi.org/forums/viewtopic.php?t=249628)

do you have any ideas how do i get a faster redering oder get the two Monitors to work with the fbturbo ?

Thx



Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 15, 2021, 06:15:02 AM
In the link you posted they give an Xorg conf snippet to get two monitors with fbturbo - did you try it?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 15, 2021, 07:44:56 AM
In the link you posted they give an Xorg conf snippet to get two monitors with fbturbo - did you try it?

yes i tried it but before the new nettle7 extension without success

now i tried it again after and i am getting 2 Monitors Buffering but they buffer the same like a Mirror!

Hier ist my xorg.conf:
Code: [Select]
Section "Device"
        Identifier      "HDMI-1"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "SwapbuffersWait" "true"
EndSection

Section "Device"
        Identifier      "HDMI-2"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb1"
        Option          "SwapbuffersWait" "true"
EndSection

Section "Monitor"
    Identifier  "HDMI-1"
    Option      "PreferredMode" "1920x1080"
    Option      "Primary" "true"
    Option      "DPMS" "false"
#    Option      "Position" "0 0"
EndSection

Section "Monitor"
    Identifier  "HDMI-2"
    Option      "PreferredMode" "1280x1024"
    Option      "DPMS" "false"
    Option      "LeftOf" "HDMI1"
#    Option      "Position" "1280 1024"
EndSection

Section "Screen"
        Identifier      "screen0"
        Device          "HDMI-1"
        Monitor         "HDMI-1"
EndSection

Section "Screen"
        Identifier      "screen1"
        Device          "HDMI-2"
        Monitor         "HDMI-2"
EndSection

Section "ServerLayout"
        Identifier      "default"
        Option          "Xinerama" "off"
#        Option          "Clone" "off"      ===> this option is not to find in Xorg.conf website  ( https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading16 )
        Screen 0        "screen0"
        Screen 1        "screen1" RightOf "screen0"
EndSection

i can't find the option that makes the socond Monitor not as clone to the first one but as an extension Monitor
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 15, 2021, 08:05:41 AM
You say hdmi 2 is left of hdmi 1, but you also say screen 1 is right of screen 0?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 15, 2021, 08:09:10 AM
You say hdmi 2 is left of hdmi 1, but you also say screen 1 is right of screen 0?

yes is't that the same ? even tho i tried to delete one of them, i am still getting a the same on both Screens

usually i would do that with xrandr but it's not working when fbturbo is loaded, is there someway to get xrandr work ?

Code: [Select]

Section "Device"
        Identifier      "HDMI-1"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "SwapbuffersWait" "true"
EndSection

Section "Device"
        Identifier      "HDMI-2"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb1"
        Option          "SwapbuffersWait" "true"
EndSection

Section "Monitor"
    Identifier  "HDMI-1"
    Option      "PreferredMode" "1920x1080"
    Option      "Primary" "true"
    Option      "Enable" "true"
    Option      "DPMS" "false"
#    Option      "Position" "0 0"
EndSection

Section "Monitor"
    Identifier  "HDMI-2"
    Option      "PreferredMode" "1280x1024"
    Option      "DPMS" "false"
    Option      "Enable" "true"
#    Option      "LeftOf" "HDMI1"
#    Option      "Position" "1280 1024"
EndSection

Section "Screen"
        Identifier      "screen0"
        Device          "HDMI-1"
        Monitor         "HDMI-1"
EndSection

Section "Screen"
        Identifier      "screen1"
        Device          "HDMI-2"
        Monitor         "HDMI-2"
EndSection

Section "ServerLayout"
        Identifier      "default"
        Screen          "screen0"
        Screen          "screen1" RightOf "screen0"
EndSection
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 15, 2021, 08:20:01 AM
I think the problem is that fbturbo is old and not maintained..
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 15, 2021, 09:10:58 AM
It's perhaps a long shot, but maybe wayland/weston might work better than x11?

A few hints here: http://forum.tinycorelinux.net/index.php/topic,23269.msg150229.html
Title: Re: Pi 4 dual Monitor
Post by: Rich on August 15, 2021, 09:34:31 AM
Hi Rabie
... Hier ist my xorg.conf:
Code: [Select]
----- Snip -----
Section "Monitor"
    Identifier  "HDMI-2"
    Option      "PreferredMode" "1280x1024"
    Option      "DPMS" "false"
    Option      "LeftOf" "HDMI1"
#    Option      "Position" "1280 1024"
EndSection
 ----- Snip -----

I think  HDMI1  is missing a dash,  HDMI-1.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 15, 2021, 10:18:22 AM
Hi Rich,

Hi Rabie
... Hier ist my xorg.conf:
Code: [Select]
----- Snip -----
Section "Monitor"
    Identifier  "HDMI-2"
    Option      "PreferredMode" "1280x1024"
    Option      "DPMS" "false"
    Option      "LeftOf" "HDMI1"
#    Option      "Position" "1280 1024"
EndSection
 ----- Snip -----

I think  HDMI1  is missing a dash,  HDMI-1.

You are absolutely right, i correct it but still not working
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 15, 2021, 10:22:41 AM
It's perhaps a long shot, but maybe wayland/weston might work better than x11?

A few hints here: http://forum.tinycorelinux.net/index.php/topic,23269.msg150229.html

i will have a look at that.

Quote
I think the problem is that fbturbo is old and not maintained..

is there any way to update the fbturbo driver?  because i am using it on TinyCore  12.x/x86_64 and it just working fine with xrandr and without an xorg.conf
Title: Re: Pi 4 dual Monitor
Post by: Rich on August 15, 2021, 10:33:01 AM
Hi Rabie
Quote
Xinerama is an extension to the X Window System that enables X applications and window managers to use two or more physical displays as one large virtual ...
Shouldn't  Option          "Xinerama" "off"  be  "on" ?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 15, 2021, 11:02:26 AM
Hi Rabie
Quote
Xinerama is an extension to the X Window System that enables X applications and window managers to use two or more physical displays as one large virtual ...
Shouldn't  Option          "Xinerama" "off"  be  "on" ?

"Xinerama" is disabled by Default https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading16

and when i active it nothing happens  :-\
Code: [Select]
Section "ServerLayout"
        Identifier      "default"
        Screen          "screen0"
        Screen          "screen1" RightOf "screen0"
        Option          "Xinerama" "on"
EndSection
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 16, 2021, 09:59:01 AM
I think the problem is that fbturbo is old and not maintained..

would the fbturbo actually with an old kernel work ? Like piCore V8x or V9x or will those Kernel not work with pi4 ?
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 16, 2021, 10:12:01 AM
I think it would be better to use the latest kernel with RPi4.

If Xorg-3d is too slow in the freerdp window, you could try replacing dtoverlay=vc4-kms-v3d-pi4 with dtoverlay=vc4-fkms-v3d in config.txt

Is/can freerdp be set to use h264 hw acceleration?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 16, 2021, 12:24:21 PM
Quote
If Xorg-3d is too slow in the freerdp window, you could try replacing dtoverlay=vc4-kms-v3d-pi4 with dtoverlay=vc4-fkms-v3d in config.txt

i just tried that, the freerdp is soo slow  :(

Quote
Is/can freerdp be set to use h264 hw acceleration?

i actually don't know what does that mean, but i am gonna definitly read about it 😅
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 16, 2021, 12:54:36 PM
i just tried that, the freerdp is soo slow

Did you reboot after charging the overlay to fkms?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 16, 2021, 12:56:20 PM
i just tried that, the freerdp is soo slow

Did you reboot after charging the overlay to fkms?

yes of course
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 24, 2021, 11:59:09 AM
Hi Juanito,

It's perhaps a long shot, but maybe wayland/weston might work better than x11?

A few hints here: http://forum.tinycorelinux.net/index.php/topic,23269.msg150229.html

sorry but this will not be the solution for me.

i realy need to get it work with fbturbo, could we get another version of it maybe ? :(

Here is my Xorg.log maybe you will see something i didn't see  :-\
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 24, 2021, 12:18:41 PM
Did you try weston?

As explained earlier, there has not been an update to the fbturbo source code for a long time - as far as I know, the piCore fbturbo extension uses the latest code.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 24, 2021, 01:38:21 PM
Did you try weston?

As explained earlier, there has not been an update to the fbturbo source code for a long time - as far as I know, the piCore fbturbo extension uses the latest code.

yes i tried weston but not with xfreerdp, but i already had some automatism in Xorg and if i used weston, i have do do everything over again. That is why i want to find an solution that works with Xorg  :-\
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 25, 2021, 04:22:41 AM
xf86-video-fbdev added to the repo - you could try that instead of xf86-video-fbturbo.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 25, 2021, 04:25:37 PM
Hi Juanito,
xf86-video-fbdev added to the repo - you could try that instead of xf86-video-fbturbo.

so with this step i am realy moving forward  :)

The xf86-video-fbdev did help a little bit, i mean now i can use Xrandr to set my Monitors like i want and that is cool
the second thing is, that xfreerdp is a little bit faster but i don't think that somebody would like to work on the session, because every window need some seconds to load.

any other tips?  ;D
Title: Re: Pi 4 dual Monitor
Post by: Rich on August 25, 2021, 04:39:30 PM
Hi Rabie
If you run:
Code: [Select]
xfreerdp --helpIt should list available options, for example:
Code: [Select]
-x: performance flags (m[odem], b[roadband] or l[an])Try setting it to  modem.

Maybe track down the documentation to see how various other flags affect performance.
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 26, 2021, 11:49:04 AM
You could also try using the client with options "/gfx:AVC420" or "/gfx:AVC444" to try to force freerdp to use the RPi h264 hardware acceleration.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 29, 2021, 04:14:49 PM
so here are the options i tried until yet:

Code: [Select]
gdi:hw
/network:[modem|broadband|broadband-low|broadband-high|wan|lan|auto]   (Best one was the /network:auto)
+gfx-thin-client
+gfx-small-cache
+gfx-progressive
i tried them together and separated

Quote
You could also try using the client with options "/gfx:AVC420" or "/gfx:AVC444" to try to force freerdp to use the RPi h264 hardware acceleration.
with those two freerdp says that some parameter is wrong

after all it is so slow (look at the Video)
https://www.file2send.eu/de/download/ALHlha4a5ucfTqfvbZDdXOGwahrUMfA4mPGVVXDpDrXy7XKkFDqHCq11SoW2oTMf



Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 30, 2021, 03:52:22 AM
with those two freerdp says that some parameter is wrong

Please post the exact error message - maybe you need /gfx-h264:AVC444?

What does /buildconfig show about h264 on the freerdp client and server?
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 30, 2021, 06:16:47 AM
Ah - I see:
Code: [Select]
$ xfreerdp /buildconfig
..WITH_FFMPEG=OFF WITH_GFX_H264=OFF WITH_X264=OFF
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 31, 2021, 06:24:18 AM
freerdp updated:
Code: [Select]
$ xfreerdp /buildconfig
This is FreeRDP version 2.4.0 (2.4.0)
Build configuration:
...
WITH_FFMPEG=TRUE WITH_GFX_H264=ON
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 31, 2021, 08:16:51 AM
After realising I could set a windows machine as an rdp server, I did a test using freerdp in piCore64 - there was a noticeable speed up with /gfx-h264:AVC444
Title: Re: Pi 4 dual Monitor
Post by: Rabie on August 31, 2021, 03:24:56 PM
Hi Juanito,
After realising I could set a windows machine as an rdp server, I did a test using freerdp in piCore64 - there was a noticeable speed up with /gfx-h264:AVC444

now i updated freerdp and tried this options:
/gfx-h264:AVC444
/gfx:AVC444
/gfx:AVC420

i noticed that freerdp is much faster with /gfx-h264:AVC444 but just on one Monitor, when i connect the second Monitor it goes again to be so slow  :-\
Title: Re: Pi 4 dual Monitor
Post by: Juanito on August 31, 2021, 03:52:42 PM
Are you using /multimon?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 01, 2021, 08:54:00 AM
Are you using /multimon?

yes, this is what i am using:
xfreerdp /sec:rdp /drive:USB-Stick,/mnt/ /gfx-h264:AVC444 /multimon:force +multitransport +auto-reconnect -themes -wallpaper /cert-ignore /bpp:15 /kbd:0x00000407 /d:domain /v:server:3389 /f
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 01, 2021, 09:12:30 AM
Maybe you can ask on the freerdp github site why multi-mon is slow compared to single?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 09, 2021, 05:00:12 AM
Hi Juanito,
Maybe you can ask on the freerdp github site why multi-mon is slow compared to single?

i will try that but to be honest i do not think that the freerdp is the problem.
Because i use the same thing on tinycore with fbturbo and there is no problem.
i think that xf86-video-fbdev is not enough  :'(  :'(
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 09, 2021, 05:17:27 AM
Neither xf86-video-fbdev nor xf86-video-fbturbo exist in Tinycore, so unless you compiled them yourself, you must be using something else.

When testing freerdp with Xorg-3d and one screen, I found using /gfx-h264:AVC444 increased the speed - since xf86-video-fbturbo stops Xorg-3d acceleration from working, I suspect you would be better off without it.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 09, 2021, 05:55:26 AM
i am sorry i am using xf86-video-intel.tcz on tinycore
but i will try your idea to use /gfx-h264:AVC444 with Xorg-3d
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 09, 2021, 07:49:34 AM
Neither xf86-video-fbdev nor xf86-video-fbturbo exist in Tinycore, so unless you compiled them yourself, you must be using something else.

When testing freerdp with Xorg-3d and one screen, I found using /gfx-h264:AVC444 increased the speed - since xf86-video-fbturbo stops Xorg-3d acceleration from working, I suspect you would be better off without it.

so i tried that but it didn't help (Look at the videos )
https://www.file2send.eu/de/download/qnrqHkpQFQvWl55zZ51pWvbnsYss4tUH5TQpe6J7afVqtdNUSfQswhaqOGWDlNsn

that is why i think that isn't a problem from freerdp but it's from the driver because it's just so fast with fbturbo
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 09, 2021, 08:06:37 AM
Do you have the latest v4l-dvb-5.10.16-piCore-v7 extension?

Are you sure Xorg is running with 3d hardware acceleration?

Code: [Select]
$ glxinfo | grep Acc
Accelerated: yes
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 14, 2021, 03:30:07 PM
Hi Juanito,

Quote
Do you have the latest v4l-dvb-5.10.16-piCore-v7 extension?
i didn't had this one but i installed it and no difference

Quote
Are you sure Xorg is running with 3d hardware acceleration?
yes i am sure
here
Code: [Select]
tc@box:~$ glxinfo |grep Acc
    Accelerated: yes

now im trying since days to get this work out, there must be an solution  :( :(
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 15, 2021, 03:53:17 AM
Is the h264 hardware decoder present - /dev/video10?

edit: if it is present, maybe you need to increase gpu memory in config.txt
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 15, 2021, 02:46:35 PM
Hi Juanito,
Is the h264 hardware decoder present - /dev/video10?

edit: if it is present, maybe you need to increase gpu memory in config.txt
yes this is what i found
Code: [Select]
ls /dev/video1
video10  video11  video12  video13  video14  video15  video16

do you mean i have to increase the arm here ? How much ?
Code: [Select]
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

edit: i tried with arm_freq=1000, didn't help
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 15, 2021, 03:50:38 PM
Try gpu_mem=128 with Xorg-3d and, if that doesn’t work, 256.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 17, 2021, 09:25:32 PM
Hi Juanito,
Try gpu_mem=128 with Xorg-3d and, if that doesn’t work, 256.

unfortunately both options did not work, gpu_mem=128 or 256 didn't exist in config.txt but i placed it there my self

it didn't help not even a little bit
Title: Re: Pi 4 dual Monitor
Post by: patrikg on September 18, 2021, 02:36:11 AM
Did you place it on the right line ?
You have to place it under [ALL] section or under [PI4] section.
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 18, 2021, 04:26:56 AM
After reboot, you can check using the rpi-vc extension:
Code: [Select]
$ sudo vcgencmd get_mem gpu
gpu=256M
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 18, 2021, 07:09:44 AM
Did you place it on the right line ?
You have to place it under [ALL] section or under [PI4] section.

yes i did

Quote
After reboot, you can check using the rpi-vc extension:
Code: [Select]
$ sudo vcgencmd get_mem gpu
gpu=256M
and now i checked for it and tried it again but there is no difference
Code: [Select]
tc@box:~$ sudo vcgencmd get_mem gpu
gpu=256M

Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 18, 2021, 08:54:07 AM
Have you tried the freerdp switch /gdi:hw?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 18, 2021, 09:17:33 AM
Hi Juanito,
Have you tried the freerdp switch /gdi:hw?

yes like i said before this ist what i untill now have tried
Code: [Select]
gdi:hw
/network:[modem|broadband|broadband-low|broadband-high|wan|lan|auto]   (Best one was the /network:auto)
+gfx-thin-client
+gfx-small-cache
+gfx-progressive
/gfx-h264:AVC444
/gfx:AVC444
/gfx:AVC420

in config.txt:
Code: [Select]
gpu_mem=256
dtoverlay=vc4-kms-v3d-pi4
max_framebuffers=2
arm_freq=1000
config_hdmi_boost=4

and like i said before, i don't think that the Hardware or freerdp are causing the problem, because when i switch to fbturbo and run freerdp without any performance parameter like "gdi:hw", it's just running like a rocket

so i think it's just the Graphic driver who's cousing the slow freerdp performance
Title: Re: Pi 4 dual Monitor
Post by: Juanito on September 18, 2021, 10:46:08 AM
On RPi4, h264 hw acceleration is available via the ffmpeg h264_v4l2m2m decoder - I'd guess that freerdp is not using it. Alternatively, the v3d graphics driver on the RPi4 might be too slow.

Searching the internet reveals several comments stating that freerdp is faster on RPi3 than RPi4, which would tend to support the above.
Title: Re: Pi 4 dual Monitor
Post by: Rabie on September 19, 2021, 10:39:20 AM
On RPi4, h264 hw acceleration is available via the ffmpeg h264_v4l2m2m decoder - I'd guess that freerdp is not using it. Alternatively, the v3d graphics driver on the RPi4 might be too slow.

Searching the internet reveals several comments stating that freerdp is faster on RPi3 than RPi4, which would tend to support the above.

do you know if there is a way to use dual Monitor on RPi3 ?
Title: Re: Pi 4 dual Monitor
Post by: Rabie on October 31, 2021, 11:06:17 AM
Hi Juanito,

It's perhaps a long shot, but maybe wayland/weston might work better than x11?

A few hints here: http://forum.tinycorelinux.net/index.php/topic,23269.msg150229.html

so i decided to try wayland as an compromise.

could you please tell me how to configure the Dual Monitors in the extended Mode on weston ?

Thank you
Title: Re: Pi 4 dual Monitor
Post by: Juanito on October 31, 2021, 11:51:49 AM
Did you check the linux man page for weston.ini?

(It's my understanding that weston will run two monitors in extended mode by default)
Title: Re: Pi 4 dual Monitor
Post by: Rabie on October 31, 2021, 03:28:13 PM
Did you check the linux man page for weston.ini?

(It's my understanding that weston will run two monitors in extended mode by default)

yes you are right, i made a mistake 

so i wanted to try wlfreerdp to see if it is faster than Xorg, but wlfreerdp is starting just on one Monitor and just on the one where i start the following from Terminal

Code: [Select]
wlfreerdp /sec:rdp /multimon:force +multitransport -mouse-motion +auto-reconnect /cert-ignore /bpp:15 /kbd:0x00000407 /d:domain /v:server:3389 /f
How to get wlfreerdp on both Monitors ?  ;D
Title: Re: Pi 4 dual Monitor
Post by: Juanito on November 01, 2021, 02:09:23 AM
I don't know - you could try asking on the weston/freerdp git sites "issues"?