XBMC on Asrock Ion 330HT

June 27, 2010

The Asrock ION 330 HT makes a nice little HTPC, but installing XBMC on it can be daunting for Linux newbies. Here’s how I managed to get most everything working.

This guide is for the second edition of the Asrock ION 330HT, the one that includes WLAN and a remote control (and an integrated infra-red receiver). It’s mostly these new components that can pose problems. While Windows generally has better driver support for new hardware, I am using Linux because the Windows version of XBMC doesn’t have good hardware acceleration yet – which means HD movies would play sloppy, if at all.

  1. Start by installing Ubuntu 9.10 from a USB stick or CD. There is an abundance of tutorials that describe this step, so I won’t go into further details except recommending to choose “Automatic log-on” during the setup so you won’t have to type a password every time you boot the device.
  2. Upon restarting, connect to your network. After entering the WLAN key Ubuntu will ask for a password to protect the key. Do not enter anything or you will have to enter this password upon each reboot. Confirm that you want to use “Unsafe storage”.
  3. To get the infra-red receiver working, install these:
    sudo aptitude install lirc lirc-modules-source
    wget http://europe.asrock.com/downloadsite/drivers/Nettop/Ubuntu/IR(9.10).zip
    unzip IR(9.10).zip
    sudo dpkg -i lirc-nct677x-1.0.4-ubuntu9.10.deb lirc-nct677x-src-1.0.4-ubuntu9.10.deb
  4. The infra-red receiver should now be working, however when we later update the kernel it will stop working. To avoid this, enter the following commands:
    sudo dkms add -m lirc-nct677x-src -v 1.0.4-ubuntu9.10
    sudo dkms build add -m lirc-nct677x-src -v 1.0.4-ubuntu9.10
    sudo dkms install add -m lirc-nct677x-src -v 1.0.4-ubuntu9.10
    sudo reboot

    This will allow the system to automatically recompile the infra-red receiver driver when the kernel gets updated.
  5. After the system has rebooted, lets update all other software to the newest versions:
    sudo aptitude update
    sudo aptitude upgrade
    sudo reboot
  6. After the system reboots, you can now install xmbc like this:
    sudo add-apt-repository ppa:team-xbmc/ppa
    sudo aptitude update
    sudo aptitude install xbmc xbmc-standalone
    sudo aptitude install xbmc-eventclients-*
    sudo aptitude install xbmc-scripts-*
  7. Install PolicyKit to allow power management:
    sudo aptitude install policykit policykit-gnome
    In the following commands, replace “xbmc” with your username:
    sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
    sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
    sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
    sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
    sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
    sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions
    sudo apt-get install policykit-1 devicekit-power
    sudo nano /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla

    This has opened a new file in the editor, paste the following lines in there and replace every occurence of “xbmc” with your username:
    [Actions for xbmc user]
    Identity=unix-user:xbmc
    Action=org.freedesktop.devicekit.disks.*;org.freed esktop.devicekit.power.*;org.freedesktop.consoleki t.system.*;org.freedesktop.hal.storage.mount-removable;org.freedesktop.hal.device.volume
    ResultActive=yes
    ResultAny=auth_admin
    ResultInactive=yes

    Finally save the file using Ctrl+X, press Y and Enter.
  8. Now install the Nvidia driver to get hardware acceleration – a must for playing back mostly anything:
    sudo nano /etc/apt/sources.list
    The file has been opened in the editor, scroll to the bottom of it and paste this line:
    deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main
    Finally save the file using Ctrl+X, press Y and Enter. Then run these commands:
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CEC06767
    sudo aptitude update
    sudo aptitude install nvidia-190-modaliases nvidia-glx-190
    sudo nvidia-xconfig -s --no-logo --force-generate
    sudo reboot

    After the system reboots, the Nvidia driver should be active.
  9. In order to avoid sound problems, unmute all outputs like this:
    alsamixer
    In this application, use the left and right arrow keys to navigate between the columns. When the box above the cursor displays MM it means this output is currently muted; if so unmute it by pressing M on the keyboard. Repeat for all muted columns until you don’t see any more boxes with the text MM on the screen. Then press Escape to exit the program. Finally save the settings with this command:
    alsactl store 0
    Now, go to “System” > “Preferences” > and click “Sound Preferences”. Click on the “Hardware” tab and under “Profile” choose: “Digital Stereo (HDMI) Output + Analog Stereo Input”. Apply and close the “Sound Preferences”.
  10. Audio, video and IR are now working fine, but the wireless connection is still unstable and freezes often. To fix this enter:
    sudo apt-get install linux-backports-modules-karmic
    The above command might give some errors about modules not being built. To fix this:
    sudo apt-get install linux-headers-2.6.31-22-generic
    Now the IR and video driver should have been compiled for the new kernel, and we can continue to install the updated WLAN drivers:
    sudo apt-get install linux-backports-modules-wireless-karmic-generic
    sudo apt-get install wireless-tools
    sudo apt-get install wicd
    sudo reboot
  11. After the system reboots there will be a new network management widget in the menu. Go to the Options in that widget, click “Preferences” next to your wireless network, and enter and save the network key again.

After the above steps the following works stable for me: Video (hardware acceleration), the WLAN connection and the remote control. There is still a slight problem with audio, whenever I play a movie that contains AC3 or DTS sound I have to press the “Windows” button on the remote (to get to the movie menu) and navigate to the sound icon, then press OK on “Output Stereo signal to all speakers”. Only then am I able to output AC3 or DTS to the receiver over HDMI. It’s a minor nuisance but if anyone knows how to fix this please leave a comment. Thanks for reading!

flattr this!

  • anon

    “I am using Linux because the Windows version of XBMC doesn’t have good hardware acceleration yet – which means HD movies would play sloppy, if at all.”

    Absolute nonsense. I have been using XBMC on Win 7 with HW acceleration since I got my HT330 back in October. When set up correctly it can play 1080p, DTS, without problems. HT330 + XBMC + Win7 is awesome! But excellent guide anyway!

  • Claus

    Ok, to be honest I haven't tried it with Windows, just repeated what everyone seemed to tell me on the XBMC forums. Thanks for correcting me and I'm glad it works well for you.

    • http://www.resumewritingservice.biz//home/premium-resume-writers/ resume writers

      Setting it up on Windows 7 is really much easier than on Linux, and it works perfectly fine for me

  • Skynoclouds

    hi, how do you setup XBMC? i cant play hd, m2ts and other high def movies – they look like strob effect ;[
    also – wmc upscale is way better..

  • Christian Wilhelmsen87

    Amazing! Thank you so much for this guide!

Previous post:

Next post: