Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  a way to configure general options through a config file?
« previous next »
  • Print
Pages: [1]

Author Topic: a way to configure general options through a config file?  (Read 3271 times)

Offline hoss81

  • Member
  • *
  • Posts: 7
a way to configure general options through a config file?
« on: February 25, 2007, 11:25:42 AM »
My 4th generation ipod's buttons don't work and so i need a way to configure the rockbox to start playing if i plug in my headphones and turn off whenever i take them out. unfortunately it seems the only way i can do that is by selecting the options in the ipod... is there a way that i can use a config file or some other file to change the general settings? Thanks
Logged

Offline ryran

  • Member
  • *
  • Posts: 379
    • b19 photography
Re: a way to configure general options through a config file?
« Reply #1 on: February 25, 2007, 11:46:25 AM »
Which buttons do and don't work?
You CAN set options for pause/resume on unplug/plug-in... Just put the following on it's own line in config.cfg in your .rockbox dir:
Code: [Select]
pause on headphone unplug: pause and resume

I assume you know that you can't make your ipod start-up or shut-down just from headphone events though, right?
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: a way to configure general options through a config file?
« Reply #2 on: February 25, 2007, 11:46:38 AM »
Read the section the manual relating to the Manage Settings menu.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline hoss81

  • Member
  • *
  • Posts: 7
Re: a way to configure general options through a config file?
« Reply #3 on: February 25, 2007, 03:47:01 PM »
none of  my buttons work. i'm only able to turn the ipod on either by turning on and off the hold switch or by applying power to the ipod. any suggestions on how to start playing the music? or would the rockbox automatically play songs if i plugged in my headphones. also do i just need to edit the default cfg file for all of my settings, because that hasn't seemed to work. sorry about all of the questions. and thanks for your time
« Last Edit: February 25, 2007, 05:21:48 PM by hoss81 »
Logged

Offline hoss81

  • Member
  • *
  • Posts: 7
Re: a way to configure general options through a config file?
« Reply #4 on: March 01, 2007, 12:35:10 AM »
anyone know?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: a way to configure general options through a config file?
« Reply #5 on: March 01, 2007, 03:09:34 AM »
I assume you're running a new enough version that the recent config changes are present.

Oh, and considering your iPod is effectively completely trashed, this is a real kludgy workaround that I'm not actually certain will work because I can't see how it will know what playlist to resume...

Download a simulator for your iPod from here: http://rasher.dk/rockbox/simulator/
Run the simulator and configure it how you want it to operate, including a playlist containing all your music and the option 'Resume on startup' set.
Save the config inside the simulator.
Rename the config file to fixed.cfg
Copy that file to the .rockbox folder on your iPod.
Startup and cross your fingers ;)
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline hoss81

  • Member
  • *
  • Posts: 7
Re: a way to configure general options through a config file?
« Reply #6 on: March 01, 2007, 03:27:40 AM »
thanks a lot, i'll give that a try and hope for the best
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: a way to configure general options through a config file?
« Reply #7 on: March 01, 2007, 09:21:59 AM »
I think you also have to copy the nvram.bin file as well as the .playlist_control file from the sim to your player as well as making sure that your files are in the same relative place in both player and sim and that you made a playlist.
Logged

Offline hoss81

  • Member
  • *
  • Posts: 7
Re: a way to configure general options through a config file?
« Reply #8 on: March 05, 2007, 09:34:03 PM »
what about the _temp_codec0.dll file?
Logged

Offline hoss81

  • Member
  • *
  • Posts: 7
Re: a way to configure general options through a config file?
« Reply #9 on: March 05, 2007, 11:30:30 PM »
ok, everything works except whenever i take out my headphones the song does not pause. the code in my config file is:

"Pause on headphone unplug: Pause and Resume"

"pause on headphone unplug: pause and resume"

i've tried both cases just in case
is there anything wrong?
« Last Edit: March 05, 2007, 11:33:23 PM by hoss81 »
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: a way to configure general options through a config file?
« Reply #10 on: March 06, 2007, 12:52:49 AM »
I have my headphones set to pause when unplugged, and resume when plugged.  The line in my config file is (copy/paste)
Code: [Select]
pause on headphone unplug: 2
I presume 0 is off, 1 is pause, but don't quote me on that.

I also have rewind set to 5 seconds:
Code: [Select]
rewind duration on pause: 5
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline ryran

  • Member
  • *
  • Posts: 379
    • b19 photography
Re: a way to configure general options through a config file?
« Reply #11 on: March 06, 2007, 02:04:03 AM »
Yotto is apparently using an older build, or a cfg file from one. Your string is correct, hoss.
Code: [Select]
pause on headphone unplug: pause and resume
should do just fine if the player actually supports detecting headphone events.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: a way to configure general options through a config file?
« Reply #12 on: March 06, 2007, 02:38:24 AM »
Quote from: ryran on March 06, 2007, 02:04:03 AM
Yotto is apparently using an older build, or a cfg file from one.

I am.  Sorry about that.  I always make sure I update before asking a question, never thought to when answering one :)
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline hoss81

  • Member
  • *
  • Posts: 7
Re: a way to configure general options through a config file?
« Reply #13 on: March 06, 2007, 03:51:20 AM »
I guess my headphone jack is messed up as well since the screen doesn't even light up whenever i plug it in. there doesn't happen to be another way to pause the ipod without using the buttons. like configure rockbox to pause whenever the hold button is on and resume when its off? Thanks for all of the help
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  a way to configure general options through a config file?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.104 seconds with 14 queries.