Kodi Community Forum

Full Version: HELP: External monitor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
{I am not english, so grammar-errors may occur.}

I have followed this awesome guide:
http://wiki.xbmc.org/?title=XBMCbuntu
to install XBMC on a bootable usb, for my sony vpccw1s1e laptop (Nvidia GeForce 230m).
I have successfully installed everything, including "restricted nvidia drivers" according to the guide.
My only problem now is that I can't get it to use my plasma as an external monitor through hdmi.
Xorg.log rightfully says that it identifies my plasma as DFP1, and selects DFP0 (sony lcd-panel) as default screen.

I used Ubuntu 10.04 "Lucid Lynx" Minimal CD x86 as OS.
I used NVIDIA-Linux-x86-290.10.run to install graphics driver.

Running xrandr returns "Can't open display".
Running nvidia-settings returns "ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.". GTK2 is installed.
Here is a excerpt from my Xorg.0.log:
SONY AVAMP is a amplifier which redirects HDMI from the laptop to the TV. This is the device i would like to output the screen to.

Code:
X.Org X Server 1.7.6
Release Date: 2010-03-17
(II) Module "ramdac" already built-in
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "True"
(**) NVIDIA(0): Option "DynamicTwinView" "False"
(**) Jan 15 12:47:48 NVIDIA(0): Enabling 2D acceleration
(II) Jan 15 12:47:50 NVIDIA(GPU-0): Display (Sony Nvidia Default Flat Panel (DFP-0)) does not
(II) Jan 15 12:47:50 NVIDIA(GPU-0):     support NVIDIA 3D Vision stereo.
(II) Jan 15 12:47:50 NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
(II) Jan 15 12:47:50 NVIDIA(GPU-0):     stereo.
(II) Jan 15 12:47:50 NVIDIA(0): NVIDIA GPU GeForce GT 230M (GT216) at PCI:1:0:0 (GPU-0)
(--) Jan 15 12:47:50 NVIDIA(0): Memory: 524288 kBytes
(--) Jan 15 12:47:50 NVIDIA(0): VideoBIOS: 70.16.27.00.09
(II) Jan 15 12:47:50 NVIDIA(0): Detected PCI Express Link width: 16X
(--) Jan 15 12:47:50 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Jan 15 12:47:50 NVIDIA(0): Connected display device(s) on GeForce GT 230M at PCI:1:0:0
(--) Jan 15 12:47:50 NVIDIA(0):     Sony Nvidia Default Flat Panel (DFP-0)
(--) Jan 15 12:47:50 NVIDIA(0):     SONY AVAMP (DFP-1)
(--) Jan 15 12:47:50 NVIDIA(0): Sony Nvidia Default Flat Panel (DFP-0): 330.0 MHz maximum
(--) Jan 15 12:47:50 NVIDIA(0):     pixel clock
(--) Jan 15 12:47:50 NVIDIA(0): Sony Nvidia Default Flat Panel (DFP-0): Internal Dual Link
(--) Jan 15 12:47:50 NVIDIA(0):     LVDS
(--) Jan 15 12:47:50 NVIDIA(0): SONY AVAMP (DFP-1): 165.0 MHz maximum pixel clock
(--) Jan 15 12:47:50 NVIDIA(0): SONY AVAMP (DFP-1): Internal Single Link TMDS
(**) Jan 15 12:47:50 NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID has been
(**) Jan 15 12:47:50 NVIDIA(0):     enabled on all display devices.
(II) Jan 15 12:47:50 NVIDIA(0): Assigned Display Device: DFP-0
(==) Jan 15 12:47:50 NVIDIA(0):
(==) Jan 15 12:47:50 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Jan 15 12:47:50 NVIDIA(0):     will be used as the requested mode.
(==) Jan 15 12:47:50 NVIDIA(0):
(II) Jan 15 12:47:50 NVIDIA(0): Validated modes:
(II) Jan 15 12:47:50 NVIDIA(0):     "nvidia-auto-select"
(II) Jan 15 12:47:50 NVIDIA(0): Virtual screen size determined to be 1366 x 768
(--) Jan 15 12:47:51 NVIDIA(0): DPI set to (111, 114); computed from "UseEdidDpi" X config
(--) Jan 15 12:47:51 NVIDIA(0):     option
(--) Depth 24 pixmap format is 32 bpp
(II) Jan 15 12:47:51 NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
(II) Jan 15 12:47:51 NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) Jan 15 12:47:51 NVIDIA(0):     may not be running or the "AcpidSocketPath" X
(II) Jan 15 12:47:51 NVIDIA(0):     configuration option may not be set correctly.  When the
(II) Jan 15 12:47:51 NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
(II) Jan 15 12:47:51 NVIDIA(0):     try to use it to receive ACPI event notifications.  For
(II) Jan 15 12:47:51 NVIDIA(0):     details, please see the "ConnectToAcpid" and
(II) Jan 15 12:47:51 NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
(II) Jan 15 12:47:51 NVIDIA(0):     Config Options in the README.
(II) Jan 15 12:47:51 NVIDIA(0): ACPI display change hotkey events enabled: the X server is new
(II) Jan 15 12:47:51 NVIDIA(0):     enough to receive ACPI hotkey events.
(WW) Jan 15 12:47:51 NVIDIA(0): ACPI: Error: Unable to find the brightness file path under
(WW) Jan 15 12:47:51 NVIDIA(0):     /proc/acpi/video. The NVIDIA X driver will not be able to
(WW) Jan 15 12:47:51 NVIDIA(0):     respond to ACPI brightness change hotkey events.
(II) Jan 15 12:47:51 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(==) NVIDIA(0): Disabling shared memory pixmaps
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(WW) Jan 15 12:47:51 NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "CRT", but no
(WW) Jan 15 12:47:51 NVIDIA(0):     such display device could be found, or all display devices
(WW) Jan 15 12:47:51 NVIDIA(0):     by that name are currently unavailable.
(WW) Jan 15 12:47:51 NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "TV", but no such
(WW) Jan 15 12:47:51 NVIDIA(0):     display device could be found, or all display devices by
(WW) Jan 15 12:47:51 NVIDIA(0):     that name are currently unavailable.
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing extension GLX

