Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/refactor backlight stuff #394

Merged
merged 5 commits into from
Feb 11, 2017

Conversation

redPanther
Copy link
Contributor

@redPanther redPanther commented Feb 10, 2017

1. Tell us something about your changes.

  • fix colors dont turn off when backlight 0 and black is set (Min Brightness is not setting the leds to black #391)
  • add option to use not colored backlight (set threshold to lower value as used for colored backlight for best results)
  • fix colored backlight not colored on very low color values
  • various code style tunings

(this pr is a preparation for more tunings on brightness settings)

2. If this changes affect the .conf file. Please provide the changed section
yes:
brighnessMin -> backlightThreshold
new option: backlightColored

3. Reference an issue (optional)
#391

- fix colors dont turn of when backlight 0 and black is set
- add option to use not colored backlight
- fix colored backlight not colored on very low color values
- various code style tunings
@brindosch
Copy link
Contributor

brindosch commented Feb 10, 2017

Great!

Could i request something regarding minimum brightness?
Do not apply if (activePriority->compId color or effect)
Effects look weird with minimum brightness. I think it is more a support for ambient light than colors and effects
Is there a signal/slot that could be triggered to mod adjustments?

Thank you :)

@redPanther
Copy link
Contributor Author

it's possible, sad thing is, after implemention I loose a good tool to test backlight. I used setting a color to test it.

@penfold42
Copy link
Contributor

Make it optional ?

BacklightEnableForEffects : "false"

@janpfischer
Copy link
Contributor

janpfischer commented Feb 10, 2017

Sadly no changes in the backlight topic for me after first testing. I will log the data send to LEDs

Edit this are the values when my screen is totally black:

20 20 21 => 0 20 20 21
20 21 21 => 0 20 21 21
21 21 21 => 0 21 21 21
21 21 22 => 0 21 21 22
21 21 22 => 0 21 21 22
20 21 22 => 0 20 21 22
20 20 22 => 0 20 20 22
20 21 21 => 0 20 21 21
20 21 20 => 0 20 21 20
20 21 20 => 0 20 21 20
20 21 21 => 0 20 21 21
20 21 21 => 0 20 21 21
20 21 21 => 0 20 21 21
20 20 21 => 0 20 20 21

@redPanther
Copy link
Contributor Author

redPanther commented Feb 11, 2017

This means your screen isnt black. That are the values from grabber. Please add gamma try 1.5 I use 2.5
Btw the values mean that yozr adjustments dont change anything. Thats correct, because you set all values to default.

@janpfischer
Copy link
Contributor

Oh in my old config there were other values. I must overseen that, sorry.
Working now with 2,5 on all channels.
0 0 0 => 0 0 0 0
:)

@redPanther
Copy link
Contributor Author

@brindosch : Do not apply if (activePriority->compId color or effect)

done ...

@redPanther redPanther merged commit e1165e1 into hyperion-project:master Feb 11, 2017
@oberstmueller
Copy link

Hi,
Ich bekomme beim Compilen auf dem Pi 3 im diesen Fehler.

/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): In function _dbus_listen_systemd_sockets': (.text+0x1b58): undefined reference to sd_listen_fds'
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): In function _dbus_listen_systemd_sockets': (.text+0x1b98): undefined reference to sd_is_socket'
collect2: error: ld returned 1 exit status
src/hyperiond/CMakeFiles/hyperiond.dir/build.make:231: recipe for target 'bin/hyperiond' failed
make[2]: *** [bin/hyperiond] Error 1
CMakeFiles/Makefile2:1573: recipe for target 'src/hyperiond/CMakeFiles/hyperiond.dir/all' failed
make[1]: *** [src/hyperiond/CMakeFiles/hyperiond.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

@redPanther
Copy link
Contributor Author

das gleiche hatten wir hier #279 schon. bitte dort weiter diskutieren

@brindosch
Copy link
Contributor

So, after some tests i have to say. Very good!
As you fixed the color on low levels, i switched to white backlight. For me it is too distracting now

@redPanther
Copy link
Contributor Author

glad you like it :-) now we have to master the brightness stuff ....

@redPanther redPanther deleted the backlight branch April 13, 2017 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants