Author Topic: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)  (Read 21343 times)

0 Members and 1 Guest are viewing this topic.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Hello folks, not quite a re-post but more of a consolidation of two other threads.

The Request (for anyone new to this thread)
I have built a HTPC/Media Centre PC and have it plumbed into a 42" HD LED Telly via HDMI and a 21.5" LED Monitor via DVI, both directly from the motherboard.
I want to configure the XBMC media program to auto-launch through the HDMI port to the telly on start up.
At the moment I am just getting duplicate displays on both screens. The display on the telly is over size and just the very edge of the task bar is visible. The display to the monitor through DVI is fine.


The story so far
So far the great Mark Greaves (my hero) has been providing much patient help and the latest work through the terminal in 'recovery' mode is shown below:

root@Awesome1:/home/smiler# Xorg -configure

Fatal server error:
Server is already active for display 0
   If this server is no longer running, remove /tmp/.X0-lock
   and start again.

Please consult the The X.Org Foundation support
   at http://wiki.x.org
  for help.

  ddxSigGiveUp: Closing log



root@Awesome1:/home/smiler# sudo mv -v /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
mv: cannot sttat `/etc/X11/xorg.conf': No such file or directory


root@Awesome1:/home/smiler# sudo cp -v ~/xorg.conf.new /etc/X11/xorg.conf
cp: cannot stat `/root/xorg.conf.new: No such file or directory



I'm guessing that the machine already beleives it is working correctly in the first instance and the OS doesn't have the xorg program it is looking for in the rest.
Does this make any sense to you Mark?

Regards,

Smiler.

P.S. Yes I did really name the computer Awesome1!
Nothing to see here.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8884
  • Karma: 236
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #1 on: March 18, 2012, 10:32:33 pm »
OK, the X server was obviously still running .. lets do it another way ..

As before, do this with BOTH monitors attached and powered ON.

BE AWARE .. You are going to be working from the command line with no GUI for part of this, so write this down, or better yet print it off.
(and remember Linux commands ARE case sensitive)

You're going to want to create an xorg.conf file whilst both monitors are attached and switched on ..

Hit Ctrl+Alt+F3 which will drop you to a console (no GUI here, so I hope you wrote this down)

You should now be asked to log on .. enter your username and hit enter.
enter your password and hit enter.  <-- be aware when typing your password the keys repeat very quickly in the console (as in eeee) so only press them briefly.
You should now be at a normal $ prompt.

Run:
Code: [Select]
sudo /etc/init.d/lxdm stop
then
Code: [Select]
sudo X -configure
then
Code: [Select]
sudo mv -v /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
(the above command may fail, but just carry on with the next command)
then
Code: [Select]
sudo cp -v ~/xorg.conf.new /etc/X11/xorg.conf

When that finishes, run:
Code: [Select]
sudo /etc/init.d/lxdm start

With a bit of luck, you are now back at your normal desktop and both monitors will be available in Preference>Monitors

If not, try a reboot.



If your system refuses to boot ..

Reboot and hold the Shift key as soon as you BIOS POST  screen disappears till you are at the GRUB boot screen.

Select "Recovery Mode", and hit enter.

When you are offered a load of options, use the Tab key to select "Cancel"

You should now be asked to log on .. enter your username and hit enter.
enter your password and hit enter.
You should now be at a normal $ prompt.

Run:
Code: [Select]
sudo mv -v /etc/X11/xorg.conf /etc/X11/xorg.conf.broken

Then reboot with:
Code: [Select]
sudo reboot
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #2 on: March 18, 2012, 10:47:57 pm »
hanks very much, I shall print it off and have a go tomorrow. Of to bed now, it's a school night.  ;)

Cheers.
Nothing to see here.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #3 on: March 19, 2012, 12:47:16 pm »
Right, I have try'd that.

At the first command I got the response:

do not recognise (or it could have been 'unable to find') command: /etc/init.d/lxdm

It's obviously stumbling at the first hurdle each time.

A quick check on the ubuntu software centre shows the following xorg type program as beig presently installed.

X.Org X Window System

I don't know if that's at all relevant, but it doesn't have a very good rating. Should I remove it and try again?

I presently have no option for Monitors in Preference, should I have one there at the moment?

Many thanks (again),

Smiler.
Nothing to see here.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 732
  • Karma: 30
  • Gender: Male
    • View Profile
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #4 on: March 19, 2012, 01:02:55 pm »
do not recognise (or it could have been 'unable to find') command: /etc/init.d/lxdm

Just to make sure you have lxdm (with lowercase L) please post the output from:
Code: [Select]
cat /etc/init.d/lxdm

If that fails then try:
Code: [Select]
ls /etc/init.d/
« Last Edit: March 19, 2012, 01:08:48 pm by SeZo »

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #5 on: March 19, 2012, 02:30:40 pm »
Thanks for the reply.

First response:

cat: /etc/innit.d/lxdm: no such file or directory

Second Response,:
lots, in blue and green. It won't let me cut and paste in the usual manner with the mouse, anything I should look for?

It does have x11-common (in green with lower case x)

Many thanks,

Smiler.
Nothing to see here.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8884
  • Karma: 236
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #6 on: March 19, 2012, 02:41:42 pm »
My apologies .. it seems (from a quick Google) that XBMCbuntu uses lightdm and not lxdm as the desktop display manager in its LDXE desktop environment.

