HTPC Zotac IONITX HDMI only
#1
Hi,
I have just instal my Ubuntu karmic with Xbmc,
I follow some guides to get it works with hdmi + sound with good refresh rates (via modelines)

I have a problem now with the startup :
My HTPC is connected only with HDMI on my Amplifier (ONKYO SR-607) If I start the system with my amplifier off, Linux use the CRT output, and if I power on my amplifier the HDMI is not used before reboot or gdm restart !

I'm searching a way to bypass this problem:
-force HDMI in xorg.conf and disable CRT
-detect when HDMI is ready to restart gdm
-force HDMI from boot (because tty not works on hdmi if it"s pluged after boot)

Does someone has this issue too ?

I also get a problem with grub (System installed on USB key), it takes near 1 minute to start boot after countdown reach 0 or I'm typping Enter on kernel chooser !

thanks.
Reply
#2
I solved my problem by another way.

The problem was because my AV amplifier shutdown his hdmi signal when off, I can enable this function (so hdmi is detected by my motherboard at boot) but it cost me 50W ! opposite to 0W when the amplifier is off ! ... so I prefer do by another way:

I made a little script who launch before X and test if the Hdmi is detected, if it is, then X start, and everything is perfect Smile

For the problem with grub it was solved by downgrade grub to Version 1.

Kytrix.
Reply
#3
Kytrix Wrote:I solved my problem by another way.

The problem was because my AV amplifier shutdown his hdmi signal when off, I can enable this function (so hdmi is detected by my motherboard at boot) but it cost me 50W ! opposite to 0W when the amplifier is off ! ... so I prefer do by another way:

I made a little script who launch before X and test if the Hdmi is detected, if it is, then X start, and everything is perfect Smile

For the problem with grub it was solved by downgrade grub to Version 1.

Kytrix.

Kytrix:

Any chance you can post the script (and perhaps the modelines you referred to in your first post, at the risk of threadjacking)? I have the same machine and experience the same issues. Most of the time it's not a problem as I fire up XBMC after turning on the amp, but it's frustrating if I do it in the wrong order and have to reboot.

Thanks...

-JPC
Reply
#4
Sorry for the late reply, I will post you soon with my xorg.conf Smile
Reply
#5
so :

First, my method is certainly not the proper one, but it works great for me.

The modification I made wait-Forever the HDMI, if none connected, no X will be started ! (you can connect on tty to change that with a CRT.. or by ssh)

I made a script called hdmi-wait.sh :

Code:
#!/bin/bash

NO_HDMI=true
echo ""
echo "Start hdmi wait"
echo `date`
echo `ps ax`
while  $NO_HDMI ; do
    echo "HDMI :$NO_HDMI"
#We gona launch Xorg to see if hdmi is activated
    DISPLAY=:0 sudo Xorg -probeonly -logfile /var/log/Xout >/dev/null 2>&1

#now we look in the log file

    if cat /var/log/Xout |grep "ONK TX-SR607">/dev/null; then
    echo "Ampli + HDMI detected !"
    NO_HDMI=false
#    sleep 1
    else
    echo "HDMI not detected"
    sleep 2
    fi
done
modify ONK TX-SR607 by your settings !
for that launch manualy from a console with gdm stopped:
DISPLAY=:0 sudo Xorg -probeonly
and look the diference with hdmi connected and not connected.

Put it somewhere (me in /home/xbmc/software/scripts/hdmi-wait.sh)
and made it executable

Next I edit /etc/init/gdm.conf (the remplacement of init.d/gdm from karmic)
You must have that: (at end of file)
Code:
initctl emit starting-dm DM=gdm

    exec gdm-binary $CONFIG_FILE
And change to that:
Code:
initctl emit starting-dm DM=gdm
    /home/xbmc/software/scripts/hdmi-wait.sh >>/tmp/hdmi
    exec gdm-binary $CONFIG_FILE
then save.


How it works :
My script hdmi-wait is launched before gdm (who launch X)
hdmi-wait launch a X server just for test and look if the hdmi connection is detected if not it wait a little and test again if detected then end the script and gdm can launch normaly on hdmi Smile

tell me if it works for you Smile

.. If someone has improvements for that Smile
Reply

Logout Mark Read Team Forum Stats Members Help
HTPC Zotac IONITX HDMI only0