FullPageOS icon indicating copy to clipboard operation
FullPageOS copied to clipboard

Dual screen shows in Extended mode all time

Open McLund opened this issue 5 years ago • 8 comments

Hi.

I have a new Raspberry Pi4B updated to last firmware (rpi-update).

The FullPage OS is fullpageos-buster-lite-0.11.0.

To this Pi4 is two new HDMI Philips monitors connected.

The /boot/config.txt file is unchanged.

The problem is that at the screen shows in Extended mode all time. I want to show same screen on both monitors in duplicate mode.

Raspberry Pi4 FullPageOS on dual monitor

When the computer boot up, the boot text will be in duplicate mode.

Raspberry Pi4 FullPageOS on dual monitor 2

OBS. If i run Raspberry´s original raspbian-buster-full desktopversion the screen work´s perfect in duplicate mode.

Is there maybe anyone who can help me to setup an working /boot/config.txt file?

Thank´s for all help! ;-)

Best regard´s, McLund

McLund avatar Nov 14 '19 14:11 McLund

Try this: sudo nano /etc/lightdm/lightdm.conf

Under [Seat:*] Add: display-setup-script=xrandr --output HDMI-2 --same-as HDMI-1

IMG_20191122_111016

Hope this helps for now.

chriswong11 avatar Nov 22 '19 16:11 chriswong11

Hi Chris.

Thank you for your help.

I have now tested your solution but it will not work.

The two screens shows still in Extended mode as before.

Best regard´s McLund

McLund avatar Nov 25 '19 11:11 McLund

@chriswong11 Should we add that to the distro? I'd like two screens, but having a mirror is a good start.

guysoft avatar Nov 25 '19 12:11 guysoft

@guysoft This fits my needs perfectly. I have some some plans to add 2 signage displays back to back and wanted a mirrored setup. If this could be added as a Config option in fullpageOS it would be great. If you would rather go with a module option I'm thinking about adding it to the admin toolkit as an option, along with screen blanking/display options.

asdf1nit avatar Feb 10 '20 18:02 asdf1nit

Try this: sudo nano /etc/lightdm/lightdm.conf

Under [Seat:*] Add: display-setup-script=xrandr --output HDMI-2 --same-as HDMI-1

IMG_20191122_111016

Hope this helps for now.

I have HDMI monitor and LCD DPI screen 7" ( https://www.waveshare.com/wiki/7inch_LCD_for_Pi ) can it works in duplicate mode? (RPI 4B, FullPageOS stable ver)

Vetal7979 avatar Apr 02 '24 11:04 Vetal7979

xrandr command out this: Screen 0: minimum 320 x 200, current 1600 x 900, maximum 7680 x 7680 HDMI-1 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 443mm x 249mm 1600x900 60.00*+ 1440x900 74.98 59.89
1280x800 74.93 59.81
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
HDMI-2 disconnected (normal left inverted right x axis y axis) DPI-1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x600 60.00*+

in ./pi/home/scripts/start_gui.sh before string /home/scripts/run_onepageos i add: xrandr --output DPI-1 --mode 1024x600 --same-as HDMI-1

screen begin work in duplicate mode, but resolution on DPI-1 is not 1024x600 (may be 1600x900)

Vetal7979 avatar Apr 03 '24 11:04 Vetal7979

I'm using the nightly release of FullPageOS on a Raspberry Pi 4B, and I'm trying to figure out how to get extended display working on two monitors. I can see the logs and splash screen on both screens when the pi boots, but the second screen goes blank once chromium starts. So far I've tried adding xrandr --output HDMI-2 --same-as HDMI-1 to ~/scripts/start_gui, and I've also tried adding display-setup-script=xrandr --output HDMI-2 --same-as HDMI-1 to the [Seat:*] section in /etc/lightdm/lightdm.conf. Neither of those seem to make any difference.

The only other change I've made to my setup is setting DISPLAY_ORIENTATION=right in ~/scripts/start_gui for my vertical monitor.


Ahhhhh, it looks like you can only call xrandr once. I updated the original call in the start_gui script:

if [[ "${DISPLAY_ORIENTATION}" != 'normal' ]];
then
  xrandr --orientation ${DISPLAY_ORIENTATION} --output "HDMI-1" --left-of "HDMI-2"
fi

This is getting closer! Now I have an extended screen across both monitors, but I lost the vertical orientation.


Figured it out!

xrandr --output HDMI-1 --rotate ${DISPLAY_ORIENTATION} --output HDMI-2 --rotate ${DISPLAY_ORIENTATION} --above HDMI-1

You have to use the --rotate flag instead of --orientation when specifying multiple --output arguments.

ndbroadbent avatar Jun 01 '24 03:06 ndbroadbent

Might be worth adding that to the wiki

guysoft avatar Jun 30 '24 08:06 guysoft