Tuesday, October 26, 2010

Monday, October 4, 2010

Avoid CIFS hang on shutdown with wireless network connection

sudo update-rc.d -f umountnfs.sh remove
sudo update-rc.d umountnfs.sh stop 15 0 6 .

Thursday, September 23, 2010

Mercurial pattern matching example

This is how to remove all .o and .a files in a mercurial repo:

hg remove -I "glob:**/*.o" -I "glob:**/*.a" **

Edit: The file patterns must be enclosed in double-quotes "" (at least on Windows). Single-quotes will not work.

Wednesday, March 17, 2010

Running mythfilldatabase as cronjob

Made a script calling grab_dk_dr and mythfilldatabase sequentially. Running that as cronjob of user mythtv.

For some reason the mythfrontend's autorun of mythfilldatabase didn't work.

Note: I had to configure mythfilldatabase to use tuner 2 after changing to anysee tuner.

nice -n 15 tv_grab_dk_dr --days 14 --out /home/mythtv/ud.xml 2>/var/log/mythtv/tv_grab_dk_dr_stderr.log
nice -n 15 mythfilldatabase --update --file 2 /home/mythtv/ud.xml > /var/log/mythtv/mythfilldatabase.log

Sunday, March 7, 2010

Default "End late" to 5 mins

As described here.

Monday, March 1, 2010

Changing firmware for Hauppage WinTV MiniStick HD

I'm changing away from the firmware files here, to some obtained directly from Hauppauge http://www.wintvcd.co.uk/drivers/WinTV-MiniStick_4_2_10_27180_WHQL.zip.

Now I'll test and see if I get more stable tuning performance under MythTV/Ubuntu Karmic 9.10. I got the idea from here.

Detailed steps to change firmware file:
$ wget http://www.wintvcd.co.uk/drivers/WinTV-MiniStick_4_2_10_27180_WHQL.zip
$ unzip -j WinTV-MiniStick_4_2_10_27180_WHQL.zip  driver17/hcw17dvb.1b0
$ sudo cp hcw17dvb.1b0 /lib/firmware/sms1xxx-hcw-55xxx-dvbt-02.fw.WHQL_freebsd
$ cd /lib/firmware
$ sudo cp sms1xxx-hcw-55xxx-dvbt-02.fw sms1xxx-hcw-55xxx-dvbt-02.fw.org
$ sudo cp sms1xxx-hcw-55xxx-dvbt-02.fw.WHQL_freebsd sms1xxx-hcw-55xxx-dvbt-02.fw

Sunday, February 28, 2010

Misc VDPAU changes

Hoping VDPAU in mythtv will be more stable on the Asrock ION 330HT.

Setting TripleBuffer true in xorg.conf.
Setting video memory size to 512 MB (in BIOS, old setting was auto.)

Advice from here.

Recording several programs on same multiplex simultaneously in MythTV


Friday, February 26, 2010

mpstat - monitor cpu load during video playback

I keep forgetting this great little tool. Indispensable for checking cpu load during video playback.

Saturday, February 13, 2010

Sharing NTFS volume via smb.

  1. Mount NTFS volume with umask=0222 (samba needs permissions to share drive)
  2. Mount smb share with iocharset=utf8 (to get special characters to display properly)

Override DNS settings from DHCP server

Use Network Manager --> Edit Connections --> IPv4