and here is my xorg.conf:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 290.10  ([email protected])  Wed Nov 16 20:32:22 PST 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "DynamicTwinView" "False"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

Here is how you can help me:
Do you have a external monitor that you could connect to your ubuntu laptop?
  1. Look at your xorg.conf (/etc/X11/xorg.conf).
  2. Connect monitor.
  3. Run nvidia-settings, and configure to run on external monitor.
  4. If theres's any changes to xorg.conf, report what
I've done this myself, editing the xorg.conf file, but how I did this is at home and darn it can't remember what I did.

Give me a couple of hours and I'll dig out the changes I did to switch to external output only. Something like changing 'Device0' to 'Device1'.

I recall I needed to read through xorg's log file to identify my screen and outputs, and if you check this thread it may help with customizing the xorg.conf file.
[LIVE] XBMC Live on laptop with TV

I know its for a laptop but the steps are the same.

Just one hint. make a copy of xorg.conf as xorg.conf.master so you can replace the edited file if things get hairy. I'd recommend making sure you can PuTTy in also.

Rob
Thank you for trying to help me, but I found the solution myself.
I searched Google for something and found this thread:
http://www.nvnews.net/vbulletin/showthread.php?t=101858
i copied some of the settings he uses in his xorg.conf to my xorg.conf so now it looks like this:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 290.10  ([email protected])  Wed Nov 16 20:32:22 PST 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "UseDisplayDevice" "DFP-1"
    Option         "UseEdidDpi" "DFP-1"
    Option         "RenderAccel" "True"
    Option         "UseEvents" "True"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "RenderAccel" "True"
    Option         "UseEvents" "True"
    BusID          "PCI:1:0:0"
    Screen         1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "DynamicTwinView" "False"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

I haven't tested whether it's the addition of the second device section, or if it's the line
Option "UseDisplayDevice" "DFP-1"
that does the trick, but I don't care at this point.
Well, I found my notes on how I did this. I hope you can follow how I solved my issue and got xbmc live to output to vga instead of the laptop's lcd screen. For me I was trying to get a DVI port to work, but the principal's the same

Quote:I was trying to run xrandr in a tty after ctrl+alt+f2 from XBMCLive. And it wouldn't give me any output.

So I booted to a livecd of Ubunto and used a desktop terminal in Ubuntu to run xrandr and it worked perfectly. I identified the DVI port as "DVI-D-1".

I then added the following to rc.local to turn the laptop LCD off and switch to the TV over DVI:

Quote:
xrandr --output DVI-D-1 --auto
xrandr --output LVDS-1 --off

However, while the above worked in Ubuntu, the xrandr commands would not run from rc.local in XBMCLive. I know rc.local was running before I inserted these lines as I already used it to enable my wiiremote.

In the end I found a solution by editing my xorg.conf file. I added the line in **** below to the screen section:

Quote:
Section "Screen"
Identifier "Screen0"
Device "Device1"
Monitor "Monitor0"
DefaultDepth 24
****Option "ConnectedMonitor" "DVI-D-1"****
Option "NoLogo" "True"
Option "HWCursor" "false"
SubSection "Display"
Depth 24
EndSubSection
EndSection

The 'ConnectedMonitor' option forces it to default to DVI-D-1 (my TV - I got the monitor reference from /var/log/xorg.0.log). It all seems to be working well so far, it has survived several reboots, with the TV switched both on or off.