DIY Kodibuntu 15.10 for Intel GPU
#1
Btw. Getting a state of the art kodi solution in combination with Lubuntu 15.10 is quite easy.

- Install Lubuntu, fully update it
- Remove pulseaudio and libasound2-plugins
- install udevil
- alter the ~/.openbox/config/autostart to let it start devmon & and kodi
- Alter /etc/security/limits.conf like I show in my howto thread.
- Add wsnipex vaapi ppa and upgrade the i965-va-driver with it.

Easy isn't it?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#2
Is it still recommended to remove pulseaudio? I've used it for several years now.
Reply
#3
If you want DTS-HD / TrueHD - there is no alternative to removing it.

If you don't need it - it's welcome, well tested and working nicely.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
(2015-11-07, 18:35)fritsch Wrote: Btw. Getting a state of the art kodi solution in combination with Lubuntu 15.10 is quite easy.

- Install Lubuntu, fully update it
- Remove pulseaudio and libasound2-plugins
- install udevil
- alter the ~/.openbox/config/autostart to let it start devmon & and kodi
- Alter /etc/security/limits.conf like I show in my howto thread.
- Add wsnipex vaapi ppa and upgrade the i965-va-driver with it.

Easy isn't it?

I'm presuming this was in response to my question regarding performance enhancements for Kodibuntu? If so, thank you.

From your VAAPI how to, how much of your guide is relevant considering I've already installed Kodibuntu? What commands specifically should I be inputting? Thanks again in advance Big Grin
Reply
#5
Only the stuff I have written above, starting with a 15.10 (!) Lubuntu running on a chromebox _NOT_ the outdated kodibuntu:

a) add wsnipex ppa for vaapi
Code:
sudo apt-add-repository ppa:wsnipex/vaapi
sudo apt-get update
sudo apt-get install i965-va-driver
sudo apt-get dist-upgrade

a2) Install official kodi
Code:
sudo apt-add-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi kodi-bin

b) Append to /etc/security/limits.conf as advertized. Remember kodi is the username running kodi - not the kodi executable - if your user is heinz change kodi to heinz :-)
Code:
kodi             -       nice            -1
c) Install udevil
Code:
sudo apt-get install udevil
d) Modify ~/.config/openbox/autostart to look like:
Code:
# change me to match your HDMI out
xrandr -display :0 --output HDMI1 --set "Broadcast RGB" "Full"
devmon &
# This is a hack so PA can stay installed - if it causes trouble remove PA (sudo apt-get remove --purge pulseaudio libasound2-plugins)
AE_SINK=ALSA /usr/bin/kodi --standalone

When you exit kodi, this will bring you back to openbox Desktop.

If you want my EGL version installed - you need a bit more handwork - but everything easily doable - just go with the normal PPA and when colors / performance is going on your nerves ask me howto build the EGL version.

Issues:
Tearing in chrome when running lovefilm / amazon prime?
Create /etc/X11/xorg.conf with the following content:
Code:
Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
  Option "TearFree" "true"
EndSection

Yes - TearFree (!). The implementation was heavily changed by Chris Wilson to not harm OpenGL applications that are using Flip in fullscreen.
Quote:11:50 < ickle> if the client does a fullscreen flip by itself, TearFree tries
very hard to get out of the way

If you are a Braswell user reading this. You need at least kernel 4.3.0 - which is not needed for the chromebox.

I am brave an I want to build fritsch's EGL version myself
Install team-kodi build dependencies ppa and the nightly ppa to get my build correctly installed:
Code:
# don't forget the -s for the nightly
sudo apt-add-repository -s ppa:team-xbmc/xbmc-nightly
sudo apt-add-repository ppa:team-xbmc/xbmc-ppa-build-depends
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get build-dep kodi

Now - we clone my fork, configure and build it:
Code:
wget https://github.com/fritsch/xbmc/archive/egl-isengard.zip
unzip egl-isengard.zip
cd xbmc-egl-isengard
./bootstrap ; ./configure --enable-vaapi --disable-vdpau --enable-optimizations --disable-debug
# wait until configuration is done
# now build kodi - we use 4 threads to do so - hopefully the box survives it :-)
make -j4
# if everything is finished correctly - we install it
sudo make install

Now everything left to do is, change the above autostart file to start /usr/local/bin/kodi instead of /usr/bin/kodi

Now PVR Addons after the working (!) and succesful (!) build
Code:
mkdir ~/kodi-addons
cd ~/kodi-addons

