Linux Beach MultiMedia Center

Users Guide

Table Of Contents

  1. What is MythTV?
  2. History
  3. Features
  4. Quick Start Guide
  5. Remote Commands
  6. Keyboard Commands
  7. Administrative Information
  8. Scheduling Recordings.
  9. Record Types
  10. Scheduling Options
  11. Storage Options
  12. Post Recording Processing
  13. Advanced Recording Options
  14. Watching a DVD or VCD
  15. Ripping a DVD
  16. MythVideo
  17. MythMusic
  18. MythGallery
  19. MythWeather
  20. MythPhone
  21. MythNews
  22. MythBrower  
  23. MythGame
  24. MythArchive
  25. MythFlix
  26. MythWeb
  27. Advanced Setup Topics
  28. LBMC Blaster codesets
  29. Nvidia Setup


What is MythTV?

MythTV is shell that organizes a tremdous amount of open source multimedia software for the purpose running your home entertainment system.
MythTV is a collection of software which runs under the Linux operating system, and provides the functions commonly known as a PVR or DVR (personal, or digital, video recorder) — essentially, it's a computerized VCR, similar to a TiVo or a Replay... but since it's open source software, if you don't like the way it does something, you can always change it — that's how much of its current functionality came about in the first place.

In addition to the basic PVR functions of recording and playing back scheduled programs and allowing you to schedule recordings automatically in advance, MythTV has a plugin system which permits it to be extended by other programmers; plugins currently exist for playing external video, viewing photos and listening to music files, using your TV and a web camera as a video-telephone over the Internet, browsing the web, retrieving current local weather, and many other functions.

History

Sometime back in 2002 (before May 15th, which is his first website news posting), Isaac Richards decided he wanted something more from his television.

He says:

I got tired of the rather low quality cable box that AT&T Broadband provides with their digital cable service. It's slow to change channels, ridden with ads, and the program guide is a joke. So, I figured it'd be fun to try and build a replacement. Yes, I could have just bought a TiVo, but I wanted to have more than just a PVR -- I want a webbrowser built in, a mail client, maybe some games. Basically, I want the mythical convergence box that's been talked about for a few years now.
So, in late April 2002, I started tinkering with stuff. I bought a cheap TV tuner card from Best Buy, and threw it into my desktop box (P3-550). I started playing around with different video encoders, and eventually decided that NuppelVideo provided the best quality video for the amount of CPU it took up. It's based on a modified RTjpeg codec, and it looks rather nice, in my opinion.
Unfortunately, the poor P3-550 really couldn't encode and decode video at the same time. So, I took the plunge and bought a better machine — an Athlon XP 1800+. I based the machine off of an Abit NV7-133R motherboard, and put it into a nice black case.
See the news updates/archives for what's happened since.

Features

MythTV provides home theatre functions such as the ability to:



Quick Start Guide

Physical setup is very similar to normal desktop PC setup except for the additional connections for TV, Stereo and remote control. For easy of connection you will probably want to chose a place close to your TV monitor and stereo system, however, if proper cables are used, the video and audio signals can be sent more than twenty feet without significant degradation.


M )        Side Speaker Out


The AC power, keyboard, mouse and network connections are all as for a normal PC. The Gb LAN interface assumes a dynamic host address, if a static address is to be used this address will have to be set manually through the Ubuntu Administration interface. Other USB or firewire peripherals may be plugged in as usual, including the USB transceiver for the cordless keyboard and mouse. Specific features of the LBMC are addressed below:

1) Video connection
The LBMC can support up to two video displays using VGA, DVI or S-Video interfaces. If only one display is connected, then Mythfrontend (the user interface) will start on that display. That means in it's simplest application, LBMC can be connected to the S-Video or DVI input of a TV or flat screen.
If two displays are connected to the LBMC, the Mythfrontend will start on the S-Video display, and if no S-Video display is connected, it will start on the DVI display. In both cases the Gnome Desktop will start on the other display. This is the default behaviour and is entirely customizable. For example it is possible to run two instantances of Mythfrontend, one on each display. This is not recommended however as they both listen to the remote and will compete for the sound system.

On the LBMC-500 the S-Video and VGA cables plug directly into the video board on the back of the system. The LBMC-1000 has two DVI outputs are require the included DVI-VGA adapters for VGA monitors. There is also an included dongle that plugs into the video board on the back of the LBMC-1000 that allows you to connect an S-Video, composite or RGB monitor to the system. All of these types of monitors will act as the S-Video monitor describe above.

2) TV - RF in
This is a standard 75 ohm F-type TV cable connect. This is the threaded cable connection at the top of the PVR150  backplate. Connect it to  TV antenna or cable source. 125 channels are supported. Also on this backplate are S-Video jack, RCA phono type composite video and 3.5mm mini-jack stereo audio inputs. Alternately these may be used to connect an external video source, such as a cable box, to the LBMC.

The LBMC also supports IEEE1394b firewire I/O used by many cable boxes and HD receivers.
PVR150 back panel

3) IR Remote Receiver & Blaster
This is that messy wire thingy. The plug plugs into the small hole at the bottom of the PVR150 backplate and has two wires leading from it. The fatter, shorter one has the IR receiver on the end and this should be positined where it can "see" the remote control when you are using it. The skinny very long wire is very delicate. It has the IR Blaster on the other end of this. It you need the IR Blaster to control a cable box or other IR reciever, you should position the blaster were the device can "see" it. Otherwise you should leave it bundled up.

4)  Audio Out connections
Eight channel analog audio out can be had from the four 3.5mm stereo mini-jacks on the Main Rear Panel. Stereo speakers may be plugged into the Line-Out jack on the Main Rear Panel or the Front Panel.
Coaxial Digital Input may be connected to the S/PDIF RCA phono jack in the Main Rear Panel.


System Power On  & Off
Before the system can be powered on it must be plugged into AC power and the rear Power Supply switch must be in the On position. The system can then be turned on with the front-panel power on buttom.
The system should not be turned off simply by killing the power or switching it off. This can lead to data corruption and damage. The system should be powered off from the Gnome System Menu, which you may have to exit MythTV to see, or with the IR Remote using the buttom sequence <Go><Power><Go>.


Initial Setup Tasks

Before you can properly used your new or moved LBMC there are a few things you need to do to configure it for your location.

1.) Set Time/Date for your location.
Go to the Gnome Desktop. If using a single monitor, you must exit MythTV, either by pushing the <Power> button on the IR Remote or the <Esc> key on the keyboard.

On the Desktop, from the top  bar drop down menu  find System -> Administration ->Time and Date 
Enter the administrative or 'root' password 'cosmos'. On the next screen set your Time, Date and Time Zone and click OK.



2. ) Getting your Electronic Program Guide Information.

The thing that drives all the scheduled program recording and live TV on screen  display  (OSD)  is  an Internet accessable program guide for your particular location, cable or TV provider. This service is made available for free (for now) by Zap2It DataDirect.

Zap2It DataDirect is a service provided by Zap2It, a subsidiary of Tribune Media Services. TMS is one of the primary providers for program listing data in the United States and Canada.If you wish to use Zap2It DataDirect, you'll need to establish a user account. Go to http://labs.zap2it.com and click on the "New User? Sign Up" link. Read the license terms, and if you agree with them click "Accept". The next screen is the subscription registration. In the "Certificate Code" field, enter ZIYN-DQZO-SBUT. Fill in the survey, then proceed to the lineup choices and configure your account for your particular location and the channels that you have. This configuration will be imported into MythTV when you first run the mythtv-setup program.

To run mythtv-setup you will need to open a terminal console, which you can think of as a window into Linux box's soul.  Again from the bar menu:

Applications -> Accessories -> Terminal


At the Terminal prompt type
mythtv-setup <Enter>



You may get a message that the backend is running. Press <Enter> to Continue. You will get the main setup screen.



With the highligthed choice on 1. General press <Enter> , then press <Enter> for Next 3 times to pass the following screens:




and get to this one:



If you disturbed any of the setting on the previous screens. Use these screen shots to set things right. This is very important.
On this screen you will need to adjust a few things for your location:

  TV format: NTSC        - for the US it is always NTSC, otherwise set it for your national format.

Channel frequency table:  us-cable-hrc      -  set this for the channel frequency table most often used in your area, this will set a default. Again, in the U.S. this will likely be us-bcast, us-cable, us-cable-hrc, us-cable-irc. us-bcast is for all antenna users, then there are 3 favors of cable. Which one is you? Who can tell? Maybe your cable company. Or you can just cycle through them and try live TV until you see which one gets your channels right. You might want to try that while you're on hold to your cable company. Let me know which method works faster.

Having set those two fields, press <Enter> seven more times to get back to the main setup menu.
From the main setup menu, now chose

3.) Video sources 

Then (Delete all video sources)

Then
(New video source)




In the Video source setup screen give the Video source a name, say media-one, I mean at+t, I mean comcast, oh no, now its time-warner. But really you don't have to change this name every time your cable company changes, what a pain that would be. But it is use to identify that program source to the system.

Assuming that you are using the Zap2It DataDirect service above,

XMLTV listing grabber: North America (DataDirect)

doesn't change. You must enter the User ID: and Password:  you created for the Zap2It account and then Retrieve Lineups, Then Finish
Then <Esc> back to mane main setup menu and choose

4. Input connections


On that screen, select the first Input connection select:

[MPEG: /dev/video0](Tuner)->


On this screen, <Tab> to Video source: and select the Video Source you created above.  Then optionally you may Scan for channels before selecting Finish. If all is well, the Scan for channels will find them. :-)



We are now done with mythtv-setup program, you can <Esc> out of it. Note the message at the last screen before you press <Enter>. This is a master backend server, so you will want to run 'mythfilldatabase' after you return to the Terminal prompt. So do it! Type:

mythfilldatabase <Enter>

It will run and should grab the next two weeks worth of program info from Zap2It. If it doesn't look, for problems. It can't be your Internet connection because you already fixed that when you tried to signup for DataDirect in the first place. After this initial data retrieval, you don't have to worry about it. The updates will happen automatically every few days, but you will have to renew the free service every three months. I just didn't want you to have to wait for the next regular update before you started using the system.

You now need to reboot the LBMC. You can do this by typing:

reboot <Enter>

at the Terminal prompt, or by selecting the red power-switch icon in the upper right corner of the Gnome Desktop, or by powering it off with the button sequence <Go><Power><Go> from the IR Remote. Then you have to turn it back on again. You can't do that from the remote yet.

You are now done with your initial setup and installation. Enjoy



Remote Commands

The LBMC is designed to be operated by the IR Remote for most home entertainment functions.
LBMC Remote

The Function Keys F1 - F6 can be programed to custom functions with MythWeb.

Keyboard Commands

Keyboard Commands allow a much more detailed control of MythTV than the IR Remote does. More Keys. :-) The keys.txt file describes what the various keyboard commands are. If you have loaded mythweb, you may change the default keys to your liking.

mythfrontend

Arrow keys used to move the highlight point around
ALT-F4 exit out of the application
Space/Enter take action on the item under the highlight point
P play in both "Watch a Recording" and "Delete a Recording"
D delete in both "Watch a Recording" and "Delete a Recording"
U to view details for the currently selected show on the Watch or Delete screens, EPG, "Program Finder", "Fix Scheduling Conflicts" and search results screens
O to list the upcoming episodes for the currently selected show on the EPG, "Program Finder", "Program Recording Priorities", "Fix Scheduling Conflicts" or search results screens
I edit recording options from the EPG, "Program Finder", "Program Recording Priorities", or "Fix Scheduling Conflicts" screens. From the Playback and Delete screens, 'I' presents options for recorded shows such as Auto Expire or Stop Recording. Pressing 'I' while on the Recording Options screen will take you to the Advanced Recording Options screen.

Watching TV or a recording

