This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10198 - USB charge only setting
Attached to Project:
Rockbox
Opened by Jonathan Gordon (jdgordon) - Monday, 11 May 2009, 02:01 GMT+2
Opened by Jonathan Gordon (jdgordon) - Monday, 11 May 2009, 02:01 GMT+2
|
Detailsthis patch adds a setting to choose what to do on a usb connection. default is to connect. options are charge only or connect..
holding *any* button will swap the outcome... it works, but not perfectly... and the manual patch needs to be checked |
This task depends upon
I am currently working on HID class driver, which will use other buttons while connected, e.g. Volume control (of the host machine), aka multimedia keyboard.
I prefer keeping the 'single button to go out' for now.
@Kugel - This isn't a configurable button thing. You don't pick which button does anything.
I don't mind, as time passes, opinions change.
Thanks for this. - I've been hoping to do a similar patch for about a year now.
The sim build fails though:
LD rockboxui.exe
/home/Steve/rockbox/buildsim/apps/settings_list.o: In function `get_settings_list':
/home/Steve/rockbox/apps/settings_list.c:1486: undefined reference to `_usb_set_charge_setting'
I guess that settings_list.c (etc.) should only worry about usb_charging and usb_charge_only if HAVE_USB_POWER is defined.
Personally I like the idea of having any button work, but I'm a bit nervous about doing this in general
A couple of things that could be added:
* An option to ask the user which USB mode is intended (connect vs charge-only)
* Translations
Your latest patch doesn't apply cleanly any more, I'm afraid. I've attached my adapted version of the patch.
I don't want to trigger recharging whenever I quickly add some files to my device. Allthough modern Li-ion batteries won't suffer from memory effects, it is still beneficial to completely unload them from time to time (~50 cycles) before recharging.