DPMS monitor control via remote control on Myth TV

I am using an LCD monitor as the display for my MythTV box, connected via an analog RGB (a.k.a. VGA) cable. This allows me to use DPMS (Display Power Management Signaling) to turn the monitor on and off from the MythTV box.

Instructions for setting this up with MythTV are here , but I found that I had to make a few changes to get things to work correctly. I modified one line of the shell script  as follows:

STATUS=$( xset -q | grep "Monitor is" | awk '{print $3}' )

To trigger the monitorpowerbutton.sh script, I placed the following into my /etc/lirc/lircrc file:

begin
 prog =  irexec
 button = TV_POWER
 repeat = 4
 config = /usr/local/bin/monitorpowerbutton.sh
end

Now my TV_POWER button toggles the power state of the monitor! 

Fixing a missing bluetooth icon, battery charge indicator, and update notifier in Ubuntu

Notification Icons

For the last week my battery indicator and bluetooth icons had been missing from my top panel in Ubuntu. When I did Bluetooth stuff the pop-up "speaker balloons" from the bluetooth applet would still appear at the corner of my screen, but the Bluetooth applet itself was "invisible". I finally figured out that what I was missing was a "Notification Area" for these applets to "live". Right-Clicking on the Panel, Selecting "Add to Panel" and then adding the "Notifcation Area" (from the Utilities category) fixed my problems. Indeed, I then found out that the Software Update notification icon had been trying to tell me about software updates, but I hadn't seen it, so I had to install several software updates!

Ipod Touch (8GB) Review

An Apple iPod Touch review, with special attention paid to use with Linux and open formats:

Pros:

  • Very nice high resolution screen. (480×320 at 163dpi)
  • User interface is very slick and easy to use after a minimal learning period.
  • Built in WiFi (802.11b/g) with very good mobile browser (Safari).
  • Methods to hack (jailbreak) it and install 3rd party software are widely available, and many 3rd party applications are already developed for it.
  • Base model has a generous 8GB of storage, 16GB and 32GB models are available.
  • Design: Aesthetically, it's solid. Hardware, software, feel and aesthetics, everything is great!
  • Battery life is good (5 hours of video, 22 hours of music, use of WiFi reduces this significantly).

Cons:

  •  It's expensive. Almost $300 for the base model. (I won mine in a raffle, otherwise I wouldn't be reviewing it!)
  • Funky machine readable file-system format for storing music: Why is F03/KLJE.m4a my Spin Doctors – Cleopatra's Cat? What's wrong with a human readable filename, Artist/album/song storage paths, etc…) 
  • Doesn't support music encoded with Ogg Vorbis.
  • Doesn't mount as a standard USB file-system.  (You need iTunes, or a iTunes clone to move music/photos to it, and can't use it as a USB drive.)
  • Uses a non-standard (not a mini-USB) connector. (Yet another cable to carry around.)
  • Integrated battery prevents easy customer replacements.
  • Lacks many features of the full iPhone (Bluetooth, camera, cellular data/radio, speaker, microphone).
  • Chrome on the back scuffs MUCH to easily. I've carried mine in dedicated hip pockets and after only a week I still have visible scuffs and scrapes on the "chrome" back.  Hopefully the glass on the front will resist scratches better than the "chrome" on the back. I still have the plastic protective cover that it shipped with over the glass screen, and am considering buying a static stick screen protector after my experiences with scuffs on the back.

Continue reading

Phillips Webcam with Linux

I bought three Phillips SPC  900 NC webcams because they claim to support up to 90fps and I have had good luck using linux with the PWC drivers in the past.  Plugged into a generic Ubuntu 7.10 install, I found that 640×480 resolution was automatic, with 15fps. 320×240 worked at 30fps. (I tried 160×120 resolution, but wasn't able to get a speed faster than 26fps with that, so I'm doubtful of the 90fps claim from Phillips, at least with the stock Ubuntu drivers.)

This useful website looks to provide nice OpenCV support for this camera. 

I have also archived the relevant files on my site, in case the above link goes down. 

Webcam to OpenCV package

Webcam software manual

Hacking the iPod Touch – Jailbreak to 1.1.3 w/ extra apps


General info:

How to put an ipod touch into restore mode: Plug it into your computer, and turn on iTunes, then: hold the power and home buttons down until it resets. Release the power button, but keep the home button held until it enters recovery mode.

