View previous topic :: View next topic |
Author |
Message |
GOS Tux's lil' helper

Joined: 09 Sep 2010 Posts: 105 Location: Germany
|
Posted: Fri Sep 08, 2023 11:44 am Post subject: Framebuffer resolution with 2 Dispalys (HiDPI Problem) |
|
|
Hello,
I use a notebook and sometimes connect an external monitor to it (all without X, only tty).
Unfortunately the LID does not support video modes other than 2880 x 1800 pixels (edid-decode tells me). If I set 1920x1200 via fbset I get an small area with huge black borders. And because of the edid-data cmdlines with video=1920x1200... do not work at all.
But if I connect the external display (with 1920x1200) this resolution is also needed for the LID, because otherwise the external monitor only shows a small portion of my tty.
So actually I can choose if I use a very small portion of the LID and the external monitor shows everything as expected or I use the full LID but the external monitor is not usable anymore.
Hence: Is there any way to set the notebook-LID to 1920x1200 Pixels while using the whole display without black borders (scale to fit)? |
|
Back to top |
|
 |
Logicien Veteran


Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Fri Sep 08, 2023 7:13 pm Post subject: |
|
|
Try this bash command
Code: | for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done |
It will tell you what are your video connectors than you can set a separate résolution for each at the Linux command line parameters
Code: | video=HDMI-A-1=1980x1200-32 |
In this example the monitor on the first Hdmi connector is set to 1980x1200. DP-1 for Display port (video=DP-1=) VGA-1 for Vga (video=VGA-1=) and should appear one output for your laptop screen. Each of them can have it's own resolution. You need multiple video= Linux parameters to set a different resolution for each active connector. _________________ Paul |
|
Back to top |
|
 |
|