Config.txt File: Difference between revisions

From Sharpfin
Jump to navigation Jump to search
Line 155: Line 155:
== Changes to /root/hwconfig/all_radios.txt ==
== Changes to /root/hwconfig/all_radios.txt ==


Most if not all models seem to refer to this file in their main config, so it's contents are presumably referenced as if the y were in the main configxxx.txt
Most if not all models seem to refer to this file in their main config, so it's contents are presumably referenced as if they were in the main configxxx.txt


  Option:
  Option:
Line 167: Line 167:
Tested on a IR100 with v.257-a-421-a-057 firmware, the text was already there, I just had to change the instruction from 'off' to 'on'
Tested on a IR100 with v.257-a-421-a-057 firmware, the text was already there, I just had to change the instruction from 'off' to 'on'


The only radio know of with this feature as standard is the Tangent Quattro with up to date firmware.
The only radio I know of with this feature as standard is the Tangent Quattro with up to date firmware.


== Further notes and observations ==
== Further notes and observations ==

Revision as of 23:08, 13 January 2008

Introduction

Radios have a configuration file, which is named ConfigXXXX.txt, where XXXX is the hardware number of the radio, which you can find with 'Configure / Version'. For example, an IR-100 is 1012. The Radios page has known hardware numbers.

The configuration file can be changed to enable/disable certain features. Some of these may add a feature a particular user finds useful. For example, those using the alarm clock may prefer it to be higher in the menu structure, or the history feature might be useful to get back to a recent stream.

Process to edit configuration file

Even with the old firmwares, there are many features of radios which are disabled. to enable these features, you may not even have to upgrade the firmware, but you will have to be familiar with Linux Command Line and the editor 'vi'.

  • Apply the sharpfin patch, see Enabling Login
  • Log into the radio using telnet (user & password = admin)
  • Look in /root or /root/hwconfig, depending on the current firmware version of your radio
  • Find your configxxxx.txt file (The xxxx is the Hardware Id, which you can find in 'Configure / Version')
  • Look in it and others in the same directory to work out what modifications you wish to make (such as enabling alarms)
  • Issue the command 'mount / -orw,remount' to unprotect the partition
  • Edit the configxxxx.txt file with 'vi configxxxx.txt'
  • ':i<ENTER>' to enter Insert mode
  • Double Check your edits
  • Now treble check them!
  • Hit <ESC> to leave Insert Mode and enter Command mode
  • ':w<ENTER>' To write current file (if you are sure and wish to save it)
  • ':q!<ENTER>' To exit 'vi'
  • Write protect the drive with 'sync;mount / -oro,remount'
  • Reboot the radio

Comments on the Config.txt file

Space for commented config.txt file (can others add information as it is known and relevant comments please )


Confirmed edits to /root/hwconfig/config1012.txt on a Logik IR-100:

Option:
stations-history
on

Option:
history-size
20

...shows the last 20 streams listened to. History info gets stored in: /root/config/PRE_history.ini, and persists after a power cycle.

Option:
standby-text
*** Simbo ***

...replaces the 'Reciva Radio' text in standby. Use of UTF-8 encoded text in the private which is defined as special symbols in the reciva LCD driver (published by reciva as part of the GPL kernel source) is known to brick the radio. Other non-ASCII text may also have this effect, and there may be a length limit, so you should have a backup strategy before venturing beyond simple short ASCII sequences.

Option:
clock-in-config-menu
on

...adds Clock in Configure. - Did not appear when used with Firmware v. 257-a-421-a-057

Option:
clock-format-menu
on

...lets you change from 24hr to AM/PM - Clock will default to 24hr if there is an active alarm.

Option:
stereo-mode
stereo

Option:
stereo-mode-menu
on

...this adds a Stereo menu in Configure with Stereo/Mono options.

Option:
aux-menu
on

...this adds the menu option Equalisation under Configure & with Treble -14/+14 and Bass -14/+14 - it did nothing to the treble/bass on an IR-100.

Option:
contrast-menu
on

...adds the menu option Contrast under Configure & counts up/down with the wheel, doesn't alter the contrast on an IR-100.

Option:
volume-control
on

Option:
initial-volume
28

...whilst listening to a stream, the wheel alters the volume with an on-screen graphic to indicate min/max Volume. Not much use on an IR-100 - which has the audio-amp volume knob. - Easiest to use with 'official' volume control at maximum and use select knob only.

I believe the 'initial-volume' refers to the volume of the alarm, changing the value does not appear to have any effect on an IR100 with 257-a-421-a-057 FW.


( Please edit / add more configuration options as known )

From "grepping" through the configxxx.txt

Option:
alarm-clock
off|config1|config2|no-alarm

off: no clock at all, no-alarm: just a clock, no alarm. config1&config2: alarm clock functionality enabled, difference between settings not yet known. 'config1' = alarm goes straight to radio without buzzer (IR100 257-a-421-a-057)


Option:
number-of-alarms
5

This allows you to set multiple alarms and choose weekdays, weekends etc and whether to use the buzzer or a preset - NOTE - Any selected preset must remain tuned to the same channel for the alarm to continue to tune to radio - NOTE - All alarms start with a buzzer, which sounds for 20-30 secs and then tunes to a chosen station, which as to be selected from the 5 presets - Can be switched at will by pressing the Select knob. Buzzer can be disabled by using the alarm clock/config2 hack above.


Option:
power-on-select-key
on

This allows a select spinner press to turn the radio on


Option:
menu-timeout
10

This controls how long a menu is shown before dropping back to the now playing screen


Option:
back-as-menu-item
on

Adds a <<Back option to every menu


Option:
presets-as-menu-items
on

This shows all your presets in "My stuff" list


Option:
off-in-main-menu
on

This shows an off option at the bottom of the main menu

Option:
long-select-action
popup

This enables an equalizer menu accessed with a long press of the Select button - Note this is visible but completely non functional on the IR100.

Changes to /root/hwconfig/all_radios.txt

Most if not all models seem to refer to this file in their main config, so it's contents are presumably referenced as if they were in the main configxxx.txt

Option:
reply-button-function
on

Pressing the reply button when tuned to a stream calls up an add to favourites menu, which adds the stream to 'My Stations' on the radio and your Reciva account.

It may work if you place it in the main configxxx.txt for your radio, but I have not tested it.

Tested on a IR100 with v.257-a-421-a-057 firmware, the text was already there, I just had to change the instruction from 'off' to 'on'

The only radio I know of with this feature as standard is the Tangent Quattro with up to date firmware.

Further notes and observations

This thread on the Reciva website has a few clues ( which may now all be explained above ).


Here is a screen shot from a display with changes to the configXXXX.txt file http://sharpfin.zevv.nl/images/1/14/LCD-menu.jpg