Archive talk:Install Ubuntu and XBMC on Asus EeeBox PC EB1501: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Nitr8
m (Karellen moved page HOW-TO talk:Install Ubuntu and XBMC on Asus EeeBox PC EB1501 to Archive talk:Install Ubuntu and XBMC on Asus EeeBox PC EB1501 without leaving a redirect: Outdated. Hardware from April 2010)
 
(24 intermediate revisions by 10 users not shown)
Line 1: Line 1:
== EB1501 German Edition ==
== EB1501 German / Asian Edition ==
System: Linux HTPC 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
System: Linux HTPC 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
Remote (see battery slots): RC1974502/00
Remote (see battery slots): RC1974502/00
Line 5: Line 5:
=== No MCE USB IR Receiver ===
=== No MCE USB IR Receiver ===
There seem to be some specifics with this version of the eeeBox. There was no any MCE USB IR Receiver packaged, instead there was a notice that states:
There seem to be some specifics with this version of the eeeBox. There was no any MCE USB IR Receiver packaged, instead there was a notice that states:
This is weird, I bought mine @ pcp.ch and is the same as you get over there, but mine came with an external receiver...


"The EeeBox PC has a built-in IR receiver designed for the remote control. When you install the EeeBox PC to the back of the monitor and thus block the IR receiver, the remote control may be less sensitive. The USB IR receiver is not included in the product package."
"The EeeBox PC has a built-in IR receiver designed for the remote control. When you install the EeeBox PC to the back of the monitor and thus block the IR receiver, the remote control may be less sensitive. The USB IR receiver is not included in the product package."


Also if call
=== Notes to get build-in IR receiver to work with the remote control ===
xbmc:$ cat /proc/bus/input/devices


these are the only lines available with no USB devices attached:
1) rebuild the ITE modules
 
  sudo apt-get install lirc lirc-modules-source module-assistant
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
  sudo dpkg-reconfigure lirc-modules-source
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
I: Bus=0001 Vendor=10ec Product=0662 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:08.0/input/input5
U: Uniq=
H: Handlers=kbd event5
  B: EV=40001
  B: SND=6


If i start Windows and look through the device manager, this is the only unknown component, having the following information:
2) edit the following lines in /etc/lirc/hardware.conf


  PCI\VEN_10DE&DEV_0AAD&SUBSYS_83E91043&REV_B2\3&267a616a&0&18
  REMOTE_MODULES="lirc_dev lirc_it87"
  ACPI\ITE8713
  REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS="--output=/dev/lircd"


Right now i have no clue how to enable the onboard IR receiver on Ubuntu (in Windows i got it working). The remote control is the same.
LOAD_MODULES="true"
START_LIRCD="true"


take a look here :
3) create /etc/modprobe.d/lirc.conf and add the three lines
http://forum.xbmc.org/showthread.php?t=47651
alias char-major-61 lirc_dev
http://forum.ubuntuusers.de/topic/xbmc-auf-pundit-p4p5n9300-und-lirc/
options lirc_it87 irq=05 io=0x2f8
install lirc_it87 echo activate > /sys/devices/pnp0/00:09/resources ; modprobe --ignore-install lirc_it87 $CMDLINE_OPTS


Maybe that will help you...
4) you may need to copy the LIRC over to the XBMC directory
cp /usr/share/xbmc/system/Lircmap.xml ~/.xbmc/userdata


sudo lshal
=== Enabling the Play DVD Button on the Remote Control ===


lists the IR receiver as
1) The original Lircmap.xml and remote.xml does not cater for the DVD button. To rectify that, add an additional entry in ~/.xbmc/userdata/Lircmap.xml under the <remote device="mceusb"> section
udi = '/org/freedesktop/Hal/devices/pnp_ITE8713'
   <obc1>DVD</obc1>
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.product = 'PnP Device (ITE8713)'  (string)
  info.subsystem = 'pnp'  (string)
  info.udi = '/org/freedesktop/Hal/devices/pnp_ITE8713'  (string)
  linux.hotplug_type = 2  (0x2) (int)
  linux.subsystem = 'pnp'  (string)
   linux.sysfs_path = '/sys/devices/pnp0/00:09'  (string)
  pnp.id = 'ITE8713'  (string)


Tried to change IRQ/IO ports, looking in
2) In the remote.xml file (for my case, this is located at /home/xbmc/.xbmc/userdata/keymaps), add the following outside the <remote> </remote> group
sudo cat /sys/devices/pnp0/00:09/options
    <universalremote>
giving me
      <obc1>PlayDVD</obc1>
Dependent: 00 - Priority acceptable
    </universalremote>
  port 0x2f8-0x2f8, align 0x7, size 0x8, 16-bit address decoding
3) A CD or DVD can now be played with using the DVD button (located just above number 3)
  irq 3,4,5,6,7,2/9,10,11,12 High-Edge
