Updated Tunefix Guide
The
tunefix package automatically removes unwanted services following a retune, as an alternative to the
channeldel package and with different capabilities. It can also reorganise the allocation of services to LCNs. The objective is to ease the inconvenience of imposed automatic retunes, or when retunes are necessary due to reorganisations in the broadcast services.
tunefix and
channeldel can co-exist, but there is little point in having both installed at the same time (
tunefix now deactivates
channeldel on installation).
Note
When a retune occurs (automatic or manual), any recordings or reminders scheduled for services that are carried by the affected multiplexes (which is all of them, if it is an automatic retune or if auto is selected during a manual retune) are deleted from the schedule and must be reinstated. The schedule is backed up daily, or can be manually backed up, by the Custom Firmware Web Interface (WebIF). To restore the schedule from backup go to WebIF >> Schedule.
The schedule can also be restored automatically in the event of an unattended auto-retune wiping the schedule completely (subject to certain limitations) by installing the
auto-schedule-restore package.
The operation of
tunefix is governed by the configuration file
/mod/boot/tunefix.conf. If the file does not exist at installation time, a default will be created based on the existing tuning database. Any names listed in
/mod/boot/chandel.conf (the equivalent file for the
channeldel package) will also be imported. The configuration file can be viewed and edited via the WebIF file editor at
WebIF >> Diagnostics >> Utilities >> File Editor, and selected from the list of "commonly edited files" at the bottom of the page.
Any line not starting with one of the thirteen (case insensitive) keywords below is ignored. There may be multiples of any of them.
LCN|x
LCN|x-y
Removes LCN x or all LCNs in the inclusive range x-y. Multiple entries of either may be specified in a comma delimited list on the same line.
MUX|x
MUX|x-y
Removes all services tuned to RF channel x or RF channels x-y inclusive. Multiple entries of either may be specified in a comma delimited list on the same line.
REGION|name
Defines the region the user wishes to keep, removing any services which do not belong to any of the specified regions, using an exact (case insensitive) name match. Any remaining LCNs above 799 are remapped to those from corresponding service names below 800 from the LCNs to be deleted.
Note: Multi-region tuning is subject to limitations and potential mis-operation. For discussion of multi-region tuning, see HERE (click).
NAME|name
Removes any service which has a case insensitive match to the specified name, including optional wildcards:
* matches any number of characters, including none.
? matches exactly 1 character.
FORCE|x|name
Sets the specified service name to LCN x using an exact (case insensitive) name match.
FORCESVC|x|svc|name
Sets the specified service name to LCN x using an exact (case insensitive) name match, but only where the service ID matches svc.
MOVE|...
MUXMOVE|...
CLONE|...
CLONE1|...
REMOVESVC|...
REMOVEMUX|...
RENAME|...
MUX,
FORCESVC and more than one
REGION line are not (currently) supported by the Web Interface settings page, which will remove them when saving changes. If you use these advanced configuration capabilities, you need to edit the
/mod/boot/tunefix.conf file manually!
Example Configuration File
Code:
LCN|170-199,211-299,790-799
REGION|West
FORCE|1|BBC ONE West
FORCE|2|BBC TWO
FORCE|3|ITV
FORCE|4|Channel 4
FORCE|7|Made In Bristol
FORCE|33|ITV +1
FORCE|101|BBC ONE HD
FORCE|103|ITV HD
FORCE|719|BBC Bristol
NAME|Al Jazeera Arabic
NAME|BT Sport*
NAME|Community
NAME|Create & Craft
NAME|Food Network
NAME|Gems TV
NAME|Ideal World
NAME|Jewellery Maker
NAME|QVC*
NAME|Rishtey*
NAME|Rocks & Co 1
NAME|TBN UK
NAME|The Store
NAME|TJC
NAME|VIVA
Thanks to
Black Hole for the original text.