Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Feature Requests
  • Category Battery/Charging
  • Assigned To No-one
  • Operating System iAudio X5
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 3
  • Private
Attached to Project: Rockbox
Opened by galdor - 2007-07-29
Last edited by Marc_Guay - 2008-03-31

FS#7502 - Playing music while device is USB-plugged

On iPod and HP3xx, you can play music while the device is USB-plugged to a computer, which allow not to empty out the battery. You activate this mode holding a button (Menu) while you plug the device.

But on iAudio X5, the is no USBPOWER_BTN_IGNORE defined, so you can’t do this. It would be really useful to add this feature: why use battery when you have your laptop near ? (yes, laptop sound is terribly bad)

Closed by  zagor
2008-03-31 20:10
Reason for closing:  Duplicate
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Closing all feature requests.

I've looked at the source code of RockBox, and saw this:

#if CONFIG_KEYPAD == RECORDER_PAD
#define USBPOWER_BUTTON BUTTON_F1
#define USBPOWER_BTN_IGNORE BUTTON_ON
#elif CONFIG_KEYPAD == ONDIO_PAD
#define USBPOWER_BUTTON BUTTON_MENU
#define USBPOWER_BTN_IGNORE BUTTON_OFF
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
#define USBPOWER_BUTTON BUTTON_MENU
#define USBPOWER_BTN_IGNORE BUTTON_PLAY
#elif CONFIG_KEYPAD == IRIVER_H300_PAD
#define USBPOWER_BUTTON BUTTON_REC
#define USBPOWER_BTN_IGNORE BUTTON_ON
#elif CONFIG_KEYPAD == GIGABEAT_PAD
#define USBPOWER_BUTTON BUTTON_MENU
#define USBPOWER_BTN_IGNORE BUTTON_POWER
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
#define USBPOWER_BUTTON BUTTON_NONE
#define USBPOWER_BTN_IGNORE BUTTON_POWER
#elif CONFIG_KEYPAD == SANSA_E200_PAD
#define USBPOWER_BUTTON BUTTON_SELECT
#define USBPOWER_BTN_IGNORE BUTTON_POWER
#endif

Is it right to just add for example:

#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
# define USBPOWER_BTN_IGNORE BUTTON_PLAY

And after that, holding button play while plugging USB allow to play music during USB battery loading, isn't it ?

I'm not able to build a test for the moment (Gentoo's crossdev fails to build the cross-compilation chain you indicate on the wiki), but if it's just this, it's not a big deal to add to the CVS.

Project Manager

The X5 charging is partly software controlled, and we haven't yet written the code necessary to handle the X5 battery charging in Rockbox. It is therefore not enough to edit the keymap to make it work properly.

dogo commented on 2007-08-01 13:38

–Tracker Cleanup Week– would be very nice if USB-Connection could work with rockbox on.

japc commented on 2007-09-04 20:18

Interesting and useful. Would this work on iriver HP1x0 ?

Realy interesting function, there's some possibilities that the development of this one succeeds?

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing