Showing posts with label HTPC. Show all posts
Showing posts with label HTPC. Show all posts

May 21, 2013

XBMC + Xubuntu 12.10 + VDPAU working flawlessly [Nvidia ION Media Center]



Xubuntu 12.10 is lightweight, stable, and fast. It's Ubuntu with a turbo slapped on. In this post, we'll go over setting up a XBMC media box with Dolby Digital/DTS out and Chrome with adobe flash over HDMI.

With the newest version of XBMC, the installation was smooth. I did not have to configure the sound output for DD over HDMI--the sound worked immediately after installing XBMC. In my previous blog posts, you'll notice the issues I ran into getting sound to work over HDMI. The only challenges I ran into this time around was getting overscan issues corrected and getting Google Chrome to work with Adobe flash hardware acceleration to which a solution was eventually found. Let's give this a go.

My set up:

Zotac Nvidia ION, Atom N330 Dual Core
2GB DDR RAM
Xubuntu 12.10 x386
XBMC Camelot Beta 1
Western Digital 150 GB Velociraptor

1. Download Xubuntu 12.10 x386 (I chose 32bit because Flash was more stable for me)
2. Either burn it to disk or create a startup USB: http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
3. Install Xubuntu and choose login automatically. Then reboot
4. On your HTPC, open up Firefox and go to this blog post
5. Install Nvidia drivers by opening up terminal and copy and paste line by line

Copied from mygeekopinions blog:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

6. Reboot

7. If you have Overscan issues, open terminal and run (more info on nvidia-xconfig):
sudo nvidia-xconfig

This will set up a xorg.conf file located /etc/X11/xorg.conf

For my installation, I used this nvidia-settings to find the right resolution for my TV. You will need to modify this to best fit your TV. (from the pclinuxos forums):

nvidia-settings --assign 0/CurrentMetaMode="DFP-1: 1920x1080 { ViewPortOut=1820x1020+50+30, ViewPortIn=1920x1080 }"

Once you find the optimal settings, do the following to set it permanently:

cd /etc/X11/

sudo apt-get install gedit

sudo gedit xorg.conf

Paste the Option line, in the Section "Screen", between EndSubSection and EndSection

EndSubSection
Option "metamodes" "DFP-1: 1920x1080 { ViewPortOut=1820x1020+50+30, ViewPortIn=1920x1080 }"
EndSection

8. Save & restart

9. Enable VDPAU (from the linuxforums)

sudo apt-get install libvdpau1 vdpau-va-driver

10. Unmute HDMI/spdif

11. Open Firefox and install Flashaid
https://addons.mozilla.org/en-us/firefox/addon/flash-aid/

12. Restart firefox and open Flashaid and choose Adobe Stable 32 from the repo

Under tweaking options, place a checkmark next to Override GPU Validation and Enable Linux HWDecode

Follow the instructions, and once complete, restart Firefox

13. Install XBMC
http://www.noobslab.com/2012/11/install-xbmc-media-center-120-beta-1-in.html

sudo add-apt-repository ppa:team-xbmc/unstable
sudo apt-get update
sudo apt-get install xbmc

14. Install Amazon Prime Video addon via HowtoGeek

http://www.howtogeek.com/113491/how-to-get-hulu-and-amazon-video-on-xbmc/

15. Go to Xubuntu Settings Manager
Then Window Manager Tweaks
Go to the Compositor tab and uncheck Enable display compositing

16. Install Chrome
* Go to: http://about:plugins
* Click on the + Details to expand details
* Disable all versions of flash except for Version:11.2 r202
* Restart Chrome
* Confirm flash hardware acceleration is on by playing a video, right click, and Show Video Info
* Accelerated video rendering, accelerated video decoding should be displayed

Jun 19, 2012

XBMC & VDPAU Ubuntu 12.04 LTS 64bit w/HDMI Sound [HTPC]



XBMC Ubuntu 12.04 HTPC Tutorial

My Setup:
Zotac ION N330 w/integrated Nvidia ION Desktop GPU
Ubuntu 12.04 64-bit
Nvidia 295.49 Driver (302.17 removed overscan and broke sound)
HDMI Sound and Digital Passthrough for Dolby Digital and DTS
BIOS Southbridge - Internal Codec only
Nvidia HDMI to HDMI DD/DTC receiver - from HDMI DD/DTC receiver to HDMI TV (From the PC, a HDMI cable goes to HDMI receiver input | Another HDMI cable connects to the HDMI receiver output and goes to the HDMI input on the TV)

Instructions:

1. Install Ubuntu 12.04 LTS, during setup, choose autologin, and update software with an internet connection

2. Download System Software Updates once the system reboots

3. Get the latest Nvidia driver
4. Reboot

5. Upon Rebooting go into the BIOS.
In your BIOS, go to Southbridge configuration and change the video RAM from 256MB to 512MB (THIS IS OPTIONAL, MY SYSTEM PLAYS BACK BLURAY WITH 256MB SELECTED). Inside the Southbridge config, change Audio codec to Internal only--this will limit sound to HDMI only, so analog sound will no longer display in Ubuntu. Internal+External will enable both HDMI and analog.

6. Install XBMC--super easy tutorial thanks to Noobslab
Install XBMC on Ubuntu 12.04 Precise Pangolin

7. Unmute HDMI/spdif

First, check to see if sound is enabled and unmuted. SPDIF should be unmuted as well:


"Code:
alsasmixer
Press <F6> to select the correct soundcard.
Press <F3> to show playback levels. <F4> selects capture levels [or use <Tab>]
Use the left/right arrow keys to select and up/down arrow keys to change levels. <M> to mute/unmute.
Go to "System ->Preferences ->Sound" and make sure the correct soundcard is default and adjust your profile on the hardware tab. 
On the output tab choose the correct device."

8. Enabling HDMI sound in XBMC

Getting Sound over HDMI was a challenge for me. This was due to my own error in modifying the sound configuration files, which I did for my previous installations. Originally, I assumed I had to modify /etc/pulse/default.pa and .asound, in the home folder, but in the end, those steps broke sound over HDMI. I had to go back and delete all modifications to get DD/DTS sound over HDMI in XBMC.

With the newer Ubuntu 12.04, XBMC, Nvidia, and Ubuntu work well with one another. HDMI system sounds should work out of the box with some minor setting changes.
  • Select HDMI in Audio Output
  • Under Audio Output Device, select Defaults (ALSA)
  • For passthrough sound to your receiver, select Defaults (PulseAudio)

8.5 Change sound outputs in Ubuntu


9. Install Xubuntu and fix video tearing

10. Enable VDPAU accelerated HD flash for browsing Youtube/Vimeo with Flashaid

11. Install Google Chrome http://www.google.com/chrome

Recap, now you should have video and system sounds over HDMI, XBMC DD/DTS passthrough over HDMI, HD VDPAU accelerated Adobe flash playback with sound, 

12. Now get some popcorn going, sit back, and enjoy your HTPC!

Troubleshooting links:

http://http.download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html#_verify_your_eld_is_valid
http://ubuntuforums.org/showthread.php?t=1668737

Dec 5, 2011

XBMC & Nvidia VDPAU on Ubuntu 11.10 with working Sound over HDMI


I've successfully built another XBMC Ubuntu 11.10 machine with sound over HDMI thanks to various internet resources and some good ole troubleshooting. Sound is audible through the Internet Browser as well as through XBMC, so we have system sounds as well as movie sounds enabled. 

My system plays 1080p and 720p movies smoothly with almost no CPU utilization e.g. a 15 gigabyte 1080p Blu-ray rip runs perfectly smooth. Nvidia's VDPAU handles all of the HD processing, and the video is stunning. Also, XMBC's AEON skin is just as beautiful. Note: Adobe's Flash 11 has numerous bugs in its current state, so it does not work 100% with this build, and it seems slightly more stable in Firefox than in Chrome.

This tutorial should work for Nvidia hardware users as well as give some troubleshooting ideas for ATI users.

Tutorial

My Setup:
Acer Revo R1600 (stock and unmodded)
Nvidia ION LE
Ubuntu 11.10 64-bit
HDMI

Instructions:

1. Install Ubuntu 11.10

2. Get the Nvidia driver
How To Install Nvidia 275.09.07 Driver in Ubuntu 11.10 Oneiric Ocelot?

3. Install XBMC
Install XBMC on Ubuntu 11.10 Oneiric Ocelot/Linux

4. Getting Sound to play over HDMI may take several steps:

First, check to see if sound is enabled and unmuted. SPDIF should be unmuted as well:


"Code:
alsasmixer
Press <F6> to select the correct soundcard.
Press <F3> to show playback levels. <F4> selects capture levels [or use <Tab>]
Use the left/right arrow keys to select and up/down arrow keys to change levels. <M> to mute/unmute.
Go to "System ->Preferences ->Sound" and make sure the correct soundcard is default and adjust your profile on the hardware tab. 
On the output tab choose the correct device."
Then we'll check to see where our sound device is located by:
Code:
aplay -l
(Mine was 0,3)

