Photo Reprise 3

Posted by Jonathan on March 20, 2005

Here’s a picture I took a few years ago that I stumbled upon again …

There’s quite a few more in that group, but I think that one is my favorite.

var data, p;
var agt=navigator.userAgent.toLowerCase();
p=’http’;
if((location.href.substr(0,6)==’https:’)||(location.href.substr(0,6)==’HTTPS:’)) {p=’https’;} data = ‘&r=’ + escape(document.referrer) + ‘&n=’ + escape(navigator.userAgent) + ‘&p=’ + escape(navigator.userAgent)
if(navigator.userAgent.substring(0,1)>’3′) {data = data + ‘&sd=’ + screen.colorDepth + ‘&sw=’ + escape(screen.width+ ‘x’+screen.height)};
document.write(‘‘);
document.write(‘
‘);

Kubuntu Linux LiveCD

Posted by Jonathan on March 20, 2005

I have been playing with the latest version of the Ubuntu Linux distribution. Unlike the earlier ‘Ubuntu’, ‘Kubuntu’, as you might guess from the name is based on the KDE desktop rather than the Gnome desktop used in Ubuntu.

I have used Ubuntu before, but even though I run Gnome on all my machines, Gnome from a LiveCD seems to lose something, and I general prefer the command line for most of the tasks that the Gnome developers might expect me to use Gconf etc for.

So far, I am very impressed with the K Desktop Environment compared with Gnome. Apert from the ‘K’ fetish, everything seems very crisp and nice kompared (oops) with Gnome which is a bit more staid looking.

Here’s a screenshot of Kubuntu from a few minutes ago taken with KScreenShot :

Here’s the best thing about Kubuntu, it detected *every* piece of hardware on my girlfriends Dell Dimension, so the sound works, 3d graphics work really nicely, the network works. Just an fantastic performance.

The only tiny blot is that the fonts initially looked krappy (sorry, won’t do it again) because anti-aliasing was turned off. Turn it on and they look great again.

There’s too much installed to list, but the highspots for me included open office, and being able to boot from a CD and ssh to my home linux box, and have the mythtv front end come up and be able to browse my ‘taped’ shows from over the weekend. Rockin’

Here’s a link to i386 Kubuntu LiveCD:
bittorrent i386 iso live cd
i386 iso live cd
AMD and PowerPC iso are also available here

Bug-fix for ATSC Channel Changing on MythTv 0.17

Posted by Jonathan on March 18, 2005

Finally managed to nail the channel-changing bug on MythTV that had been bugging me, and more or less making mythtv unusable for me.

You can reproduce the bug by switching channels when on (on my setup) a ATSC (OTA HDTV) source. On switching channels between two channels that have the same pid/stream type (not toooo sure of this), the old pes won’t get cleared out properly.

The proper fix would be to ensure that the pid/pes stuff gets handled properly in av_remove_stream in utils.c. Anyways, here’s my crappy fix (well, more of a hack)

In the file libmythtv/avformatdecoder.cpp, change the file to look like the following. The real bug is that this doesn’t fixup the pmt_pid tables in the ts context thingymajig. This works great now, well for me anyway.

void AvFormatDecoder::Reset(void)
{
SeekReset();

// Clear out the existing mpeg streams
// so we can get a clean set from the
// new seek position.
// for (int i = ic->nb_streams – 1; i >= 0; i–)
// {
// AVStream *st = ic->streams[i];
// if (st->codec.codec_type == CODEC_TYPE_AUDIO)
// {
// if (st->codec.codec)
// avcodec_close(&st->codec);
// av_remove_stream(ic, st->id);
// }
// }

m_positionMap.clear();
framesPlayed = 0;
framesRead = 0;
seen_gop = false;
seq_count = 0;
}

PC HD TV 3000 Working Config

Posted by Jonathan on March 13, 2005

This is mainly for my own benefit, since I managed to break my config and it took me a while to get it working again.

  • Video For Linux – configure as a module, with nothing else
  • Reboot …
  • /root/pcHDTV1.6/*2.6*/driver – make clean && make && make install
  • modprobe cx8800 – You need to see the following …

    Module Size Used by
    tuner 17924 0
    cx8800 73056 0
    cx88xx 18628 1 cx8800
    video_buf 16068 2 cx8800,cx88xx
    v4l1_compat 12260 1 cx8800
    v4l2_common 4704 1 cx8800
    btcx_risc 3592 2 cx8800,cx88xx
    videodev 7168 1 cx8800
    wlan_wep 5440 1
    ath_pci 49824 0
    ath_rate_onoe 6696 1 ath_pci
    wlan 100028 4 wlan_wep,ath_pci,ath_rate_onoe
    ath_hal 146576 2 ath_pci
    nvidia 3458748 12

  • dtvsignal /dev/dtv 27 – should show some signal with antenna pointed 162o

