Third Party > Unsupported Builds

USB charge only mode

(1/2) > >>

Hey all,
I'm looking for some help. I'm trying to get this feature into a build for my 7th gen iPod:
It's throwing errors when compiling. I've asked others for help and they have the same errors.
As I explained to someone else:

 My problem is this: I upgraded the head unit in my car to an android based unit. The factory aux port doesn't work. It has an iPod control, but my Rockbox'd unit doesn't work with it. I did figure out that if I force the iPod into charge only mode by holding down menu when I plug it into the head unit, audio will play. I have to control it directly from the iPod, but it will play. The problem is every time the iPod starts, it defaults to connect mode and not charge mode. It's a pain to have to unplug and replug holding the menu button every time I start my car. With the oem unit, I put the iPod in car adapter mode and it worked great through the aux input. The new unit also has a sub port, but when I plug into that it causes the head unit to crash. I'm just dying to get my music back so it starts and stops automatically with my car. Other than that, the Android head unit is sick. Any input you have is greatly appreciated! I'm using a 7th gen iPod with a 256gb SD card in it.

That patch is almost 6 years old.  Its not going to apply.  You'll have to go through it line by line and add the code manually to each file.

I'm just not that experienced. If anyone can help, I'd be most grateful.


--- Quote from: stealiesubie on January 17, 2015, 04:02:15 PM ---I'm just not that experienced. If anyone can help, I'd be most grateful.

--- End quote ---

Isn't there only an option to enable or disable USB charging right now? I can't recall.

Dr Matt:
Sorry to necro this thread but I would really appreciate this feature too. I have Rockbox successfully running on my iPod Gen 7 but every time I plug it into my car's iPod adaptor kit (, Rockbox goes into USB file transfer mode and I lose all functionality. Just as the OP points out, I can over-ride this by pushing a button while connecting the device but having to do this every time I start the car is pretty frustrating.

An option to make charging mode the default would be most welcome. Actually, simply reversing the default behaviour so that I have to push a button to enter file transfer mode rather than charging mode would be perfectly adequate. Has anyone been able to accomplish this with a recent Rockbox build?

I think the functionality that I'm after is associated with this piece of code from firmware/usb.c:

--- Code: ---/* Power (charging-only) button */
static inline bool usb_power_button(void)
    return (button_status() & ~USBPOWER_BTN_IGNORE);
    return false;

--- End code ---

I've been trying to get my head around the syntax but its a pretty steep learning curve. Maybe the solution is obvious to one of the super users. Any advice/comments are very welcome.


[0] Message Index

[#] Next page

Go to full version