Install platform and kodi-platform and pvr.vdr.vnsi
Code:
cd ~/kodi-addons
git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform
# we also build master branch
# don't forget the "." behind the next command
cmake .
make
sudo make install

# Pulse-Eight platform for binary addons is next
git clone https://github.com/Pulse-Eight/platform.git
cd platform
# we build master here
cmake .
make
sudo make install

# and finally pvr vdr vnsi
git clone https://github.com/kodi-pvr/pvr.vdr.vnsi.git
cd
git checkout Isengard
cmake .
make
sudo make install

If you now feel to ask what about hts or mythtv - then this howto is _not_ made for you and you should use OpenELEC.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
(2015-11-08, 12:42)fritsch Wrote: Only the stuff I have written above, starting with a 15.10 (!) Lubuntu running on a chromebox _NOT_ the outdated kodibuntu:

a) add wsnipex ppa for vaapi
Code:
sudo apt-add-repository ppa:wsnipex/vaapi
sudo apt-get update
sudo apt-get install i965-va-driver
sudo apt-get dist-upgrade

a2) Install official kodi
Code:
sudo apt-add-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi kodi-bin

b) Append to /etc/security/limits.conf as advertized. Remember kodi is the username running kodi - not the kodi executable - if your user is heinz change kodi to heinz :-)
Code:
kodi             -       nice            -1
c) Install udevil
Code:
sudo apt-get install udevil
d) Modify ~/.config/openbox/autostart to look like:
Code:
# change me to match your HDMI out
xrandr -display :0 --output HDMI1 --set "Broadcast RGB" "Full"
devmon &
# This is a hack so PA can stay installed - if it causes trouble remove PA (sudo apt-get remove --purge pulseaudio libasound2-plugins)
AE_SINK=ALSA /usr/bin/kodi --standalone

When you exit kodi, this will bring you back to openbox Desktop.

If you want my EGL version installed - you need a bit more handwork - but everything easily doable - just go with the normal PPA and when colors / performance is going on your nerves ask me howto build the EGL version.

Issues:
Tearing in chrome when running lovefilm / amazon prime?
Create /etc/X11/xorg.conf with the following content:
Code:
Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
  Option "TearFree" "true"
EndSection

Yes - TearFree (!). The implementation was heavily changed by Chris Wilson to not harm OpenGL applications that are using Flip in fullscreen.
Quote:11:50 < ickle> if the client does a fullscreen flip by itself, TearFree tries
very hard to get out of the way

If you are a Braswell user reading this. You need at least kernel 4.3.0 - which is not needed for the chromebox.

I am brave an I want to build fritsch's EGL version myself
Install team-kodi build dependencies ppa and the nightly ppa to get my build correctly installed:
Code:
# don't forget the -s for the nightly
sudo apt-add-repository -s ppa:team-xbmc/xbmc-nightly
sudo apt-add-repository ppa:team-xbmc/xbmc-ppa-build-depends
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get build-dep kodi

Now - we clone my fork, configure and build it:
Code:
wget https://github.com/fritsch/xbmc/archive/egl-isengard.zip
unzip egl-isengard.zip
cd xbmc-egl-isengard
./bootstrap ; ./configure --enable-vaapi --disable-vdpau --enable-optimizations --disable-debug
# wait until configuration is done
# now build kodi - we use 4 threads to do so - hopefully the box survives it :-)
make -j4
# if everything is finished correctly - we install it
sudo make install

Now everything left to do is, change the above autostart file to start /usr/local/bin/kodi instead of /usr/bin/kodi

Now PVR Addons after the working (!) and succesful (!) build
Code:
mkdir ~/kodi-addons
cd ~/kodi-addons

Install platform and kodi-platform and pvr.vdr.vnsi
Code:
cd ~/kodi-addons
git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform
# we also build master branch
# don't forget the "." behind the next command
cmake .
make
sudo make install

# Pulse-Eight platform for binary addons is next
git clone https://github.com/Pulse-Eight/platform.git
cd platform
# we build master here
cmake .
make
sudo make install

# and finally pvr vdr vnsi
git clone https://github.com/kodi-pvr/pvr.vdr.vnsi.git
cd
git checkout Isengard
cmake .
make
sudo make install

If you now feel to ask what about hts or mythtv - then this howto is _not_ made for you and you should use OpenELEC.

Thanks for the comprehensive guide.

