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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  day / night mode by hour
« previous next »
  • Print
Pages: [1] 2 3 4

Author Topic: day / night mode by hour  (Read 12223 times)

Offline rbhawaii

  • Member
  • *
  • Posts: 125
day / night mode by hour
« on: November 21, 2012, 06:29:38 PM »
hello
i made two config files one called DAY and one called NIGHT
one is super bright with white bold font, and one is super dim with thin dark yellow font, this is great for the ipod video in the car

is it possible to have rb activate one at 7pm and activate the other at 6am?

if not is this a feature the developers are interested in looking at?

thanks!
Logged

Offline KiwiCam

  • Artist
  • Member
  • *
  • Posts: 92
Re: day / night mode by hour
« Reply #1 on: December 03, 2012, 10:00:32 PM »
Well. That's one way of getting around the day/night issue. It should be possible to set the theme to change all the colours after and before a certain time, but that's a lot work. Especially if you frequently change themes.

http://forums.rockbox.org/index.php/topic,35804.0.html
Logged

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: day / night mode by hour
« Reply #2 on: December 04, 2012, 05:59:55 AM »
i read the link you posted above where the person requested a auto contrast change, and i think that would be hard considering that my ipod and rb have no contrast settings (only led brightness settings) so i can imagine that a contrast feature would be a lot to code... BUT my feature request seems to be an easier deal. simply have rockbox load a (user created) config file at one time and another (user created) config file at another time. inside the config file are the screen brightness settings the font and colors and anything else you want.

 i have already been doing this manually for about 5 years the real minus of doing it manually is this... when you turn on rb the next day and its still set to super dark "night mode" from the night before its near impossible to see anything on the screen with the sun light out side, so my feature request would solve that problem automatically, it would be so great :)
Logged

Offline KiwiCam

  • Artist
  • Member
  • *
  • Posts: 92
Re: day / night mode by hour
« Reply #3 on: December 04, 2012, 01:05:03 PM »
That person was me. What I'm referring to in that thread is Menu/Settings/General Settings/Display/LCD Settings/BRIGHTNESS.

Just replace in your mind the word contrast with brightness (which is actually mentioned i that suggestion). Either way, if there's a way of changing the BRIGHTNESS as a quick toggle, or a preset time period ie evening to morning/Morning to evening, than that's what I'm after.

I too like it bright during the day, but during the night (say I wake up and decide to switch it on) it's way too bright. I have to hold my Clip right up to my face to read the screen (as I'm not wearing my glasses in bed) and a Day/Night toggle or timed toggle would be a great feature.
Logged

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #4 on: December 31, 2012, 11:39:17 AM »
I'll see if I can add this into whiskers75/rockbox.  ;)
Please note that this is NOT stable in any way and may cause your player to explode. Just RoLo the code instead of installing it to be safe!
Updates:
1 - Found the brightness toggle - in apps/settings.c - backlight_set_brightness();
2 - Need a way to access the time, and update accordingly. Devs? :)
3 - If I'm right, I should use 'struct tm *time' 'get_time()' from timefuncs.h.
4 - Commit 3abee1f3f948266f38e7004f240e64060323039a in branch day/night: I've added a little test to see if I can get the hour and minute. If someone could test this, I would be grateful.

https://github.com/whiskers75/rockbox/commit/3abee1f3f948266f38e7004f240e64060323039a

5 - Commit c74f15db9775d8110cc429c7377b916b7d6c2a69 in branch day/night: I've added in THEME_TIME. Could some dev help here? :)

https://github.com/whiskers75/rockbox/commit/c74f15db9775d8110cc429c7377b916b7d6c2a69

6 - Prototype 1 is coming on! (Sorry for my sucky C code, I'm new to C)

7 - Commit 0b688a3ba0fba9177757fc7e8eb316c424d7b836 in branch day/night: Day/night should be working now! Just configure a few global_settings - .dnenabled, .nighttime, .daybright and .nightbright!

https://github.com/whiskers75/rockbox/commit/0b688a3ba0fba9177757fc7e8eb316c424d7b836
« Last Edit: January 02, 2013, 03:53:49 AM by whiskers75 »
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #5 on: December 31, 2012, 12:18:39 PM »
If we could get a developer or someone with more knowledge than me in here, that would be good.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: day / night mode by hour
« Reply #6 on: December 31, 2012, 04:45:34 PM »
i dont know if this helps or matters
the day and night config files change this info

font bold/regular
font color
led brightness

i found only those 3 are needed for the change every 12 hours
 
« Last Edit: January 02, 2013, 09:07:22 AM by rbhawaii »
Logged

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #7 on: January 01, 2013, 03:20:36 AM »
Quote from: rbhawaii on December 31, 2012, 04:45:34 PM
i dont know if this helps or matters
the day and night config files change this info

font bolt/regular
font color
led brightness

i found only those 3 are needed for the change every 12 hours
Yes, I am trying to implement LED brightness. Currently, 'night-time' is classified as 22:00 -> 00:00. I'll try to implement a config option for it.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #8 on: January 01, 2013, 05:53:54 AM »
What brightness value would you like for day and night?
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: day / night mode by hour
« Reply #9 on: January 01, 2013, 09:16:30 PM »
I think you are going about this completely wrongly.
Why don't you write a plugin which stays active (like battery_bench) which checks the time against some *configurable* value and runs a day.cfg config if it changes to day and a night.cfg config when it changes to night? then  questions about brightness is up to the user and not randomly/arbitrarily chosen by "someone on the internet"?

edit: If its done in a plugin there is a far bigger chance of it being accepted into mainline
Logged


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

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #10 on: January 02, 2013, 03:21:55 AM »
Good idea, I'll try that.
EDIT: I think I'd much rather have it in main.c as then it could be configured easier.
« Last Edit: January 02, 2013, 03:33:03 AM by whiskers75 »
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: day / night mode by hour
« Reply #11 on: January 02, 2013, 03:00:21 PM »
Quote from: whiskers75 on January 02, 2013, 03:21:55 AM
EDIT: I think I'd much rather have it in main.c as then it could be configured easier.

I'm curious what makes you think this.


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

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: day / night mode by hour
« Reply #12 on: January 02, 2013, 05:21:51 PM »
these are my day and night night config settings on the ipod 240gb video

day...
brightness: 22
foreground color: FFFFFF
background color: 000000
line selector start color: FFFFFF    
line selector end color: FFFFFF          
line selector text color: 000000
font: /.rockbox/fonts/24-neep-alt-12x24-bold-L1.fnt



night...
brightness: 2
foreground color: 948A31
background color: 000000
line selector start color: 000000
line selector end color: 000000
line selector text color: FFFFFF
font: /.rockbox/fonts/24-neep-alt-12x24-L1.fnt

Logged

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: day / night mode by hour
« Reply #13 on: January 03, 2013, 05:32:28 AM »
When I get my code working, you should be able to set 'daybright: 22', 'nightbright: 2', 'dnenabled: 1' to get brightness working.
[Saint], if I were to do it in a plugin, how would I access global_settings?
Current build status:
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: day / night mode by hour
« Reply #14 on: January 03, 2013, 05:50:09 AM »
rb->global_settings
Logged


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

  • Print
Pages: [1] 2 3 4
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  day / night mode by hour
 

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

Page created in 0.562 seconds with 22 queries.