Force output to specific monitor at boot

  • I am using an Acer Aspire E15 with a damaged LCD display. I have a 4K Vizio E-series monitor as my main display.
    I can get the video to display on both monitors or can blank out LCD by using fn keys or closing the lid.

    Internal LCD is lower resolution than the Vizio.

    The Vizio has to be tricked to display full screen by closing the lid on the laptop and adjusting the res to 720p.
    Then using the web Chorus2 send a reboot (since the screen blanks when changing the output to HDMI1).
    After reboot, the Vizio displays full screen.
    If I set the display to 1080p it works.
    Openning the laptop lid so the LCD is on, I have to start all over again.

    Is it possible to force output to HDMI1 with a specific resolution that is different from eDP1 (the LCD)?

    Additionally playing EMU's only displayed on LCD... How to force to HDMI1 Vizio?


  • Via System / System Settings / Display, you can select your default output display, and also the option to 'Blank other displays'.

    Yes I currently can blank the display this way, however I need it to force to the second monitor at a higher resolutions than the internal LCD before Kodi starts.

    The internal LCD mucks things up. When the laptop lid is open to access the keyboard etc.

  • Is your goal to have the laptop's screen always disabled in LibreELEC and having the output set to the HDMI1?

    SSH to your laptop and post the output of the following command here.

    Code
    xrandr

    Edited once, last by vitorp07 (March 16, 2017 at 1:03 AM).


  • Is your goal to have the laptop's screen always disabled in LibreELEC and having the output set to the HDMI1?

    SSH to your laptop and post the output of the following command here.

    Code
    xrandr


    Goal is to have HDMI1 treated as the primary display by disabling the internal laptop screen.
    2nd and related problem is that I am using a 4K monitor which if the internal laptop screen is active sets the HDMI1 screen to 4k but displays the maximum 1366x768 res of the Laptop so not full screen.

    If I boot the computer with the case closed I can have the display take full screen on HDMI1 upto the max of 1080p

    I ran the xrandr command with the laptop screen closed.


    LibreELEC:~ # xrandr
    Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
    eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 3 50mm x 190mm
    1366x768 60.01*+
    1360x768 59.96
    1280x720 60.00
    1024x768 60.00
    1024x576 60.00
    960x540 60.00
    800x600 60.32 56.25
    864x486 60.00
    640x480 59.94
    720x405 60.00
    680x384 60.00
    640x360 60.00
    DP1 disconnected (normal left inverted right x axis y axis)
    HDMI1 connected 1280x720+0+0 (normal left inverted right x axis y axis) 1230mm x 700mm
    1920x1080 60.00 59.94 30.00 24.00 29.97 23.98
    1920x1080i 60.00 59.94
    1280x720 60.00* 59.94
    1024x768 75.03 70.07 60.00
    800x600 72.19 75.00 60.32
    720x480 60.00 59.94
    720x480i 60.00 59.94
    640x480 75.00 60.00 59.94
    720x400 70.08
    VGA1 disconnected (normal left inverted right x axis y axis)
    VIRTUAL1 disconnected (normal left inverted right x axis y axis)
    LibreELEC:~ #

  • SSH again and send these commands below. (to output to HDMI1 1080p with laptop's screen disabled)

    Code
    echo "#!/bin/sh" > /storage/.config/autostart.sh


    Code
    echo "xrandr --output eDP1 --off && xrandr --output HDMI1 --mode 1920x1080 --rate 60.00" >> /storage/.config/autostart.sh

    To revert back to original if needed, it's the command below.

    Code
    rm /storage/.config/autostart.sh


    or simply delete the "autostart.sh" file created

    Edited once, last by vitorp07 (March 16, 2017 at 4:04 PM).

  • This solved the video problem. Thanks.
    This is my first time SSH. Have been using terminal through tigervnc.


    After doing this, I was able to get the emulators to play games on the HDMI1, but for some reason it turns on the laptop LCD screen and leaves it on. Weird.

  • Here is what I have.
    Did xrandr and aplay for when I am in Kodi and the audio and video are working.

    How to get audio and Video to both work on HDMI1.
    I can get the video not the audio.

    Retroarch Super Nintendo - Audio not working, Video working HDMI1, eDP1 display on
    LibreELEC:~ # xrandr
    Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
    eDP1 connected primary (normal left inverted right x axis y axis)
    1366x768 60.01 +
    1360x768 59.96
    1280x720 60.00
    1024x768 60.00
    1024x576 60.00
    960x540 60.00
    800x600 60.32 56.25
    864x486 60.00
    640x480 59.94
    720x405 60.00
    680x384 60.00
    640x360 60.00
    DP1 disconnected (normal left inverted right x axis y axis)
    HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1230mm x 700mm
    1920x1080 60.00* 59.94 30.00 24.00 29.97 23.98
    1920x1080i 60.00 59.94
    1280x720 60.00 59.94
    1024x768 75.03 70.07 60.00
    800x600 72.19 75.00 60.32
    720x480 60.00 59.94
    720x480i 60.00 59.94
    640x480 75.00 60.00 59.94
    720x400 70.08
    VGA1 disconnected (normal left inverted right x axis y axis)
    VIRTUAL1 disconnected (normal left inverted right x axis y axis)
    LibreELEC:~ # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    Edited once, last by Bubba2017 (March 20, 2017 at 8:21 PM).