Next, we'll load a module to finally get system sounds working:

From Ubuntuforums user efflandt on http://ubuntuforums.org/showpost.php?p=10367062&postcount=5 (I've modified the hardware location to match my hardware 0,3) :

"
Code:
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Mine is 0,3 so I added a line to /etc/pulse/default.pa after alsa-sink line:

Code:
#load-module module-alsa-sink
load-module module-alsa-sink device=hw:0,3
Reboot. The only odd thing it that in the Output tab of Sound Preferences you will need to select the HDA NVidia device that does NOT say HDMI to get HDMI sound. The speaker test in Sound Preferences will not work, but if you play Rythmbox, etc. you should be able to switch sound output on the fly."

Lastly, we're going to enable HDMI sound in XBMC

Select HDMI in Audio Output
Under Audio Output Device, select Defaults
For passthrough sound to your receiver, choose the setting your setup requires.

Now get some popcorn going, sit back, and enjoy your HTPC!

Troubleshooting & Tips

Fix Video Tearing:

Overscan compensation:

Enable HD flash
http://ubuntuforums.org/showthread.php?t=1685845

Change icon size
http://www.upubuntu.com/2011/10/how-to-resize-gnome-shell-icons-in.html

Change font sizes (just change the DPI for bigger fonts)
http://ubuntuforums.org/showthread.php?p=11484414

Autologin
http://www.groupofnowhere.com/2011/10/19/xubuntu-11-10-oneiric-ocelot/

Apr 27, 2010

Tutorial: Acer Revo 1600 HTPC with Boxee in HD


Over the weekend, I purchased an Acer Revo 1600 for my fiancé's parents. I figured for $150, the Revo 1600 with the Nvidia ION would make a powerful Boxee HTPC without breaking the bank. Boxee has Netflix, mkv-avi-mp4 movie playback, online streaming video, Pandora, Flickr, and more. This tutorial will be in two parts, one part for XP users, and the other for Vista/Server 2008/7 users.

Windows XP Boxee Guide

First off, if you're using your Revo 1600 with Windows XP, then you will NOT get HD decoding in Boxee. HD videos will stutter badly. You must have Vista/Server 2008/7 to get DXVA2 (Direct X Video Acceleration 2, which we'll go into in the second half of this tutorial) If you feel comfortable with installing Vista or Server 2008 or Windows 7, then I would recommend switching the OS.

Upgrade Drivers
Acer/Nvidia driver for Audio over HDMI (do not use the Nvidia.com driver because it does not work with the Revo, as of 4/27/10)
Geforce/ION LE 197.45 WHQL Graphics Driver
Nvidia ION LE Nforce 15.46 WHQL Chipset Driver 

Sign up and Install Boxee

Install Flash 10.1 Prerelease for HD Flash Playback

Sound over HDMI
Right out of the box, the Revo was almost ready to play with Boxee. The only thing I had to tweak was the sound over HDMI.
  1. After installing the drivers, I had to disable the Realtek Sound adapter in Hardware Devices in System Properties. Then sound over HDMI was working and so was Dolby Digital/DTS passthrough. If you don't need sound over HDMI, then don't disable the Realtek Sound adapter. 
  2. Lastly, go into Boxee > Settings > System > Audio > Select Nvidia HD Audio
Video over HDMI
By now, video should be outputting beautifully in 1080p or 720p. If you have overscan problems, right click on your desktop. Go into the Nvidia control panel. Click on HDTV. There should be an menu item to adjust overscan. Follow the on screen instructions.

Netflix
  1. If you want Netflix, then open up a browser like Google Chrome/Firefox, log into your Boxee account, then click on services. Click on Netflix, and sign in. This will now link Netflix fo your Boxee account.
  2. Download and install Microsoft Silverlight
  3. Open up Boxee. 
  4. Go to My Apps and select Netflix. 
  5. Netflix will ask to install a cookie. Click Yes
  6. Enjoy using Netflix on Boxee
Windows Vista/Server 2008/7 Boxee Guide

Boxee really shines in Vista/Server 2008/7. Whichever installation you choose, they all will have DXVA2, and DXVA2 is needed to accelerate HD movie playback. Instead of the CPU lagging to do the work, the Nvidia ION will now power through.

I chose Windows Server 2008 R2 x64 Standard Edition with the Windows 2008 Workstation Converter.

After installing the OS, we need to upgrade the drivers. Be sure to get the right drivers if you install a 32-bit or 64-bit OS as they are different. Video/audio/chipset drivers are all on Nvidia's website, and they work.

Upgrade Drivers

