LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   XBMC, Lubuntu12.04 nVidia and single session dual monitor setup (http://www.linuxquestions.org/questions/linux-newbie-8/xbmc-lubuntu12-04-nvidia-and-single-session-dual-monitor-setup-4175417008/)

adjman 07-16-2012 12:44 PM

XBMC, Lubuntu12.04 nVidia and single session dual monitor setup
 
I am trying to do something clever with Lubuntu which was very easy under 'doze. I have a 22" Samsung monitor and an LG TV connected, the Samsung is on DVI and the LG TV on VGA on an nVidia 8800GTX.

I can set the driver to give my a huge desktop (TwinView) but then the fonts jump to a massive size and no matter which I set as a primary monitor it always puts the taskbar and icons on the TV desktop.

So I started playing with a seperate X session on the TV and Monitor - this was OK and I figured out how to launch an application on the TV screen.

So my problem now is that I want XBMC running on the TV an controlled by the MCE remote control, but I want my mouse and keyboard to still work on the normal X session that is my desktop on the Samsung monitor. I tried some scripts that use wmctrl to hand the mouse and keyboard back but they don't seem to work. I have read advice about setting XBMC to windowed mode, but then I get a tiny window in the top corner of the TV that is useless.

I'm sure there must be some way to fire up XBMC on session 0.1 without losing the mouse and keyboard to it?

Any ideas?

serafean 07-18-2012 04:40 AM

Hi, check out my blog here, it documents what I did to get the setup you're aiming for.
A list :
  • Separate X screens, separated by unreachable pixels (cursor won't pass from one display to the other)
  • launching xbmc through a script (wmctrl is the right way) and letting it be in window mode (doesn't capture the mouse that way)
  • Make X ignore the MCE device, and use it through LIRC.

for xbmc, you need to set it to be in window mode, and set its resolution to the size of your TV.
Script for launching xbmc :
Code:

xbmc&
while [ -z "$status" ];do
        sleep 1
        status=`wmctrl -m | grep Name`
done

status=0
while [ $status -eq 0 ];do
        sleep 1
        status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l`
done
wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen


adjman 07-18-2012 04:43 AM

Thanks, I'll give that a try tonight :)


All times are GMT -5. The time now is 02:34 PM.