4) Other keys can be remapped according to individual preferences
so I created a
sudo vi /etc/modprobe.d/lirc.conf
with the content
options lirc_it87 irq=7 io=0x2F8
and lirc seems to use the correct settings after a reboot doing
dmesg | grep lirc
responding with
[    7.859740] lirc_dev: IR Remote Control driver registered, major 61
[    8.101867] lirc_dev: lirc_register_driver: sample_rate: 0
[    8.102035] lirc_it87: found IT8720.
[    8.102065] lirc_it87: set default io 0x2f8
[    8.102095] lirc_it87: set default irq 0x7
[    8.102153] lirc_it87: I/O port 0x02f8, IRQ 7.
[    8.102183] lirc_it87: Installed.
but
mode2 -d /dev/lirc0
gives me nothing when entering stuff on the remote (/dev/lirc0 exists), same with irw.
 
Thats the point where i gave up, not that much of a linux crack. This try based on the only guide i found with another ASUS product using the ITE stuff, see [http://forum.xbmc.org/showthread.php?t=47651 here]


=== Startup error ===
=== Startup error ===
Line 114: Line 55:
  sudo update-grub
  sudo update-grub


== Wifi / Wireless setup with WPA2 ==
I had a hassle enabling WPA2 access, connections breaking up every 10-60s for multple minutes, so i kept a note on the steps how to get it working anyway.
The given wireless adapter on the EB1501 is
Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
according to
lspci -v | grep Network
Disabling the blacklisted atheros module as mentioned [http://forum.xbmc.org/showthread.php?t=66153 here]
sudo vi /etc/modprobe.d/blacklist-ath_pci.conf
Commenting the following line out
ath_pci blacklist
Install all tools:
sudo apt-get install wpasupplicant linux-backports-modules-karmic linux-backports-modules-wireless-karmic-generic
the following steps are based on the guide found [http://art.ubuntuforums.org/showthread.php?p=1884950 here]. Then we generate our psk-key we need later by executing
wpa_passphrase <your_essid> <your_ascii_key>
In the result we need to copy value found under the "psk" key. Next we edit
sudo vi /etc/network/interfaces
and add the following lines to the bottom
auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid <your_essid>
wpa-ap-scan 1
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk <psk_key_from_wpa_passphrase>
we could also disable the following line to disable automatic startup of the ethernet interface
auto eth0
then restart the whole networking stuff with
/etc/init.d/networking restart
then everything went fine, a dhcp ip was given and so on. Maybe there is an easier way but im not that into linux :)
== Wireless Setup Alternative ==
My EeeBox with Atheros 9285 PCI adaptor had issues sustaining both non-secured and secure wireless connections.  It would randomly disconnect and would ''always'' freeze when transfering large files or sustained throughput at anything over 500Kbps.  Installing the backports (described above) did not work for me and others have had varying success with them; could be due to issues with N access points.
However, I did get everything working perfectly by using the latest Linux Wireless drivers available here - [http://linuxwireless.org/en/users/Download http://linuxwireless.org/en/users/Download]
''Note - that you must first install the Ubuntubuild environment and tools if not already present:''
xbmc:$ sudo apt-get install build-essential
''Note - I first tried the backports and then installed these drivers, but that didn't work.  I only found success after rebuilding Ubuntu (using the minimal server package in the main article) and then installing only these wireless drivers, your milage may vary...''
Follow the steps for [http://linuxwireless.org/en/users/Download#Directly_downloading_the_tarball downloading and extracting] the latest driver package.  Then use the following commands (repeated in detail on the web page, but this is all you need):


=== Guide conflicts ===
1) Select just the Atheros driver components to build:
The following item could not be executed
  xbmc:$ ./scripts/driver-select ath9k
  xbmc@HTPC:~$ sudo nvidia-xconfig -s --no-logo --force-generate --output-xconfig=/etc/X11/xorg.conf
The following error message came up
pkg-config: not found
had to install it first with
sudo apt-get install pkg-config
Maybe i misread something in the guide?


Yea, I changed the section before it reads now:
2) Build the driver
  xbmc:$ sudo apt-get install nvidia-glx-195 nvidia-settings mesa-utils libvdpau1 libvdpau-dev vdpauinfo pkg-config
  xbmc:$ make


You need libvdpau1 to get 1080p working 100% as well as pkg-config, but thats now included in the above section.
3) Install the driver
xbmc:$ sudo make install


And the line
4) Reboot to enable the driver
  vi /etc/default/console-setup
  xbmc:$ sudo reboot
is missing the precending "sudo" right?


Yes, that is correct - updated the main page
FYI, the wireless drivers in Ubuntu Lucid Lynx beta worked for me out of the box, but I couldn't get XBMC working due to nVidia driver issues, so best wait until 10.04 is released and this guide updated.

Latest revision as of 21:26, 17 June 2020