How to restore to a specific version of the firmware that you have downloaded to your computer: Use iTunes but instead of just clicking the "Restore" button, you hold the shift key down and then clicking the "Restore" button. This gives you a file selecton dialog that you can select a specific firmware file on your local hard drive. NOTE: You can also "upgrade" to a specific firmware version in the same way, but shift-clicking on the "Upgrade" button. At some points the difference between a Restore and an Upgrade is very important! (e.g. after jailbreaking a 1.1.1 and running OktoPrep, you should UPGRADE to 1.1.2, not restore!)

VERY IMPORTANT: Turn off "Auto-Lock" in the General->Auto Lock control panel!!! You will have to do this every time you upgrade/restore to a new firmware. Nothing messes up a firmware upgrade like the ipod locking halfway through it and turning off!

Here are a few guides that I found to be the most useful for jailbreaking/hacking the ipod Touch:

Continue reading

Fixing Program Guide data on MythTV after Daylight Savings Time switch

I'm running MythTV (Subversion Trunk) on a Ubuntu 7.10 box. After the daylight savings time changeover, my mythtv box had the correct time, but the Program Guide data was still off by an hour.  Manually running a mythfilldatabase didn't fix it. After checking to make sure that my timezone xmltv settings were set to Auto, I decided to manually erase all of the program data from the database.

(After using mysql to connect to the database, I issued the "delete from program;" command to delete all of the program entries.)

Then I re-ran mythfilldatabase and everything was fixed. (I still don't understand why this didn't automatically fix itself when the ubuntu box changed it's timezone, as all of the program data is supposed to be stored under UTC…)

Human powered generator

Diagram of the generatorLots of people have built human powered generators. I like this one for two reasons:

1. It's designed to harvest waste energy. (It helps your body stop your knee from swinging at the end of the forward swing, something your body uses energy to do anyways.)

2. The evaluation included serious medical studies to determine the amount of metabolic energy it "takes" from the human.  (to get a watt of power, it increases the human's load by less than a watt. By comparison, a hand crank generator takes 6.4 watts from the human for each watt harvested)

Mythtv gotchas when upgrading from Ubuntu 7.04 (Feisty) to 7.10 (Gutsy)

I upgraded my Mythtv server from Feisty to Gutsy for no good reason (other than I like the pain).

Gotchas I ran into when trying to get MythTV working again:

1. The upgrade lost/removed the libqt3-mysql support from my computer. This resulted in the MythTV applications (frontend and backend) giving "unable to connect to database" errors. As the upgrade had also upgraded my MySQL install, I spent a good amount of time checking that the mythtv user still existed and had the proper permissions before I figured out it was a QT database library problem.
  apt-get install libqt3-mt-mysql fixed it.

2. LIRCD stopped receiving commands from my HDHomeRun receiver from SiliconDust. Turns out you have to change the LIRCD_ARGS="-d 5000" line in the /etc/lirc/hardware.conf file to LIRCD_ARGS="-H udp -d 5000".  After this, typing irw showed that LIRCD was now receiving the command codes as it was supposed to.

3. The module name for my D-Link GWL-G122 usb wifi-adaptor have changed, so I had to change entry in the /etc/modprobe.d/blacklist  file to reflect the new name(s) of: rt2x00usb and rt2500usb.

Riced Dynamo flashlight

On our van trip across the country my aunt and uncle gave us two hand crank (dynamo) LED flashlights which are really useful to keep in the van. The self-charging nature of the flashlights are very nice, in that we can leave them in the van and just wind them up when we need light. Unfortunately, one of the flashlights started to dim and refused to hold a charge. When I got home and opened it up, I found that the rechargeable Li-Ion coin cell inside had died. It originally used a 2032 coin cell rated at 40mAh

Dynamo flashlight opened

Once I had it open, I decided I may as well fix it, and if I was going to be replacing the battery I may as well buy a bigger one (or two) and give the flashlight Continue reading

On the fly external monitor support (mirroring / spanning) on Ubuntu 7.10

My IBM X31 laptop has the capability to drive an external VGA monitor in addition to it's built in XGA (1024×768) Laptop Video Display Screen (LVDS). The new xrandr extension allows non-privlidged users to change monitor layouts on-the-fly. And now, thanks to my friend Tracy, I know the "extra magic" to make it all work.

Continue reading