Cheap Network Card for Linux 2

Posted by Jonathan on March 12, 2005

Fry’s are doing a pretty good offer on the DLink DWL-G510. This wireless-G PCI card works using the atheros linux driver. I bought mine for $37.99, but there’s an additional $20 rebate which drops the price to under $20 ;-)

I just did an ‘emerge –sync’ from Gentoo, which is a pretty good network test, and it showed 145 Kbytes/sec download speed, so I’m pretty happy with the card.

Some notes on Installation

The following are kernel config requirements for building the atheros driver :

- CONFIG_NET_RADIO=y
- CONFIG_NET_WIRELESS=y
- CONFIG_CRYPTO=y
- CONFIG_CRYPTO_HMAC=y

These enable support for wireless in the kernel, and also enable linking a few crypto calls for WEP support in the driver. You should build, install and reboot with your new kernel at this point !!! If you don’t you may see errors when you build the atheros driver.

To download and build the driver, on Gentoo, you simply type ‘emerge -a madwifi-driver’. When I did this, the package was masked by ~x86, implying it is still considered unstable. However, it seems to work good for me in a 2.6.9 kernel, so if you want to install it, use :

ACCEPT_KEYWORDS=”~x86″ emerge -a madwifi-driver wireless-tools

The second package on the command-line above builds the wireless tools you’ll need to configure the card.

Once these packages have downloaded and been built, do an lsmod to see if they loaded. You may see a listing from lsmod that looks like :

# lsmod
Module Size Used by
wlan_wep 5440 1
ath_pci 49824 0
ath_rate_onoe 6696 1 ath_pci
wlan 100028 4 wlan_wep,ath_pci,ath_rate_onoe
ath_hal 146576 2 ath_pci
nvidia 3458748 12

If you don’t, then the following worked for me to load the drivers :

# modprobe ath_hal
# modprobe ath_pci

Both commands should complete silently. If you get errors, try typing :

# dmesg | less

This will display a list of messages including kernel, driver and module messages. Scroll down to the bottom of the list and look for why the modules failed to load. If the modules built cleanly, then this *should* work.

Note that you can use the lspci command to list the devices found by GNU/Linux :

# lspci
0000:00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
0000:00:01.0 ISA bridge: nVidia Corporation: Unknown device 00e0 (rev a2)
0000:00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management (rev a1)
0000:00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
0000:00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
0000:00:02.2 USB Controller: nVidia Corporation CK8S USB Controller (rev a2)
0000:00:05.0 Bridge: nVidia Corporation CK8S Ethernet Controller (rev a2)
0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb AC’97 Audio Controller (rev a1)
0000:00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller (v2.5) (rev a2)
0000:00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) (rev a2)
0000:00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI Bridge (rev a2)
0000:00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
0000:02:08.0 Ethernet controller: Atheros Communications, Inc.: Unknown device 001a (rev 01)
0000:02:0a.0 Multimedia video controller: Conexant Winfast TV2000 XP (rev 05)
0000:02:0a.2 Multimedia controller: Conexant: Unknown device 8802 (rev 05)

If you still have errors getting the modules to load, check the following :

- did you configure and build your kernel correctly ?
- did you reboot ?
- did you build the madwifi drivers ?

Skimping on any of these steps may cause problems.

Configuring the Card

It’s not too hard to configure these cards. I use WEP for privacy on my network, and have retained the default ESSID of NETGEAR. I use a NETGEAR WGR614v4 wireless router.

First verify that you get something from running iwconfig :

# iwconfig
eth0 no wireless extensions.

ath0 IEEE 802.11g ESSID:”NETGEAR”
Mode:Managed Frequency:2.462 GHz Access Point: xx:xx:xx:xx:xx:xx
Bit Rate:54 Mb/s Tx-Power:50 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:xxxx-xxxx-xx Security mode:restricted
Power Management:off
Link Quality=26/94 Signal level=-69 dBm Noise level=-95 dBm
Rx invalid nwid:295361 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:84 Invalid misc:84 Missed beacon:0

If you don’t get something for ath0, which is the atheros driver, then you need to go back a stage.

If you got something similar, here’s a minimal set of commands to get you up and running :

# iwconfig ath0 mode Managed
# iwconfig ath0 ESSID NETGEAR
# iwconfig ath0 key 00112233

Woo hoo !! PCHDTV HD-3000 card WORKING !! 2

Posted by Jonathan on March 07, 2005


Some obvious progress on my media center PC …

Fantastic !! The quality is fantastic, and I am in an apartment and 30 miles from the transmitters with a $50 Radio Shack antennae.

I have logged my experiences with the HDTV-3000 card.