EB1501 German / Asian Edition

System: Linux HTPC 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux Remote (see battery slots): RC1974502/00

No MCE USB IR Receiver

There seem to be some specifics with this version of the eeeBox. There was no any MCE USB IR Receiver packaged, instead there was a notice that states:

"The EeeBox PC has a built-in IR receiver designed for the remote control. When you install the EeeBox PC to the back of the monitor and thus block the IR receiver, the remote control may be less sensitive. The USB IR receiver is not included in the product package."

Notes to get build-in IR receiver to work with the remote control

1) rebuild the ITE modules

sudo apt-get install lirc lirc-modules-source module-assistant
sudo dpkg-reconfigure lirc-modules-source

2) edit the following lines in /etc/lirc/hardware.conf

REMOTE_MODULES="lirc_dev lirc_it87"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS="--output=/dev/lircd"
LOAD_MODULES="true"

START_LIRCD="true"

3) create /etc/modprobe.d/lirc.conf and add the three lines

alias char-major-61 lirc_dev
options lirc_it87 irq=05 io=0x2f8
install lirc_it87 echo activate > /sys/devices/pnp0/00:09/resources ; modprobe --ignore-install lirc_it87 $CMDLINE_OPTS

4) you may need to copy the LIRC over to the XBMC directory

cp /usr/share/xbmc/system/Lircmap.xml ~/.xbmc/userdata

Enabling the Play DVD Button on the Remote Control

1) The original Lircmap.xml and remote.xml does not cater for the DVD button. To rectify that, add an additional entry in ~/.xbmc/userdata/Lircmap.xml under the <remote device="mceusb"> section

 <obc1>DVD</obc1>

2) In the remote.xml file (for my case, this is located at /home/xbmc/.xbmc/userdata/keymaps), add the following outside the <remote> </remote> group

   <universalremote>
      <obc1>PlayDVD</obc1>
   </universalremote>

3) A CD or DVD can now be played with using the DVD button (located just above number 3) 4) Other keys can be remapped according to individual preferences

Startup error

On startup i got the following error message:

nforce2_smbus [...] conflichts with ACPI [...]

I got it fixed by

sudo vi /etc/default/grub

and editing the GRUB_CMDLINE_LINUX according to this bugreport

GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"

and update the grub again with

sudo update-grub

Wifi / Wireless setup with WPA2

I had a hassle enabling WPA2 access, connections breaking up every 10-60s for multple minutes, so i kept a note on the steps how to get it working anyway.

The given wireless adapter on the EB1501 is

Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)

according to

lspci -v | grep Network 

Disabling the blacklisted atheros module as mentioned here

sudo vi /etc/modprobe.d/blacklist-ath_pci.conf

Commenting the following line out

ath_pci blacklist

Install all tools:

sudo apt-get install wpasupplicant linux-backports-modules-karmic linux-backports-modules-wireless-karmic-generic

the following steps are based on the guide found here. Then we generate our psk-key we need later by executing

wpa_passphrase <your_essid> <your_ascii_key>

In the result we need to copy value found under the "psk" key. Next we edit

sudo vi /etc/network/interfaces

and add the following lines to the bottom

auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid <your_essid>
wpa-ap-scan 1
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk <psk_key_from_wpa_passphrase>

we could also disable the following line to disable automatic startup of the ethernet interface

auto eth0

then restart the whole networking stuff with

/etc/init.d/networking restart

then everything went fine, a dhcp ip was given and so on. Maybe there is an easier way but im not that into linux :)

Wireless Setup Alternative

My EeeBox with Atheros 9285 PCI adaptor had issues sustaining both non-secured and secure wireless connections. It would randomly disconnect and would always freeze when transfering large files or sustained throughput at anything over 500Kbps. Installing the backports (described above) did not work for me and others have had varying success with them; could be due to issues with N access points.

However, I did get everything working perfectly by using the latest Linux Wireless drivers available here - http://linuxwireless.org/en/users/Download

Note - that you must first install the Ubuntubuild environment and tools if not already present:

xbmc:$ sudo apt-get install build-essential

Note - I first tried the backports and then installed these drivers, but that didn't work. I only found success after rebuilding Ubuntu (using the minimal server package in the main article) and then installing only these wireless drivers, your milage may vary...

Follow the steps for downloading and extracting the latest driver package. Then use the following commands (repeated in detail on the web page, but this is all you need):

1) Select just the Atheros driver components to build:

xbmc:$ ./scripts/driver-select ath9k

2) Build the driver

xbmc:$ make

3) Install the driver

xbmc:$ sudo make install

4) Reboot to enable the driver

xbmc:$ sudo reboot

FYI, the wireless drivers in Ubuntu Lucid Lynx beta worked for me out of the box, but I couldn't get XBMC working due to nVidia driver issues, so best wait until 10.04 is released and this guide updated.