You are not logged in.
[SOLVED]
Hi everyone.
I'm an archlinux newbie trying to install XBMC on a Zotac ION ITX motherboard. I followed wiki instructions (beguinner's guide, Xorg, etc) and finally got a working system with X working (tested with xterm and mouse and keyboard worked flawlessly) and everything seemed fine. But when I try to run xbmc
I get the following error:
Error unable to open display
XBMC needs hardware accelerated OpenGL rendering.
Install an appropiate graphics driver.
Cannot get root display. Is X11 running and is your DISPLAY variable set?
I have the nvidia driver installed and configured in xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Fri Aug 14 17:54:58 PDT 2009
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "keyboard"
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 "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"
SubSection "Display"
Modes "nvidia-auto-select"
Depth 24
EndSubSection
EndSection
dmesg guives me the following message:
nvidia: module license 'NVIDIA' taints kernel.
Disabling lock debugging due to kernel taint
After reading this thread: http://bbs.archlinux.org/viewtopic.php?id=76890 I thought it could be a problem with a USB devices, so I tried disconnecting all of them. It didn't work. I also looked for the ra73 module with modprobe -l|grep ra73 (even though I don't have a USB WiFi dongle). Nothing
I can't see any problem in lsmod
Module Size Used by
nfsd 257388 9
exportfs 4284 1 nfsd
nfs 302544 0
lockd 72780 2 nfsd,nfs
fscache 44688 1 nfs
nfs_acl 2908 2 nfsd,nfs
auth_rpcgss 38208 2 nfsd,nfs
sunrpc 192448 13 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
ipv6 279636 30
ext2 68964 1
snd_hda_codec_nvhdmi 5372 1
arc4 1756 2
ecb 2812 2
snd_hda_codec_realtek 210080 1
usbhid 40768 0
hid 42528 1 usbhid
snd_seq_dummy 2720 0
snd_seq_oss 31232 0
snd_seq_midi_event 7036 1 snd_seq_oss
ath9k 238964 0
snd_hda_intel 27528 0
snd_seq 53808 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6792 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_hda_codec 72700 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
mac80211 155532 1 ath9k
snd_pcm_oss 40320 0
snd_hwdep 7712 1 snd_hda_codec
ati_remote 10436 0
led_class 4000 1 ath9k
snd_pcm 74464 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_mixer_oss 17564 1 snd_pcm_oss
ath 7708 1 ath9k
nvidia 9592584 0
snd_timer 21156 2 snd_seq,snd_pcm
fan 4448 0
agpgart 32660 1 nvidia
snd 58820 11 snd_hda_codec_realtek,snd_seq_oss,snd_hda_intel,snd_seq,snd_seq_device,snd_hda_codec,snd_pcm_oss,snd_hwdep,snd_pcm,snd_mixer_oss,snd_timer
cfg80211 90428 3 ath9k,mac80211,ath
soundcore 6944 1 snd
battery 10816 0
ohci_hcd 24172 0
ac 4224 0
shpchp 34384 0
i2c_nforce2 6944 0
wmi 6600 0
evdev 10240 4
ehci_hcd 36652 0
rfkill 19728 1 cfg80211
snd_page_alloc 8900 2 snd_hda_intel,snd_pcm
processor 36076 0
button 5612 0
thermal 13912 0
pcspkr 2492 0
pci_hotplug 28732 1 shpchp
sg 27728 0
usbcore 154032 5 usbhid,ati_remote,ohci_hcd,ehci_hcd
i2c_core 21808 2 nvidia,i2c_nforce2
forcedeth 56712 0
rtc_cmos 11344 0
rtc_core 17976 1 rtc_cmos
rtc_lib 2524 1 rtc_core
ext3 133988 4
jbd 49136 1 ext3
mbcache 7104 2 ext2,ext3
sd_mod 28344 8
ata_generic 4704 0
pata_acpi 4252 0
ahci 36844 6
libata 169260 3 ata_generic,pata_acpi,ahci
scsi_mod 112404 3 sg,sd_mod,libata
I thought about installing nvidia nouveau drivers, but I've read that would loose the accelerated hardware support I need for XBMC.
I'm lost. I don't have a single clue of what to do or how to solve the problem. Can anyone help me?
Thanks in advanced.
Last edited by JuanSinMiedo (2009-10-26 15:11:01)
Offline
Reinstall them and then leave only these in the xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
Option "NoLogo" "true"
Option "TripleBuffer" "True"
Option "RegistryDwords" "PerfLevelSrc=0x3333"
Option "Coolbits" "1"
VendorName "NVIDIA Corporation"
EndSection
and reboot.
Offline
I've reinstalled the nvidia driver (nvidia-185.18.36-2) and changed xorg.conf as you said. Still the same error. Nothing seems to have changed.
Any other ideas?
Offline
dmesg guives me the following message:
nvidia: module license 'NVIDIA' taints kernel. Disabling lock debugging due to kernel taint
The nvidia license error is normal.
Are you sure you are running XBMC from within X? Like from xterm or .xinitrc? It sounds like you are running it from a non X environment. The way I run it on my HTPC's is from .xinitrc so that when I run startx/xinit it automatically runs XBMC fullscreen. For example here is one of my .xinitrc files:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#nvidia-settings --load-config-only &
exec xbmc --standalone
#nvidia-settings
#exec xterm
As you can see currently everything is commented out except "exec xbmc --standalone", try editing your .xinitrc with that line and then do a "startx" or "xinit" and see if that helps.
Kevin
Offline
You were right. I was trying to run xbmc from CLI just by typing xbmc and pressing enter (as this tutorial from XBMC explained: http://xbmc.org/wiki/?title=HOW-TO_inst … Step_Guide). I understood that x will automatically run when I started xbmc (now I know I was wrong).
Thanks a lot for your help people.
Just another question: to have my user boot straight away in XBMC without login/password, I will be doing this:
Add this in /etc/inittab:
x:5:respawn:/bin/su <YOUR_XBMC_USERNAME> -l -c "/bin/bash --login -c startx >/dev/null 2>&1"
and comment out all other lines beginning with x:5:. And boot directly into runlevel 5 by changing id:3:initdefault to
id:5:initdefault
Is that right?
PD: Thanks to everyone for their great job with Arch Linux. I've been using GNU/Linux for about 5 years and it's now that I'm learning how it works inside (and it's easier this way). Steep lerning curve, high reward.
Offline
Hmm.. I have the same MB as you running arch i686 w/ the nvidia driver. I just installed the xbmc packages to test it and running /opt/xbmc/bin/xbmc form a shell loads it up just fine. This is through xfce though... not in standalone mode.
/etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection
Section "Module"
# Load "record"
# Load "dri2"
Load "dbe"
Load "extmod"
# Load "type1"
# Load "freetype"
Load "glx"
EndSection
Section "ServerFlags"
Option "DontZap" "off"
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 "Samsung"
ModelName "SyncMaster T220"
Option "DPI" "96x96"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "GeForce 8400 GS"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
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
Option "AddARGBGLXVisuals" "True"
EndSubSection
EndSection
Last edited by graysky (2009-10-25 13:49:23)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline