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

Re: Multiple Frame buffer beta testers wanted

Mon Oct 29, 2018 11:14 am

DougieLawson wrote:
Mon Oct 29, 2018 11:11 am
jamesh wrote:
Mon Oct 29, 2018 11:06 am
DougieLawson wrote:
Mon Oct 29, 2018 10:49 am
Is this built for 4.19.0-V7+ (hexxeh commit d31aa70) yet? I've freed up my touch screen (it's no longer on my ADS-B decoder, it's going on a machine with a DVB TV μHAT - as a portable TV) so I can try testing this stuff again.
I've not done a build against 4.19 yet.
OK. I'll rpi-update back to 4.14.78-v7+ before trying my experiments.
I'm on 4.14.76+ (rpi-update 0018be6)

DirkS
Posts: 9899
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Multiple Frame buffer beta testers wanted

Mon Oct 29, 2018 11:15 am

DougieLawson wrote:
Mon Oct 29, 2018 11:11 am
jamesh wrote:
Mon Oct 29, 2018 11:06 am
DougieLawson wrote:
Mon Oct 29, 2018 10:49 am
Is this built for 4.19.0-V7+ (hexxeh commit d31aa70) yet? I've freed up my touch screen (it's no longer on my ADS-B decoder, it's going on a machine with a DVB TV μHAT - as a portable TV) so I can try testing this stuff again.
I've not done a build against 4.19 yet.
OK. I'll rpi-update back to 4.14.78-v7+ before trying my experiments.
Looking at posts a bit further up you need 4.14.76

luciodeep
Posts: 9
Joined: Tue Oct 23, 2018 9:56 pm

Re: Multiple Frame buffer beta testers wanted

Mon Oct 29, 2018 12:02 pm

DirkS wrote:
Mon Oct 29, 2018 11:15 am
DougieLawson wrote:
Mon Oct 29, 2018 11:11 am
jamesh wrote:
Mon Oct 29, 2018 11:06 am


I've not done a build against 4.19 yet.
OK. I'll rpi-update back to 4.14.78-v7+ before trying my experiments.
Looking at posts a bit further up you need 4.14.76
confirm that you need to rpi-update 0018be6

User avatar
DougieLawson
Posts: 35789
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 12:30 am

I'm running on a 3B with the official RPF 7" display (second version because the backlight brighness stuff works).

Code: Select all

[email protected]:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight $ ls -la
total 0
drwxr-xr-x 3 root root    0 Oct 30 00:15 .
drwxr-xr-x 3 root root    0 Oct 30 00:15 ..
-r--r--r-- 1 root root 4096 Oct 30 00:27 actual_brightness
-rw-r--r-- 1 root root 4096 Oct 30 00:27 bl_power
-rw-r--r-- 1 root root 4096 Oct 30 00:15 brightness
lrwxrwxrwx 1 root root    0 Oct 30 00:27 device -> ../../../rpi_backlight
-r--r--r-- 1 root root 4096 Oct 30 00:15 max_brightness
drwxr-xr-x 2 root root    0 Oct 30 00:27 power
lrwxrwxrwx 1 root root    0 Oct 30 00:15 subsystem -> ../../../../../class/backlight
-r--r--r-- 1 root root 4096 Oct 30 00:15 type
-rw-r--r-- 1 root root 4096 Oct 30 00:15 uevent
[email protected]:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight $ cat actual_brightness brightness max_brightness bl_power
255
255
255
0
[email protected]:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight $
I've got your kernel7.img & start_x.elf

Code: Select all

