KMilo: added keyboard support for screen brightness up/down. #21

Manually merged
MicheleC merged 1 commits from bug/2783/brightness into master 4 years ago
Owner

This is inspired and partially include code from Roman Savochenko
proposed in bug 2783 and #8.

This is inspired and partially include code from Roman Savochenko proposed in bug 2783 and #8.
MicheleC added this to the R14.0.9 release milestone 4 years ago
Collaborator

I noted that I could test the OSD ... brightness, I am not sure. I have desktop with DVI plugged monitor. I have never tried to control brightness via the keyboard. Need to find out if possible first.

I noted that I could test the OSD ... brightness, I am not sure. I have desktop with DVI plugged monitor. I have never tried to control brightness via the keyboard. Need to find out if possible first.
Poster
Owner

you need tdepowersave installed to test this PR btw. Using the keyboard button for brightness up/down should change the brightness of the screen, as long as this functionality is supported in your system. You can first check in tdepowersave if that is the case.

you need tdepowersave installed to test this PR btw. Using the keyboard button for brightness up/down should change the brightness of the screen, as long as this functionality is supported in your system. You can first check in tdepowersave if that is the case.
Collaborator

Hi Michele,
as mentioned I use desktop. It says the hardware does not support this feature. I will try an older notebook that I can boot in TDE later these days.

regards

Hi Michele, as mentioned I use desktop. It says the hardware does not support this feature. I will try an older notebook that I can boot in TDE later these days. regards
Poster
Owner

ok thanks 👍

ok thanks :+1:
Collaborator

Hi,
on the Dell D520 it works just fine with OSD showing the level.

Nice!

Note the report in tdemultimedia/pulls/4 - both brightness and mixer work with OSD

Hi, on the Dell D520 it works just fine with OSD showing the level. Nice! Note the report in tdemultimedia/pulls/4 - both brightness and mixer work with OSD
Poster
Owner

Fantastic, thanks for testing. Quick question: when you raise brightness to the max, does the OSD show the number 100% or less? On my laptop I only get to 98% but I know the brightness is at the max. It is either something specific to my laptop or a bug in TDEPowersave.

Fantastic, thanks for testing. Quick question: when you raise brightness to the max, does the OSD show the number 100% or less? On my laptop I only get to 98% but I know the brightness is at the max. It is either something specific to my laptop or a bug in TDEPowersave.
MicheleC closed this pull request 4 years ago
MicheleC deleted branch bug/2783/brightness 4 years ago
Collaborator

I don't know. If you want I can test explicitely. I did not memorize the number in the OSD. I think it was 100%, but can not bue sure. Let me know

I don't know. If you want I can test explicitely. I did not memorize the number in the OSD. I think it was 100%, but can not bue sure. Let me know
Poster
Owner

If you could do a quick check it would be great 😄

If you could do a quick check it would be great :smile:
Collaborator

Hi Michele,

confirmed it stays at 98% at the max. Interesting how it is calculated.

when decreesing it goes to 0%

Hi Michele, confirmed it stays at 98% at the max. Interesting how it is calculated. when decreesing it goes to 0%
Poster
Owner

Thanks for testing Emanoil. Interesting you get the same value I get. Could you check out something else for additional feedback? Using TDEPowersave or the keyboard shortcut, set the brightness to the max. Then run "dcop tdepowersave tdepowersaveIface brightnessGet" to get the brightness value. On my laptop I get 87%. Do you see the same value?

Thanks for testing Emanoil. Interesting you get the same value I get. Could you check out something else for additional feedback? Using TDEPowersave or the keyboard shortcut, set the brightness to the max. Then run "dcop tdepowersave tdepowersaveIface brightnessGet" to get the brightness value. On my laptop I get 87%. Do you see the same value?
Collaborator

Hi,

it is weird from dcop I receive -12, OSD says 98% and slider 100%.
Multimedia keys brightness down and it reads -25, -37

OSD 0% = dcop -100

you understand the logic as I do? from -100 to probably 0 in dcop

Hi, it is weird from dcop I receive -12, OSD says 98% and slider 100%. Multimedia keys brightness down and it reads -25, -37 OSD 0% = dcop -100 you understand the logic as I do? from -100 to probably 0 in dcop
Poster
Owner

Fantastic, thanks Emanoil.

-100 means a 100% reduction of brightness, -50 means half reduction, -25 a quarter and so on.

I see exactly the same values on my old notebook. It seems that when brightness is set to the max, TDEPowersave still returns a -12% value. 98% comes from the patch calculation and is in fact a fake value. If TDEPowersave was returning 0, the value would go up to 100%.

It seems there may be a bug in the way TDEPowersave handles brightness value and some investigation is required. I have added this to TDE/tdepowersave#6

Fantastic, thanks Emanoil. -100 means a 100% reduction of brightness, -50 means half reduction, -25 a quarter and so on. I see exactly the same values on my old notebook. It seems that when brightness is set to the max, TDEPowersave still returns a -12% value. 98% comes from the patch calculation and is in fact a fake value. If TDEPowersave was returning 0, the value would go up to 100%. It seems there may be a bug in the way TDEPowersave handles brightness value and some investigation is required. I have added this to TDE/tdepowersave#6
The pull request has been manually merged as 3c70b34ae3.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdeutils#21
Loading…
There is no content yet.