Up or down keys change the channel
num pad Type a number to enter a channel number or jump amount (HHMM format)
P pause / play. You may also add an explicit keybinding for 'Play' through MythWeb, returning you to normal speed if you are in slow motion, rewind fast forward or pause mode.
C change inputs on TV Tuner card
ESC quits
I puts the On-screen Display up again. During playback, 'I' toggles between position and show description info. If a jump amount is entered, jump to that position.
M brings up the electronic program guide (Grid) -- see the EPG section
Page Up jump back the configured number of minutes (default is 10)
Page Down jump ahead the configured number of minutes (default is 10)
End or Z skip to next commercial break marker
Home or Q skip back to previous commercial break marker
T toggle close caption support Pressing 0-9 (preferably 3 times) + T changes teletext page and turns on teletext.
F rotate between the various Picture Adjustments (Colour, Hue, etc.) While Picture Adjustment is on-screen, use Left and Right arrows to adjust. These settings adjust the look of the video playback, and are independent of the G-key settings used at record-time.
[ or F10 decrease volume
] or F11 increase volume
| or F9 toggle mute
/ jump to the next "favorite" channel
? mark/unmark the current channel as a "favorite"
U increase the play speed
J decrease the play speed
A Adjust time stretch (speed up or slow down normal play of audio and video
W cycle through zoom and fill modes: 4:3 aspect ratio, 16:9, 4:3 Zoom  (like Pan and Scan), 16:9 Zoom, and 16:9 Stretch (eliminates black  sidebars in TV signal)
F8 toggle the sleep timer 30m->1hr->1hr30m->2hr->Off
CTRL-B Jump to the beginning of the recording / ringbuffer
+ Switch between audio streams
Left (if a jump amount is entered) to jump back that amount
Right (if a jump amount is entered) to jump ahead that amount



Without the stickykeys option selected
Left rewind the configured number of seconds (default is 5)
Right fast forward the configured number of seconds (default is 30)
< starts rewind mode as if stickykeys are selected
> starts fast forward mode as if stickykeys are selected



With Stickykeys option selected
Right starts fast forward mode
Left starts rewind mode



In fast forward or rewind mode:
Left/Right increases the ff/rew speed
0 plays at normal speed, but leaves the time indicator on screen
1 or 2 plays back more slowly than normal ff/rew speed (1 is slowest)
3 plays back at normal ff/rew speed
4-9 plays back faster than normal ff/rew speed (9 is fastest)
Space exits fast forward or rewind mode



While video is paused:
Left rewind 1 frame
< rewind 1 second
Right advance 1 frame
> advance 1 second

Watching TV only

G rotate between the various Picture Adjustments (Colour, Hue, etc.) for recording. These values affect the look of the resulting .nuv file, and are independent of the playback picture settings. While Picture Adjustment is on-screen, use Left and Right arrows to adjust.
H Channel history. Each repeat steps back through the previous channels.
O Turns on 'Browse' mode, allowing user to browse channels and program info while watching current show FullScreen.
Y switch between multiple capture cards.  NOTE: you will lose your LiveTV buffer on your current card. Useful for different-sourced cards (such as Dish Network on one, HDTV over-the-air on another card.)


LiveTV Browse Mode

Left browse program prior to current listed program
Right browse program following current listed program
Up browse program on channel above current listed channel/program
Down browse program on channel below current listed channel/program
/ browse program on next favorite channel
0-9 enter a channel number to browse
Space/Enter change channel to channel of current listed program
R/r Toggle recording of current program (cycles through types)
ESC/O Exit Browse mode

Playback Recording Zoom Mode

Left Move video to Left
Right Move video to Right
Up Move video Up
Down Move video Down
PageUp Zoom In
PageDown Zoom Out
Space/Enter Exit Zoom mode leaving picture at current size and position
ESC Exit Zoom mode and return to original size

If you have two or more tuner cards

V toggle Picture-in-picture on or off
B toggles the window focus (lets you change channels on the PiP window)
N swaps the two channels by changing channels on both cards

Watching a recording only

Space/Enter set a bookmark at that point. Next time you start the recording, you will automatically jump forward to this point and clear the bookmark.
X queues the current recording for transcoding
O brings up menu to allow toggling settings such as Commercial Auto-Skip, Auto-Expire, etc.
D exits the current recording and displays the Delete menu
E or M enters/exits edit mode.





In edit mode
Left/Right move forward and backward
Up/Down alter the amount of time you jump forward and backward. Increments are: nearest cutpoint, nearest video keyframe, 1 frame, 0.5 seconds, 1 second, 20 seconds, 1 minute, 5 minutes, and 10 minutes.
PageUp/PageDown move forward and backward to the nearest cut point
< or > move forward or backward by 10 times the normal jump amount
Space/Enter allows you to set or delete a cut point
Z loads the commercial skip list (if one exists) into the cutlist
C or Q clear all cut points in the cutlist
I Inverts the cutlist

EPG

Arrows are used to move the highlighted program point around
A, D, S, W perform the same as left, right, down and up
PageUp/PageDown move the channel list up or down a page
Home/End move the highlight left or right by one day
Ctrl+Left or < move the highlight left by one page
Ctrl+Right or > move the highlight right by one page
9, 3, 7, 1 (like a numeric keypad) perform the same as PageUp, PageDown, Home and End
I bring up more information about a show, and allow you to schedule a recording. If you select "Record this showing" while watching Live TV you can "Instant Record" a program.
Space/Enter allow you resolve conflicts or change overrides. If the program is not already scheduled to record, it will instead act like pressing 'I'.
M when on a channel will change to that channel
ESC or C exits without changing the channel
R change the current item from Recording/Not-Recording. Successive keypresses cycle through the scheduled recording type list.
X change the channel to the currently selected channel without leaving the EPG (Most useful in the alternate EPG)
? mark/unmark the current channel as a "favorite"
/ or 4 toggle the guide listing between all channels and filtered "favorites"

Setting Program or Channel Recording Priorities

Right increases priority value
Left decreases priority value
1 sorts by title
2 sorts by priority
Home/End toggle sort priority
I edit recording options
ESC commits changes and exits

Viewing Scheduled Recordings/Resolving Conflicts

1 show all recordings
2 show only important recordings
Home/End toggle show showing all/important
I edit recording options
Space/Enter resolve conflict or override

Viewing Search Listings

Home change to the previous view if applicable
End change to the next view if applicable
M select another view if applicable. In the title and description search popup, press M again to edit or delete the selected view.

Recording Profiles Setup Screen

D on a custom profile group displays a popup to delete the group


Recording Groups

In the Watch Recordings screen, Recording Groups allow you to separate programs into user-defined categories, such as "Kids", "Alice", "Bob", etc. This can be used to reduce clutter, or to segregate content if you use the PIN function.

M change the view or to set a group password
I move a program from one Recording Group to another

Watch Recordings Screen

1 or F1 Meaning of the icons
/ Tags a recording. Tagged recordings can be played either in order or shuffled and deleted as a group. You can also change the recording group for several recordings at once by tagging them and using the popup INFO menu to change the recording group.
? Clear the tagged list.



Administrative Information

This might also be a opportune place to give you some basic administrative information:

The following users and password have been create for human use:
             User                     Password
             root                        cosmos            Administrative Superuser, "God"
             mythtv                   cosmos           autologin user for MythTV, also has Ubuntu administrative rights
             user0                     cosmos           normal user with Ubuntu administrative rights 

MySQL  users & password:
                root               cosmos
                mythtv           mofsarea

A number of administrative tools, as well as the Cosmos Engineering website are available by opening a browser to http://localhost. Firefox defaults to this home page. There you will find links to:

WebMin      @ https://localhost:10000              user  'root'            password  'cosmos'

    WebMin is a very full featured browser based administrative system for Linux.

phpMyAdmin  @        http://localhost/phpmyadmin        user     'root'        password    'cosmos'

     phpMyAdmin is a web based client for MySQL. While assumes some knowledge of sql databases, since the MythTV system is driven by the MySQL database, it can be a useful tool in skilled hands.

MythWeb      @ http://localhost/mythweb                  user    'mythtv"   password   'cosmos'

     This is a web based interface to the MythTV system. It will allow you to check system status, schedule recordings, even play misuc and videos over the network.

In addtion the normal Graphical User Interface (GUI), three virtual terminals can be accessed  with <Alt><Ctrl><F1> ... <Alt><Ctrl><F3>
Also a number of important system logs may be viewed in virtual terminals as follows:

<Atl><Crtl><F4>        /var/log/messages
<Atl><Crtl><F5>         /var/log/myth/mythbackend.log
<Atl><Ctrl><F6>         /store/temp/mtd.log

Filesystem Layout:

/etc/fstab:

#       <filesystem>                         <mount  point>      <type> 
        proc                                            /proc                     proc   
        /dev/sda2                                    /                            ext3   
        #/dev/sda1                                  /mnt/winmce        ntfs
       /dev/sda5                                     none                      swap
        /dev/hdb                                      /media/cdrom0     udf,iso9660
        /dev/fd0                                       /media/floppy0     auto
        /dev/mapper/store_grp-storelv   /store                    jfs

The storage file system uses IBM jfs format because of its ability to deal with large files easily. It is organized by Logical Volume Management (LVM) so that it can be easily expanded. It is divided as follows:

            /store/movie_images
            /store/movies
            /store/music
            /store/pictures
            /store/temp
            /store/videos

From MythTV How-To:

Scheduling Recordings.

The MythTV master backend is responsible for managing the schedule for all TV tuner cards on the master and any slave. Its job is to search the TV listing for the shows you have requested and assign recordings to the TV tuner cards. If none of the shows that you've chosen overlap, it simply records all of the shows. However, if there are shows where the beginning and end times overlap, the scheduler follows rules that you've specified or makes logical decisions about what would be best if you haven't express your preference. Further, the "Upcoming Recordings" page allows you make specific decisions about what you really do and don't want to record.

Record Types

When you choose a show that you would like to record from the Options Page, there are eight different types of rules to help the scheduler find which showings you would like to record.

Scheduling Options

Priority

By default, all shows you select have equal value to the scheduler. There are a set of rules to make good choices when two or more shows are in conflict. However, priority values let the scheduler know what you prefer so that it can set the schedule based on your preferences.

Initially all priority values are set to zero. You may choose to leave everything at "0" and let the scheduler follow rules to guess what you might prefer when there are conflicts. However, if you have one or two favorite shows, you may want to increase the priority value so the scheduler will know that you would prefer recording these over other shows. You might use certain values to rate shows so that all favorites are 2. good shows are 1 and extra 'filler' shows are all -1 for example. You could sort each title on the "Set Priorities" to have a unique value so the scheduler can always know which show you'd prefer versus any other show. The choice and style are entirely up to you. However, the more information you give to the scheduler, the more likely it will make the choices you would prefer in the first place.

The scheduler choices are based on the total priority for a showing by adding up four different priority factors. By default, most of these factors are "0" but you may use any combination to express your likes and needs.

Per record rule -- this is the "priority" field in the "Scheduling Options" section of the options page and this values is included for any showings that match the recording rule. You may choose to only use these values and not use the other factors for the sake of simplicity and clarity.

Per record type -- Setup->TV Settings->Recording Priorities->General allows you to add to the priority based on the type. It may make sense to increase the value for "Single" so that by default they have an extra advantage over other shows. The default is +1. You may want to decrease the value for Find rules so that they will be less likely to interfere with regular shows and will be more likely to record in a non-conflicting time instead. The default is -1.

Per channel -- Setup->TV Settings->Recording Priorities->Channel Priorities can be useful if you believe that you prefer any of the shows on certain channels. This would give all shows on a channel an advantage by default.

Input priority -- in the "mythtv-setup" program, the "Input Connections" section allows you to add additional priority in the "Input priority". This is simply another priority factor but has an interesting effect. If a card input has a higher value than the other cards, the scheduler will see that you would rather record showings of episodes on this input rather than a showing on another card. If you have multiple cards of different quality, you may want to set input priority to encourage the scheduler to record shows on your best card(s) whenever possible. This can also be useful if you have multiple video sources which include the same stations. For example, with digital and analog cable you could increase the digital cable input preference by 1 to tell the scheduler that you want to record from the digital station whenever possible but the station on the analog input could still be used when the digital input is busy.

For any single showing of any show you've chosen to record, these factors are added together to find the "total priority". This is the priority that the scheduler uses to decide which shows are given the first choice when filling in the schedule.

The scheduling priority of a show may also be used to determine auto-expiration of recordings when disk space gets full (see Auto-Expire, below).

Duplicates

Singles will record without regard to duplicate matching.

The standard recurring methods of All, Channel, Weekly and Daily use the descriptive information in the TV listings to try to record only one showing of each unique episode. However, This goal is sometimes complicated by the fact that the stations may not include a description for a specific episode but use a generic description for the series instead. When there is a generic description, the default behavior is to assume that it may be an episode that you have not seen and to record it for you. One of the duplicate matching options is "Record new episodes only". If this is selected, listing that have an original air date of more than 14 days earlier are considered repeats and are not eligible to record. Generally, generic episodes will be marked as repeats also.

Because of generic episodes and other situations, MythTV offers an alternative approach where shows may be recorded by choosing from multiple showings even when the descriptive information is not reliable. All of the "Find" record types look for matching titles in the listings. If there is a showing with specific episode information and that episode has recorded before, that showing is marked as previously or currently recorded. The scheduler will then choose to record the earliest non-conflicting showing from any of other remaining showings regardless of the descriptive information. Generally, Find One is most useful for movies or specials and the Find Daily and Find Weekly rules are best for news or current events shows that are repeated. However, these may be useful in other situations where the standard recording rules may not work correctly.

Conflicts

As you add more shows that you would like to record, the scheduler will eventually encounter conflicts. If there are two shows at the same time and you have two or more TV tuner cards, both shows will record. However, if there are more shows than cards, the scheduler will have to decide what it thinks it should not record based on the information you have given. If you see an unexpected situation you are not "stuck" with the scheduler's choice. You can still tell the scheduler exactly which shows you do want to record and/or don't want to record in any situation.

Scheduling decisions

Here are the actual decisions made by the scheduler as it fills in the schedule.

Reschedule Higher Priorities

Setup->TV Settings->Recording Priorities->General has a checkbox for "Reschedule Higher Priorities" which tells the scheduler to try to be a little smarter in certain situations. If this is checked, the scheduler will look for situations where a show cannot record because all inputs for the channel are used for higher priority shows. It will check to see if any of the other shows could be recorded at another time so that the conflicting show can be recorded in its place.

Generally, this is a good strategy but there are tradeoffs. If a higher priority show is postponed, you will not get to watch it until it is recorded in the later timeslot. There is also a risk that the TV listings may change and the later showing may go away. In this rare case the higher priority show may never record. On the other hand, if you do not use this option you will miss recording some lower priority shows unnecessarily unless you manually make similar changes.

By using Reschedule Higher Priorities, the scheduler will do a better job of recording as many of your shows as possible when left unattended. It will also be easy to see that shows have been marked to record at a later time. You can then decide for yourself when you would prefer to record the first showing by clicking "Record anyway".

Controlling Your Schedule

The Manage Recordings->Upcoming Recordings page is your control center for the MythTV scheduler. Unlike other DVR systems, this one page gives you all of the information and tools you need to see all of your alternatives and make whatever adjustments you desire.

The upper half of the screen has a scrollable box listing items that match your record rules sorted by time. The lower half shows the details for the highlighted item. There are two 'views' available. Press "1" to include all of the items that match record rules even if they do not need to be recorded. Press "2" to focus on just the things that will record and items that may need your attention. The message in the upper right-hand corner will remind you when there are conflicts that would prevent one or more shows from being recorded.

The items in the list are colored in the record color for things that will record, white for things that may need attention, gray for those that do not need to record and yellow when there is a time conflict. Items at the top of the list may also be highlighted indicating that the recording is in progress.

Along with the channels, start times and titles, the right-hand column has a status code. Numbers indicate which card number has been assigned to record the show. Letters are used to indicate the reason that something will not be recorded. Just below the box is a short status message for the highlighted item that indicates the type of record rule that was matched, the "total priority" for this showing and a one or two word explanation of the status code. If you press SELECT, you will see more information about the status.

There are a few status codes that may require your attention. "C" indicates that there are more overlapping shows to record than there are TV tuners to record them. "L" indicates that the scheduler found that it may be better to record a later showing of this episode. These states happen as a result of your choices and should normally reflect your preferences. However, you may notice situations where you would like to modify the scheduler's initial choices.

The first thing you can do is to highlight an item and press INFO to see the recording options page. From this page you can change the record rule type, the duplicate matching rules, or raise or lower the priority to resolve whatever problem you noticed.

Additionally, you can treat any individual showing as an exception that you do want to record or don't want to record. To use these "override" features, highlight the item and press SELECT. You will see a message explaining the current status and at least an "OK" button to exit without making changes.

For items scheduled to record, there will be a button for "Don't record" which will prevent recording this showing but will still allow the same episode to record in the future. If there is episode description information, you may also see a button for "Never record". This prevents recording this showing and tells MythTV to remember that this is an episode that you've seen or don't need to see if it is ever in the TV listings again.

For items that are not scheduled to record, the message will describe the reason and in the case of "C" or "L" it will include a list of the shows that are scheduled to record instead. For any item that could potentially be recorded there will be buttons for "Edit Options" and "Add Override". "Edit Options" will allow you to change the options for the existing record rule such as raising the priority so that the show will record. These changes would apply to this and all future showings that match this record rule. "Add Override" will allow you to set options that apply to the specific showing without affecting the recurring record rule.

If you return to an override page after an override has already been set, you will also see a "Clear Override" to undo your changes. This option makes it very easy to try out some "what if" attempts when deciding on your best strategy in a difficult situation.

For a recording in progress, there will be a "Change Ending Time" button. This will take you to the options page for a Single or Override or create an Override if it is a recurring rule. Here you can go to the Recording Options section to change the program end time offset. If you extend the end time so that it overlaps upcoming recordings, the schedule will change to accommodate the new end time. This may cause a conflict or later showing even for a show with higher priority. Therefore, it is a good idea to check your schedule after changing the end time of a recording in progress.

Storage Options

Recording Profile

Each recording rule can be configured with a different recording profile. For example, colorful cinematography can be configured with a "High Quality" profile, while 'talking heads' interviews shows can be configured with a "Low Quality" profile. These recording profiles need to be configured before using them (see Recording, above).

 Recording Group

For organization of the "Watch Recordings" screen and the MythWeb interface, recordings can be assigned into "recording groups".

 Playback Group

This selects a set of pre-configured playback parameters which can be created and edited in Setup->TV Settings->Playback Groups. When the recording is played, the values from this playback group will be used. This allows you to choose a default time stretch value, skip and jump amounts appropriate for this type of television program.

 Auto-Expire

MythTV will "autoexpire" old recordings to make room for new recordings when disk space gets filled up. This option can be set to "Don't allow auto expire" to prevent these recordings from being automatically deleted when disk space fills up.

The default setting is for all scheduled recordings to be eligible for auto-expiration; this can be changed in the Settings->TV Settings->General page by manipulating the "Auto Expire Default" checkbox.

The default auto-expire policy is "Oldest Show First"; the oldest recordings are deleted first. The "Lowest Priority First" method chooses to expire the lowest-priority recordings first.

Episode Limit

An episode limit can also be configured to limit the maximum number of episodes recorded of a single series, to restrict that series' disk usage. If this is set, you can further decide what to do when this limit is reached; either stop recording that series, or to delete the oldest episodes in favor of the new ones.

Post Recording Processing

Commercial Flagging

Select whether or not to automatically flag commercials for these recordings. Commercial Flagging parameters can be set in Setup->TV Settings->General.

Transcoding

Select whether or not to automatically transcode recordings to save disk space. Before using this, you must first enable auto-transcode in the recording profile and configure the transcoding parameters; see Recording, above.

User Jobs

User Jobs allow you to configure up to 4 custom commands to run on recordings. They can be configured in mythtv-setup. The following tokens have special meaning when used in the User Job commands:

Advanced Recording Options

Creating Power Search rules with Custom Record

MythTV's "Custom Record" feature gives you unlimited control for creating specialized search recording rules to meet your needs. It allows you to choose your criteria to search for matching shows based on any of the information in the program listings, channel information, time functions and more. This goes beyond the capabilities of any other DVR system and it is unlikely that this level of scheduling customization will ever be available in any commercial DVR system.

Getting Started

Go to Schedule Recordings->Custom Record. This page, helps you build a database search one clause at a time. Each added clause further limits which showings will be matched in the TV listings. You can test the search at any time and when you are done, you can save your search as a recording rule.

To familiarize yourself with how you can create custom rules, create a simple rule to record "Nova" only in primetime.

The first item at the top of the page allows you to edit an existing rule or create a new rule. Leave it on "<New rule>". Arrow down to the third item which says "Match an exact title". Right and left arrows would allow you to select any of several prefabricated pieces or full examples but leave it on the default for now. Arrow down to "Add this example clause" and press SELECT (Enter or Space on a keyboard). The large text box should now show:

     program.title = 'Nova'
As you have probably guessed, this says that we want to search for all programs with the title "Nova" regardless of the time, day, channel, etc.

If you do not receive a PBS station that carries "Nova" or would like to use another title, edit the title by pressing the down arrow to highlight the text box and right arrow over the the word "Nova". If you are using a keyboard you can simply delete the four letters and type a different title between the quotes. With a remote control, you can do 'cell phone' style text entry with the number pad. The delete key is the "X" in the grouping for "1", zero is grouped with "9" and "0" acts as the "Caps Lock" key. With MythTV version 0.19 or later, you can press ENTER in the text box to popup a virtual keyboard.

Note: the text box honors many familiar Emacs control keys. It is also possible to cut and paste text into the text box so you can edit with a favorite editor or insert a rule sent in email or from other sources.

In any case, choose a title that is shown both in primetime and late night or daytime. Next, click the "Test" button. You should see a list of the upcoming episodes for "Nova" just as if you had clicked the Upcoming button for "Nova" elsewhere in MythTV.

Press ESC to go back to the Custom Record page. Move to the example selector then press the right or left arrows until you find "Only in primetime". Click "Add this example clause". You should now see:

            program.title = 'Nova'
AND HOUR(program.starttime) >= 19
AND HOUR(program.starttime) < 23
Click "Test". You should now see a shorter list with only the showings that begin between 7PM and 11PM. To create a rule for this, press ESC to go back to the custom page and move to "Rule Name:" then type "Nova" or anything else you would like. This is only a label and will not affect the search results. Once a name has been entered, the "Record" button will light up. Click this to enter the recording options page. If you named it "Nova" the title will say "Nova (Power Search)". Set whatever options you would like then click "Save these settings". You now have a special rule to record "Nova" but only when it is shown in primetime.

You can make further modifications to this rule by returning to the Custom Record page then press the right or left arrow keys on "Edit Rule:" until you find "Nova". You can experiment and test but the saved rule will not be updated until you click "Record" then "Save these settings".

To remove this, or any other rule, you can go to the "Recording Priorities" page, arrow down to the title, press Enter and change the the recording type to "Do not record this program" then "Save these settings".

How it Works

MythTV stores TV program information in a database and uses the Structured Query Language (SQL) to access the data. Information about each TV program is stored in the 'program' table and information about each TV station you receive is stored in 'channel'. These two tables are used in the scheduler queries and their fields are available to be used in your rules. The rules you create are stored in 'record'.

Normal rules in MythTV simply match the title in the rule with the titles in the 'program' table. MythTV also has search rules for "Titles", "Keywords" and "People". These store the key phrase in the description field of the rule and includes them in specialized SQL replacements for the normal title check. There is also a type called "Power Search" which takes the raw SQL in the description as the replacement for title matching.

Custom Record is a tool to help you build valid SQL for Power Search rules. You do not need to be a SQL expert to use Custom Record because the examples are known to work correctly and are usually self-explanatory so you can choose the pieces you need then modify them. Many powerful solutions to unique problems are possible by combining the examples. With some creativity and some knowledge of SQL, the possibilities are limitless.

Common Tricks and Tips

The example clauses marked "complete example" are actual rules that have been used to address specific problems. You may find that some of these are useful for you as-is or with slight modifications. These show off how powerful custom rules can be but there are also several simple idioms that you may find useful for many of the shows you would like to record.

Wait for a known title -- If there is a movie that you anticipate will be televised in the coming months but is not yet in the listings, you can select "Match an exact title", edit the movie title, click "Record" then choose "Record one showing of this title". The rule will wait weeks, months or years until this title shows up in your listings then it will record one showing. These rules have no impact on the scheduler throughout the day and only take a tiny fraction of a second when the master backend starts or when the listings are updated.

Silence series out of season -- "Celebrity Poker Showdown", for example, will have new episodes for a while then long periods where reruns are shown dozens of times per week. By checking the previously shown flag you can create a rule that will only match new episodes. Therefore, your schedule won't be polluted with dozens of entries marked as "Repeat" or "Previously Recorded".

       program.title = "Celebrity Poker Showdown"
AND program.previouslyshown = 0
This allows you to keep rules for your favorite shows that are dormant while out of season but will spring back to life when new episodes appear.

Choose showings on certain days -- Several cable stations will show their highest rated shows a dozen on more times per week. However, the scheduler only needs two or three choices to do a good job of making a flexible choice.

       program.title LIKE "Celebrity Fit Club%"
AND DAYNAME(program.starttime) = "Sunday"
This says to choose any showing of an episode that hasn't been recorded when it appears on Sunday. This prevents all the other showings during the week from being listed in the schedule.

Notice the word "LIKE" and the "%" at the end. This does wildcard matching so that this would match even if the title ended with "2". "III" or ":Revenge of the Snapple Lady". This can be useful where the title may change from one season to the next like "Survivor: %", "Big Brother%" or "The Amazing Race%".

Working with SQL

As you experiment, it is possible that you may misplace a quote or mistype a word. If there is a mistake when you press "Test" or "Record" you will see an error message returned from the database. This will usually give you a good idea about what needs to be fixed. However, for more subtle MySQL syntax errors, you can find more information in the documentation at http://dev.mysql.com/doc/mysql/en/. This contains a lot of information that can be useful for Power Search rules such as the "Date and Time Functions". There are many other good resources for SQL on the Web.

While the example clauses demonstrate how to use many of the data fields, you can get a more complete list of all the fields that are available by using a MySQL client program:

$ mysql -u mythtv -pmythtv mythconverg
mysql> describe program;
mysql> describe channel;
This will show the names of all of the fields along with their type and default value. Most are easy to understand but a few need some explanation in order to use them effectively with Power Search.

Finally, if you are doing something very experimental and a field is not giving you the results you had anticipated, you can always check the MythTV source code to see exactly how a field is used. The open source for MythTV is available from http://www.mythtv.org/ .


Watching a DVD or VCD

MythDVD is a MythTV module (see http://www.mythtv.org) that allows you to play DVDs and (optionally) VCDs. It can also be configured to let you rip DVDs and transcode their video and audio content to other (generally smaller) formats. The playing features are simply myth-style wrappers for
your favorite DVD/XVCD playing software (mplayer, ogle, xine, etc). The transcoding is based on and derived from the excellent transcode package
(see below).



Ripping a DVD


Subtitling with transcode is pretty much a hit or miss affair. Some DVDs work extremely well, and some generate awful results. If you find that
MythDVD transcodes a title with subtitles badly, you are encouraged to try and use transcode from the command line. Hopefully, future versions of
transcode will offer more robust subtitling capabilities.

You can keep AC3 audio in the transcoded files. For Dolby 5.1, this is probably a good choice as long as your myth box has some way to handle 6 channel sounds (e.g. SB Live passthrough).


MythVideo

INTERNET INFORMATION

MythVideo now supports contacting internet sites to grab information about the videos found. It does this by cutting out unnecessary information in the filename and doing a search. MythVideo will also grab a movie poster or coverart if it is available.

In order to start this process, once your videos have been scanned by MythVideo, in the 'Video Manager' screen, simply select the video you want
to find information/artwork for. MythVideo will contact imdb.com. If there is just one result returned, MythVideo will use the information from that
page. Otherwise, MythVideo will present you with a list of movies and the year of the movie.

IF MYTHVIDEO DOES NOT FIND YOUR MOVIE OR JUST SEEMS TO DO NOTHING - Do not despair! MythVideo also allows you to enter the IMDB Movie number manually. To enter a movie number manually or reset an entry in the event of bad information, simply hit 'M' and select either 'Reset Entry' or 'Manually Enter IMDB #' (depending on what you want to do).

If that fails, or you wish to set the cover art by hand, then just hit a number key on your remote. All will be well.

PARENTAL LEVEL INFORMATION

MythVideo now (really ... honest) supports the ability to limit what can be viewed without a password/pin. There are 4 different levels that a
video/file can be set at. From within the configuration you can select a default level. Any videos/files at or below that level will show up in the
list.

MythVideo will only stay at that level until you try to change the level (by hitting keys 1-4 in the Browse or List screens).

Note: A video that is set to level 0 will not be seen in any lists other than the video manager. The Video Manager has complete control over the
parental levels of each video. For this reason, if the level 4 password is set, you will be prompted upon entering the Video Manager for the level 4
password.

MythMusic

MythMusic was written by Isaac Richards <ijr@po.cwru.edu>

MythMusic is the plugin that MythTv uses for all your mp3 needs. You can browse through large music collections stored on the local hard drive, CD/DVD or an alternative source on your home network and play music back in an ultimate mp3 jukebox fashion.

As we are in the world of Linux you will certainly come across Ogg and Vorbis formats for compressed music files. These formats are unpatented unlike mp3, wma etc.

You can of course extract music from audio cd's to your mythbox using the "Import CD" feature. The first process is to 'rip' the audio from the CD, the audio is then 'encoded' to a compressed format such as mp3. If connected to the internet your mythbox can identify what disc you have put in the drive and retrieve the relevant track/artist details.

Troubleshooting tip:

The "import CD" feature may fail using "ogg encoder". If so, try switching to mp3 encoding, which should provide a workaround until a permanent solution arises. Music encoding may also fail due to insufficient heat dissipation within your PC case.

Mp3/ogg encoders are demanding of a CPU, and the heat generated can cause erratic results in the CPU or RAM. (Note: Modern CPUs will usually shut themselves off before reaching damaging levels of heat, but this does not guarantee rock-solid performance before that point.)

Using MythMusic

MythMusic is fairly simple to use. It is recommended that you insert the CD before selecting "Import CD".

Playlist Management

Another item to consider: there are some CDs that contain computer data that runs as a "CD Extra" when inserted into some Windows PCs and Macintoshes. As of 2003-06-10, MythMusic doesn't support track skipping or individual track selection, so if you have a CD with "CD Extra" data you will not be able to encode it; MythMusic will hang attempting to encode the non-audio data.

Here's some information on playlist management:

Q: How do I create a new playlist? A: Using the MythMusic "Select Music" menu option, setup the playlist as you normally would by adding songs or other playlists as needed. When you are ready to save the new playlist, highlight "Active Play Queue" at the bottom of the selection tree and hit the "i" key. This will pop up a menu allowing you to name and save the new playlist. You can also hit Enter to bring up the popup on the Active Play Queue. This does not work on the playlists above, as Enter is obviously bound to checking/unchecking the boxes. Any number (ie. keypad on remote) will also bring up the menu in both cases.

Q: How do I enter the playlist name in the text field without a keyboard? A: Use the keypad number keys (bound to your remote) to select letters quasi-cell phone style. Keys 2-9 work pretty much like any cell phone text entry. 1 cycles through a few special characters, delete, and space. 0 is like a CAPS LOCK. Hard to describe, fairly easy to use. You will soon be able to specify the cycle timing in a Setup screen. You can type fairly quickly through a combination of jumping around the number keys AND hitting a non-number key (right arrow is particularly good for this) to force the current character.

Q: How do I edit a playlist? A: Highlight the playlist in the selection tree and hit the "i" key then select "Move to Active Play Queue" in the popup. You can now modify the "Active Play Queue" like normal, adding songs and playlists by selecting them from the song tree. When you are done, highlight the "Active Play Queue" in the selection tree and hit the "i" key then select "Save Back to Playlist Tree". And whatever you were editing as your Active Queue before you moved an existing playlist "on top" of Active reappears. Think of Active has having a push on, pop off capability, but with a depth of only 1.

Q: How do I delete an item from a playlist? A: Highlight the item in the selection tree and hit the "d" key.

Q: How do I rearrange the songs in my playlist? A: Highlight a song and hit the "space" bar, the song will now have pair of red arrows in front of it. Use the up and down arrow keys to move it around in the playlist. When you have it where you want it, hit the "space" bar again.

Q: How do I delete a playlist? A: Highlight the playlist in the selection tree and hit the "i" key then select "Delete this Playlist" from the popup.

Useful keys to know

Troubleshooting MythMusic

You may run into errors when running MythMusic.

When I run MythMusic and try and look up a CD, I get an error message

The full text of the message will say:

databasebox.o: Couldn't find your CD. It may not be in the freedb database. More likely, however, is that you need to delete  /.cddb and  /.cdserverrc and restart mythmusic. Have a nice day.

If you get this message, you should go to the home directory of whatever user MythMusic is running as ( /home/mythtv )  and type:

rm .cdserverrc

rm -rf .cddb/

These files aren't automatically deleted because of a conscious design decision by the author that programs that automatically delete things are bad.

The files are used to locally cache CD lookups. If you are re-inserting CDs, your machine will not actually have to go out to the Internet to determine what is on them. However, the URL used to access the freedb database has recently changed, so the stale information in the files from previous runs of MythMusic would cause the error above. Once the files have been deleted the stale information will be gone and your local database will be rebuilt as you use CDs.

MythGallery

MythGallery was written by Renchi Raju <renchi@pooh.tam.uiuc.edu>

When you first start MythGallery, you will see a thumbnail view of any folders and pictures in the Gallery Directory you specified in setup. If this is the first time you have accessed this directory, the thumbnails will be generated on the fly. If the Gallery Dir is writable, these thumbnails will be cached thus speeding up future access. On the left is a greyed-out menu of options.

Use the arrow keys to select a folder or picture to open/view with the Select key, or use the Menu key to toggle access the menu on the left. The menu options are as follows:

USAGE:

This should be really simple to use -- just browse around with the
arrow keys and select images/directories to view with the space/enter
keys.  Escape backs out a level, and hitting 'p' while viewing a
single image or while an image icon is highlighted will start a
slideshow playback of all images in that directory.  Image rotation
can be done by pressing the [ and ] keys. To toggle activating the
menu on the left in the thumbnail view use the 'm' key.

Default Keys:

Thumbnail View Keys:

M      - Toggle the menu
P      - Start SlideShow
Home   - Go to the first image in thumbnail view
End    - Go to the last image in thumbnail view
Enter/SpaceBar     - Open a Directory/View an image.
Left,Right,Up,Down - Navigate through images/directories

Image View Keys:

P      - Start/Stop SlideShow
],3    - Rotate image right 90 degrees
[,1    - Rotate image left 90 degrees
7      - Zoom out of image
9      - Zoom into image
2      - Scroll image up
4      - Scroll image left
6      - Scroll image right
8      - Scroll image down
5      - Recenter image
0      - Full-size (un-zoom) image
PageUp - Go to the upper-left corner of the image
PageDn - Go to the lower-right corner of the image
I      - Toggle Showing Information about Image


When IMPORT is pressed in the menu each item in the import directory search path will be examined.  If the item is a directory, its
contents will be recursively copied to a new directory whose name is the current date and time.  Using this method, removable devices can
be put in the search path if they use an automount system (see the Linux documentation for info on how to use automount systems).  If the
item is an executable file, it will be executed with 1 argument consisting of the name of the new subdirectory.  This way, import from
a removable device can be accomplished without the use of an automount system.

Importing Pictures

The import path in the setup dialog is a colon separated list of directories and/or executable files. When the import key is pressed, a new directory (the destination directory) under the current directory will be created and the import path will be searched. If the item in the import path is a directory (the source directory), the contents of that directory will be copied to the destination directory. If you would like the source directory to be that of a removable device, it might be a good idea to use autofs. See the automount howto at www.linuxdoc.org for info on how to get it working.

If the item in the import path is an executable file, MythGallery will attempt to execute it with the destination directory as its sole argument. Be careful when using executable scripts that the script runs unattended (doesn't need user intervention) and returns properly, otherwise it could create the appearance of MythGallery hanging (e.g. running smbclient and prompting for password). Also be sure that scripts have executable permissions set.

Here is an example script that a user may want to run on import:

#!/bin/csh

if ($#argv == 0) then
echo "Usage: $0 dest_dir"
exit
endif

cd $argv[1]

# get stuff over the network
wget http://www.somesite.dom/dir/file1.jpg
wget http://www.somesite.dom/dir/file2.jpg
wget http://www.somesite.dom/dir/file3.jpg

# stuff that requires manual module loading and/or fs mounting
modprobe camera_module
mount /dev/camera /mnt/camera
cp /mnt/camera/* $argv[1]
umount /mnt/camera
rmmod camera_module

# perform some processing
foreach pname (`ls *.jpg`)
jpegtran -flip vertical $pname > $pname.new
mv $pname.new $pname
end


MythWeather

MythWeather allows you to get local weather forcasts with minimal setup. All you need to do is choose your location and it does the rest.  The location selection is not in the application itself but in Utilites /Setup >Setup>Info Center Settings > Weather Settings. You may also force mythweather to re-run the configuration by starting it on the command line as mythweather --configure. These two options are mutually exclusive.

CONFIGURATION

MythWeather configuration is now done in MythWeather...

To enter the configuration section, press 'i'. From here you can select:

1. Units (lets you pick between Imperial and SI)
2. Location (pick the letter your city begins with, then find your city in the list, see below for key binding which should make this quicker).
3. Aggressiveness Value (this is how fast MythWeather will timeout while trying to get weather data).

NOTE: You don't need to do anything other than pick the desired setting. Once highlighted, just hit the left arrow key to go to another setting or when  you are finished with the configuration, hit the 'i' key again to save. If you want to cancel your changes press the ESCAPE key.

NOTE: If you keep getting "!!! 3 Failed Attempts !!!" (everytime you try),  pick a city that is nearby.

NOTE: If you can't find your city but you can find it at MSNBC.com's Weather Site, let me know the city name/accid.

MYTHWEATHER KEYBOARD COMMANDS
-----------------------------
   Left Key             Goes back one page, this also extends the time spent  on the page you are at.
   Right Key            Goes forward one page, see above.
   'p' Key              Pause, wait on the current page until space is hit  again.
   Numeric Keys         You can check other weather by keying in other ZIP codes.
   'm' Key              Switch between celsius and fahrenheit. Can also be used a way to force a data update.
   Enter Key            Resets the location to the database default, then updates the data.

   From within Configuration:

       Key      Action
       ---      ------
        1       Up 25
        2       Up 50
        3       Up 100
        4       Beginning of List
        5       Middle of List
        6       End of List
        7       Down 25
        8       Down 50
        9       Down 100
        i       Exit & Save Configuration
       ESC      Exit Without Saving


OTHER INFORMATION

Current the program cycles through the three pages. Each page is shown for 10 seconds. When the user intervens and changes the page
it waits for 20 seconds. The weather data is updated every 30 minutes or until the user selects a new zip code (or even the current zip code
again).

Monitoring Weather


MythWeather uses MSNBC.com as its source for weather data and weather.com for its radar image.

These are the keyboard commands for MythWeather:

Left Key             Goes back one page, and extends the time spent
on the page you are on.
Right Key Goes forward one page, see above.
Space Pause, wait on the current page until space is hit
again.
Numeric Keys You can check other weather by keying in other ZIP codes.
Enter Key Switch between Celsius and Fahrenheit. Can also
be used a way to force a data update.
"m" Key Resets the location to the database default, then updates the data.
"i" Enter / Save settings
ESC Exit the settings screen without saving / Exit the program

MythWeather also has an "Aggressiveness" setting. This affects how long MythWeather waits for data from the msnbc.com website before timing out. If you are on a slow connection, or have a slow DNS, or MythWeather just doesn't seem to be working and you've already tried everything else, then try increasing the aggressiveness level parameter. This parameter is inverse; a higher number actually means that MythWeather will be less aggressive, and will therefore wait longer before timing out.

MythWeather will print debugging information on the terminal. If you wish to see additional debugging information while MythWeather is running, run mythweather from the command line with as mythweather --debug

You may also force mythweather to re-run the configuration by starting it on the command line as mythweather --configure. These two options are mutually exclusive.


MythPhone

MythPhone was written Paul Volkaerts

User Guide - How To Get Started

This is meant to be a quick guide to getting started with MythPhone. I'm probably the worst person to write this being the author so please send feedback where this is not clear or extra steps are required.

1. Get your webcam going. (Webcams are optional) When properly configured, the webcam will spring into life as soon as you enter MythPhone, in the left-hand pane. The only config option necessary to get it going is the Webcam-Device option, which should be set to something like /dev/video0. If it isn't working, check the console output for errors like "Could not open /dev/video0" or "Webcam format not supported". Also it is worth trying other linux programs to make sure your drivers are loaded properly.

2. Choose what to Register to. Whilst you don't have to register, it is highly recommended. You can register to a public service (I use Pulver) or to Asterisk. If it is to a public service you will need to create an account with them. For Pulver, go to fwd.pulver.com. If you have several Mythfrontends and intend to use Mythphone on them all, you need a separate account for each one. This way they have different phone numbers and you can call between them. If someone has instructions on how to configure Asterisk I will gladly post them here.

3. Register. Once you have created your account with Pulver or similar, go into Mythphone Settings. On the first screen check the "Register" checkbox, enter the URL to register to, and enter the authentication name (number) and password. The final field is just a display name you can set to anything - it is what other people will see when you call them. You now have to exit mythfrontend and restart it. When you restart it the console should say something like "SIP Registered to xxxx". Enter the Mythphone plugin and the status bar at the foot of the page will tell you whether it registered successfully or not. If it does not work, you may have to do STEPS 4 and 5 (NAT) first.

4. MythPhone NAT Settings.Unless you are using Asterisk and are making calls completely within your home, or you have public IP addresses provided by your ISP, you will need to do this. Private addresses usually take the form 10.x.x.x or 192.168.x.x. You have to tell MythPhone what your public IP address is. Some ISPs provide a single IP address that is static. If so, set parameter NAT Traversal Method to "Manual" and enter this IP address in the NAT IP Address field. This is the most efficient method. If the ISP does not give you a static IP address, or you don't know what it is, then set the NAT Traversal Method to "Web Server" and enter "http://checkip.dyndns.org" into the NAT IP Address field. You then need to restart Mythfrontend; and on restart it will go to this web-server and automatically detect your public IP address.

5. Router NAT Settings.You may need to make some settings on your Router to allow the traffic through. I have a Linksys router and these settings appear under "Applications-and-Gaming --- Single-Port-Forwarding". By default the following ports should be set to forward to the device running MythPhone for UDP traffic: 5060 (SIP), 21232 (Audio) and 21234 (Video). All of these can be changed within MythPhone Settings. If you have more than one MythFrontend running MythPhone, make sure these settings differ on each machine and add all of the ports into the router.

6. Loopback Test.Go into MythPhone and (if you have a webcam) hit "L". There are two loopback options; local and NAT. Try the first one first. This will just check the software is working. You should see the local webcam in the left pane and the looped-back video in the right pane. Cancel this by hitting "L" again. Hit "L" once more and this time choose the second loopback option. This bounces the video of your local router checking your NAT settings. This will not work on all types of router, so if it does not work it does not really prove anything :-(

7. Setup your Microphone.The only setting within Myth is the "Microphone Device" setting under the phone settings page. Set if to the OSS device for your webcam, such as /dev/dsp1. I use the microphone built into my webcam using the usb-audio driver and this works well. Note: using the same device as both speaker and microphone is untested.

8. Test Calls.Time to make some test calls. Go into mythphone and just type a test number. On Pulver, 613 gives you an echo test. When done, hit "O" or ESC to clear the call. If you are not using Pulver, you will have to work out some other way to make test calls. If you have several MythFrontends you can call between them.

9. Tune Video Settings.Tuning video is really a matter of setting your transmit resolution and frame rate. For ADSL the best transmit resolution is 176x144, with a frame rate of 4-5 frames/second. You can change these settings mid-call so it is best to start conservative, call someone, then tweak them upwards until it breaks.

10. Add your friends to the Directory.MythPhone has one directory shared by all MythPhones on your system. When a Mythfrontend with MythPhone plugin first starts, it adds itself to the directory database. This makes it easier when you have several MythPhones for the endpoints to call each other. To add other people, hit MENU then follow the instructions. Note the MENU button is context sensitive, depending on where you are in the directory viewer.

11. Setting up advanced options.Some advanced capabilities such as presence take no setting up. The coloured presence icons are automatically shown for everyone in the speed-dials group. Other advanced capabilities like Voicemail or reading of the TV guide require the "VXML Page" settings to be set. Specifically, set the "DEfault VXML URL" to point at where your mythweb is located; e.g. "http://127.0.0.1/mythweb/vxml/index.vxml".


FEATURES / HOW-TO-USE

Mythphone uses a SIP stack to allow voice and/or video calls to be placed to other SIP clients. This includes other MythFrontends on your
system, Mythfrontends over the Internet, or other standard SIP clients.
Mythphone operates best when registered to a Service Provider such as Free World Dialup but this is not mandatory; especially if you only want to call between MythFrontends on your local LAN.

Accounts with FWD are free; just go to http://www.fwd.pulver.com and sign up. Mythphone should work with a variety of similar services but I
have only tried a couple.  Your experience, positive or negative, with other providers is welcome.

Features:

* Contact database for click-dialling
* Voice calls at G.711 20ms
* Video calls at H.263
* Pan and Zoom for video calls, useful if your web-cam captures at a higher resolution than you transmit
* Voicemail
* Send/receive DTMF (RFC 2833)
* VXML scripting with Text-To-Speech engine allows you to call in and hear the TV Guide / set recording etc
* Full screen video
* Call history
* Popup whilst watching TV shows a call is coming in; though currently you have to navigate to mythphone to answer it.
* NAT and Firewall handling (see below)

Keys:
* Up/Down/Left/Right/Select/Exit for most features
* Menu (M) key is context sensitive
* Play (P) during a call toggles video into full screen mode
* Home/End during a call zooms local webcam
* U/D/L/R during a call pans the local webcam
* 0..9, * and # during a call send DTMF
* 0..9, * and # NOT during open a dial dialogue
* Volume Up/Down changes the speaker volume; but whilst in volume-change mode you can use Up/Down to switch to Brightness/Colour/Contrast/frame-rate etc.
* Mute (|) mutes the microphone during a call


If you are registered with fwd.pulver.com (or similar) you call someone by typing their phone number.  If you are not registered with a Service Provider then you need to dial a full URL, of the form name@hostname or name@ip-address.
This is obviously a lot more hassle when using a numeric remote control!
Contacts can be added to the directory either before calling them (using the Menu button) or after placing/receiving a call by going to the call-history entry then pressing menu. Once in the menu; it is a lot easier to call people using the remote.


Status-Bar:
The status bar, when in a call, shows
* other party name
* Audio & Video packet loss as xx%/yy% where xx% is percentage packet loss over the last 2 seconds and yy% packet loss is total for the call. This tells you how good your receive signal is
* Bandwidth. This is a total figure for voice+video. If it read above 256k and you only have a 256k upstream link then the person you are speaking to is going to get a pretty poor signal. Use this to match the transmit rate to your available upstream bandwidth. You can reduce by lowering the video resolution or frame rate.

WEB-CAM SUPPORT

I use a Logitech webcam with the Philips PWC driver built into the kernel (Linux 2.4.23).  For this to work at reasonable rates you need to download
the decompression module pwcx.o and install using "insmod --force pwcx.o".
You get this from www.smcc.demon.nl/webcam.

This webcam stores its settings locally; so you can download "camstream" from the above URL to tune its settings.

You also need to set the Frames Per Second when the module is loaded too, as there is no support in this application for writing to these Phillips-specific parameters. (The FPS attribute in the setup screens tells the software what to expect from the webcam; it does not configure the webcam).

I also use the microphone built into this webcam by enabling the kernel option for USB audio.

Webcam transmit frames/sec and resolution can be changed mid-call or between calls using the volume+/- buttons then cursor keys.

NAT and Firewall

If you have NAT, and your ISP always gives you the same IP address, you can set the NAT to "manual" and enter this IP address. This is the most efficient way to handke NATs.

If you have NAT but your ISP can give you a variable IP addresses, you can select the option "Web Server" and enter a URL such as "checkip.dyndns.org". This is a web site which returns your real address in response to a HTTP GET. It will consult this web server for every call.

Calling between local Myth Frontends that are on the same LAN is supported by a checkbox on the directory entry called "On Local LAN".  Myth Frontends automatically create directory entries for themselves with this checked.

At your network router, you may need to configure it to forward port 5060 to your Myth box that you want to receive calls.

If you have a firewall, you may need to open up port 5060 and whatever ports you choose for audio and video media in the config screens.

MICROSOFT XP MESSENGER COMPATABILITY

Video calls can be made to/from a Microsoft XP Messenger client.  I have tested this against Windows Messenger 4.7.  Note this is "not" the same
as MSN Messenger!!!

Windows Messenger is, in its default mode, not a standards compliant SIP endpoint.  But it does have SIP support that you can enable as follows.

1) Create an account for the Windows client at a Service Provider such as fwd.pulver.com.

2) On Windows Messenger, click Tools->Options; select the "Accounts" tab, and enable the lower checkbox "My contacts include users of a communications service". Then in the Sign-in name enter the username e.g. 123456@fwd.pulver.com.

3) Click ADVANCED and set the server name to you service provider e.g. fwd.pulver.com and select connect using UDP.

4) You may need to re-sign in; and when you do it should prompt you for your password.

Now; simply call the Microsoft client using the phone number you were allocated in step 1; (in this example 123456).

It is not worth trying high resolutions with this; Microsoft always sends at a pretty low resolution and they always display received video in a tiny rectangle regardless of the received resolution!

CAVEATS

* There is no Microphone-volume control. This is because I use the microphone within my USB webcam and Linux has no drivers for volume control on USB microphones. I will implement an attenuation algorithm if required.

* There is no echo cancellation. It really does need some. Anyone know where I can find a public domain algorithm please let me know.

* To answer a call, you have to be in the Mythphone plugin. You do get a popup whilst watching TV if someone calls; but in reality if you want to speak
to someone you sort of need to call them first on a real phone!  Remember this is a first-cut of software so do't be too hard on me :-)

VXML PAGES

VXML is a derivative of XML and HTML; but for voice calls. It allows information in HTML pages to be read out over a phone call. It is used in this project to provide voicemail and access to the TV guide over the phone using a text-to-speech engine.

Within the setup there is an option which allows entry of a VXML web-page. If you only want voicemail; leave this blank, If you want to try some more complex things like allowing setting of recording via the phone, then enter a URL in this field pointing to the mythweb vxml pages. The files in the "vxml" folder in mythweb contain some scripts that do some things but they do need improvement and testing.

The following is a description of these files ...

index.vxml -- This is the main VXML which you should point mythphone to. It plays a welcome message then prompts the caller to leave a voicemail or enter a pin. The pin is hard-coded in this file as "12345".

voicemail.vxml -- If during the execution of the above file the user asks to leave a voicemail it jumps to this file for recording a prompt.

securemenu.vxml -- If during the initial menu the user enters a correct pin it jumps to this file which then prompt with a second-level menu such as
"read the TV guide". Edit this file and make sure it points to your "program_listing.php" file within mythweb.



MythNews

MythNews was written Renchi Raju <renchi@pooh.tam.uiuc.edu>

Go to Settings->NEWS Settings (This will setup the mythnews database for you automatically). On the Settings page there will be news feed sites on the left window. Double clicking or selecting and pressing return/space will add them to the database (These will also be shown
on the right window). If you need to add a custom news feed site then add them using the "custom" button. Also set the frequency (in
minutes) with which the news should be updated (Note: the minimum value is 30 Min to prevent DOSing the news sites). Now exit the setup
page (by pressing ESC).

Go to the NEWS main page and you should see the news feed sites on the left column and corresponding news articles on the right). You can
move between news sites/articles using the UP/DOWN keys and between the news sites column and articles column using the LEFT/RIGHT
keys. Pressing "U" will update all unupdated news. Pressing "F" will force updating news from all sites (WARNING: Don't use this key
frequently unless you want to DOS the news sites and get locked). The news gets updated automatically depending on the frequency which you
set in the setup page.

MythBrower  

MythBrowers was written by Philippe C. Cattin (cattin * vision.ee.ethz.ch)

MythBrowser is a full fledged web-browser (multiple tabs) to display webpages in full-screen mode. Simple page navigation is possible. Starting with version 0.31 it also has full support for mouse driven navigation (right mouse opens and closes the popup menu). Version 0.32 now supports mouse emulation using the number keys on a remote or keyboard and definable keybindings.

MythBrowser also contains a BookmarkManager to manage the website links in a simple mythplugin.

Usage

First you have to enter the MythBrowser Settings to define your favorite webpages and groups. This is also where you can adjust the zoom level of the fonts on the webpages as well as define the command to execute mythbrowser (default: PREFIX+/bin/mythbrowser). The Zoom Level is a percentage between 20 (smaller text) and 300 (larger text).  Check 'Scroll Page' to drag the page within the background when moving the mouse while holding 'Alt' or pressing the middle button.  If 'Scroll Page' is unchecked then the background will be dragged instead of the page.  Set the 'Scroll Speed' to a value according to how fast you want this mouse-scrolling to scroll.  Then exit setup.

In the MythBrowser screen you can then select a webpage to display. If you select (SPACE/Enter) on a group the browser will be started with all
the websites in that group in a different tab (you can switch between the tabs with the 'P' key).

Default key bindings (use MythWeb to change them):

  Q                     Prev Link (eventually in the prev frame)
  Z                     Next Link (eventually in the next frame)
  ESC                   Exit
  Space/Return          Follow selected link
  R, Backspace          Go back to previous page
  Cursor Up/Down        Scrolling
  Cursor Left/Right     Scrolling
  Page Up/Down          Scrolling
  P                     Switch to next tab
  D                     Delete current tab
  I                     Show enter URL dialog
  M                     Show popup menu
  <                     Zoom out
  >                     Zoom in
  F1                    Toggle where keyboard input goes to
  2                     Move mouse pointer up
  8                     Move mouse pointer down
  4                     Move mouse pointer left
  6                     Move mouse pointer right
  5                     Left mouse button click

Mouse actions:

  Right mouse button    Popup Menu

  MouseScroll + MidBut  Scroll Page/Background (depending on settings)
  MouseScroll + AltBut  Scroll Page/Background (depending on settings)
  WheelScroll + MidBut  Zoom Page
  WheelScroll + AltBut  Zoom Page

The popup menu (M key) allows to switch between tabs as well.
Furthermore it features a Back menu item, as well as a zoomin and zoomout
menu. Last but not least you can store the current link in the bookmarks
via the popup menu.

Hints

The F1 key selects where the keyboard input does to. If a web page requires some sort of input, like an edit control used to enter a search term, pressing F1 allows you to send all input to the web page. Pressing it again allows MythBrowser to again capture keyboard input.

The I key opens a dialog allowing you to enter a URL which will be opened in a new tab without having to use the BookmarkManager. It is not neccessary to add 'http://' before a URL MythBrowser will automatically add it if it is missing.

You can get smoother mouse pointer movement by lowering the repeat count for the remote keys used for mouse emulation in your lircrc config file.

MythGame

MythTV has a plugin called MythGame which, unsurprisingly, is used for playing games. This plugin currently allows you to play the original versions of SNES, NES and Arcade (MAME) games.

Over the years people have kindly copied the data from game cartridges to PC's in the form of a data file (or ROM file), these can be downloaded from numerous places on the internet (subject to applicable copyright laws of course). These ROMS can then be processed by a PC using 'emulator' programs (e.g. MythGame uses ZSNES for SNES games).

In the future one would hope that other systems are integrated into MythGame, for example UAE is an emulator program that runs Commodore Amiga games.

Setting Up MythGame

1. Game files, or ROMS, must be placed in the relevant folder under /myth/game/

2. Arcade Games using the MAME emulator. In order to setup MythGame you will want to visit the following websites and make some downloads:

The catver.ini file is a catalog containing details of categories & versions of popular Mame ROMs. This file must be placed in the directory /myth/games/xmame to work (or check your XMAME settings in MythTV).

You will also want to download a package of screenshots; these are displayed whilst browsing your ROMS in MythGame. To work, these must be unzipped and placed in /usr/local/share/xmame/snaps

The "history.dat" file provides a bit of background about each ROM. Another file you might want to download is"hiscore.dat".


Input Device Setup

My Logitech Rumblepad 2 USB gamepad was detected and working, but was not being calibrated automatically. This made all games unusable because the joysticks were not centered. To solve the problem, I installed the joystick package, then ran

jstest /dev/js0

to figure out which axes were which; then

jscal -c /dev/js0

to calibrate the axes. I ignored the output of

jscal -t /dev/js0 ,

which continued to insist that my joystick was not calibrated. After double-checking the calibration by playing a few games, I ran

jscal -p /dev/js0

to print out a command line with the current calibration. I stuck this command line into ~/.fluxbox/apps to be run every time X is restarted:

[startup] {jscal -s 6,1,1,...}

Your input device may be something other than /dev/js0, and if you don't use fluxbox, you will need to put the jscal -s command somewhere other than ~/.fluxbox/apps.


Gaming HowTo

Description

This document describes how to install a game and configure the remote to play games in MythGame. When adding a game, consider whether it can be playable with the remote. First person shooter games are out of the question, but many puzzle games and other non-action games are valid candidates.

The guide shall include how to install the game and a good configuration for playing the game by using the remote. I'll start off with a GLTron game. Using the irxevent to pass on keypresses to the game for controlling, include configuration for the irxevent and the game.

The List Of Games

Title Description Playability
GLTron A TRON game simple and fun, based on the movie. Plays well with IR
Frozen Bubble A arcade bubble game, very addictive. Playable, but slow with IR
FooBillard A 3d billard game, 8/9-Ball and Snooker. Not Finished

Using irxevent to control the game

Often, games use the SDL library for visualization and have no window names, so when using irxevent to control the game we need to use the CurrentWindow feature which means that different configuration files are required for irxevent and we want irxevent to start with the game with it's proper configuration file for the specific game, then when game stops we want the irxevent to be stopped.

Create this following script /usr/games/startgame that starts the actual game and controls irxevent to with several game specific configurationfiles:
#!/bin/sh
# Start the game and get the PID
GAME_BIN=$1
$GAME_BIN &
GAME_PID=$!

# Start the irxevent and get the PID
irxevent "$GAME_BIN"_ir.conf &
IRXEVENT_PID=$!

# Wait for game to exit then kill irxevent
wait $GAME_PID
kill $IRXEVENT_PID

Then make the above file is executable:
chmod +x /usr/games/startgame

The above script starts the game and then irxevent with the proper configuration file, it will wait for the game process to die, then we kill the irxevent process. The configuration file for irxevent should be named as bin file plus _ir.conf in the same directory as the binary. For example, the game GLTron's binary is named gltron (plain and simple) thus the corresponding ir config file should be named gltron_ir.conf.

Make the games visible in MythGame

Enter the settings dialog->settings->media->game->general settings Select the item 'New Player' then enter a title for the game, select type PC Game, and enter the command to start the game:
/usr/games/startgame /usr/local/gltron
Alternatively, edit the /usr/games/gamelist.xml file to include your newly added PC game. then exit the menu and start search for new games entry.

Henrik Andersson 2006-06-19
Brian Kelly 2006-07-15


MythArchive

MythArchive is a MythTV style plugin that uses the Mythburn Script to create and burn DVD's from MythTV recordings, MythVideo files or any
video files available on a MythTV system. It can also export recordings to a native archive format that can then be imported back into a mythtv
system restoring all the associated metadata.

FEATURES / HOW-TO-USE

First you need to cue some files for archiving from the "Find Files To Archive" menu. You can choose MythTV recordings, MythVideo files or any media file accessible from your filesystem.

Next you select items you would like to burn from the "Export Video File" menu. If available you can tell MythArchive to use the cut list to cut
out commercials etc. If you need to edit the details of an item. Press 'MENU' and select "Edit Details" to show the 'Edit Details Dialog'.

Next select a menu theme.

Finally review what files have been selected and if you are happy click 'Finish' to start the DVD creation process. You can monitor
the progress in the log viewer or exit the log viewer and continue to use myth.

Keys:-
* Up/Down/Left/Right - move focus/change selection
* Select             - activate push button/toggle selection
* Exit               - return to myth main menu
* C                  - toggle use cut list

TROUBLESHOOTING

1. The script fails with "ERROR: Failed to init mythcontext." message.

The most likely cause of the error is the MythContext cannot find a valid 'mysql.txt' file. You are most likely to see this problem when using the web interface and the user that your web server is using doesn't have a home directory.

There are two ways to fix this error:
    a) Create a home directory for the user running your web server and copy a valid 'mysql.txt'  file into that directory.
    b) or copy a valid 'mysql.txt' file to either INSTALL_PREFIX/share/mythtv/ or /etc/mythtv/

You should find a copy of your mysql.txt file in one of the following locations:-
    INSTALL_PREFIX/share/mythtv/mysql.txt
    /etc/mythtv/mysql.txt
    ~/.mythtv/mysql.txt


2. The script fails with "ERROR: Failed while running growisofs." message.

The most likely cause of the error is insufficient file permissions on the cdrom device. Make sure the user that is running the script can both read and write to the device that you use to burn dvd's.

How you do that is dependent on how your distribution sets things up. It may be sufficient to add the user to the 'cdrom' group. You may also have to relax the permissions on the device itself to allow the cdrom group read/write access to it.


MythFlix

Currenty, MythFlix plugin lacks a more rebust configuration UI.  So your netflix account settings need to be initilized manually.
To do this run the following command.  For some reason to properly intialized the netflix cookie you must run script twice.

/usr/local/share/mythtv/mythflix/scripts/netflix.pl -L <userid> <passwd>
/usr/local/share/mythtv/mythflix/scripts/netflix.pl -L <userid> <passwd>


After running the plugin once you must manually enter your NetFlix Queue RSS feed into the database. This can be found by going to NetFlix.com, login, click RSS feed at the bottom of the page. Cut and paste the url into netflix table with the is_queue flag set.

  insert into netflix values ("Queue","NetFlix", '[YOUR QUEUE RSS URL]','http://cdn.nflximg.com/us/icons/nficon.ico', null, 1);
  insert into netflix values ("History","NetFlix", '[YOUR HISTORY RSS URL]','http://cdn.nflximg.com/us/icons/nficon.ico', null, 2);


CONFIGURATION/USAGE:

Go to Settings->NetFlix Settings (This will setup the mythflix database for you
automatically). On the Settings page there will be RRS feed on the left window. Double clicking or selecting and pressing return/space will add them to the database (These will also be shown on the right window). Now exit the setup page (by pressing ESC).

Go to the NetFlix main page and you should see the RSS feeds on the left column and corresponding movies on the right). You can
move between RSS feeds/articles using the UP/DOWN keys and between the news sites column and articles column using the LEFT/RIGHT
keys.

In the Queue screen, pressing "ENTER" will bring up a menu of options to perform on the current selection including "Move to top of queue" and
"Remove from queue".  Also, pressing "1" will move an item to the top of the queue while "D" will remove it from the queue.

Find your Netflix Shopper ID

Locate the cookies for your browser. Find one for "www.netflix.com" for "ShopperId?". This is a long number starting with a 'P'. Save this ID number.

Find your Queue RSS Feed.

Go to this page http://www.netflix.com/RSSFeeds?lnkctr=mfRSS and copy down the URL for your queue RSS feed. It will look like this: http://rss.netflix.com/QueueRSS?id=P0000000000000000000000000000000000. Note that this 'P' number is NOT the same as the one you saved before.

Log into your database

Run mysql -u mythtv -p mythconverg and use the password mofsarea

Insert your shopper ID into the settings table

Replace the P000... string with your own ShopperID cookie and run the command below in MySQL:

insert settings values ('NetflixShopperId?','P0000000000000000000000000000000000', null);
Leave this window open -- you'll use it again soon!

Go to MythFlix setup

You'll find it under Settings, Info Settings. This will also secretly set up some database tables that you'll need later.

Choose which feeds you want

Pick at least one... I mean, really... otherwise, what's the point?

Go back to your MySQL window and this time load up your Queue's URL

Replace the first url with the URL you copied down before. You can leave the icon URL alone.

insert into netflix values ("Queue","NetFlix?", 'http://rss.netflix.com/QueueRSS?id=P0000000000000000000000000000000000','http://cdn.nflximg.com/us/icons/nficon.ico', null, 1);

That's it!

Well, sort of. The history doesn't quite work, yet. You can probably add the History URL in somewhere, but I'm not sure where, yet.

See http://petrocik.net/mythtv/README for more info.


MythWeb

(c) 2002-2006  Chris Petersen   <mythweb(a)forevermore(o)net>
               Isaac Richards   <ijr(a)po(o)cwru(o)edu>
               Thor Sigvaldason <mythtv(a)lamedomainname(o)com>
               and others... (see mythtv.org commit logs for details)

MythWeb is a set of php files intended (note the use future tense) to let you access your listings, flag shows for recording, delete
recordings, etc., from a web browser. At some point in the future, it may allow you to play your recorded content (music and/or(?) video) across a
network. Then again, it may not.

Note that MythWeb is totally insecure and makes no pretense of including any security mechanisms of any sort. You should really only run it
on an isolated network or (at the very least) behind a well secured firewall.

Resetting the key binding table

MythWeb allows you to configure which keys are bound to which actions within MythTV. If you'd like to reset this back to the default, execute the following command:

$ echo "delete from keybindings ;" | mysql -u mythtv -pmythtv mythconverg

Resetting the theme.

If you find yourself wedged into a theme that isn't working, open your web browser and go to site: http://mythweb_name_or_ip_address/mythweb/settings.php?RESET_THEME=yes


Advanced Setup Topics


 Adding DishTV information to the database

A script for adding Pay Per View information into the MythTV database for DishTV subscribers is available at http://www.mythppv.com/.

Adding support for an external tuner

MythTV supports changing the channel on an external tuner. If you have an external tuner, such as a DirecTV or digital cable set top box, you should add /usr/local/bin/changechannel to your Input Connections in the mythbackend configuration GUI.

However, there is not changechannel program per-se, because this is going to be dependent on what sort of external tuner you have. Look in the contrib/channel_changers directory for a number of programs and scripts which may be used to change channels. Once you find one which works, copy it to /usr/local/bin/changechannel.

Feel free to browse some of what sort of hardware is available at http://store.snapstream.com/accessories.html, or if you wish to assemble your own, rather than purchase, the following may be helpful: http://www.dtvcontrol.com/ for cable pinouts.

Using Shutdown/Wakeup

What does the MythTV Shutdown/Wakeup function do? The scheduler on the Master backend (MBE) keeps track of the idle status of the entire MythTV system, including the Slave backends (SBE). If it considers the system to be idle, and thus ready to shutdown, it sets the wakeuptime to the time of the next recording and then proceeds to shut down all Slave backends and then itself. Once it is time to begin recording, the Master backend and the Slave Backends are automatically woken up. This system allows MythTV to record like a normal VCR, thereby conserving power when not in active use.

In order to use the Shutdown/Wakeup function there must be some method of waking up the Master backend. There are any number of solutions, but we will discuss in detail two possibilities:

A deeper look into the operation

The scheduler keeps track of the idle status of the MythTV system. To determine whether or not the MythTV system is idle, the following conditions must be met for a period of time defined in the "Idle timeout (secs)" parameter.

If we get to this idle state the Master backend will set the wakeuptime using the "Set wakeuptime command", which is the same for WOL and BIOS wakeup. The Master backend will then shut down the Slave backends and itself using the "Server halt command".

One caveat is that the scheduler tries to guess if the Master backend was started by a wakeup call or by the user. If it thinks it was woken up by a user, it blocks shutdown until a client connects to the Master backend, after which it will behave as described above. To disable this feature, unset "Block shutdown before client connected" in the mythfrontend Setup->Setup->General screen.

Once it is time to startup the system, the Master backend is woken up first and will wakeup the Slave backends using the "Wake command for slaves". At this time, there is no support for starting only the required Slave backend, so all Slave backends will startup.

Setting up the MythTV side of this extension.

There are a number of options that are used to control the Shutdown / Wakeup feature.

Shutdown/Wakeup Options:

The "WakeOnLan settings": These settings have nothing to do with using BIOS or WOL wakeup, they are the same for both.

Using WOL to wake your Master backend.

To use WOL to wake your Master backend you will need a WOL capable Master backend, a machine that runs 24/7 which can execute an at-job and nc (netcat) on the Master backend. I use some little bash scripts to make my DSL router wakeup my mythbox if required.

Replace $SERVER and $PORT with your own settings! On my Master backend I have a script that gets called as 'setwakeuptime command' which looks like the following:

#! /bin/sh
echo $@ | nc $SERVER $PORT
This simply cats the parameters (that is $time) to my 24/7 server. On my $SERVER I have (x)inetd listening on $PORT starting a little script which cares about setting the at-job. The following additions are necessary on the $SERVER:

If you use inetd:

In /etc/inetd.conf add:

mythwake stream tcp nowait mythtv /usr/sbin/tcpd /usr/local/bin/mythwake
If you use xinetd, save the following as mythwake in your /etc/xinet.d/ directory:
service mythwake
{
socket_type = stream
wait = no
user = mythtv
protocol = tcp
id = mythwake
server = /usr/local/bin/mythwake
}
and add the following to /etc/services:
mythwake        $PORT/tcp

Finally, /usr/local/bin/mythwake looks like:

#! /bin/bash
#this should be a command to wake your server
WAKECMD="#!/bin/sh\n /usr/local/bin/wakeMBE"
#first we need to delete all wake jobs in queue
for JOB in atq | cut -f 1 ; do
atrm $JOB;
done
#now we read the date from 'nc'
read date;
#now set the atjob
echo -e "$WAKECMD" | at $date ;
SECURITY WARNING: Be sure to secure $SERVER:$PORT from untrusted networks, because this allows 3rd parties to run arbitrary code on your server!

Using BIOS wakeup to wake your Master backend.

Since I don't use this, I cannot say much about this. If your motherboard supports any wakeup tool you have to call that tool as "Set wakeuptime command" with the "Wakeup time format" suitable for that tool.

Wakeup the MySQL server using WOL

If your MySQL server and your Master backend are not on the same machine, you can have the Master backend wake your MySQL server using WOL. You will find the settings for this in the second page of the mythtv-setup program, or at the end of mysql.txt. The meanings are the same as discussed in "The WakeOnLan settings" above.

Tips/Tricks:

If, for example, one of the Slave backends is also your desktop computer, you could simply use a little script as 'server halt command' which first calls /sbin/shutdown -t TIMEOUT where TIMEOUT is a value sufficient for you to react. You could then popup a window using *dialog, asking for permission to shutdown. If you cancel the shutdown, simply call /sbin/shutdown -c.

If you get "nvram-wakeup: /dev/rtc: Device or resource busy" your set-wakeuptime-script should stop the program that uses /dev/rtc before setting the wakeuptime.

Controlling the mythfrontend via telnet

New in 0.19 is the capability to control the mythfrontend using telnet commands. To use this feature you must first enable it in Settings>General>General

The network control listens on port 6546, as demonstrated below:

$ telnet basement 6546
Connected to basement.
Escape character is '^]'.
MythFrontend Network Control
Type 'help' for usage information
---------------------------------
# help
Valid Commands:
---------------
jump - Jump to a specified location in Myth
key - Send a keypress to the program
play - Playback related commands
query - Queries
exit - Exit Network Control

Type 'help COMMANDNAME' for help on any specific command.

# help jump
Usage: jump JUMPPOINT

Where JUMPPOINT is one of the following:
channelpriorities - Channel Recording Priorities
channelrecpriority - Channel Recording Priorities
deletebox - TV Recording Deletion
deleterecordings - TV Recording Deletion
guidegrid - Program Guide
livetv - Live TV
livetvinguide - Live TV In Guide
mainmenu - Main Menu
...snip...
# exit
$

Please note that this feature only allows one connection at a time, so any new connections will automatically terminate prior ones.


Adding DishTV information to the database

A script for adding Pay Per View information into the MythTV database for DishTV subscribers is available at http://www.mythppv.com/.

Adding support for an external tuner

MythTV supports changing the channel on an external tuner. If you have an external tuner, such as a DirecTV or digital cable set top box, you should add /usr/local/bin/changechannel to your Input Connections in the mythbackend configuration GUI.

However, there is not changechannel program per-se, because this is going to be dependent on what sort of external tuner you have. Look in the contrib/channel_changers directory for a number of programs and scripts which may be used to change channels. Once you find one which works, copy it to /usr/local/bin/changechannel.

Feel free to browse some of what sort of hardware is available at http://store.snapstream.com/accessories.html, or if you wish to assemble your own, rather than purchase, the following may be helpful: http://www.dtvcontrol.com/ for cable pinouts.


Grabbing channel icons for DataDirect users

While the DataDirect TV listings service has several advantages, it does not support grabbing logo icons for the stations you receive. However, there are utilities provided with MythTV which you may use to grab your initial set of icons and to keep them updated if your lineups change.

First, you need to generate or obtain an XML file with the information for your stations.

If you have XMLTV software installed, there is a perl script in MythTV's contrib/ directory which will generate this file for you. Run the command:

$ perl mkiconmap.pl

You will be asked for your zip code and the service that you use. If there are no errors, the iconmap.xml file that you need for the next step will be created.

If you do not have XMLTV software installed and do not want to install it for the sake of this minor task, there is a generic contrib/master_iconmap.xml which you can copy and use but this may not be as complete as using the specific information for your service.

Once you have an iconmap.xml file, add the icon information to your database and grab any new icons with the command:

$ mythfilldatabase --import-icon-map iconmap.xml --update-icon-map

Removing unwanted channels

If mythfilldatabase grabbed a channel which you do not want to include in your TV listings, you can remove the entries from the grabber configuration and the MySQL database. This often happens with premium channels; for example, HBO or Showtime may be available on your cable TV system, but is scrambled because you're not a subscriber to that channel. Since you can never watch it, you want to get rid of it.

If you are using the DataDirect service, login to your account at http://labs.zap2it.com/ to modify your lineup. Uncheck the boxes for any unwanted channels, and they will no longer be included in your download.

If you are using a grabber from XMLTV, comment out the channel from the ~/.mythtv/<sourcename>.xmltv file by inserting the word "not " (including the space) in front of the unwanted entry. This will prevent xmltv from grabbing future listings.

Next, delete the unwanted item from the channel table so that it will not appear in the EPG or when changing channels. To delete the data from the database we need to perform some steps. First, assuming that HBO is channel 15, we need to find out the internal chanid used by MySQL:

$ mysql -u root mythconverg
mysql> select chanid from channel where channum=15;
+--------+
| chanid |
+--------+
| 1015 |
+--------+
1 row in set (0.00 sec)
mysql> delete from channel where chanid = 1015;

Old program data will be removed over the course of a week. However, you may want to immediately delete any current program listings for the channel that has been removed:

$ mysql -u root mythconverg

mysql> delete from program where chanid = 1015;

What do the icons on the Watch Recordings screen mean?

Press "1" or F1 to get a popup.

What do the letters mean when I change channels?

These letters let you know what's going on with the backend as it tries to tune to a channel.

Lower case = seen Upper Case = seen & good

l/L = Lock : This could be seen by PVR-250/BTTV users a/A = PAT : Any recording transmitted in MPEG m/M = PMT : Any recording transmitted in MPEG g/G = MGT : ATSC only v/V = VCT : ATSC only n/N = NIT : DVB only s/S = SDT : DVB only


Changing channels on an external Set Top Box

If you need to use an external Set Top Box (STB), such as for satellite TV or for digital cable you will need some way for MythTV to tell the STB to switch to a new channel. There are several methods:

  1. Use an IR blaster. An IR blaster is an infrared transmitter connected to your computer. When MythTV needs to change channels it will send IR pulses, thereby emulating a remote control.
  2. Use a direct serial connection. Some STB's have a serial port on the back, although it may not look like a serial port. It may look like a phone jack, or a strange VGA connector. It may be labeled "Low Speed Data". A direct serial connection is more reliable than an IR blaster. Not all STB's that have a Low Speed Data port have it enabled; you may need to convince your service provider to turn it on. Stating that you have a Tivo may help; the Tivo has a direct-connect capability.
  3. Use a firewire connection. There is a 6200ch.c in the MythTV contrib directory which may work for you.


LBMC Blaster codesets

The format of the key names in the supplied lircd.conf that includes all of the codesets is DEVICE_CODESET_KEY, for example 1_680_KEY_POWER.

Device is either 0 (for cable box) or 1 (for satellite). For other key names look in lircd.conf. (Various devices have different keys).

For example, if you have a Motorola DCT 2000 cable box, this would be 0_82_KEY_POWER. If you have a Hughes Satelittle box, this would be 1_82_KEY_POWER.

Also note that not all devices are listed -- this is just what the hauppauge software has. Many devices will work with more than one codeset, and many unlisted devices will work with one or more codesets. It is recommended that you try scanning if looking up the device is not possible (because it is missing), or the listed codeset does not work.

If the blaster LED flashes, but the device fails to respond to any listed codeset, then there is a good chance that the device simply is not supported. If you want support, you first need to check that it does not work under Windows, and then bug Hauppauge about it. I am only capable of supporting the same devices as the Windows software -- because the codeset database is encrypted, I cannot modify it.

North America, Cable Box

endor Codesets
ABC 14, 16, 20, 27, 35, 69, 70, 71, 102
Archer 11, 15, 20, 64, 65
Cableview 67
Century 20
Citizen 15, 20, 21
Comcast 85
Comtronics 60
Contec 14, 18, 23, 25, 26, 28, 32, 58
Diamond 18
Director 92
Drake 102
Eastern 31, 57
GE 70, 71
Gemini 2, 19, 56
General Instruments 16, 22, 25, 29, 35, 39, 51, 52, 70, 79, 92, 95, 97
General Instruments DPV7212 79
Goldstar 103
Hamlin 18, 34, 40, 53, 54, 55
Hitachi 16, 17, 70
Jasco 15
Jerrold 16, 22, 25, 29, 35, 39, 51, 52, 70, 79, 92, 95, 97
JVC 29
Magnavox 16, 50
Memorex 3, 20
Motorola 80, 81, 82, 84, 85, 92, 93, 95, 97, 99, 100, 106
Motorola CFT2100 82
Motorola CFT2200 82
Motorola CFT3300 82
Motorola DCT1000 82
Motorola DCT1200 82
Motorola DCT1661 80
Motorola DCT1661 81
Motorola DCT1700 82
Motorola DCT1900 82
Motorola DCT2000 82
Motorola DCT2224 80
Motorola DCT2224 81
Motorola DCT2500 82
Motorola DCT5100 82
Movie Time 20, 21, 27, 49
Multi Canal 21
Multitech 105
NEC 68
NSC 20, 27, 28, 33, 49
Oak 18, 28, 48, 58
Pace 101
Panasonic 26, 32, 37
Philips 4, 12, 13, 20, 46, 47, 50, 56, 59, 61, 62, 63
Pioneer 44, 45, 72, 94, 98, 101, 103, 104
Proscan 70, 71
Radio Shack 11, 15, 20, 105
RCA 36, 38, 67
Realistic 65
Recoton 6
Samsung 21, 44, 103
Sci-Atlanta ENT-3000 78
Sci-Atlanta EXPLORER 2000 78
Sci-Atlanta EXPLORER 2100 78
Sci-Atlanta EXPLORER 2200 78
Sci-Atlanta EXPLORER 3000 78
Sci-Atlanta EXPLORER 3100 78
Sci-Atlanta EXPLORER 3200 78
Sci-Atlanta EXPLORER 3250 78
Scientific Atlanta 1, 14, 23, 41, 42, 43, 74, 75, 76, 78, 86, 87, 88, 89, 90, 91, 94, 96, 98, 101, 102
Sears 17
Signature 70, 16
Signature 2000 16
Sony 77
Sony DHG-M55CV 77
Sprucer 26
Starcom 3, 5, 16, 35
Stargate 21
Supermax 105
Sylvania 8, 17
Telecaption 7
TeleView 21
Texscan 8, 10
Time Warner 83
Tocom 26, 27, 28, 52, 69
Tristar 105
U. S. Electronics 14, 16
United Cable 35
Universal 5, 6, 11, 15, 20, 64, 65, 66
V2 105
View Master 105
View Star 9, 13, 49, 50, 58
Vision 105
Vortex View 105
Wards 16

North America, Satellite

Vendor Codesets
Alphastar 41, 87
Chaparral 66, 103, 104
DirecTV 112, 125
DirecTV D10 125
DirecTV D10-200 125
DirecTV D10-300 125
DirecTV DSHD800R 112
DirecTV H10 125
DISH Network 43, 109, 129, 130, 131, 132, 133, 136, 138, 139, 140, 141, 142
DISH Network 311 136
DISH Network DP501 109, 130
DISH Network DP701 109, 130
Dishnet 88
Dishpro 138, 140, 141, 142
Drake 47, 51, 55, 60, 64, 80, 101, 102
Echostar 29, 50, 59, 83, 129, 131, 132, 133, 138, 139, 140, 141, 142
Express Vu 28, 29, 43, 138, 142
Fortec Star FSCI-5100 Ultra 137
Fujitsu 72
GE 19, 20, 21, 22, 38, 39, 92, 105, 106, 123
General Instruments 52, 69, 75, 77, 78, 98, 99, 100
GOI 138, 142
Hitachi 67, 84, 85, 122
Hitachi HDS210R 122
HTS 138, 142
Hughes 16, 67, 82, 89, 111, 120, 124, 125, 126
Hughes D10 125
Hughes D10-200 125
Hughes D10-300 125
Hughes GAEB0 124
Hughes GCEB0 124
Hughes H10 125
Hughes HACCTR2 111
Hughes HDVR2 111
Hughes HIRD-E86 126
Hughes HIRDA2 120
Hughes HIRDA3 120
Hughes HIRDE1 120
Hughes HIRDE11 120
Hughes HIRDE2 120
Hughes HIRDE25 120
Hughes HIRDE86 120
Hughes HR10250 111
Hughes SDDVR120 111
Hughes SDDVR40 111
Janeil 72
JVC 43, 138, 139, 142
Kenwood 71
LG LSS-3200a 134
Magnavox 40
Mitsubishi 9, 18, 110
Mitsubishi SRHD400 110
Mitsubishi SRHD500 110
Optimus 42
Panasonic 6, 12, 17, 113
Panasonic TZ-DBS01 113
Panasonic TZ-DRD100 113
Pansat 48, 65, 135
Pansat 2700a 135
Philips 5, 7, 111, 143
Philips DSR6000 111
Philips DSR6000QR1 111
Philips DSR6000R01 111
Philips DSR704 111
Philips DSR708 111
Philips DSR708R17 111
Philips DSX5500 143
Philips DSX5540 143
Primestar 58, 90
Proscan 20, 21, 22, 38, 39, 92, 105, 106, 116, 121
Radio Shack 70, 77, 78
RCA 20, 21, 22, 23, 24, 25, 26, 38, 39, 86, 92, 105, 106, 111, 114, 115, 144
RCA DRD202RD 114
RCA DRD221RD 114
RCA DRD222RD 114
RCA DRD223RD 114
RCA DRD225RD 114
RCA DRD301RA 115
RCA DRD302RA 115
RCA DRD303RA 115
RCA DRD403RA 115
RCA DRD420RE 114
RCA DRD430RG 114
RCA DRD435RH 144
RCA DRD440RE 114
RCA DRD450RG 114
RCA DRD460RE 114
RCA DRD480RE 114
RCA DRD485RG 114
RCA DRD703RA 115
RCA DVR40 111
RCA DVR80 111
Realistic 70, 97
Samsung 13, 41, 111, 145
Samsung SIR TS 360 145
Samsung SIRS4040R 111
Samsung SIRS4120R 111
Sony 8, 14, 15, 45, 117, 119, 127, 128
Sony SAT-A1 117
Sony SAT-A2 119
Sony SAT-B1 117
Sony SAT-B2 119
Sony SAT-HD100 127
Sony SAT-HD200 128
Star Choice 27, 43
Star Trak 46, 73, 74
STS 76, 81, 94, 95, 96
STS1 96
STS3 95
STS4 94
Toshiba 11, 30, 31, 32, 33, 34, 35, 36, 37, 69, 80, 91, 93
Uniden 42, 54, 56, 57, 61, 68, 70, 79, 118
Uniden UDS100 118
View Star 49
Viewsat 146
Zenith 10, 72

Europe, Cable Box

Vendor Codesets
Alcatel 300
Amstrad 321
Cabletime 306, 311, 315
Foxtel 321
France Telecom 301, 308
General Instrument 302
Grundig 303
Jerrold 302, 314, 319
Macab 301
Nokia 305
Philips 301, 307, 320
Pioneer 317
Sagem 301, 304
Salora 310
Scientific Atlanta 313, 318
Tele+1 309
United Cable 319
Videoway 316
Visiopass 301

Europe, Satellite

Vendor Codesets
AB Sat 374
Akai 440
Alba 326, 440, 456, 680
Allsat 353
Ampere 679
Amstrad 345, 355, 358, 365, 366, 376, 378, 391, 413, 414, 433, 437, 463, 473, 663, 679
Ankaro 345, 400, 407, 422, 443
Arcon 323, 421, 679
AST 360, 416, 417
Astra 360, 383, 423, 442, 447, 455
Astro 396, 437
Best 400, 422
Blaupunkt 396
Boca 525, 528, 540, 562, 567, 572, 581, 585, 586, 598, 615, 620, 651, 679
Boston 679
Brain Wave 410
BSkyB Sky DigiBox 663
Bush 390, 444, 680
Cabletime 345
Cambridge 345, 379, 440
Canal Satellite 384, 481
Chaparral 345, 399
CityCom 394, 424, 475, 680
Colombia 679
Comag 679
Condor 455
Conrad 394, 455, 679
Contec 420, 424
D-Box 372
Diskxpress 400
DNT 425, 432
Drake 344, 345
Echostar 300, 304, 307, 345, 363, 401, 404, 425, 431, 481, 484
Einhell 679
Elsat 378
Elta 326, 353, 441
Ep Sat 680
Europa 423
Europhon 679
Eurosat 353
Eurosky 406, 455, 679
Eurostar 455
Ferguson 324, 328, 380, 390, 412, 680
Fidelity 463, 473
Finlandia 680
Finlux 429, 680
Fracarro 345, 484
FTE 323, 343, 359, 379, 409, 473, 483
Fuba 351, 363, 400, 408, 422, 424, 425, 429, 430
Funai 331
Galaxis 329, 353, 373, 405, 407, 420, 461, 474, 478, 479, 483, 645, 678
Galaxis EASY WORLD 678
Goodmans 680
Grundig 305, 308, 309, 345, 354, 396, 434, 470, 472, 663, 674, 675, 680
Grundig Cinia DTR 2280 S 674
Grundig GDS2000 663
Grundig SelioDTR 5210 S CI 674
Grundig SinioDTR 6110 S 675
Grundig SinioDTR 6111 S CI 675
Hanseatic 381
Hansel and Gretel 679
Hirschmann 382, 396, 406, 411, 425, 436, 437, 449, 451, 489
Hitachi 680
HNE 679
Humax 521, 563, 591, 625, 631, 633, 634, 635, 638, 655, 656, 657, 659
Humax BTCI-5900 633
Humax BTCI5900C 633
Humax CI-8100 656
Humax CI5000 635
Humax CI5100 635
Humax CI8100PVR 638
Humax CRCI5500 635
Humax CX-1201C 656
Humax CXCI5200 635
Humax CXCI5200II 635
Humax CXVACI2100 635
Humax DV-1100S 659
Humax F1ACE 635
Humax F1FOX 635
Humax F2-1000T 657
Humax F2-1001T 657
Humax F2-1002 656
Humax F2-7002 656
Humax F2-ACE 656
Humax F2-GREEN 634
Humax F2FINDER 634
Humax F2FOX 656
Humax F2FREE 656
Humax FI5000 635
Humax IR5410Z 635
Humax IRACEII 656
Humax IRCI-5400 635
Humax IRCI5400Z 635
Humax NAACE 635
Humax NACI5700 635
Humax PVR-8000T 655
Humax VA5200 635
Humax VAACE 635
Humax VACI5300 635
Huth 383, 407, 415, 453, 455, 679
International 679
Intervision 455
ITT/Nokia 372, 680
Johansson 330, 345, 410
JVC 440
Kathrein 343, 345, 360, 361, 382, 392, 396, 409, 424, 435, 438, 451, 499, 500, 501, 502, 503, 504, 505
Kathrein CCR 500 499
Kathrein UFD 400 503
Kathrein UFD 400 504
Kathrein UFD 580 505
Kathrein UFD 580S 505
Kathrein UFE 135 500
Kathrein UFE 305 501
Kathrein UFE 305S 501
Kathrein UFE 335 502
Kathrein UFE 335S 502
Kathrein UFE 370 501
Kathrein UFE 370S 501
Kenwood 345
Key West 679
Kosmos 343, 382, 409
Kreiselmeyer 396, 426
Kyostar 679
L and S Electronics 679
Lasat 379, 455, 679
Lenco 457
Lifesat 679
Lorenzen 376, 455, 679
Luxor 345, 360, 372, 449
Macab 445, 480, 488
Manata 679
Manhattan 353, 479, 680, 681
Mascom 382
Maspro 345, 360, 386, 392, 412, 436, 470, 680
Mediabox 384
Mediasat 384, 481
Medion 676, 679
Medion MD 4140 676
Medion MDS 4001 676
Medion MDS4000FH 676
Medion MICROSTAR MR 4020 676
Medion MICROSTAR MR 4040 CI 676
Metz 354
Micro Technology 411, 447
Minerva 354
Mitsubishi 680
Morgan's 379, 439, 464, 679
Multistar 343, 409
NEC 397
Neuhaus 437, 455, 479
Neusat 465, 479
Next Wave 468
Nikko 419
Nokia 360, 364, 372, 449, 506, 512, 515, 516, 520, 524, 547, 548, 553, 560, 561, 571, 588, 592, 596, 607, 611, 617, 619, 622, 639, 642, 646, 649, 670, 671, 680
Nokia MediaMaster 150 S 670
Nokia MediaMaster 211 S 671
Nokia MediaMaster 9470 S 671
Nokia MediaMaster 9800 S 671
Nordmende 324, 325, 380, 680
Okano 343, 409
Ondigital 369, 370, 385, 402
Optex 353, 424
Orbit 417
Orbitech 437
Orion 444
Pace 302, 303, 305, 306, 326, 345, 385, 389, 390, 402, 412, 467, 658, 660, 663, 680
Pace 2200 663
Pace 2500S 663
Pace 3000 663
Pace BSkyB DIGIBOX 2500C1 663
Pace BSkyB DIGIBOX 2500N 663
Pace BSkyB DIGIBOX 2500S4 663
Pace BSkyB DIGIBOX 2500S5 663
Pace BSkyB MINIBOX 663
Pace DTR730 ONdigital 660
Pace DTR735 658
Palcom 345, 363, 408, 430
Palsat 359, 437
Panasonic 663, 680
Panasonic TUDS20 663
Panasonic TUDS30 663
Panda 455, 680
Patriot 440, 679
Philips 303, 305, 310, 311, 369, 370, 384, 387, 434, 452, 466, 470, 472, 481, 498, 661, 663, 680
Philips RU 258 661
Philips STU3530 498
Phoenix 420
Phonotrend 373, 407, 680
Pioneer 337, 481
Polytron 424
Preisner 679
Premiere 384, 531, 565, 589, 593, 601, 623
Promax 680
Prosat 345, 407
Proscan 116, 121
Proscan PRD8560B 121
Proscan PRD8630A 116
Pyxis 479
Quadral 319, 320, 321, 339, 426, 443, 459
Quelle 455
Radix 371, 425, 489, 511, 519, 543, 580, 595, 605, 630, 643, 644
Rediffusion 397
RFT 407, 448
Saba 325, 377, 380, 412, 418, 455, 466, 490
Sabre 680
Sagem 375, 476
Sakura 345, 420
Salora 360
Samsung 338, 343, 368, 406
Satcom 342, 381, 383, 415, 454, 455
Satford 383
SatPartner 410, 465, 473
Schneider 472
Schwaiger 679
Sedea Electronique 679
Seemann 425, 446, 450, 458
SEG 376, 381, 422, 442, 447, 469, 508, 513, 533, 535, 541, 545, 549, 559, 575, 584, 597, 603, 612, 618
Siemens 354, 379, 396, 464
Skymaster 381, 407, 443, 454, 459, 487, 518, 530, 542, 550, 552, 557, 576, 579, 583, 594, 613, 616, 627, 632, 653, 662, 666
Skymaster DC30MOBIL 662
Skymaster DX22 FTA 665
Skymaster XL10 662
Skymaster XL11 662
Skymaster XL14s 662
Skymaster XL17 662
SL 679
Smart 679
Sony 301
SR 679
Strong 345, 352, 359, 485, 486, 517, 522, 536, 538, 551, 564, 568, 574, 578, 590, 604, 624, 626, 629, 647, 648
Sunstar 439, 679
Systec 679
Tandberg 363
Tantec 408, 412, 680
Techniland 383, 415
TechniSat 317, 349, 350, 403, 432, 437, 448, 523, 527, 529, 537, 539, 546, 558, 569, 570, 600, 609, 628, 652, 640, 641, 666, 667, 668, 669, 672, 673
TechniSat DigiBox 1 667
TechniSat DIGIBOX 2{A} 662
TechniSat DIGIBOX 2{B} 663
TechniSat DigiCorder S1{A} 668
TechniSat DigiCorder S1{B} 669
TechniSat DigiCorder T1{A} 668
TechniSat DigiCorder T1{B} 669
TechniSat DigiPal 1 666
TechniSat DigiPal 2 666
TechniSat DIGIT 4 S 666
TechniSat DIGIT D{A} 672
TechniSat DIGIT D{B} 673
TechniSat DIGIT MF4-S{A} 672
TechniSat DIGIT MF4-S{B} 673
TechniSat DIGIT P 666
TechniSat DIGITY 1 667
TechniSat DIGITY CI 667
Technoweld 679
Telasat 381
Telefunken 322
Teleka 382, 456
Telesat 381, 454
Televes 679, 680
Tensai 348
Thomson 303, 312, 313, 314, 315, 316, 380, 384, 455, 481, 636, 637, 680
Thomson ASR 26 T 636
Thomson DSR 150 FT 637
Thomson DSR 151 C1 637
Thorn 345, 680
Tioko 424, 679
Tonna 383, 415, 462, 680
Triad 411, 416, 417
Triasat 429, 437
Tristar 359
Twinner 679
Ultravox 353
Uniden 345, 357, 395, 398, 471
Unisat 420, 679
Unitor 400, 410
Universum 376, 396, 455
Vestel 376
Visiosat 377, 417
Vortec 332, 385, 406
Wevasat 680
Wewa 680
Winersat 330, 345, 410
Wisi 335, 377, 396, 417, 425, 427, 428, 460, 479, 507, 509, 510, 511, 514, 515, 526, 532, 534, 544, 554, 555, 556, 566, 573, 577, 582, 587, 599, 602, 606, 608, 610, 614, 621, 650, 654, 680
Zehnder 335, 343, 346, 376, 393, 409, 424, 475, 664, 677
Zehnder DX 5020 CV 664
Zehnder DX 5040 CV 664
Zehnder DX 6042 V 677
Zenith 482

Hauppauge, Satellite

Vendor Codesets
DEC boxes 0, 1


Nvidia Setup

CONTENTS:

1. Introduction
2. Layout of the nvidia-settings GUI
3. How OpenGL Interacts with nvidia-settings
4. Loading Settings Automatically
5. Commandline Interface
6. X Display Names in the Config File
7. Connecting to Remote X Servers
8. Licensing
9. TODO


1. Introduction

The `nvidia-settings` utility is a tool for configuring the NVIDIA
Linux graphics driver. It operates by communicating with the NVIDIA
X driver, querying and updating state as appropriate. This
communication is done with the NV-CONTROL X extension.

Values such as brightness and gamma, XVideo attributes, temperature,
and OpenGL settings can be queried and configured via nvidia-settings.

When nvidia-settings starts, it reads the current settings from
its configuration file and sends those settings to the X server.
Then, it displays a graphical user interface (GUI) interface for
configuring the current settings. When nvidia-settings exits, it
queries the current settings from the X server and saves them to
the configuration file.



2. Layout of the nvidia-settings GUI

The nvidia-settings GUI is organized with a list of different
categories on the left side. Only one entry in the list can be
selected at once, and the selected category controls which
"page" is displayed on the right side of the nvidia-settings GUI.

The category list is organized in a tree: each X screen contains
the relevant subcategories beneath it. Similarly, the Display
Devices category for a screen contains all the enabled display
devices beneath it. Besides each X screen, the other top level
category is "nvidia-settings Configuration", which configures
behavior of the nvidia-settings application itself.

Along the bottom of the nvidia-settings GUI, from left to right, is:
1) a status bar which indicates the most recently altered option;
2) a Help button that toggles the display of a help window which
provides a detailed explanation of the available options in the
current page; and 3) a Quit button to exit nvidia-settings.

Most options throughout nvidia-settings are applied immediately.
Notable exceptions are OpenGL options which are only read by OpenGL
when an OpenGL application starts.

Details about the options on each page of nvidia-settings are
available in the help window.



3. How OpenGL Interacts with nvidia-settings

When an OpenGL application starts, it downloads the current values
from the X driver, and then reads the environment (see APPENDIX E:
OPENGL ENVIRONMENT VARIABLE SETTINGS in the README). Settings from
the X server override OpenGL's default values, and settings from
the environment override values from the X server.

For example, by default OpenGL uses the FSAA setting requested by
the application (normally, applications do not request any FSAA).
An FSAA setting specified in nvidia-settings would override
the OpenGL application's request. Similarly, the __GL_FSAA_MODE
environment variable will override the application's FSAA setting,
as well as any FSAA setting specified in nvidia-settings.

Note that an OpenGL application only retrieves settings from the X
server when it starts, so if you make a change to an OpenGL value
in nvidia-settings, it will only apply to OpenGL applications which
are started after that point in time.



4. Loading Settings Automatically

The NVIDIA X driver does not preserve values set with nvidia-settings
between runs of the X server (or even between logging in and logging
out of X, with xdm, gdm, or kdm). This is intentional, because
different users may have different preferences, thus these settings
are stored on a per user basis in a configuration file stored in
the user's home directory.

The configuration file is named "~/.nvidia-settings-rc". You can
specify a different configuration file name with the "--config"
commandline option.

After you have run nvidia-settings once and have generated a
configuration file, you can then run:

nvidia-settings --load-config-only

at any time in the future to upload these settings to the X
server again. For example, you might place the above command in
your ~/.xinitrc file so that your settings are applied automatically
when you log in to X.

Your .xinitrc file, which controls what X applications should
be started when you log into X (or startx), might look something
like this:

nvidia-settings --load-config-only &
xterm &
evilwm

or:

nvidia-settings --load-config-only &
gnome-session

If you do not already have an ~/.xinitrc file, then chances are that
xinit is using a system-wide xinitrc file. This system wide file
is typically here:

/etc/X11/xinit/xinitrc

To use it, but also have nvidia-settings upload your settings,
you could create an ~/.xinitrc with the contents:

nvidia-settings --load-config-only &
. /etc/X11/xinit/xinitrc

System administrators may choose to place the nvidia-settings load
command directly in the system xinitrc script.

Please see the xinit(1) manpage for further details of configuring
your ~/.xinitrc file.



5. Commandline Interface

nvidia-settings has a rich commandline interface: all attributes
that can be manipulated with the GUI can also be queried and set from
the command line. The commandline syntax for querying and assigning
attributes matches that of the .nvidia-settings-rc configuration file.

The "--query" option can be used to query the current value of
attributes. This will also report the valid values for the attribute.
You can run `nvidia-settings --query all` for a complete list of
available attributes, what the current value is, and what values
are valid for the attribute. Additionally, individual attributes
may be specified like this:

nvidia-settings --query CursorShadow

Attributes that may differ per display device (for example
DigitalVibrance can be set independently on each display device
when in TwinView) can be appended with a "display device name"
within brackets; eg:

nvidia-settings --query DigitalVibrance[CRT-0]

If an attribute is display device specific, but the query does not
specify a display device, then the attribute value for all display
devices will be queried.

An attribute name may be prepended with an X Display name and a
forward slash to indicate a different X Display; eg:

nvidia-settings --query 192.168.1.33:0.0/DigitalVibrance[DFP-1]

An attribute name may also just be prepended with the screen number
and a forward slash:

nvidia-settings --query 0/DigitalVibrance[DFP-1]

in which case the default X Display will be used, but you can indicate
to which X screen to direct the query (if your X server has multiple
X screens). If no X screen is specified, then the attribute value
will be queried for all X screens.


The "--assign" option can be used to assign a new value to an
attribute. The valid values for an attribute are reported when the
attribute is queried. The syntax for --assign is the same as --query,
with the additional requirement that assignments also have an equal
sign and the new value. For example:

nvidia-settings --assign FSAA=2
nvidia-settings --assign 0/DigitalVibrance[CRT-1]=9


Multiple queries and assignments may be specified on the commandline
for a single invocation of nvidia-settings.

If either the --query or --assign options are passed to
nvidia-settings, the GUI will not be presented, and nvidia-settings
will exit after processing the assignments and/or queries.



6. X Display Names in the Config File

In the Commandline Interface section above, it was noted that you
can specify an attribute without any X Display qualifiers, with only
an X screen qualifier, or with a full X Display name. For example:

nvidia-settings --query FSAA
nvidia-settings --query 0/FSAA
nvidia-settings --query stravinsky.nvidia.com:0/FSAA

In the first two cases, the default X Display will be used, in the
second case, the screen from the default X Display can be overridden,
and in the third case, the entire default X Display can be overridden.

The same possibilities are available in the ~/.nvidia-settings-rc
configuration file.

For example, in a computer lab environment, you might log into any
of multiple workstations, and your home directory is NFS mounted
to each workstation. In such a situation, you might want your
~/.nvidia-settings-rc file to be applicable to all the workstations.
Therefore, you would not want your config file to qualify each
attribute with an X Display Name. Leave the "Include X Display Names
in the Config File" option unchecked on the nvidia-settings Configuration
page (this is the default).

There may be cases when you do want attributes in the config file to
be qualified with the X Display name. If you know what you are doing
and want config file attributes to be qualified with an X Display,
check the "Include X Display Names in the Config File" option on the
nvidia-settings Configuration page.

In the typical home user environment where your home directory is
local to one computer and you are only configuring one X Display,
then it does not matter whether each attribute setting is
qualified with an X Display Name.



7. Connecting to Remote X Servers

nvidia-settings is an X client, but uses two separate X connections:
one to display the GUI, and another to communicate the NV-CONTROL
requests. These two X connections do not need to be to the same
X server. For example, you might run nvidia-settings on the
computer stravinsky.nvidia.com, export the display to the computer
bartok.nvidia.com, but be configuring the X server on the computer
schoenberg.nvidia.com:

nvidia-settings --display=bartok.nvidia.com:0 \
--ctrl-display=schoenberg.nvidia.com:0

If "--ctrl-display" is not specified, then the X Display to control
is what "--display" indicates. If "--display" is also not specified,
then the $DISPLAY environment variable is used.

Note, however, that you will need to have X permissions configured
such that you can establish an X connection from the computer on
which you are running nvidia-settings (stravinsky.nvidia.com) to the
computer where you are displaying the GUI (bartok.nvidia.com) and the
computer whose X Display you are configuring (schoenberg.nvidia.com).

The simplest, most common, and least secure mechanism to do this
is to use 'xhost' to allow access from the computer on which
you are running nvidia-settings.

(issued from bartok.nvidia.com)
xhost +stravinsky.nvidia.com

(issued from schoenberg.nvidia.com)
xhost +stravinsky.nvidia.com

This will allow all X clients run on stravinsky.nvidia.com to
connect and display on bartok.nvidia.com's X server and configure
schoenberg.nvidia.com's X server.

Please see the xauth(1) and xhost(1) manpages, or refer to your Linux
Distribution's documentation on remote X applications and security.
You might also google for terms such as "remote X security" or "remote
X Windows", and see documents such as the Remote X Apps mini-HOWTO:

http://www.tldp.org/HOWTO/Remote-X-Apps.html

Please also note that the remote X server to be controlled must
be using the NVIDIA X driver.



8. Licensing

The source code to nvidia-settings is released as GPL. The most
recent official version of the source code is available here:

ftp://download.nvidia.com/XFree86/nvidia-settings/

Note that nvidia-settings is simply an NV-CONTROL client. It uses
the NV-CONTROL X extension to communicate with the NVIDIA X server
to query current settings and make changes to settings.

You can make additions directly to nvidia-settings, or write your
own NV-CONTROL client, using nvidia-settings as an example.

Documentation on the NV-CONTROL extension and additional sample
clients are available in the nvidia-settings source tarball.

Patches can be submitted to linux-bugs@nvidia.com.



9. TODO

There are many things still to be added to nvidia-settings. Some of
which include:

- configurability of TwinView (NVIDIA is planning to implement this)

- configurability of multiple X screens (NVIDIA is planning to
implement this)

- different toolkits? the GUI for nvidia-settings is cleanly
abstracted from the backend of nvidia-settings that parses
the configuration file and commandline, communicates with the X
server, etc. If someone were so inclined, a different frontend
GUI could be implemented.

- write a design document explaining how nvidia-settings is
architected; presumably this would make it easier for people to
become familiar with the code base.

If there are other things you would like to see added (or better yet,
would like to add yourself), please contact linux-bugs@nvidia.com.