Try these instead:

Run:
Code: [Select]
sudo service lightdm stop
then
Code: [Select]
sudo X -configure
then
Code: [Select]
sudo mv -v /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
(the above command may fail, but just carry on with the next command)
then
Code: [Select]
sudo cp -v ~/xorg.conf.new /etc/X11/xorg.conf

When that finishes, run:
Code: [Select]
sudo service lightdm start
« Last Edit: March 19, 2012, 03:36:41 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #7 on: March 19, 2012, 07:27:52 pm »
Have done the above. It seemed to accept everything, though failed with the third line as you suspected it might.

However, I cannot see any changes anywhere. No Monitor in Preferences or anywhere else.

I am trying to expand my knowledge but am a bit out of my depth with this.

Regards,

Smiler
Nothing to see here.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8884
  • Karma: 236
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #8 on: March 19, 2012, 07:33:01 pm »
What are the contents of your xorg.conf file:
Code: [Select]
gedit /etc/X11/xorg.conf
??
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #9 on: March 19, 2012, 07:44:31 pm »
Results:

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   Screen      1  "Screen1" RightOf "Screen0"
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   ModulePath   "/usr/lib/xorg/modules"
   FontPath     "/usr/share/fonts/X11/misc"
   FontPath     "/usr/share/fonts/X11/cyrillic"
   FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath     "/usr/share/fonts/X11/Type1"
   FontPath     "/usr/share/fonts/X11/100dpi"
   FontPath     "/usr/share/fonts/X11/75dpi"
   FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
   FontPath     "built-ins"
EndSection

Section "Module"
   Load  "dbe"
   Load  "glx"
   Load  "dri"
   Load  "extmod"
   Load  "dri2"
   Load  "record"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Monitor"
   Identifier   "Monitor1"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: : integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ###
[arg]: arg optional
        #Option     "DRI"                   # [<bool>]
        #Option     "ColorKey"              #
        #Option     "VideoKey"              #
        #Option     "FallbackDebug"         #
[<bool>]
        #Option     "Tiling"                # [<bool>]
        #Option     "LinearFramebuf fer"     # [<bool>]
        #Option     "Shadow"                # [<bool>]
        #Option     "SwapbuffersWai t"       # [<bool>]
        #Option     "TripleBuffer"          # [<bool>]
        #Option     "XvMC"                  # [<bool>]
        #Option     "XvPreferOverla y"       # [<bool>]
        #Option     "DebugFlushBatc hes"     # [<bool>]
        #Option     "DebugFlushCach es"      # [<bool>]
        #Option     "DebugWait"             # [<bool>]
        #Option     "HotPlug"               # [<bool>]
        #Option     "RelaxedFencing"        # [<bool>]
   Identifier  "Card0"
   Driver      "intel"
   BusID       "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: : integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ###
[arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
        #Option     "ModeSetClearSc reen"    # [<bool>]
   Identifier  "Card1"
   Driver      "vesa"
   BusID       "PCI:0:2:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "Screen"
   Identifier "Screen1"
   Device     "Card1"
   Monitor    "Monitor1"
   SubSection "Display"
      Viewport   0 0
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection
Nothing to see here.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8884
  • Karma: 236
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #10 on: March 19, 2012, 07:52:55 pm »
So is the second monitor working ?

According to that it should now be an extension of the desktop to the right of your normal monitor .. isn't that what you wanted ?
« Last Edit: March 19, 2012, 07:54:49 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #11 on: March 19, 2012, 08:14:53 pm »
That is what I was after, unfortunately the soaps have started so I can't check the telly until she's finished with it. I'll get back to you when I find out.
Nothing to see here.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #12 on: March 19, 2012, 08:41:37 pm »
Commercial break!

The TV is still just showing a duplicate of the monitor.

I'm wondering if the HDMI output isn't the one it's classing as screen 1. The motherboard also has a display port output so maybe that's presently screen 1? It's a pity the bios doesn't give any help.
« Last Edit: March 19, 2012, 08:44:37 pm by Smiler »
Nothing to see here.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8884
  • Karma: 236
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #13 on: March 19, 2012, 09:00:03 pm »
Try installing ARandR
Code: [Select]
sudo apt-get install arandr

You'll the find it in the menu's at menu>Preferences>ARandR

ARandR is supposed to help in multi-monitor configuration by letting you move the monitors around graphically.

ARandR Screenshot



You could also try grandr
Code: [Select]
sudo apt-get install grandr
but you'll have to start that from the command line with:
Code: [Select]
grandr
« Last Edit: March 19, 2012, 10:10:15 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Smiler

  • Full Member
  • ***
  • Posts: 163
  • Karma: 3
  • Gender: Male
  • I've just joined!
    • View Profile
    • Auto-TaT
    • Awards
Re: Configuring a dual screen setup - XBMCbuntu (Ubuntu 11.10 LXDE)
« Reply #14 on: March 19, 2012, 10:30:54 pm »
Right, had a play with ARandR with some success, though it's claiming I have two hdmi ports connected.

I'll now have a play with  the other.

Thanks a lot.
Nothing to see here.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal