Kodi Community Forum
[LINUX] HOW-TO install XBMC for Linux on Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO install XBMC for Linux on Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) (/showthread.php?tid=44019)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


- karifsmith - 2009-02-22

olympia Wrote:Look for Intel speedstep something...

I checked the BIOS and that was already enabled so I enabled the CPU Scaling per your guide. Thanks!


- karifsmith - 2009-02-22

majorheadache Wrote:I do have audio on the optical S/PDIF output, but only for digital sources, like movies with AC3 soundtracks. MP3s and movies with simple stereo soundtracks have no audio on either the HDMI or the optical.

SO I have two problems: No audio on analog sources and no audio on at all on HDMI. I rechecked alsamixer and it looks just like I left it.

I just installed XBMC via this guide and I'm using the Asus P5N7A-VM mobo. I'm using the optical output for audio and sending that to my receiver. Audio worked great for me and then all of a sudden it stopped working on analog sources. I tried what tslayer posted here and so far audio has been working just fine again:
http://forum.xbmc.org/showthread.php?tid=35901#postmenu_209655

Hope that helps with your first problem!


- karifsmith - 2009-02-22

I am trying to do this step of the guide:
Enable eject button of your ODD

but when I open /etc/sysctl.conf I do not see a line that says #dev.cdrom.lock=0

Here is what my /etc/sysctl.conf file looks like:
http://pastebin.com/m72396b44

Any ideas? Thanks


- olympia - 2009-02-22

karifsmith Wrote:I am trying to do this step of the guide:
Enable eject button of your ODD

but when I open /etc/sysctl.conf I do not see a line that says #dev.cdrom.lock=0

Here is what my /etc/sysctl.conf file looks like:
http://pastebin.com/m72396b44

Any ideas? Thanks

I think you have sata odd device. Try to add the line yourself, without # and report back whether it is working or not.


- karifsmith - 2009-02-22

olympia Wrote:I think you have sata odd device. Try to add the line yourself, without # and report back whether it is working or not.

Yes, I have a SATA ODD. The eject via XBMC works as is (without adding that line to the file). I just wasn't sure if it is something that I needed to do.


- olympia - 2009-02-22

karifsmith Wrote:Yes, I have a SATA ODD. The eject via XBMC works as is (without adding that line to the file). I just wasn't sure if it is something that I needed to do.

Is it works from the eject menu or also by pressing the eject button on the drive itself?


- karifsmith - 2009-02-22

olympia Wrote:Is it works from the eject menu or also by pressing the eject button on the drive itself?

Eject from XBMC menu works however it does not Load if the tray is out and I select Eject.

Eject/Load on the drive itself works.


- majorheadache - 2009-02-22

karifsmith Wrote:I just installed XBMC via this guide and I'm using the Asus P5N7A-VM mobo. I'm using the optical output for audio and sending that to my receiver. Audio worked great for me and then all of a sudden it stopped working on analog sources. I tried what tslayer posted here and so far audio has been working just fine again:
http://forum.xbmc.org/showthread.php?tid=35901#postmenu_209655

Hope that helps with your first problem!

Thanks, I will try that, but it brings up a question/issue(?). When I stop XBMC I do not have a proper prompt. There is no blinking cursor, no text saying what user/folder I am in. The keyboard works -- I can type letters etc, but nothing executes. Is this normal? Do I follow tslayers instructions using SSH?

olympia Wrote:How did you set up your audio in XBMC?
I have the same mobo as you, and using S/PDIF and all sound works.
My settings are:
Digital
checked
checked
default
iec958

Also, did you set S/PDIF for audio output in your BIOS?

My sound settings are exactly the same. I have tried setting the S/PDIF to HDMI but then I get no sound at all.


- majorheadache - 2009-02-22

FWIW, I was able to get it fixed but since I tried two methods, I'm not sure which one worked.

First I ran /usr/bin/iecset audio on and then speaker-test -c 2

I didn't hear anything, but maybe I didn't have it turned up enough. I was not in the same room with the HTPC. The output seemed normal:

Code:
speaker-test 1.0.19

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
0 - Front Left
1 - Front Right
Time per period = 5.844536
0 - Front Left
1 - Front Right
Time per period = 5.973257
etc

But since I didn't hear anything, I tried the tslayer method. Again, I didn't hear anything but this time the output looked bad:

Code:
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Playback open error: -2,No such file or directory