Windows 7 64-bit, Windows Vista 64-bit, Windows 2008 Server 64-bit
Geforce/ION LE 197.45 WHQL Graphics Driver
Nvidia driver for Audio over HDMI 
Nvidia ION LE Nforce 15.51 WHQL Chipset Driver 

Windows 7 32-bit, Windows Vista 32-bit, Windows 2008 Server 32-bit
Geforce/ION LE 197.45 WHQL Graphics Driver

After upgrading the drivers, the audio worked great in my installation. I did not need to any additional tweaking, nor did I have to disable anything. Sound over HDMI worked beautifully, and I had Dolby Digital/DTS passthrough over HDMI. If you run into problems, try changing the sound settings inside Boxee > Settings > System > Audio > Select Nvidia HD Audio

Video over HDMI
By now, video should be outputting beautifully in 1080p or 720p. If you have overscan problems, right click on your desktop. Go into the Nvidia control panel. Click on HDTV. There should be an menu item to adjust overscan. Follow the on screen instructions.

Netflix
  1. If you want Netflix, then open up a browser like Google Chrome/Firefox, log into your Boxee account, then click on services. Click on Netflix, and sign in. This will now link Netflix fo your Boxee account.
  2. Download and install Microsoft Silverlight
  3. Open up Boxee. 
  4. Go to My Apps and select Netflix. 
  5. Netflix will ask to install a cookie. Click Yes
  6. Enjoy using Netflix on Boxee
Final thoughts
The installation in Windows 2008 R2 x64 went smoothly. After upgrading the drivers, installing Boxee, flash and Microsoft Silverlight, we had a full blown HTPC. Thanks to the Nvidia ION, we enjoyed watching smooth playback of 1080p mkv's, YouTube HD, and Netflix instant movies. CPU utilization was under 20-30% when playing HD movies. (Pressing "i" in Boxee brings up utilization) Overall, great power in such a small box.

Now go enjoy!

Jan 13, 2010

CES 2010: Sayonara Hotel TV. Hello Boxee Beta.


IMGP0130IMGP0128IMGP0371IMGP0372IMGP0375IMGP0142IMGP0147IMGP0148IMGP0139IMGP0140
Earlier in Day 2 of CES, I saw a Boxee Beta live demonstration powered by D-Link Boxee Box, and thought to myself, finally, Boxee Beta is here. The user interface was completely revamped with new features such as movie cover thumbnails, a Boxee Browser, hardware acceleration, Adobe Flash 10.1 compatibility, sexier icons, and intuitive navigation control. Excellent.
I packed my Nvidia ION powered HTPC on the flight down to Las Vegas to handle my computing needs--I needed to view, edit, and upload photos with Adobe Bridge, Photoshop, and FlickrSync. I did not bring a monitor because the LCD TV at the hotel would have a HDMI input, so all I needed to bring was a wireless keyboard, power adapter, and HDMI cable for a fully functional MTPC - Mobile Theater PC. 
Now fast forward. It's the end of the day, my feet and back are sore from all the walking, and I want to sit back and relax. I hooked up the HDMI connector and plugged in my box. Then, I connected to their wireless and installed Boxee Beta for Windows 7. Next thing you know, I've sunken into bed while eating a late-night snack, and getting some laughs with Stephen Colbert streaming over WiFi. Great way to end CES 2010.

Nov 30, 2009

Tutorial: Nvidia ION N330 + XBMC + VDPAU + 1080P w/sound over HDMI


Alright guys and gals, I got around to updating my HTPC box over Thanksgiving weekend, and I can now say that the beta XBMC build looks mighty sexy when displayed in 1080P resolution. Also, DD, DTS passthrough, and Nav sounds are working 100% as well, including system sounds and Youtube in Firefox.

From reading the comments, in my previous post, it looks like the boxee instructions may not have worked 100% for some of you, my apologies, so I went ahead and did a fresh install to create new XBMC specific instructions for the following system:

Zotac Nvidia ION, Atom N330 Dual Core
2GB DDR RAM
Western Digital 150 GB Velociraptor

This will get you the 185 NVIDIA graphics drivers:
From what I read online, it looks like the newer 190 drivers may break HDMI sound? I'm using 185, and sound/graphics work beautifully.

Update Dec. 2nd, 2009: I'm now using 190.42 drivers without problems. Tested sound and video. Haven't tested passthrough on the 190.42 yet.

Update Dec. 3rd, 2009: Passthrough is working great. Suspend problems though with the 190.42 drivers. Ubuntu goes into suspend okay but no graphics or response upon resume.

Add these repositories to your sources:

deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main

