Rockbox Technical Forums

Support and General Use => User Interface and Voice => Topic started by: irfan on January 26, 2007, 12:04:32 AM

Title: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connector)
Post by: irfan on January 26, 2007, 12:04:32 AM
Ive just started researching rockbox and have been thru a lot of posts, and also did some searching, but i couldnt find this answer.  Im aware that the rockbox firmware on ipods cannot control much thru the dock connector but does support line out.  

I have a belkin autocharger that connects via the dock connector of my 1G Nano 2gb, this also acts as a line out from the ipod.  with the stock firmware when the car shuts off the ipod automatically pauses, and then after a minute it goes to sleep, which is nice. when i start the car i need to press play on the ipod, it doesnt auto resume.

with the rockbox so far ive noticed that when i start the car it starts playing automatically, this is nice... and the line out works fine.. but when i shut the car off the ipod does NOT automatically pause.  I know you cant send play/stop controls thru the dock connector,  but is there a way for the firmware to make the ipod pause upon the car shutting off?  like it sees there is no power coming thru the dock connector so it goes into pause mode?  for now if i want to use rockbox i need to rememebr to press pause everytime i get out of the car.

i didnt know if this was a feature that was impossible for now, or one that people have just overlooked so far?  I didnt see the option in any menus.. just "pause when headphones unplugged"..  but im not plugging anything into the headphone jack, just the dock connector.  the system knows when its getting power since it turns on, so when it stops getting power can it turn off?

Thanks for reading,
Irfan
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connector)
Post by: bascule on January 26, 2007, 04:50:22 AM
There is a 'Car Adapter Mode' in [menu]>General settings>System. I do not know if it has been implemented on the Nano, but it does exactly what you are looking for on my H120 :)
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: irfan on January 26, 2007, 02:50:18 PM
hmm ya im not seeing that in the menus for the nano... shame
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: dajuha on April 16, 2007, 12:13:05 AM
question: there are some patches available to address this issue.  Being that this is the only bug that still irks me on a daily basis I was wondering what steps need to be made in order to have this problem addressed.
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: dajuha on April 16, 2007, 12:15:44 AM
ah, one more thing:  here is the url of the patch(es) that exist:  http://www.rockbox.org/tracker/task/6940
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: oblib__ on May 09, 2007, 05:41:14 PM
I'm assuming you mean that you can't use the patch to do your own build? I guess the only thing you can do then is wait for the developers to commit the patch...

See http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide for help on how to build it yourself.
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connector)
Post by: dajuha on May 18, 2007, 07:50:37 AM
oblib, I managed to successfully patch and compile rockbox in Linux.  Unfortunately, the patch you modified (http://www.rockbox.org/tracker/task/6940) to address this bug(?) didn't work.  When I shut off my car the player stays on and continues playing.  If it helps, this is the car adapter that I'm using: http://www.pioneerelectronics.com/pna/v3/pg/product/details/0,,2076_310069910_307492523,00.html  What I hope is to have my ipod either shut off or pause itself when I shut off my car.  (so it needs to somehow recognize when it's no longer charging)
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: oblib__ on May 31, 2007, 03:27:49 PM
Did you turn on the settings to enable car mode? To enable, go to settings->general settings->system->car adapter mode, and you can also look at general settings->display->lcd settings->backlight (while plugged in).

If you did that, did you get the most recent patch (the third one posted)? I wasn't able to find anything that indicated which power pins your adapter was using -- do you know if it uses the firewire or usb pins? When you plug the ipod in, can you see a little charging icon appear on the top of the menu screen?

This patch should enable exactly the functionality you want -- it pauses the player when power is disconnected, and if you choose the right settings, the ipod turns off after a set time of idleness.
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connector)
Post by: dajuha on June 01, 2007, 01:43:23 PM
oblib, sorry buddy I posted this too soon.  Originally I was using an older patch.  Now that I'm using your newest one I can verify that your patch does indeed work, as indicated here: http://www.rockbox.org/tracker/task/6940?histring=car

I'm not sure what kind of connection my adapter uses.  If it helps this is what I have: http://www.pioneerelectronics.com/pna/v3/pg/shop/product/details/0,,2076_310070157_307492523,00.html  However, as indicated on your patch page I am recieving a kernel panic error when the unit attempts to turn itself back on during car adapter mode and I am forced to reboot the ipod.  If there is anything I can do to help clarify the reason for this error I will be happy to assist you.

Great work, btw.  Thanks a lot for your contribution.
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: oblib__ on June 07, 2007, 11:37:09 AM
Well, I can't recreate the bug, and according to the error, seems to be a stack overflow (Stkov) which could be caused by all sorts of things anywhere in the code. Unless someone else can point to what might be causing this, I can't help you. Sorry! Let me know (via the patch page) if you get any ideas.
Title: Re: iPod Nano : Automatically PAUSE / turn OFF when car turns off? (Dock Connec
Post by: dajuha on June 09, 2007, 02:40:20 PM
I am stumped.  My friend was impressed with Rockbox so he asked me to load it on his 1st gen Nano.  Out of curiosity I used a build with your patch, oblib.  To my surprise it works flawlessly in my car.

I've formatted and reinstalled Rockbox on my 1st gen Nano.  I keep getting the error but only on my player.  Maybe there is something physically wrong with my unit?

If this error was due to a faulty unit I'm going to feel bad about submitting a bug about it.  I should have looked into it further before speaking up.

Either way I've just purchased a new Nano and I'll let you know how I made out when it arrives in the mail.   :D