[email protected]:~/Downloads $ sha256sum kernel7.img
793e793afec5fff62727f79e7ea43b12f0f501e0102ff40079a172b9ebecb1c8  kernel7.img
[email protected]:~/Downloads $ sha256sum /boot/kernel7.img
793e793afec5fff62727f79e7ea43b12f0f501e0102ff40079a172b9ebecb1c8  /boot/kernel7.img
[email protected]:~/Downloads $ sha256sum start_x.elf
4a32b141fbf47aca7d48d08492c28b4c77d72d90ca0600a97c588a7473cf712d  start_x.elf
[email protected]:~/Downloads $ sha256sum /boot/start_x.elf
4a32b141fbf47aca7d48d08492c28b4c77d72d90ca0600a97c588a7473cf712d  /boot/start_x.elf
I've got

Code: Select all

dtparam=audio=on
start_x=1
lcd_rotate=2
gpu_mem=128
dtoverlay=rpi-tv
dtparam=spi=on
dtparam=i2c_arm=on
disable_splash=1
disable_overscan=1
That only gets one fb (/dev/fb1).

What am I missing to get two framebuffers?

The TV tuner works OK. Kodi works OK on the touch screen (with sound on the TV as I've not done the BT bit, yet).
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

JPB-HK
Posts: 56
Joined: Thu Nov 22, 2012 5:00 pm

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 2:09 am

DougieLawson wrote:
Tue Oct 30, 2018 12:30 am
I'm running on a 3B with the official RPF 7" display (second version because the backlight brighness stuff works).

I've got your kernel7.img & start_x.elf

I've got

Code: Select all

dtparam=audio=on
start_x=1
lcd_rotate=2
gpu_mem=128
dtoverlay=rpi-tv
dtparam=spi=on
dtparam=i2c_arm=on
disable_splash=1
disable_overscan=1
That only gets one fb (/dev/fb1).

What am I missing to get two framebuffers?

The TV tuner works OK. Kodi works OK on the touch screen (with sound on the TV as I've not done the BT bit, yet).
Did you add these to config.txt:

max_framebuffers=2

# x = 0 LCD, 2 for HDMI
# MAIN_LCD 0
# AUX_LCD 1
# HDMI 2
# SDTV 3
framebuffer_priority=0

John
NCR 310 - ZX81 - Apple II+ - Dell/Intel - Mac mini... Raspberry Pi!

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

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 6:27 am

DougieLawson wrote:
Tue Oct 30, 2018 12:30 am
I'm running on a 3B with the official RPF 7" display (second version because the backlight brighness stuff works).

Code: Select all

[email protected]:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight $ ls -la
total 0
drwxr-xr-x 3 root root    0 Oct 30 00:15 .
drwxr-xr-x 3 root root    0 Oct 30 00:15 ..
-r--r--r-- 1 root root 4096 Oct 30 00:27 actual_brightness
-rw-r--r-- 1 root root 4096 Oct 30 00:27 bl_power
-rw-r--r-- 1 root root 4096 Oct 30 00:15 brightness
lrwxrwxrwx 1 root root    0 Oct 30 00:27 device -> ../../../rpi_backlight
-r--r--r-- 1 root root 4096 Oct 30 00:15 max_brightness
drwxr-xr-x 2 root root    0 Oct 30 00:27 power
lrwxrwxrwx 1 root root    0 Oct 30 00:15 subsystem -> ../../../../../class/backlight
-r--r--r-- 1 root root 4096 Oct 30 00:15 type
-rw-r--r-- 1 root root 4096 Oct 30 00:15 uevent
[email protected]:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight $ cat actual_brightness brightness max_brightness bl_power
255
255
255
0
[email protected]:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight $
I've got your kernel7.img & start_x.elf

Code: Select all

[email protected]:~/Downloads $ sha256sum kernel7.img
793e793afec5fff62727f79e7ea43b12f0f501e0102ff40079a172b9ebecb1c8  kernel7.img
[email protected]:~/Downloads $ sha256sum /boot/kernel7.img
793e793afec5fff62727f79e7ea43b12f0f501e0102ff40079a172b9ebecb1c8  /boot/kernel7.img
[email protected]:~/Downloads $ sha256sum start_x.elf
4a32b141fbf47aca7d48d08492c28b4c77d72d90ca0600a97c588a7473cf712d  start_x.elf
[email protected]:~/Downloads $ sha256sum /boot/start_x.elf
4a32b141fbf47aca7d48d08492c28b4c77d72d90ca0600a97c588a7473cf712d  /boot/start_x.elf
I've got

Code: Select all

dtparam=audio=on
start_x=1
lcd_rotate=2
gpu_mem=128
dtoverlay=rpi-tv
dtparam=spi=on
dtparam=i2c_arm=on
disable_splash=1
disable_overscan=1
That only gets one fb (/dev/fb1).

What am I missing to get two framebuffers?

The TV tuner works OK. Kodi works OK on the touch screen (with sound on the TV as I've not done the BT bit, yet).
Have you changed '99-fbturbo.conf'? And, how to you start x ('startx -- -layout Multihead' for dual-head i.e.)?

User avatar
DougieLawson
Posts: 35789
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 8:35 am

I've not added the max framebuffers control. I'll do the 99-fbturbo stuff when I've got the second frame buffer instantiated.

Then I'm hoping I can do some magic with Kodi to run on two screens. The control panel on the 7" touchscreen, the TV program on the HDMI.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

mapart
Posts: 3
Joined: Wed Nov 08, 2017 6:35 am

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 9:04 am

I've managed to get it working on 4.14.76-v7+ with max_framebuffers=2 in config.txt in a lite system without desktop, but only if the external screen is connected on boot.
I have a QT-gui application which I can start on desired screen by specifying the framebuffer.

However if I connect the external screen through HDMI post-boot I don't get any output on the screen.

Is it possible to get "hotplugging" working with this firmware?

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

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 9:21 am

mapart wrote: I've managed to get it working on 4.14.76-v7+ with max_framebuffers=2 in config.txt in a lite system without desktop, but only if the external screen is connected on boot.
I have a QT-gui application which I can start on desired screen by specifying the framebuffer.

However if I connect the external screen through HDMI post-boot I don't get any output on the screen.

Is it possible to get "hotplugging" working with this firmware?
look herehttps://www.raspberrypi.org/forums/viewtopic.ph ... 0#p1369087 and viewtopic.php?f=63&t=216399&start=200#p1369244
Don't know if this has been addresses already.

Again, this is beta testing. So make sure all your screens are connected.
Exeption of the rule: DPI screens only need to be enabled, but not required to be connected :mrgreen:

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

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 9:27 am

DougieLawson wrote:
Tue Oct 30, 2018 8:35 am
I've not added the max framebuffers control. I'll do the 99-fbturbo stuff when I've got the second frame buffer instantiated.

Then I'm hoping I can do some magic with Kodi to run on two screens. The control panel on the 7" touchscreen, the TV program on the HDMI.
Kodi is using OMXplayer, right? Don't have any glue on the TV HAT.

In case of OMXPlayer output you can use '--display=x' option. With x= 0 to 5 (o.k. there is a 6 as well, but if RPi foundation has no idea what it is how should I?):

DISPMANX_ID_MAIN_LCD 0
DISPMANX_ID_AUX_LCD 1
DISPMANX_ID_HDMI 2
DISPMANX_ID_SDTV 3
DISPMANX_ID_FORCE_LCD 4
DISPMANX_ID_FORCE_TV 5

Works like a charm.
For other apps you can specifiy which framebuffer to write to.

mapart
Posts: 3
Joined: Wed Nov 08, 2017 6:35 am

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 9:48 am

aBUGSworstnightmare wrote:
Tue Oct 30, 2018 9:21 am

look herehttps://www.raspberrypi.org/forums/viewtopic.ph ... 0#p1369087 and viewtopic.php?f=63&t=216399&start=200#p1369244
Don't know if this has been addresses already.

Again, this is beta testing. So make sure all your screens are connected.
Exeption of the rule: DPI screens only need to be enabled, but not required to be connected :mrgreen:
Thanks! Since I get multiple framebuffers regardless if HDMI is connected or not during boot, I guess that fb1 corresponds to composite output when HDMI is not attached.

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

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 9:52 am

mapart wrote:
Tue Oct 30, 2018 9:48 am
aBUGSworstnightmare wrote:
Tue Oct 30, 2018 9:21 am

look herehttps://www.raspberrypi.org/forums/viewtopic.ph ... 0#p1369087 and viewtopic.php?f=63&t=216399&start=200#p1369244
Don't know if this has been addresses already.

Again, this is beta testing. So make sure all your screens are connected.
Exeption of the rule: DPI screens only need to be enabled, but not required to be connected :mrgreen:
Thanks! Since I get multiple framebuffers regardless if HDMI is connected or not during boot, I guess that fb1 corresponds to composite output when HDMI is not attached.
That's what jamesh said already :lol:
So if you need HDMI make sure it's connected when you boot.

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

Re: Multiple Frame buffer beta testers wanted

Tue Oct 30, 2018 10:07 am

Detection of displays is possible with HDMI and DSI, but not DPI or composite.

So by default, if you spec max_framebuffers>1, if HDMI or DSI is undetected, you will get composite enabled by default, unless you have specified a DPI screen in config.txt.

I think...
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

unbannable
Posts: 5
Joined: Tue Oct 16, 2018 9:34 am

Re: Multiple Frame buffer beta testers wanted

Mon Nov 05, 2018 10:19 am

Having an issue where fb1 does not show in the console after using the ls /dev/fb* command but I'm still getting the rainbow screen on the second monitor. Any one else had this issue or know how to fix it?

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

Re: Multiple Frame buffer beta testers wanted

Mon Nov 05, 2018 10:29 am

unbannable wrote: Having an issue where fb1 does not show in the console after using the ls /dev/fb* command but I'm still getting the rainbow screen on the second monitor. Any one else had this issue or know how to fix it?
Provide details of your setup for hardware (which displays connected how) and software (I.e be sure to run 'sudo rpi-update 0018be6' atm).

Might be the same issue which I've reported here viewtopic.php?f=63&t=216399&start=175#p1364127

User avatar
DougieLawson
Posts: 35789
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Multiple Frame buffer beta testers wanted

Mon Nov 05, 2018 11:28 pm

Can we get this built for 4.19.1 and/or 4.14.79?

I got the two framebuffers running with

Code: Select all

dtparam=audio=on
start_x=1
lcd_rotate=2
gpu_mem=256
dtoverlay=rpi-tv
dtparam=spi=on
dtparam=i2c_arm=on
disable_splash=1
disable_overscan=1
max_framebuffers=2
framebuffer_priority=0
It's working on the 7" touch screen, but nothing on the TV. I've still got to try it with a different TV or my DVI monitor. My portable TV is one step closer - the caravan antenna arrived today.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

schmerlo
Posts: 10
Joined: Wed Nov 07, 2018 10:35 am

Re: Multiple Frame buffer beta testers wanted

Wed Nov 07, 2018 10:44 am

Should the provided start_x.elf run on a raspberry pi zero? I tried it on my Zero + DLP2000 combo but it crashes right after powering up.

DirkS
Posts: 9899
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Multiple Frame buffer beta testers wanted

Wed Nov 07, 2018 12:22 pm

schmerlo wrote:
Wed Nov 07, 2018 10:44 am
Should the provided start_x.elf run on a raspberry pi zero? I tried it on my Zero + DLP2000 combo but it crashes right after powering up.
Yes, you do need that.
Please clarify 'crash'. Any visible signs like error messages?
Can you try it on a Pi with more memory?

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

Re: Multiple Frame buffer beta testers wanted

Wed Nov 07, 2018 1:24 pm

schmerlo wrote:
Wed Nov 07, 2018 10:44 am
Should the provided start_x.elf run on a raspberry pi zero? I tried it on my Zero + DLP2000 combo but it crashes right after powering up.
Never tried it on a Zero tbh. Should work (all firmware should work on all models), and not sure anything in there could crash anything, but it could simply be running out of memory somewhere. More frambuffers require more memory.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

schmerlo
Posts: 10
Joined: Wed Nov 07, 2018 10:35 am

Re: Multiple Frame buffer beta testers wanted

Thu Nov 08, 2018 10:40 am

DirkS wrote:
Wed Nov 07, 2018 12:22 pm
schmerlo wrote:
Wed Nov 07, 2018 10:44 am
Should the provided start_x.elf run on a raspberry pi zero? I tried it on my Zero + DLP2000 combo but it crashes right after powering up.
Yes, you do need that.
Please clarify 'crash'. Any visible signs like error messages?
Can you try it on a Pi with more memory?
The activity led is lit after powering on and it just hangs after trying to load the start_x.elf. I'm not sure if we can get any output at this stage but i will try. I tried to set max_framebuffers=1 and framebuffer_priority=0 to (maybe) reduce the memory footprint but it still hangs at that point. Replacing the start_x.elf with the original one from the raspberry repository and using the provided (modified) kernel works tho. But of cause there wont be a secondary fb then.

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

Re: Multiple Frame buffer beta testers wanted

Thu Nov 08, 2018 11:30 am

Can you please inform which displays you have connected to the zero and how (as I have no idea what DLP2000) is ...

Your ' framebuffer_priority" should be HDMI ' framebuffer_priority=2"
Start with 'max_framebuffers=1' to see if your setup/config/installation is working at all ...

schmerlo
Posts: 10
Joined: Wed Nov 07, 2018 10:35 am

Re: Multiple Frame buffer beta testers wanted

Thu Nov 08, 2018 1:44 pm

aBUGSworstnightmare wrote:
Thu Nov 08, 2018 11:30 am
Can you please inform which displays you have connected to the zero and how (as I have no idea what DLP2000) is ...

Your ' framebuffer_priority" should be HDMI ' framebuffer_priority=2"
Start with 'max_framebuffers=1' to see if your setup/config/installation is working at all ...
I already checked it with max_framebuffers=1. framebuffer_priority=2 didnt change anything. Still hangs quite early in the boot sequence (not even the rainbow image).

The DLP2000 or DLPDLCR2000EVM is a Ti Evaluation Module for their DMD Projector. Its hooked up via DPI18 Interface.

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

Re: Multiple Frame buffer beta testers wanted

Thu Nov 08, 2018 2:42 pm

schmerlo wrote:
Thu Nov 08, 2018 1:44 pm
aBUGSworstnightmare wrote:
Thu Nov 08, 2018 11:30 am
Can you please inform which displays you have connected to the zero and how (as I have no idea what DLP2000) is ...

Your ' framebuffer_priority" should be HDMI ' framebuffer_priority=2"
Start with 'max_framebuffers=1' to see if your setup/config/installation is working at all ...
I already checked it with max_framebuffers=1. framebuffer_priority=2 didnt change anything. Still hangs quite early in the boot sequence (not even the rainbow image).

The DLP2000 or DLPDLCR2000EVM is a Ti Evaluation Module for their DMD Projector. Its hooked up via DPI18 Interface.
Does that device work without the multifb support? I did test a DPI display attached via a Adafruit Kippah, which did work.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

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

Re: Multiple Frame buffer beta testers wanted

Thu Nov 08, 2018 2:46 pm

Please post your config.txt
DPI is working fine, so I assume you have another issue.

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

Re: Multiple Frame buffer beta testers wanted

Thu Nov 08, 2018 2:50 pm

aBUGSworstnightmare wrote:
Thu Nov 08, 2018 2:46 pm
Please post your config.txt
DPI is working fine; you can find alot of example here in the forum when searching my posts. So I assume you have another issue.

Return to “General discussion”