Open up a terminal:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 71609D4D2F1518FA9C5DC0FB1DABDBB4CEC06767
sudo apt-get update
sudo apt-get install linux-headers-generic nvidia-glx-185
sudo reboot

Upon Rebooting go into the BIOS.
(the following instruction is from my memory, so if you dont' find it there, it's somewhere in your BIOS) In your BIOS, go to Southbridge configuration and change the video RAM from 256MB to 512MB. Inside the Southbridge config, change Audio codec to Internal only.

This will get you sound/passthrough over HDMI:
(haven't tested coax or optical)

Boot into Ubuntu, and open up a terminal and type:
sudo gedit /etc/asoundrc.conf
Paste the following into that file:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}

Open up another terminal (this will enable Youtube, and XBMC system sounds):
Type in: alsamixer
Make sure that IEC958 is unmuted by pressing the letter "m" without quotes.
If it it muted, then it will look like this - Item: IEC958 [off]
Once you unmute it, then it will look like this - Item: IEC958

Thanks to Greenhughes.com for the alsamixer tip.

Save. Close it. Reboot.


Inside XBMC:
Go to Settings, Audio and change the following:

Instead of:
sound: Internal Codec HDMI
passthrough: ie958

Change to custom (type hdmi):
sound: hdmi
passthrough: hdmi

Now you will have HD video and sound in Ubuntu and XBMC from your HD videos all the way to SD youtube, hulu, or whatever you want to play. Now go have fun!

Aug 18, 2009

Tutorial: Zotac ION N330 + Boxee/XBMC + VDPAU + 1080P w/sound over HDMI

*Update 12/01/09 - Instructions For BOXEE ONLY. Please refer to this post for XBMC.*

This post will get you video and audio over HDMI including audio passthrough for Dolby Digital or DTS. Feel free to skip down to the good stuff ; ).

The Zotac N330 is a dual core Atom CPU with an Nvidia ION GPU inside a tiny 7.5"x7.5" form factor. What's really amazing though is that when these two little chips are put together they are capable of playing 1080P HD content without even breaking a sweat. Through VDPAU for Linux, or Direct X 10 for Windows, content traditionally sent to the CPU is now sent to the ION to decode. This means for users like us, this opens the door to media, games, and powerful computing in a small, well priced, and low power consuming computer. Emphasis on powerful and well priced.

I ordered my board on Amazon w/free shipping for $190 including a 19V power supply--I assumed it would be a 12V power supply. After completing the installation, when playing 720P movies, my CPU usage was less than 6% per core! From what I've read, 1080P does NOT utilize the CPU core all that much either.

FYI: For those worried about getting an older board: the older revision of this board had a USB suspend problem, but now all the boards being sold have been fixed with an added jumper.

Here are my system specs:
Zotac N330
1GB DDR RAM
4GB OCZ Rally2 USB stick w/Ubuntu 8.10 Intrepid installed
Boxee w/latest build

These instructions are interchangeable with XBMC. Boxee is built on XBMC, so some of the references will look similar.

This will get you the latest NVIDIA graphics drivers:

Add these repositories to your sources:

deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu intrepid main

Open up a terminal:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 71609D4D2F1518FA9C5DC0FB1DABDBB4CEC06767
sudo apt-get update
sudo apt-get install linux-headers-generic nvidia-glx-185
sudo reboot

Upon Rebooting go into the BIOS.
(the following instruction is from my memory, so if you dont' find it there, it's somewhere in your BIOS) In your BIOS, go to Southbridge configuration and change the video RAM from 256MB to 512MB. Inside the Southbridge config, change Audio codec to Internal only.

Go into boxee, Settings, Video:
Turn on accelerate videos when posssible to enable VDPAU.
Exit boxee.



This will get you sound over HDMI:
(not sure about coax or optical)

Boot into Ubuntu, and open up a terminal and type:
sudo gedit ~/.asoundrc


Paste the following into that file:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}

Open up another terminal (this will enable Youtube, and XBMC system sounds):
Type in: alsamixer
Make sure that IEC958 is unmuted by pressing the letter "m" without quotes.
If it it muted, then it will look like this - Item: IEC958 [off]
Once you unmute it, then it will look like this - Item: IEC958


Save. Close it. Reboot.


Inside Boxee:
Go to Settings, System, Audio and change the following:

Instead of:
sound: ie958
passthrough: ie958

Change to (type default to where ie958 is):
sound: default
passthrough: default

Now you will have HD video and sound in Ubuntu to Boxee from your HD videos all the way to youtube, hulu, or whatever you want to play. Now go have fun!