How to switch to HDMI output?

  • Hi,

    First time user, loving the simplicity of things but after doing a mammoth install fail of several potential OS I finally landed on this one.

    I have it installed and it seems to work fine. However there are issues for me.

    Sometimes when I boot up, all I get is a flashing cursor. Rebooting has worked 100% of the time so far, but for my non-tech savvy family that will be a frustration.

    TVHeadend is now set up, not sure if I have to wait a bit for the EPG to filter through but I can live with it for now.

    The main issue though is that although the LibreElec splash screen is visible on start up, once Kodi has loaded up the screen changes from my HDMI output (TV screen) to the laptop monitor. Any help on getting this working would be fantastic.

    KFOh


  • Please ssh and post the output of the following command

    Code
    xrandr


    Edit:

    Sorry, I did that earlier but for some reason didn't pastebin it. I still had the results on the SSH so cut/pasted. I know it's not what you normally like but I hope you are ok with it!

    Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
    LVDS2 connected 1600x900+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
    1600x900 60.08*+
    1440x900 59.89
    1368x768 60.00
    1360x768 59.80 59.96
    1152x864 60.00
    1280x720 60.00
    1024x768 60.00
    1024x576 60.00
    960x540 60.00
    800x600 60.32 56.25
    864x486 60.00
    800x450 60.00
    640x480 59.94
    720x405 60.00
    640x360 60.00
    VGA2 disconnected (normal left inverted right x axis y axis)
    VIRTUAL1 disconnected (normal left inverted right x axis y axis)
    LVDS-1-0 disconnected (normal left inverted right x axis y axis)
    HDMI-1-0 connected (normal left inverted right x axis y axis)
    1920x1080 60.00 + 50.00 59.94 30.00 25.00 24.00 29.97 23.98
    1920x1080i 60.00 50.00 59.94
    1680x1050 59.88
    1600x900 60.00
    1280x1024 75.02 60.02
    1440x900 59.90
    1366x768 59.79
    1280x800 59.91
    1152x864 75.00
    1280x720 60.00 50.00 59.94
    1024x768 75.08 70.07 60.00
    832x624 74.55
    800x600 72.19 75.00 60.32
    720x576 50.00
    720x576i 50.00
    720x480 60.00 59.94
    720x480i 60.00 59.94
    640x480 75.00 72.81 66.67 60.00 59.94
    720x400 70.08
    VGA-1-0 disconnected (normal left inverted right x axis y axis)
    1024x768 (0x6f) 65.000MHz -HSync -VSync
    h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
    v: height 768 start 771 end 777 total 806 clock 60.00Hz
    800x600 (0x73) 40.000MHz +HSync +VSync
    h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
    v: height 600 start 601 end 605 total 628 clock 60.32Hz
    640x480 (0x7e) 25.175MHz -HSync -VSync
    h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
    v: height 480 start 490 end 492 total 525 clock 59.94Hz


    KFOh

    Thanks for your help

    Edited once, last by Mortium (July 10, 2016 at 8:55 AM).

  • Ok, tried that and it works like a charm. Not something that I would look forward to doing every reboot though. I'm assuming that you will help me get that to do it automatically each reboot?

    Now that I have that display working, I can see that the audio output is set to the laptop speakers also. Is there a way of making the audio output change to HDMI too? At the moment none of the output settings for Kodi have a HDMI output as an option.

    Thanks!

    • Official Post

    do this

    Code
    echo "#!/bin/sh" > /storage/.config/autostart.sh
    echo "xrandr --output LVDS2 --off && sleep 1 && xrandr --output HDMI-1-0 --mode 1920x1080 --rate 60.00" >> /storage/.config/autostart.sh


    then reboot.

    if you ever want it to stop just do this

    Code
    rm /storage/.config/autostart.sh

    I think this will fix your audio issues as well as it will run before kodi runs.


  • do this

    Code
    echo "#!/bin/sh" > /storage/.config/autostart.sh
    echo "xrandr --output LVDS2 --off && sleep 1 && xrandr --output HDMI-1-0 --mode 1920x1080 --rate 60.00" >> /storage/.config/autostart.sh


    then reboot.

    if you ever want it to stop just do this

    Code
    rm /storage/.config/autostart.sh

    I think this will fix your audio issues as well as it will run before kodi runs.

    I did that and it certainly solves my HDMI video issues. However, it hasn't solved the audio issues unfortunately.