Skip to contentSkip to conversation

fbcon on one of multiple displays

DISCUSSION Eric Nelson 3 participants 5 messages Nov 29, 2023 – Dec 4, 2023

lore
Share & tools
lore
#0 lore raw

Hi all,

Is there a way to configure a framebuffer console on a specific display on a machine with multiple displays?

#1 lore raw

Eric Nelson <[email protected]> writes:

Hello Eric,

Quoted 5 lines

Hi all,

Is there a way to configure a framebuffer console on a specific display on a machine with multiple displays?

Have you looked at https://www.kernel.org/doc/Documentation/fb/fbcon.txt ?

There is a sysfb interface to bind / unbind fbdev devices to fbcon's VT (/sys/class/vtconsole/vtcon1/bind) and also kernel command line parameter to choose which fbdev driver is mapped to which VT console (fbcon=map:n).

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
#2 lore raw

Thanks Javier,

Quoted 10 lines · Javier Martinez Canillas

Eric Nelson <[email protected]> writes:

Hello Eric,

Quoted 5 lines

Hi all,

Is there a way to configure a framebuffer console on a specific display on a machine with multiple displays?

Quoted 6 lines

Have you looked at https://www.kernel.org/doc/Documentation/fb/fbcon.txt ?

There is a sysfb interface to bind / unbind fbdev devices to fbcon's VT (/sys/class/vtconsole/vtcon1/bind) and also kernel command line parameter to choose which fbdev driver is mapped to which VT console (fbcon=map:n).

I have seen this, but it's not clear how we can use this. In our case, we have a single driver for two displays.

I hope to get a device on my desk this week to test it out.

#3 lore raw
Quoted 21 lines · Eric Nelson

Thanks Javier,

Quoted 10 lines · Javier Martinez Canillas

Eric Nelson <[email protected]> writes:

Hello Eric,

Quoted 5 lines

Hi all,

Is there a way to configure a framebuffer console on a specific display on a machine with multiple displays?

Quoted 6 lines

Have you looked at https://www.kernel.org/doc/Documentation/fb/fbcon.txt ?

There is a sysfb interface to bind / unbind fbdev devices to fbcon's VT (/sys/class/vtconsole/vtcon1/bind) and also kernel command line parameter to choose which fbdev driver is mapped to which VT console (fbcon=map:n).

Quoted 4 lines

I have seen this, but it's not clear how we can use this. In our case, we have a single driver for two displays.

I hope to get a device on my desk this week to test it out.

Are you referring to two devices that just both happen to use the same driver, or multiple displays driving by a single device? For the latter, drm drivers at least only expose a single "display" via the fbcon emulation.

Alex

#4 lore raw

Hi Alex,

Quoted 25 lines · Alex Deucher
Quoted 24 lines · Eric Nelson

Thanks Javier,

Quoted 10 lines · Javier Martinez Canillas

Eric Nelson <[email protected]> writes:

Hello Eric,

Quoted 5 lines

Hi all,

Is there a way to configure a framebuffer console on a specific display on a machine with multiple displays?

Quoted 6 lines

Have you looked at https://www.kernel.org/doc/Documentation/fb/fbcon.txt ?

There is a sysfb interface to bind / unbind fbdev devices to fbcon's VT (/sys/class/vtconsole/vtcon1/bind) and also kernel command line parameter to choose which fbdev driver is mapped to which VT console (fbcon=map:n).

I have seen this, but it's not clear how we can use this. In our case, we have a single driver for two displays.

Quoted 8 lines
Quoted 1 line

I hope to get a device on my desk this week to test it out.

Are you referring to two devices that just both happen to use the same driver, or multiple displays driving by a single device? For the latter, drm drivers at least only expose a single "display" via the fbcon emulation.

Alex

A little of both.

There are multiple displays through a single driver, but the fbcon emulation is only creating a single framebuffer device.

What we're aiming for is pretty simple. We just want to get a splash screen (fb logo) to display on one of them and haven't found the right path.