Showing posts with label XBMC. Show all posts
Showing posts with label XBMC. Show all posts

Tuesday, March 16, 2010

xbmc 9.11 usb does not automount after gnome-core is installed

I have this very annoying probklem that I have not been able to solve. when I install gnome-core usb disks does not mount anymore. I get "not authorized".
Generally if I use gdm it works but if I use xbmc or startx it does not work.

I think the problem could be that the policykit is upgraded to polictkit-1 and any settings that are done for xbmc does not work anymore.

I have now found this: EDIT: This does not fix the usb mount problem. It fixes some other permission problems though. I have given up on xbmc and gnome for the moment. I use lxde with xfce and kde components instead.
http://forum.xbmc.org/showthread.php?t=70394

--------------------------
(sudo apt-get install policykit-1 devicekit-power)

sudo nano /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla
add:

[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.disks.*;org.freedesktop.devicekit.power.*;org.freedesktop.consolekit.system.*;org.freedesktop.hal.storage.mount-removable;org.freedesktop.hal.device.volume
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

Wednesday, August 26, 2009

xbmcbuntu - manually install live components

sudo chmod +x /usr/bin/runXBMC.sh
wget http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/linuxport/XBMC/tools/XBMCLive/runXBMC
sudo cp runXBMC /usr/bin/runXBMC
sudo chmod +x /usr/bin/runXBMC

The other live components:
http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/linuxport/XBMC/tools/XBMCLive/

Saturday, August 22, 2009

HOWTO revert to old svn

sudo dpkg -i xbmc-common_9.04.2+svn22278-jaunty1_i386.deb xbmc-skin-pm3-hd_9.04.2+svn22278-jaunty1_i386.deb xbmc-web-pm3_9.04.2+svn22278-jaunty1_i386.deb

or

sudo apt-get install xbmc=[svnVERSION]  
(e.g. 22278)

The packages are stored in /var/cache/apt/archives

Revert to old version in svn  source directory
svn up --revision  22278
(svn guide http://ubuntuforums.org/showthread.php?t=1167578)

Thursday, August 20, 2009

XBMC reinstalled (Now XBMCbuntu)

I have decided to change my configuration. Instead of base it on a ubuntu desktop I will do a xbmcbuntu installation according to the official guide with the same name. The only reason is that this is what everybody else does. The performance will not be improved.

I will still need a gui but I will add it on top of the xbmc installation instead of the other way around. I think I will stick to gnome for the moment, but am working on a openbox setup as well. The biggest difference in the end will be that I will not run in GDM.
-------------------------------------------------------
XBMCbuntu installation on ION 330 (Asrock)
--------------------------------------------------------
-------------------------
0) Preparations
-------------------------
Flash BIOS => 1.50
Set shared memory to 512Mb
--------------------------
1) XBMCbuntu setup
--------------------------
Refer to the official wiki this is just my installation log.
http://xbmc.org/wiki/?title=XBMCbuntu
*I use a PPA installation for NVIDIA
*I install openbox instead of fluxbox/blackbox EDIT: I will probably switch back to flux)

a) Install minimal ubuntu
-install from 32-bit mini cd (or server CD??)
-don't create the xbmc user in this step (I create xbmcadmin /xbmc)
-Select autoinstall security updates
-optional: Create an extra partition for storage and format it
-add basic server. But Why should Basic Ubuntu Server be added? I didn't select anything at all before.
-add ssh

connect with SSH or type the rest of the commands in terminal.

b) Initial system config (add sources)
sudo nano /etc/apt/sources.list.d/xbmc.org.list

add these lines:
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main
deb-src http://ppa.launchpad.net/xbmc-addons/ppa/ubuntu/ jaunty main
#deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
#deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main

save file and exit (CTRL-O CTRL-X)

Add keys
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 318C7509 91E7EE5E 64234534
(addons, live PPA, SVN PPA)

Update apt
sudo apt-get update

c) Install custom boot splash (optional)

sudo apt-get install usplash-theme-xbmc-*

sudo nano /etc/usplash.conf
add
xres=1920
yres=1080
sudo update-alternatives --config usplash-artwork.so
sudo update-initramfs -u

d) Install XBMC
If you want to install SVN directly
sudo nano /etc/apt/sources.list.d/xbmc.org.list
-and comment out the stable (first 2 lines) and uncomment the svn

sudo apt-get install xbmc xinit x11-xserver-utils


e) Install "restricted drivers" for NVIDIA from 3rd party PPA
*I the nvidia-vdpau PPA. It has more alternatives than the two in the guide. e.g. downgrade => 180

sudo nano /etc/apt/sources.list
add
deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main
Add key
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CEC06767

sudo apt-get update
sudo apt-get install linux-headers-generic nvidia-glx-185
*Version 180 seem to work better for the moment. Less frame drops. I am on 180 right now

sudo nvidia-xconfig -s --no-logo --force-generate

f) Test basic installation of XBMC
add simple window manager

sudo apt-get install fluxbox xterm

type startx in console
right-click select terminal & type xbmc

g) Install xbmc helpers

sudo apt-get install xbmc-live python-apt
enter pwd for xbmc user etc

sudo nano /boot/grub/menu.lst

Add
xbmc=nodiskmount,noredir loglevel=0
or
xbmc=noredir loglevel=0

to the end of the first option kernel line
depending on if you want to automount disks or not.
*I will use the first, manually mount my storage partition and later add gnome-mount to handle USB.

add safe mode by copying the first section and remove "quite splash quite"
and add "(safe mode)" to the title line. Don't enable mount in safe mode. That way you can boot without mounting and manually mount any fixed disks.

f) Updating alsa
installing from rep:
sudo apt-get install linux-sound-base alsa-base alsa-utils
*For the moment I am testing with this, supposed to be some upgrades lately.

installing the latest (1.0.20)
wget http://xbmc.org/wp-content/uploads/alsaup.sh
chmod +x alsaup.sh
sudo ./alsaup.sh -di

g) Additional settings and packages

sudo alsamixer
-Unmute and set volume (MM means muted and OO On)
-Hit "m" to toggle mute on/off.
-Do not forget to unmute HDMI if you are going to use that
sudo alsactl store
-store the settings

h) Optional: Install support for a remote
sudo apt-get install lirc
--------------------------------------------------------
--------------------------------------------------------
This should pretty much be a vanila XBMCbuntu installation
With the exception of openbox and the diskmount.

-----------------------------------
2) Upgrade to SVN (optional)
-----------------------------------
exit XBMC
sudo nano /etc/apt/sources.list.d/xbmc.org.list
-uncomment the svn line and comment the stable PPA

sudo apt-get update
sudo apt-get upgrade

-------------------------------------------------
3) Config
-------------------------------------------------
a) delete guisettings.xml (will erase all your settings)
sudo rm /home/xbmc/.xbmc/userdata/guisettings.xml

b) Enable 24hz, auto adjust refresh rate
add in screen section in /etc/X11/xorg.conf
Option "DynamicTwinView" "False"
Option "FlatPanelProperties" "Scaling = Native"

sudo sed -i '60i\ Option "DynamicTwinView" "False"' /etc/X11/xorg.conf
sudo sed -i '60i\ Option "FlatPanelProperties" "Scaling = Native"' /etc/X11/xorg.conf

check result
sudo nano /etc/X11/xorg.conf

c) Disable HW curser
Add in section device in /etc/X11/xorg.conf
Option "HWCursor" "False"

sudo sed -i '50i\ Option "HWCursor" "False"' /etc/X11/xorg.conf
check result
sudo nano /etc/X11/xorg.conf

d) reboot
sudo reboot


-------------------
4) Config in XBMC
-------------------
a) enable VDPAU and Auto adjust refresh rate
Change render method => VDPAU
Set "Auto adjust refresh rate" on

b) setup sound
Enable digital sound

Settings for SPDIF:
default
iec958

Setting for HDMI:
hdmi
hdmi

If mp3 is playing to fast, try with:
plug:hdmi
hdmi

Friday, July 24, 2009

Install Aeon skin in XBMC

This is how to install Aeon the quick way.

Didn't like the color scheme though..not going to use it.

Install Skin Aeon
-----------------
1)
sudo apt-get install git-core

2)
cd ~/.xbmc/skin

3)
git clone git://github.com/djh/aeon.git

(If you want a another folder name git clone git://github.com/djh/aeon.git "Aeon Stark")

4)
cd aeon

5) Get the fonts
EDIT: The URL will be generated based on your ip (I think) You have to get your own from
http://www.mediafire.com/?lywzwbnqyyy

wget http://download273.mediafire.com/aew2memhsysg/lywzwbnqyyy/Aeon_Fonts160709.zip
unzip  Aeon_Fonts160709.zip
mv Aeon/fonts fonts

6) clean-up
rmdir  Aeon
rm Aeon_Fonts160709.zip


reference
---------
http://www.xbmc.org/forum/showthread.php?t=49958

Thursday, July 23, 2009

toslink AND HDMI

I am trying to get sound on both HDMI & SPDIF from XBMC.

Below .asoundrc file almost works perfectly problem is that there a time delay between the channels. The problem could be the TV though, I also get an echo if I connect the TV to the receiver...

pcm.!default {
type plug
slave {
pcm "both"
}
}

pcm.both {
type route
slave {
pcm multi
channels 4
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}

pcm.multi {
type multi
slaves.a {
pcm "tv"
channels 2
}
slaves.b {
pcm "receiver"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}

pcm.tv {
type hw
card 0
device 3
channels 2
}

pcm.receiver {
type hw
card 0
device 1
channels 2
}


Audio Out: Digital
Dolby D. (AC3): false
DTS: True
Audio output: plug:both
Passthrough: iec958