WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #75 on: September 14, 2021, 12: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  :( :(

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13997
Re: Pi 4 dual Monitor
« Reply #76 on: September 15, 2021, 12: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
« Last Edit: September 15, 2021, 01:51:08 AM by Juanito »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #77 on: September 15, 2021, 11:46:35 AM »
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
« Last Edit: September 15, 2021, 11:57:01 AM by Rabie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13997
Re: Pi 4 dual Monitor
« Reply #78 on: September 15, 2021, 12:50:38 PM »
Try gpu_mem=128 with Xorg-3d and, if that doesn’t work, 256.
« Last Edit: September 16, 2021, 02:51:09 AM by Juanito »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #79 on: September 17, 2021, 06: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

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 495
Re: Pi 4 dual Monitor
« Reply #80 on: September 17, 2021, 11:36:11 PM »
Did you place it on the right line ?
You have to place it under [ALL] section or under [PI4] section.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13997
Re: Pi 4 dual Monitor
« Reply #81 on: September 18, 2021, 01:26:56 AM »
After reboot, you can check using the rpi-vc extension:
Code: [Select]
$ sudo vcgencmd get_mem gpu
gpu=256M

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #82 on: September 18, 2021, 04: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


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13997
Re: Pi 4 dual Monitor
« Reply #83 on: September 18, 2021, 05:54:07 AM »
Have you tried the freerdp switch /gdi:hw?

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #84 on: September 18, 2021, 06: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13997
Re: Pi 4 dual Monitor
« Reply #85 on: September 18, 2021, 07: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.
« Last Edit: September 18, 2021, 08:10:37 AM by Juanito »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #86 on: September 19, 2021, 07: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 ?

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #87 on: October 31, 2021, 08: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13997
Re: Pi 4 dual Monitor
« Reply #88 on: October 31, 2021, 08: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)
« Last Edit: October 31, 2021, 09:42:29 AM by Juanito »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 259
Re: Pi 4 dual Monitor
« Reply #89 on: October 31, 2021, 12: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