Originally Posted by
NetMedic
I tried the ir_codes.tcl file and of course set my file system to read/write before I started
./ir_codes.tcl
"permission denied"
You need to first give the file execute permission, then you may execute it, this can be done as follows:
Code:
chmod 755 ir_codes.tcl
./ir_codes.tcl
Originally Posted by
NetMedic
the ir_codes.tcl file is appended. Does this look right? This is the code downloaded form T1voZA's irconvert page with "switch sequences" ticked.
Your 'ir_codes.tcl' file looks fine, the device number is set to '30002' which means you will need to run the dbset command (as explained when executing the script) in order for your TiVo to make use of the new codes.
Originally Posted by
NetMedic
I've been trying to find where, in the tivo image, the list of cable box codes is located, so I can play with that directly, rather than using scripts which seem not to work. But I can't find where, on the tivo image, the stb codes live. I've looked all over the wiki and can't find this information. The wiki says something about a /stb sudirectory, which seems not to exist in the current image, I've searched all over for that.
The cable codes are stored within the TiVo's MFS (i.e. it's proprietary database). You can view all the stored codes in TivoWeb from the following address:
http://yourtivoip/mfs/Component/Ir/TivoFormat
Since the MFS isn't editable, the only way in which to update the codes is by updating the MFS records and thus the need for the scripts.
Originally Posted by
NetMedic
I'm fed up of scripts which don't work, and scripts which result in a brick rather than a tivo. Unfortunately I don't know linux scripts well enough to pick out the faults in them. It seems a lot of stuff on the wiki relates to old images and when I try to use the scripts blind, either the directory doesn't exist on the new image, some file or proc doesn't exist, or I get a "permission denied" error despite setting the file system to read/write.
To solve the problem of the new codes corrupting your MFS and causing a reboot loop, rather test the ir codes without uploading them into the mfs.
To achive this, first do the following:
Code:
mkdir /hack/ircodes
cd /hack/ircodes
wget tivoza.nanfo.com/downloads/testcodes.tgz
tar -xzvf testcodes.tgz
You only need to perform the above once.
To make use of the above, you need to supply it with a codeset file. You can create the codeset file using the "IR Convert" webpage in the same manner as which you created the "ir_codes.tcl" file but this time set the "Output format" to "TiVo codes". Download the generated "ir.codes" file and ftp it to your TiVo's '/hack/ircodes' directory (created above).
You can now test each button code by typing the following:
Code:
cd /hack/ircodes
./irlock testcode.tcl ir.codes Dig1
./irlock testcode.tcl ir.codes Dig2
./irlock testcode.tcl ir.codes Dig3
./irlock testcode.tcl ir.codes Dig4
./irlock testcode.tcl ir.codes Dig5
./irlock testcode.tcl ir.codes Dig6
./irlock testcode.tcl ir.codes Dig7
./irlock testcode.tcl ir.codes Dig8
./irlock testcode.tcl ir.codes Dig9
./irlock testcode.tcl ir.codes Dig0
The script will execute the specifed button 10 times.
By performing the above you'll now be able to test new codes simply by uploading a new ir.codes file. No need for updating the MFS and no need for rebooting at any stage.
When testing your codes, you may find that one of the codes causes your TiVo to reboot. This won't cause your TiVo to go into a reboot loop cycle but it does indicate that the learnt code is erroneous and if adjusting it's "burst pairs" settings (using the "IR Convert" webpage) doesn't help fix the codes, you'll need to relearn the code.
I would suggest you create some test code files using the following "burst pairs" settings:- Retain all sequences
- Remove single press sequence
- Remove repeat sequence
- Retain all sequences + switch sequences
- Remove single press sequence + switch sequences
- Remove repeat sequence + switch sequences
Bookmarks