Kodi Community Forum

Full Version: [SOLVED] clone mode (twinview) - same refresh rate on dual monitor setup not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using dual monitors with xorg.conf to configured in clone mode.

Option "DynamicTwinView" "false"
Option "TwinView" "true"
Option "TwinViewOrientation" "Clone"


However when there is a refresh rate change in XBMC (Adjust display refresh rate to match video or even manual through XBMC System settings) only primary display gets refresh rate changed to correct refresh rate, secondary display uses default refresh rate from Xorg screen mode. Is there a way around it? I'd like to clone both, resolution and refresh rate at the same time, so when there is change on one display's refresh rate xrandr should set it also for secondary monitory in clone mode.

Current log when changing refresh rate in XBMC (primary monitor changes to 60Hz, but secondary stays at 50Hz all the time)

T:3007204096 INFO: XRANDR: /usr/lib/xbmc/xbmc-xrandr --output DVI-I-1 --mode 0x1e9
[ 318.756] (II) NVIDIA(0): Setting mode "DVI-I-1: 1920x1080_59.94 @1920x1080 +0+0, HDMI-0: 1920x1080_50 @1920x1080 +0+0"

What am I missing?
Thanks for any help.
Ok, changing modes manually with xbmc-randr work just fine so I'd like to execute a script whenever xbmc-randr changes the mode :

ie.
everytime
/usr/lib/xbmc/xbmc-xrandr --output DVI-I-1 --mode 0x1e9
is executed, script would run
/usr/lib/xbmc/xbmc-xrandr --output HDMI-0 --mode 0x1e9

Anyone have an idea how to do it?
fixed now.

if anyone needs the same heres the script which I load with service addon at xbmc startup:

Code:
#!/bin/bash
export DISPLAY=:0
tail -f --pid=$$ /home/xbmc/.xbmc/temp/xbmc.log | grep --line-buffered -E 'output DVI-I-1 --mode|ADDON: Stopping service addons' |
while read line
do
   dualmode=`echo $line|cut -d " " -f9`
   /usr/lib/xbmc/xbmc-xrandr --output HDMI-0 --mode $dualmode
             if echo $line | grep -q 'ADDON: Stopping service addons'; then
             kill $$
             fi
done

both monitors now gets the same refresh rate when xbmc changes it Smile
Hi guys,

I have the very same problem with my setup.
Setup:
- Ubuntu 12.04 (mythbuntu)
- NVIDIA 210 (610 since two weeks) with 3xx drivers
- One TV and one Beamer driven with cloned twinview

The problem is, xbmc 12.2 just adjusts resolution (and thus refresh rate) on one output (DVI-I-1), HDMI-0 is not touched.
I can manually configure both screens with xrandr btw in 50, 60, 23,967 Hz

The script by ezechiel1917 is outdated. Isn't there any other solution for this? I think, this is not a very exotic configuration but I can't find any other report of this problem than this one.

Isn't this a bug? Why is a cloned dual screen setup ignored like this by xbmc?

Greetings
Nick
I guess you're right, it should still work with nvidia drivers <=304.xx and eden,
once I upgraded to >=frodo I couldn't get it reliable working with newer nvidia versions 310+
Script above applies same refresh rate to both outputs correctly (just tried with 319.23)

Code:
Option         "TwinView" "true"
    Option         "TwinViewOrientation" "Clone"
    Option         "DynamicTwinView" "false"
    Option         "ExactModeTimingsDVI" "True"
    Option         "FlatPanelProperties" "Scaling = Native"
    Option         "UseDisplayDevice" "DFP-1, DFP-0"

but I still can't get primary hdmi audio output mapped to secondary display by default - was ok with older xbmc/nvidia versions
This is the only issue for me and because of it I unfortunately no longer use nvidia clone method currently