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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Launch Rockbox without battery.
« previous next »
  • Print
Pages: [1]

Author Topic: Launch Rockbox without battery.  (Read 2142 times)

Offline JoChn

  • Member
  • *
  • Posts: 32
Launch Rockbox without battery.
« on: March 21, 2016, 01:06:55 PM »
Hi!
it can be a Rockbox issue, and little help to me.
OK. Let me explain. Few days ago I clean up (physically) my Sansa e260 and the battery became a little bit fat. I don't want to buy not original battery to player, so I thought "So maybe I can tranform my portable player into stationary tool that can monitor CPU Usage, HDD Usage, maybe I can control the cooling fans inside PC, maybe even display some infos directly from the games, like Logitech G15 keyboard! Or even more! Maybe sky is the limit!". So yeah, I've done very small, let's say "research" and check if Sansa can start without battery. And the answer is "Yes, but not on the Rockbox". Original firmware starts when just plug USB to player, and it becomes "Connected". On the Rockbox situation is a bit different, because it starts, but after few seconds "Shutting down" is visible, then restart and so on, but! When I plugged USB cable with battery and when Rockbox starts to "USB Keypad Mode: Multimedia", then you can remove battery and Rockbox still works (you can play/pause, click Next/Previous, control the volume). Unfortunately after PC restart, whole procedure with battery need to be done.

Soooo, what do you think?
« Last Edit: March 21, 2016, 03:09:03 PM by JoChn »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Launch Rockbox withut battery.
« Reply #1 on: March 21, 2016, 01:58:12 PM »
Assuming you mean an e200v1, you can probably just put the shut off voltage in this file to zero and then recompile:

http://git.rockbox.org/?p=rockbox.git;a=blob;f=firmware/target/arm/sandisk/sansa-e200/powermgmt-e200.c;h=6b7a47b74d01e1a3ab02073a0347365c2ef12498;hb=HEAD

Logged

Offline JoChn

  • Member
  • *
  • Posts: 32
Re: Launch Rockbox withut battery.
« Reply #2 on: March 21, 2016, 02:17:34 PM »
Yes, I have Sansa e200 v1.
Ok, I will give it a try. But there is one more thing. Can I launch some applications on the Rockbox while plug-in mode?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Launch Rockbox withut battery.
« Reply #3 on: March 21, 2016, 02:20:50 PM »
You can set rockbox to run a plugin automatically on start:

http://forums.rockbox.org/index.php?topic=26342.0
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Launch Rockbox without battery.
« Reply #4 on: March 23, 2016, 05:16:54 PM »
Quote from: JoChn on March 21, 2016, 02:17:34 PM
Can I launch some applications on the Rockbox while plug-in mode?

You can access the playback control menu if the plugin supports it, but that's pretty much it. Rockbox doesn't have the best multitasking capabilities (though it does support multithreading).
Logged
No support questions by PM, please.

Offline JoChn

  • Member
  • *
  • Posts: 32
Re: Launch Rockbox without battery.
« Reply #5 on: March 24, 2016, 09:42:19 AM »
So, is it possible to get infos from Windows? Like CPU Usage or (it will use bidirectional connection) to display and modify speed of the fans?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Launch Rockbox without battery.
« Reply #6 on: March 24, 2016, 10:13:20 AM »
In theory, although as currently designed out USB stack can't do that.
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Launch Rockbox without battery.
« Reply #7 on: March 26, 2016, 10:09:08 AM »
I'll put in a shameless plug for my "Duckyscript" plugin at this point. It has your device emulate a USB keyboard, and allows you to send scripted keystrokes to the computer:

http://gerrit.rockbox.org/r/#/c/1212/

You can use it to automate tasks such as running programs (on the computer) to change fan speed, or launch a task manager instance, etc.

For example, this script would launch a run dialog and run taskmgr.exe:

Code: [Select]
GUI r
STRING taskmgr.exe
ENTER
Logged
No support questions by PM, please.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Launch Rockbox without battery.
 

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

Page created in 0.121 seconds with 22 queries.