<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>diginc &#187; hdtv</title>
	<atom:link href="http://diginc.us/tag/hdtv/feed/" rel="self" type="application/rss+xml" />
	<link>http://diginc.us</link>
	<description>\'dij-iŋk\</description>
	<lastBuildDate>Fri, 18 Jun 2010 20:17:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting up my HDTV HTPC with xUbuntu 8.10</title>
		<link>http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/</link>
		<comments>http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 23:36:26 +0000</pubDate>
		<dc:creator>diginc</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[hdtv]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://diginc.us/?p=3</guid>
		<description><![CDATA[Here my chronicle of fixes and tasks I had to go through while setting up my HDTV HTPC / home server. I upgraded from an older xUbuntu to xUbuntu 8.10 64-bit and the first thing I had to do is &#8230; <a href="http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here my chronicle of fixes and tasks I had to go through while setting up my HDTV HTPC / home server.</p>
<p>I upgraded from an older xUbuntu to xUbuntu 8.10 64-bit and the first thing I had to do is restore the windows file share where I backed up configurations, samba shares, and my Adaptec SATA Raid 1210SA.  Then I had to conquer ATI&#8217;s proprietary drivers and restore my previous install&#8217;s server functionality.  Next time I&#8217;ll be finishing up the HTPC portion by configuring my TV Tuner with mythTV and installing Boxee as well &#8211; and maybe integrating the two together if possible.<br />
<span id="more-3"></span></p>
<p>Note: you can copy paste the code commands with the &#8220;<code># comments</code>&#8221; at the end because Linux will ignore everything after the #</p>
<p><b>Network Shares and Raid</b><br />
<code><br />
apt-get install samba # for sharing my raid storage across the network<br />
apt-get install smbfs # for mount.cifs to mount windows file shares<br />
apt-get install nfs-common # for the other mount types<br />
apt-get install dmraid # for my Adaptec SATA 1210SA Raid card (x2 320GB drives)<br />
apt-get install vim # because vi drives you insane after using vim<br />
</code></p>
<p>With the right programs installed I could reach my backups, test/setup my mounts permanently, and setup samba so I can start listening to my music right away again.<br />
<code><br />
mkdir /media/a-computer; mkdir /media/a-computer/backup # make a folder to mount to<br />
mount.cifs //192.168.0.51/backup /media/a-computer/backup -o guest,rw # mount my windows backups share<br />
tail -3 /media/a-computer/backup/fstab  >> /etc/fstab  # copy old fstab permanent mounts to new fstab<br />
</code><code><br />
tail -3 /media/a-computer/backup/fstab # outputs<br />
/dev/mapper/asr_1 /media/windows ntfs rw        0 0<br />
//192.168.0.51/usenet /media/a-computer/usenet cifs guest,rw,mand 0 0<br />
</code></p>
<p><b>Video Setup</b></p>
<p>I&#8217;m plugged into my Panasonic Viera 42&#8243; HDTV through an ATI HD2600XT and DVI-I to HDMI cable (from <a href="http://www.monoprice.com">monoprice</a>).  After installing xUbuntu 8.10 on a CRT Monitor (so I could read the text) I switched video cables and plugged in my HDTV only.  It booted into X with VESA drivers on &#8220;Default&#8221; resolution (not sure what res.,it wasn&#8217;t HD, but it worked on my TV somehow) and first thing that was obviously needing fixed is the text was too small to read.  </p>
<p>I quickly remembered you can&#8217;t fix the font size problems high resolutions in the XFCE menus.  You have to make a config change for X:<br />
<code>echo "Xft.dpi: 96" >> ~/.config/xfce4/Xft.xrdb</code></p>
<p>To install the video drivers I decided to just go through the menus instead of attempting it through command line (if you need to use apt-get I believe you need to manually add the proprietary apt-get rep source).  I went to Applications > System > Hardware Drivers > And There were ATI/AMD Proprietary drivers &#8211; after one click it launched the package manager and installed fglrx for me, very painless.  I also ran updates and rebooted at this time.</p>
<p>I had some issues with the fglrx video driver at first but to make a long story short, here&#8217;s how I finally got a good xorg.conf for it.<br />
<code><br />
dpkg-reconfigure xserver-xorg # This helped the next step make a more complete config<br />
aticonfig --initial # Before I ran the above step, this generated a very minimual xorg.conf<br />
aticonfig --resolution=0,1920x1080,1280x720 # Set my HDTV resolutions<br />
service gdm restart # Restart X and test new xorg.conf - booted into 1920x1080 for me<br />
</code></p>
<p>Being in 1080p resolution caused fonts to look a lot smaller, even with the xfce font DPI fix, so I increased font sizes in the menus: Applications > Settings > Settings Manager > User Interface &#038; Windows Manager.  I also increased the Panel sizes to 41 to make Icons bigger.  </p>
<p>Switching to fglrx enabled HD resolutions but it also gave me black bars around my screen.  To fix this at first I was trying to utilize the aticonfig&#8217;s overscan tv functions since I&#8217;m using a TV.  however my display isn&#8217;t detected as a &#8220;TV&#8221; type for whatever reason, as this shows:<br />
<code># aticonfig --query-monitor<br />
Connected monitors: tmds1<br />
Enabled monitors: tmds1</code><code><br />
aticonfig --tv-info<br />
The TV is not connected<br />
The TV geometry is "0x0+0+0"<br />
</code></p>
<p>After a lot of Googling and experimenting with various aticonfig commands I came to this solution: <code>aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0</code> &#8211; This fixed my underscan black bars but isntead created an overscan problem (screen was bigger than TV borders).  I managed to fix this by tweaking the resolution (not sure if this causes pixel stretching but it doesn&#8217;t look bad &#8211; may just be a work around).  Here&#8217;s my overscan fix autostart script which lowers my resolution and bump the screen into center position:<br />
<code>#!/bin/bash<br />
# Add this script to autostarting apps, these commands don't seem to save<br />
aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0<br />
# X was over by 28 pixels on each side (1920 normal)<br />
aticonfig --set-dispattrib=tmds1,sizeX:1866<br />
aticonfig --set-dispattrib=tmds1,positionX:+28<br />
# Y was over by 16 pixels on each side (1080 normal)<br />
aticonfig --set-dispattrib=tmds1,sizeY:1048<br />
aticonfig --set-dispattrib=tmds1,positionY:+16<br />
</code><br />
X/Y overscan values needing adjustment may be different for you</p>
<p><b>Diversion 001</b><br />
With my video completely setup I needed to test it out:<br />
<code>sudo apt-get install vlc</code><br />
I checked out some videos, normal video started skipping, HDVideos were artifacting, skipping, and top showed them taking over 50% of my CPU most of the time&#8230;that&#8217;s not right, never had this problem on my previous installs (windows XP or xubuntu 8.04).  Investigation revealed my CPU frequency is set to the minimum of 1000mhz of 2200mhz max.  Google revealed an application I hadn&#8217;t heard of before that was quite easy to use and fixed this problem:<br />
<code>apt-get install cpufrequtils<br />
cpufreq-set -g performance # Sets frequency to max</code></p>
<p>I thought that was very odd, maybe a bug with Intrepid Ibex?</p>
<p><b>Torrents, usenet/Sabnzbd, and GNUMp3D</b></p>
<p>Next I setup my uTorrent webui to act as a central torrent server for my home.  If you need instructions on setting up webui see <a href="http://forum.utorrent.com/viewtopic.php?id=14565">uTorrent&#8217;s webui post</a>.  I already set it up in wine previously so I&#8217;m just restoring from a backup here: </p>
<p><code>sudo apt-get isntall wine # We need wine to run uTorrent<br />
cp -vip /media/a-computer/backup/uTorrent.exe .~/wine/drive_c/Program\ Files/uTorrent/  # Get the exe<br />
rsync -aP /media/a-computer/backup/adam/.wine/drive_c/windows/profiles/adam/Application\ Data/uTorrent/ ~/.wine/drive_c/windows/profiles/adam/Application\ Data/uTorrent/ # I need the app data folder where webui is saved<br />
cp -vip root/startup-uTorrent.sh /home/adam # Copy my startup script<br />
cat /home/adam/startup-uTorrent.sh # It's a simple script needed for auto start on boot<br />
#!/bin/sh<br />
wine /home/adam/.wine/drive_c/Program\ Files/uTorrent/uTorrent.exe &#038;<br />
</code></p>
<p>Then I add the script to the startup applications list through Applications > Settings > Settings Managed > Autostarted apps > Add > Then Enter a description and the path /home/adam/startup-uTorrent.sh</p>
<p>References:</p>
<p>http://ubuntuforums.org/showthread.php?t=225721</p>
<p>http://www.phoronix.com/forums/showthread.php?p=36734#post36734</p>
<p>http://ubuntuforums.org/showthread.php?p=5842624</p>
<p>http://www.thinkwiki.org/wiki/How_to_use_cpufrequtils</p>
<p>Brain</p>
]]></content:encoded>
			<wfw:commentRss>http://diginc.us/2009/01/setting-up-my-hdtv-htpc-with-xubuntu-810/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