Now I was discouraged. I tried to start XBMC (which I admit, I'm not exactly sure how to do. I went to my XBMC folder and typed xbmc ENTER. (keep in mind, all this is using SSH)

The output looked like this:
Code:
xbmc@HTPC:~/XBMC$ xbmc
Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

Cannot get root display. Is X11 running and is your DISPLAY variable set?
CRITSEC[0x8d600c4]: Trying to enter destroyed section.
CRITSEC[0x8d600c4]: Trying to leave destroyed section.
Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

xbmc@HTPC:~/XBMC$

So, I just tried rebooting it and now all the sound works. I have yet to try it using HDMI, but that's next.
\
I am also having a display issue which I will describe in another post.


no "non digital" sound - typhoe - 2009-02-23

Hi,

thank you for this great how to.

I was previously using xbmc on a "standard" hardy install.

To get sound (both analog and digital) using the spdif pass-through to my AV receiver, I had to use a .asoundrc file:
---
pcm.!default {
type plug
slave.pcm "softvol"
}

pcm.forcerate {
type plug
slave {
pcm "iec958"
#pcm "hw:0,1"
rate 48000
format S32_LE
}
}

pcm.softvol {
type softvol
slave {
pcm "forcerate"
}
control {
name "Master"
card 0
}
}
---

Now, with your method, on an intrepid "basic" install, I had digital sound directly, but no more analog...

I found the solution using tslayer method to test my card. I have to keep the .asoundrc file with pcm.!default spdif in it to get both analog and digital ouput.

I tested it by issuing the following command:
kill $(pgrep xbmc.bin) ; echo 'pcm.!default spdif' > $HOME/.asoundrc ; speaker-test -c 2
I got sound from the speaker, but when I removed the .asoundrc file and restarted xbmc, I was stuck again.
Keeping the file resolved my problem.

---
22:44:48 T:3053438784 M:1943359488 NOTICE: Starting XBMC, Platform: GNU/Linux. Built on Feb 22 2009 (SVN:17967)
--- without the .asoundrc file
22:56:33 T:3053438784 M:1789628416 INFO: PAPlayer: Playing /media/minitux/Music/Angra_-_Collection/Angra/[2001] Rebirth/Angra - 02 - Nova Era.mp3
22:56:33 T:3053438784 M:1789628416 DEBUG: CALSADirectSound::CALSADirectSound - opening alsa device
22:56:33 T:3053438784 M:1789628416 DEBUG: Initialize - using alsa device default
22:56:33 T:3053438784 M:1789636608 ERROR: Initialize - hw_params_get_buffer_size, alsa error: -22 - Invalid argument
22:56:33 T:3053438784 M:1789636608 ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen
--- with the .asoundrc file
23:21:14 T:3051759424 M:1711497216 INFO: PAPlayer: Playing /media/minitux/Music/Angra_-_Collection/Angra/[2001] Rebirth/Angra - 01 - In Excelsis.mp3
23:21:14 T:3051759424 M:1711497216 DEBUG: CALSADirectSound::CALSADirectSound - opening alsa device
23:21:14 T:3051759424 M:1711497216 DEBUG: Initialize - using alsa device default
23:21:14 T:3051759424 M:1711497216 DEBUG: CALSADirectSound::Initialize - packet size:2048, packet count:16, buffer size:8192

My sound card is :
Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
(Shuttle SN25P)

Hope this will helps others,
best regards,
Typhoe


- majorheadache - 2009-02-23

Well, using one or more of the suggestions in the stickied "Sound no longer working" thread, I can keep sound working thru the optical S/PDIF, but I have never gotten a peep out of the HDMI output.

I could table that for now though in favor of fixing my graphics situation. Originally my screen was crystal clear, no jaggies or anything, all pretty! Now it looks upscaled or something. When booting, the first pulsating XBMC logo looks very smooth, but the "X" and the following XBMC logo look "grainy". It reminds me of watching a DVD on the xbox without the "blend" on.

I took a few pictures to hopefully help illustrate what I'm talking about.

Image and

Image

In XBMC I have the resolution set to 1920 x 1080 @ 60Hz which is my projectors native resolution.

The only clue I have is from my above post when I tried to start xbmc and it said

Code:
xbmc@HTPC:~/XBMC$ xbmc
Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

Cannot get root display. Is X11 running and is your DISPLAY variable set?
CRITSEC[0x8d600c4]: Trying to enter destroyed section.
CRITSEC[0x8d600c4]: Trying to leave destroyed section.
Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

xbmc@HTPC:~/XBMC$

But I don't know if I'm even starting XBMC properly there. I suspect it would be useful to turn off the startup graphics because maybe it is displaying error messages I can't see, but I don't know how to do that.


- majorheadache - 2009-02-23

It occurs to me that maybe it has to do with the xorg.conf file. In my initial setup I went ahead and implemented this, "If you want your Xorg autodetect the native resolutions from EDID and want to use 24p you have to replace your xorg.conf..."

So now my xorg.conf file looks like this:
http://www.majorheadache.com/xorg.conf.txt

So I need to find the settings for a Mitsubishi HC5000 1080P projector. If I find working settings I'll post back here.


- olympia - 2009-02-23

majorheadache Wrote:It occurs to me that maybe it has to do with the xorg.conf file. In my initial setup I went ahead and implemented this, "If you want your Xorg autodetect the native resolutions from EDID and want to use 24p you have to replace your xorg.conf..."

So now my xorg.conf file looks like this:
http://www.majorheadache.com/xorg.conf.txt

So I need to find the settings for a Mitsubishi HC5000 1080P projector. If I find working settings I'll post back here.

You have 2 screen section, this can be a problem.


- majorheadache - 2009-02-23

olympia Wrote:You have 2 screen section, this can be a problem.

Actually, thats just a bad copy and paste from nano, sorry. I have corrected that. There is only one screen section. It should be simply whatever is at

http://217.20.138.65/xbmc/xorg.conf

plus whatever modifications are made to it by the installation process.


- olympia - 2009-02-23

majorheadache Wrote:Actually, thats just a bad copy and paste from nano, sorry. I have corrected that. There is only one screen section. It should be simply whatever is at

http://217.20.138.65/xbmc/xorg.conf

plus whatever modifications are made to it by the installation process.

Try this one (it has custom modelines instead of geting info from EDID):

Code:
sudo wget http://217.20.138.65/xbmc/xorg.conf.modelines -O /etc/X11/xorg.conf