Rockbox Technical Forums

Installation / Removal => Manual Installation => Iriver - Installation/Removal/Flashing => Topic started by: Anton on December 12, 2012, 08:12:44 PM

Title: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: Anton on December 12, 2012, 08:12:44 PM
Hello Everybody,

I am using Rockbox for quite a while and like it a lot.
Yesterday I installed RB version 3.12 on an iRiver H10 Pure. This model has no FM radio integrated. I was using the Rockbox Utility for installation. It worked well and the player is working well too with Rockbox.
There is only one issue so far: the RB main menu contains the "FM Radio" topic. And it can be selected and started. But there is no physical FM Radio on this player and therefore selecting and activating this menu entry creates some unpleasant noise.
I could not find any way to remove the "FM Radio" from the main menu of RB.
Is there a possibility to do so?

Any help is greatly appreciated.

Thanks in advance, Anton
Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: saratoga on December 12, 2012, 08:28:35 PM
I think this should do it:

http://download.rockbox.org/daily/manual/rockbox-iriverh10_5gb/rockbox-buildch13.html#x16-32200013.1.1

Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: Anton on December 12, 2012, 09:01:42 PM
saratoga, thank you for the really quick reply.

I modified a config file accordingly. But it did not change anything in the main menu.

I attach the config file I was using. Maybe you (or somebody else) can find what's wrong with it.

Regards,
Anton
Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: saratoga on December 12, 2012, 09:09:38 PM
You have a return right after "root menu order:", so you're basically telling it you want no root menu items which I don't think is allowed.
Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: Anton on December 13, 2012, 03:53:10 AM
Hello saratoga,

I can't follow you.
I modified the config02.cfg with Notepad++
This Editor does not show me any return after "root menu order:", as you wrote.
See attached screenshot.

What editor die show you the return?
Or did I misunderstand you?

Maybe you can post or email me a "correct" cfg file?

Thanks,
Anton

Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: [Saint] on December 13, 2012, 10:02:58 PM
Maybe you can post or email me a "correct" cfg file?

Here's one I prepared earlier (http://www.datafilehost.com/download-2770fb33.html)...
(Just transfer this file to your player and "run" it by selecting it {note: You may need to change the file view settings to 'Supported' or 'All' in order to view the config file in the File Browser})
Take a note of the format of the config file if you want to. You can jiggle around the menu structure any way you want, I have simply kept the original menu structure sans FM Radio.


[Saint]
Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: Anton on December 14, 2012, 05:12:46 PM
Thank you Saint for your cfg file.

It modified the main menu of my iRiver but only gave me "Files" and "Settings" in the main menu.
After removing the spaces (except the one after the colon) between the items in the list of your files it worked well. I did this because chapter 13.1 of the online help (see link pasted by saratoga above) states: "... is a comma separated list (no spaces around the commas!) ..."

Then I copied the complete line from your 'menu_order.cfg' (where it worked) into my 'config02.cfg' files and loaded my file on the player. The result was the default menu including the "FM Radio" entry.

After looking closely to your cfg file and comparing it with mine I realized, that yours only had <LF> at the end of the line - which is Unix default - and mine had <CR><LF> which is Windows default.

After changing this setting in the my 'config02.cfg' file with my 'default' editor Notepad++ (the default Windows editor 'Notepad' - without the '++' in the filename - is not able to do this modification) my cfg also worked.
Now I understand what saratoga wrote in his second reply.

What I learned from this is, that the cfg file for Rockbox has to follow the Unix standard for a new line.

See attached screen shots for details.

Thank you again saratoga and Saint for your help.

Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: [Saint] on December 14, 2012, 09:09:06 PM
Regarding the spaces between CSV values:

I'm terribly sorry, an oversight on my part. I copied/pasted the string of options straight from the manual in an attempt to avoid typing it out by hand and the font was too small for me to see there were spaces in there...sorry (I need an editor with a fixed width font on my phone :-S). I am so used to this not mattering at all (it usually doesn't matter a crap if there's a space between CSVs or not, ...and, it shouldn't either, really. It would be trivial to ignore and makes it a whole lot easier to read for both sighted users and non-sighted users relying on a screen reader, for instance.)

It is interesting you said that the .cfg from me loaded the Files and Settings menus. Settings I understand, as that menu is always added as a safety feature...


Regarding the line endings(<LF> vs. <CR><LF>):

This shouldn't matter at all, and I would definitely call this a bug if it indeed does.


[Saint]
Title: Re: How can I remove "FM Radio" from the Menu on a H10 5GB Pure (no radio)
Post by: torne on December 17, 2012, 09:25:16 AM
As I noted in another thread already, Rockbox in general has file reading functions that accept any kind of line endings, and if this doesn't work then it's a bug.