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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Battery indicator in PC
« previous next »
  • Print
Pages: [1]

Author Topic: Battery indicator in PC  (Read 2644 times)

Offline kiddykoff

  • Member
  • *
  • Posts: 2
Battery indicator in PC
« on: January 07, 2012, 08:38:45 PM »
I setup Ubuntu 11.10 for my girlfriend a while back and recently I noticed something cool. When she was charging her Itouch via USB there was a battery indicator of the USB device under the indicator for her Laptop battery.

I looked into it and this is what i mean:
https://wiki.ubuntu.com/Power?action=show&redirect=BatteryStatusMenu#Battery_menu


I don't think she has installed anything to do this, so the operating system must be listening for messages from the device. Is it possible that Rockbox could do this?
Logged

Offline bertrik

  • Developer
  • Member
  • *
  • Posts: 171
    • Homepage Bertrik Sikken
Re: Battery indicator in PC
« Reply #1 on: January 08, 2012, 08:47:10 AM »
As far as I know there is no standard protocol to query the charge status of an attached audio player, but apparently apple made their own way of doing this. I think they use some kind of special SCSI (over USB) command for synchronising the time, perhaps they use the same mechanism for getting the charge status too.

So, someone need to figure out how they do this and the have a look if we can emulate it in rockbox.
Logged
Meizu M6SP, Samsung YP-S3, iPod nano 1g, Sansa c200, Sansa e200, Sansa Clip, Sansa Clip+, Sansa Clip Zip
 

Offline fuflo

  • Member
  • *
  • Posts: 4
Re: Battery indicator in PC
« Reply #2 on: January 08, 2012, 10:56:58 AM »
isn't it part of mtp protocol? I saw the same on my sansa clip. If connected over mtp, i get battery level in windows for the device. I might be wrong, haven't used mtp at all for a couple of years. Just this topic caught my attention.

Also a quick searching gave me this:

http://www.linux-magazine.com/Issues/2009/104/MTP-in-Linux

Code: [Select]
09 MTP-specific device properties:
10    Friendly name: superk
11    Synchronization partner: {64DAA456-CB9A-4FED-905C-6674746D2C1C}
12    Battery level 93 of 100 (93%)
Quote
Listing 1 is just a brief snippet of the output produced by mtp-detect, which not only detects the device but also lists the types of files the device can handle, as well as other attributes like the battery level.
Logged

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Battery indicator in PC
« Reply #3 on: January 08, 2012, 11:06:10 AM »
I was going to post something else but fuflo already did a great research job... in that case, Rockbox would need to implement MTP instead of simple mass-storage for battery level reading to be possible. Too bad I don't like MTP... or just put a setting so we can switch between the two like on the Sansa's OF :)

Jokes apart, I don't think mouses that report their battery status use MTP just for that. Must be some other protocol (which eventually is easier to implement in Rockbox).
Logged
http://gbl08ma.com | http://i.tny.im

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Battery indicator in PC
« Reply #4 on: January 08, 2012, 11:17:11 AM »
I'm fairly certain that apple's istuff don't implement mtp so it's probably some other mechanism, anyway i'd say the chances of rockbox getting mtp are slim.
Logged

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Battery indicator in PC
« Reply #5 on: January 08, 2012, 11:22:49 AM »
Probably every device implements the battery level reporting its own way and it's the OS drivers that need to do the job of finding the battery level for the device they drive. There's no standard for battery reading or time syncing through USB as far as I know.
Logged
http://gbl08ma.com | http://i.tny.im

Offline bertrik

  • Developer
  • Member
  • *
  • Posts: 171
    • Homepage Bertrik Sikken
Re: Battery indicator in PC
« Reply #6 on: January 08, 2012, 12:12:09 PM »
With mtp-detect indeed I *can* get a battery reading from a clip zip in the original firmware MTP mode, but I don't see it show up somewhere in the ubuntu GUI (I even tried with a compiled version of the most recent libmtp-tools)
Logged
Meizu M6SP, Samsung YP-S3, iPod nano 1g, Sansa c200, Sansa e200, Sansa Clip, Sansa Clip+, Sansa Clip Zip
 

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Battery indicator in PC
« Reply #7 on: January 08, 2012, 12:22:46 PM »
What Ubuntu version are you using? Are you using Unity? I have a feeling this battery freshness is only available in 11.10... and perhaps only for Apple devices  :-\
Logged
http://gbl08ma.com | http://i.tny.im

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Battery indicator in PC
 

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

Page created in 0.092 seconds with 15 queries.