Kodi monitor mirroring w/external display - Nvidia Driver

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Tallone55
Level 1
Level 1
Posts: 23
Joined: Thu Jul 16, 2015 4:03 pm

Kodi monitor mirroring w/external display - Nvidia Driver

Post by Tallone55 »

I built a media box with an Nvidia card to replace an aging machine and I'm trying to make the transition as seamless as possible for the primary user.

I have two displays that I need to use with the machine: an always-on 4:3 monitor connected via DVI and an "off-when-not-actively watching a movie" 16:9 projector connected via HDMI.

Currently I run this as a Startup Application whenever the media account logs into its desktop:

Code: Select all

xrandr --output DVI-I-1 --same-as HDMI-0
xrandr --output DVI-I-1 --auto --scale-from 1280x720 --output HDMI-0
It mirrors the projector display to the monitor with scaling such that the monitor displays a slightly stretched but perfectly usable copy of the projector image.

My problem is that turning off the projector causes the current solution I have to break. The projector ceases to be the primary display and stops being detected, which causes the mirroring to end and the monitor to stop being scaled. Simply running the above commands when I've turned the projector back on does *not* fix the displays.

How can I get this working?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Graphics Cards & Monitors”