LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2012, 12:44 PM   #1
adjman
LQ Newbie
 
Registered: Sep 2004
Location: Duncton, UK
Distribution: Lubuntu
Posts: 6

Rep: Reputation: 0
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?
 
Old 07-18-2012, 04:40 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
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
 
Old 07-18-2012, 04:43 AM   #3
adjman
LQ Newbie
 
Registered: Sep 2004
Location: Duncton, UK
Distribution: Lubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, I'll give that a try tonight
 
  


Reply

Tags
monitor, sessions, xbmc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nvidia dual monitor setup problems getting second monitor to work tradet Slackware 2 08-12-2011 06:38 AM
Dual Monitor / Single Desktop KDE4 on-board video & PCI nvidia card Hewson Linux - Hardware 3 10-16-2009 11:02 AM
NVIDIA Dual Monitor Setup On Debian joel112 Linux - Hardware 3 05-09-2009 04:55 AM
default monitor on nvidia / dual monitor setup fenderog SUSE / openSUSE 3 05-01-2009 05:36 PM
Nvidia/Intel 82865G Dual Monitor Setup augustuslegion Slackware 4 11-05-2005 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration