Kodi Community Forum
Linux HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: Linux HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based (/showthread.php?tid=141369)



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Flynsarmy - 2012-10-27

Has anyone had any luck with Wake on LAN support? I've got 1.6 installed and (with the correct MAC address) the machine doesn't wake. WOL is enabled in BIOS and I even installed the script mentioned in the XBMC wiki replacing eth0 with p5p1. No luck. My GPU is an ASRock B75-PRO3-M B75 4xDDR3 3xSATA3 PCIex16 GBL 4xUSB3.0 HDMI D-Sub DVI-D mATX which supports WOL. It's also not a router firewall issue as I've had a previous Windows based machine working fine.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - chippyash - 2012-10-27

(2012-10-27, 02:36)Flynsarmy Wrote: Go to System - Audio and make sure XBMC is set to use the HDMI. That fixed it for me.

Yep that's done - remembered from last install that that had to be done.

In alsamixer everything is unmuted

Installed cards
Code:
xbmc@xbmc:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, ALC889A Analog
    Default Audio Device
sysdefault:CARD=NVidia
    HDA NVidia, ALC889A Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    Direct sample mixing device
dmix:CARD=NVidia,DEV=1
    HDA NVidia, ALC889A Digital
    Direct sample mixing device
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=1
    HDA NVidia, ALC889A Digital
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=1
    HDA NVidia, ALC889A Digital
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=0
    HDA NVidia, ALC889A Analog
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=1
    HDA NVidia, ALC889A Digital
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

Speaker test produces nothing as in:
Code:
xbmc@xbmc:~$ speaker-test -Dplug:surround51 -c6

xbmc appears to be in correct groups:
Code:
xbmc@xbmc:~$ cat /etc/group | grep xbmc
adm:x:4:xbmc
cdrom:x:24:xbmc
sudo:x:27:xbmc
audio:x:29:xbmc
dip:x:30:xbmc
video:x:44:xbmc
plugdev:x:46:xbmc
users:x:100:xbmc
fuse:x:105:xbmc
sambashare:x:107:xbmc
xbmc:x:1000:
lpadmin:x:110:xbmc

I note there is no /etc/asound.conf or ~/.asoundrc file installed. Can't see anywhere in Bram's script (just checked it in GitHub - nice code BTW,) where this is done.

Bram,uNi - did you have to set that up manually? If so can I have a copy of yours

uNi, saw in another post of yours something about setting a custom output in audio settings. There is no custom option in the settings, all I can choose is:
HDA NVidia, HDMI
HDA NVidia, ALC889A Digital S/PDIF
HDA NVidia, ALC889A Analog
and for Passthrough devices just the HDMI and S/PDIF devices

As I'm using HDMI, both are set to HDA NVidia, HDMI

UPDATE: System is now working. I have done nothing except reboot it a few times!!! Very weird.


Re: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Bram77 - 2012-10-27

There is no need for asoundrc anymore with the daily builds since xbmc has a new audio engine.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-10-27

AE is a bit buggy (if your xbmc version is v12, I have this in my advancedsettings
Code:
<advancedsettings>
    <audio>
        <streamsilence>1</streamsilence>
    </audio>
</advancedsettings>

The post you saw is probably someone asking (for an older v11 xbmc), not me saying how-to, in xbmc with AE the choices are what you get, there are no custom choices.

You shouldn't need an asound.conf or .asoundrc but you can create one for your system.

Glad your fixed up.

uNi


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - chippyash - 2012-10-27

Hi uNi & Bram = Thanks for the support. Got it re asound.

All good now except infrared now not working - was when sound wasn't, isn't now sound is.! hardware.conf all set up correctly for the nuvoton_cir driver.


# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Nuvoton Transceivers/Remotes (all)"
REMOTE_MODULES="lirc_dev nuvoton-cir"
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""

Going on last experience, I'm gonna wait until I've rebooted a few times to see if that unblocks it. Gotta say though, I'm loving this V12 xbmc. Confluence skin is now so much slicker.



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-10-27

@ chippyash re: remote/internal cir if you done that http://forum.xbmc.org/showthread.php?tid=124894&pid=1043891#pid1043891

dont forget to issue:

Code:
sudo service lirc restart

In my case the internal cir/remote was working before (after install), just some remote keys were unresponsive, after I followed that how-to, it all just worked after all keys etc.

uNi






RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - chippyash - 2012-10-27

@uNi - a couple of reboots later and lirc is working again, go figure! Even got my universal remote working with it.

What I have noticed if it helps others; remote control seems sluggish when xbmc first starts. If you wait 15-20 seconds then all seems to be fine.

Thanks again.

A


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Carcharius - 2012-10-27

I tried the script out today, installing on my Acer Revo 3700.

To start with the script just seemed to stop at the "Installing Power Management" stage. Looking at the log the step to install acpi-support had errored.

Running apt-get install acpi-support manually showed an error saying "usb-storage command not found", to proceed I had to comment out the usb-storage line in /etc/environment.

After that I was able to run the script again and it completed successfully.

I'm not sure why usb-storage wasn't found, I guess there's a lib missing somewhere.

Also it would be good if there was an option to select to install XBMC from a nightly ppa.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-10-27

Hey.

usb-storage is the usb driver its not missing, just weirdly handled by Linux., I haven't looked at what script is doing (exactly) but it should just load the driver permanently in /etc/modules not (apparently its trying to load it to wrong file /etc/environment which is wrong location for it)

make sure /etc/environment looks like this after script
Code:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LC_MESSAGES="C"
LC_ALL="en_US.UTF-8"

The /etc/environment is nothing related to usb its applying locale fixes?. Perhaps bram77 can explain better or revisit how the usb-storage module is being inserted.

You may need superuser permissions: (double check the entry doesn't exit already before, if it doesn't append...

Code:
echo usb-storage >> /etc/modules

acpi-support is required for power management, it needs to be installed.

(2012-10-27, 18:36)chippyash Wrote: @uNi - a couple of reboots later and lirc is working again, go figure! Even got my universal remote working with it.

What I have noticed if it helps others; remote control seems sluggish when xbmc first starts. If you wait 15-20 seconds then all seems to be fine.

Thanks again.

A

No haven't noticed that at all, Your behaviour of having several reboots for something to work is totally unusual. Having said that it took me a long while to resolve my issues, so I rebooted many times for different reasons.

@Bram77

this:

Code:
appendToFile $ENVIRONMENT_FILE "usb-storage"
Should it append to $MODULES_FILE?

Doesn't look correct.

Instead should do

Code:
appendToFile $MODULES_FILE "usb-storage"

no?

uNi




RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Bram77 - 2012-10-27

You're absolutely right. It's been fixed. Thanks for debugging Smile
Just download and run the script the again to fix the problem.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Flynsarmy - 2012-10-28

How do I disable the upstart script so I can do a sudo shutdown now?
I attempted
Code:
sudo service xbmc stop
#Response: xbmc stop/waiting
sudo shutdown now

and I get:
Quote:xbmc login: Skip stopping firewall: ufw (not enabled)
* Disaling power management...
Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service K20xbmc stop
initctl: Unknown job: K20xbmc

Since the script you are attempting to invoke has been converted to an upstart job, you may also use teh stop(8) utility, e.g. stop K20xbmc
* Asking all remaining processes to terminate..
* Killing all remaining processes...
* Will now switch to single-user mode
root@xbmc:~#

At this point SSH no longer works. On the ubuntu minimal machine sudo shutdown now I get the same response.

If I type stop K20xbmc I get:
Quote:stop: Unknown job: K20xbmc

If I type stop xbmc (despite already stopping the service as mentioned above) I get:
Quote:stop: Unknowng instance:

If I type sudo shutdown -r now I get the 'Since the script...' message but the machine restarts anyway.


EDIT: To answer my own question I need to use:
Code:
sudo shutdown -h now
Reason I was trying this is because I can't get WOL working as per this post. I thought perhaps it's the way I'm shutting ubuntu down...I'm not sure if the -h option will also kill the ethernet port or if it's the same deal when shutting down via XBMC.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-10-28

The commands are:

Code:
sudo stop xbmc
sudo start xbmc
sudo shutdown -h now

For explanation of what shutdown switches do read this

I really have no idea where the K20xbmc (or how it pops up even) sounds like one too many tweaks.

As for wol make sure exactly your using the correct card and that the card supports the type of magic packet your trying to send. Some reference and another reference

Some bios will require wol to be enabled via bios settings, if your card does support it really.

uNi


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Bram77 - 2012-10-28

There seems to be a problem with the new upstart script. Sometimes it boots into xbmc and sometimes it doesn't. I'll have a look at it asap.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - roach9 - 2012-10-30

switched from openelec to this.

thank you.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - roach9 - 2012-10-30

annnnd i switched back. Tongue