maggoi
Posts: 2
Joined: Sun Apr 14, 2013 9:12 am

Initiate HDMI autonegotiation

Sun Apr 14, 2013 9:24 am

Hi valued community,

I have successfully installed Raspbmc onto the pi. Everything is fine beside one really annoying issue:

I have two hdmi devices that I want to provide with a video output form xbmc. A DVI computer monitor with a resulution of 1680x1050. And a full hd beamer 1920x1080.

When I attach either ot the devices and boot up, it is recognized correctly. The problem is when I try to switch while xbmc is running to the other device. Pi is not recognizing the new device and leaves the output unchanged. To come around that issue I did the following:

I created two scripts to set the resolution:

set1050.sh:

#!/bin/sh
if tvservice -m DMT |grep -q "mode 57"; then
sudo tvservice -e "DMT 57"
sudo initctl restart xbmc
fi

set1080.sh:

#!/bin/sh
if tvservice -m CAE |grep -q "mode 16"; then
sudo tvservice -e "CEA 16"
sudo initctl restart xbmc
fi


Those scripts do "work" but it is not very user friendly.

My question is whether there is a way to initiate a fresh autonegotiation and then restarte xbmc?
Can someone please have a look at that?

Kind Regards,

Marco

maggoi
Posts: 2
Joined: Sun Apr 14, 2013 9:12 am

Re: Initiate HDMI autonegotiation

Fri Apr 19, 2013 7:28 am

Just to push that topic a bit.......

Is there any kernel event thrown that I can capture (udev rule). To setup the new resolution?

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: Initiate HDMI autonegotiation

Fri Apr 19, 2013 8:01 am

maggoi wrote:Just to push that topic a bit.......

Is there any kernel event thrown that I can capture (udev rule). To setup the new resolution?
You can monitor display events with tvservice -M or somesuch.
Also you don't have to explicitly tell tvservice the mode, usually tvservice -p will do.

Regards
Aydan

Return to “General discussion”