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
| | |-+  Smart Backlight
« previous next »
  • Print
Pages: [1]

Author Topic: Smart Backlight  (Read 8949 times)

Offline TheBashar

  • Member
  • *
  • Posts: 2
Smart Backlight
« on: July 12, 2008, 07:27:12 PM »
I would love to see an option to keep the backlight off when pressing keys which have an immediate effect and do not require viewing the screen.  Keys like track forward / back, volume up / down.  This would save a lot of battery when listening to music and only need occasional volume adjustments or track skips.

It looks like there is already a patch to do this for the c200.  It would be nice to have this ported to the other supported players and included in the standard builds.

http://www.rockbox.org/tracker/task/8400#comment24304
« Last Edit: July 27, 2008, 09:47:30 AM by soap »
Logged

Offline Zardoz

  • Member
  • *
  • Posts: 226
Re: Smart Backlight
« Reply #1 on: July 12, 2008, 11:20:52 PM »
I like this idea. Maybe configurable in terms of exactly what keys or combinations provoke the backlight?
Logged
"And I have looked into the face of the force which put the idea in your head. You are bred and led yourself"

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Smart Backlight
« Reply #2 on: July 12, 2008, 11:51:37 PM »
its not going to happen...
technical reason:
the backlight is handled by the "firmware" level. as soon as a button is pressed the backlight is turned on.
"volume +/-, next/prev track" are handled by the "apps" level (one level above firmware). we have a fairly strict rule that code can only go apps->firmware (i.e firmware is not allowed to call any apps level code)

So, you have a problem where the backlight needs to know if the X button was pressed because we are in the wps and want to vol+, or if we are in a list and want to change selection.

possible solution:
move the backlight enabling code into apps/action.c. but 1) thats not very nice from a code POV, 2) it isnt a wanted feature anyway.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Zardoz

  • Member
  • *
  • Posts: 226
Re: Smart Backlight
« Reply #3 on: July 13, 2008, 03:30:57 AM »
Fair enough. Thanks for the explanation. Z
Logged
"And I have looked into the face of the force which put the idea in your head. You are bred and led yourself"

Offline oayz

  • Member
  • *
  • Posts: 86
Re: Smart Backlight
« Reply #4 on: July 27, 2008, 05:09:54 AM »
Hmm, what about having diffrent timeout assign to keys?
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Smart Backlight
« Reply #5 on: July 28, 2008, 01:22:49 PM »
Quote from: JdGordon on July 12, 2008, 11:51:37 PM
its not going to happen...
technical reason:
the backlight is handled by the "firmware" level. as soon as a button is pressed the backlight is turned on.
"volume +/-, next/prev track" are handled by the "apps" level (one level above firmware). we have a fairly strict rule that code can only go apps->firmware (i.e firmware is not allowed to call any apps level code)

Couldn't the app layer register a 'filter' function which would tell to the backlight thread whether the backlight should be activated or not? The function itself would be at the app level and hence be aware of the current context. And whether the backlight should be turned on on a particular key press could even be specified in the key mappings thus allowing very fine grained tuning possibilities -- and in the right context.
Logged

Offline TheBashar

  • Member
  • *
  • Posts: 2
Re: Smart Backlight
« Reply #6 on: August 24, 2008, 07:33:07 PM »
Quote from: fml2 on July 28, 2008, 01:22:49 PM
Couldn't the app layer register a 'filter' function which would tell to the backlight thread whether the backlight should be activated or not? The function itself would be at the app level

I think that would violate the rule of not having firmware level code calling apps level code.  If the feature requested is to make the backlight have application context knowledge, the straight-forward fix is to move the backlight activation code up to the apps level.
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Smart Backlight
« Reply #7 on: August 27, 2008, 04:14:35 PM »
Quote from: TheBashar on August 24, 2008, 07:33:07 PM
I think that would violate the rule of not having firmware level code calling apps level code.  If the feature requested is to make the backlight have application context knowledge, the straight-forward fix is to move the backlight activation code up to the apps level.

I've created a patch, see FS#9305 I still think this does not violate the layering since the firmware code does not use app level API. And only that matters IMHO.
Logged

Offline oayz

  • Member
  • *
  • Posts: 86
Re: Smart Backlight
« Reply #8 on: September 01, 2008, 03:50:21 PM »
Couple of ideas:

- let f/w turn BL on but application can turn it immideatly off
-  make BL time-of-the-day dependent , e.g. no need for full BL beetween 7am-5pm
Logged

Offline delt

  • Member
  • *
  • Posts: 39
Re: Smart Backlight
« Reply #9 on: September 01, 2008, 09:45:52 PM »
Quote
- let f/w turn BL on but application can turn it immideatly off

Ideal solution imho.

Quote
-  make BL time-of-the-day dependent , e.g. no need for full BL beetween 7am-5pm

That would depend on the target player, for example my ipod nano's display is easily visible in the daylight with backlight off, but not the same for my sanyo. They probably use a different type of LCD, but i'm no expert on that.
Logged

Offline ryran

  • Member
  • *
  • Posts: 379
    • b19 photography
Re: Smart Backlight
« Reply #10 on: September 01, 2008, 10:08:39 PM »
Oh man. I so would be grateful to see a time-based auto-brightness setting.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Smart Backlight
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.066 seconds with 21 queries.