[Linux] Dualscreen : XBMC on secondary screen AND normal Ubuntu on primary screen
#9
Hi mossroy & phofman!

I have almost the same setup as you guys, but whatever I do i can't get xbmc to load in full screen on my TV. When I'm running the script it now loads xbmc in full screen on HDMI1, without the script it stretches across the two screens.

Some specs info:
HDMI1: Samsung SyncMaster245B connected with DVI (1920x1200)
HDMI2: LG plasma TV (1280x768)
Intel HD Graphic card (Core i3-530)
Arch Linux 12.01 with XBMC Eden

I don't use compiz, wiiremote etc. so all I need the script to do is to load on the TV. which seems to be impossible (I spent the last 2 days trying to figure it out).

Here's the script:

Code:
#! /bin/bash

    echo "Activate HDMI2"
    #The following two lines can be needed if the 1280x720 resolution is not proposed (which seems to be the case for U$
    #xrandr --newmode "1280x768" 80.14  1280 1344 1480 16680  768 769 772 795  -HSync +Vsync
    #xrandr --delmode "1280x720"
    #xrandr --newmode "1280x720" 74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync
    #xrandr --addmode HDMI2 1280x768
    xrandr --output HDMI1 --auto --primary --output HDMI2 --right-of HDMI1 --mode 1280x768
    #xrandr --output HDMI1 --auto --primary --output HDMI2 --right-of HDMI1 --mode 1920x1080

    echo "Start XBMC in background"
    killall -s9 -q xbmc.bin
    xbmc &

    echo "Wait for the XBMC window to appear"
    status=0
    while [ $status -eq 0 ]
    do
        sleep 1
        status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l | awk '{print $1}'`
    done

    echo "Move XBMC to secondary screen"
    # Resize so that it will fit in the secondary screen
    wmctrl -x -r XBMC Media Center.XBMC Media Center -e 0,0,0,800,600
    # Move to secondary screen
    wmctrl -x -r XBMC Media Center.XBMC Media Center -e 0,1920,0,800,600

    sleep 1

    echo "Force XBMC window to fullscreen"
    wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen

    #echo "Wait 2 seconds for xrandr to complete"
    #sleep 2

Code:
[ove@arch ~]$ xrandr -q
Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200      60.0*+
   1600x1200      60.0  
   1680x1050      59.9  
   1680x945       60.0  
   1400x1050      59.9  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       74.9     59.9  
   1152x864       75.0  
   1280x768       74.9     60.0  
   1024x768       75.1     70.1     60.0  
   1024x576       60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   848x480        60.0  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1280x768+1920+0 (normal left inverted right x axis y axis) 1000mm x 550mm
   1280x768       60.0*+   74.9     60.4  
   1920x1080      60.0     50.0     30.0     24.0     30.0     25.0  
   1680x1050      59.9  
   1680x945       60.0  
   1400x1050      74.9     59.9  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       59.8  
   1280x800       74.9     59.9  
   1152x864       75.0  
   1280x720       60.0     50.0     59.7  
   1440x576       25.0  
   1024x768       75.0     70.1     60.0  
   1024x576       60.0  
   800x600        72.2     75.0     60.3  
   720x576        50.0  
   848x480        60.0  
   720x480        59.9  
   640x480        75.0     72.8     60.0     59.9     59.9  
   720x400        70.1  
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)

I hope you guys can help, it seems like wmctrl don't move xbmc at all ...
Reply


Messages In This Thread
[No subject] - by phofman - 2011-06-06, 23:25
[No subject] - by mossroy - 2011-06-07, 08:20
[No subject] - by phofman - 2011-06-09, 21:15
[No subject] - by mossroy - 2011-06-17, 16:07
[No subject] - by phofman - 2011-07-01, 13:55
[No subject] - by mossroy - 2011-07-01, 14:35
RE: [Linux] Dualscreen : XBMC on secondary screen AND normal Ubuntu on primary screen - by zalaam - 2012-12-29, 15:33
Logout Mark Read Team Forum Stats Members Help
[Linux] Dualscreen : XBMC on secondary screen AND normal Ubuntu on primary screen0