I've downloaded the latest Lubuntu ISO, and built a bootable install USB with both LiLi and Unetbootin, problem is when booting from the USB and selecting 'install lubuntu' I get a "Kernel Panic, not syncing. Fatal exception in interrupt" error. Any ideas on how to rectify this? As I'm unable to get Lubuntu installed I still have Kodibuntu installed, of which appears to be operating fine, so I guess that rules out a hardware issue?
Reply
#7
(2015-11-11, 00:14)denz13 Wrote: Thanks for the comprehensive guide.

I've downloaded the latest Lubuntu ISO, and built a bootable install USB with both LiLi and Unetbootin, problem is when booting from the USB and selecting 'install lubuntu' I get a "Kernel Panic, not syncing. Fatal exception in interrupt" error. Any ideas on how to rectify this? As I'm unable to get Lubuntu installed I still have Kodibuntu installed, of which appears to be operating fine, so I guess that rules out a hardware issue?

known issue with kernel 4.2, which ships with *Ubuntu 15.10. Use the workaround posted in the ChromeBox wiki and update to kernel 4.3 post-install.
Reply
#8
@ fritsch:

Nice thing Wink
Reply
#9
(2015-11-11, 21:55)denz13 Wrote: OK, so I stupidly misread the wiki and downgraded my kernal to the one that ships with Kodibuntu with the view to upgrade again once I'd fresh installed lubuntu. Now when I boot it doesn't appear to respond to the ESC and display boot options. It just shows the grub menu. Any ideas??

so it displays the 'Press ESC for boot menu' text, but pressing ESC does nothing? try another keyboard, or another USB stick. Some USB device is misbehaving or the keyboard itself isn't initializing in time.
Reply
#10
(2015-11-11, 22:13)Matt Devo Wrote:
(2015-11-11, 21:55)denz13 Wrote: OK, so I stupidly misread the wiki and downgraded my kernal to the one that ships with Kodibuntu with the view to upgrade again once I'd fresh installed lubuntu. Now when I boot it doesn't appear to respond to the ESC and display boot options. It just shows the grub menu. Any ideas??

so it displays the 'Press ESC for boot menu' text, but pressing ESC does nothing? try another keyboard, or another USB stick. Some USB device is misbehaving or the keyboard itself isn't initializing in time.

Yeah, it was the USB. Finally figured out how to add the boot parameter too. Thanks for the help, working through the guide now Big Grin by the way, is the swap partition needed?
Reply
#11
OK now I'm really stumped, lubuntu has installed but there's no option to connect to a wireless connection within network connections. Annoyingly my only Ethernet connection is in another room.

Update: I've tried Ethernet but it seems to be connecting then disconnecting every few minutes... Presumably there's a driver issue somewhere here??
Reply
#12
Nobody knows ... but we can help you speculating until you provide your logfiles ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
lshw -C network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 0c
serial: a0:00:ba:d0:0b:ad
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.137.232 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:20 ioport:2000(size=256) memory:e0500000-e0500fff memory:e0400000-e0403fff
*-network UNCLAIMED
description: Network controller
product: AR9462 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:02:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: memory:e0600000-e067ffff memory:e0680000-e068ffff

iwconfig
lo no wireless extensions.

enp1s0 no wireless extensions.


ifconfig
enp1s0 Link encap:Ethernet HWaddr a0:00:ba:d0:0b:ad
inet addr:192.168.137.232 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::a200:baff:fed0:bad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27367 errors:0 dropped:0 overruns:0 frame:0
TX packets:13834 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39823028 (39.8 MB) TX bytes:1025438 (1.0 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:572 errors:0 dropped:0 overruns:0 frame:0
TX packets:572 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:51625 (51.6 KB) TX bytes:51625 (51.6 KB)
Reply
#14
lsmod | grep ath

if nothing is found try:
sudo modprobe athk9
iwconfig
Reply
#15
Thanks, see below output:

lsmod | grep ath
ath9k 143360 0
ath9k_common 36864 1 ath9k
ath9k_hw 466944 2 ath9k_common,ath9k
ath 32768 3 ath9k_common,ath9k,ath9k_hw
mac80211 720896 1 ath9k
ath3k 20480 0
cfg80211 536576 4 ath,ath9k_common,ath9k,mac80211
bluetooth 512000 25 bnep,ath3k,btbcm,btrtl,btusb,btintel

Result of modprobe:
sudo modprobe athk9
[sudo] password for denz:
modprobe: FATAL: Module athk9 not found.
Reply

Logout Mark Read Team Forum Stats Members Help
DIY Kodibuntu 15.10 for Intel GPU1