This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[STICKY] XBMC :Full Screen Mode dual monitors

Anonymous

Mon Sep 17, 2012 9:28:43 pm

Real simple to fix this problem below:

First > Open Terminal = Ctrl+Alt+Del > Run the Command Below !!!

Code:
sudo apt-get install wmctrl



Now copy the >Script< below (in blue) and save to a text document. Now name the text document (xbmc.sh) Make the file executiable by checking the permissions box in properties. Now place this file in a folder and call it (Custom) and move to> Home. Now right click on Main Menu/Z-Button > edit > Sound and Video and uncheck the old XBMC Laucher ect. And create a new custom XBMC launcher > Browse to > home > custom > xbmc.sh for Command Shortcut. This will run your XBMC on a second display in fullscreen mode. Don't forget to run in the terminal first before proceediing = sudo apt-get install wmctrl


Code:
#!/bin/bash

move_and_fullscreen(){
  NAME='XBMC Media Center'

  while [ -z "`wmctrl -l | grep \"$NAME\"`" ]
  do
      sleep 1
  done

  wmctrl -r "$NAME" -e '0,1280,-1,-1,-1'
  wmctrl -r "$NAME" -b toggle,fullscreen
}

move_and_fullscreen &
__GL_SYNC_TO_VBLANK=1 __GL_SYNC_DISPLAY_DEVICE=DFP-0 SDL_VIDEO_ALLOW_SCREENSAVER=0 exec xbmc

Anonymous

Fri Jan 24, 2014 8:09:00 pm

Update to Datek's original thread.
Will work with Zorin OS 8 ! ! ! !

Swarfendor437

Fri Jan 24, 2014 11:17:20 pm

HI Gizmuntu, Thought this deserved to be a [STICKY] so now at top of the list! 60 blue jewels to you sir! :D