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

Συγχωνεύτηκαν χειροκίνητα
MicheleC συγχώνευσε 1 υποβολές από bug/2783/brightness σε master 4 έτη πριν
MicheleC σχολίασε 4 έτη πριν
Ιδιοκτήτης

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 το πρόσθεσε στο R14.0.9 release ορόσημο 4 έτη πριν
deloptes σχολίασε 4 έτη πριν
Συνεργάτης

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.
MicheleC σχολίασε 4 έτη πριν
Συντάκτης
Ιδιοκτήτης

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.
deloptes σχολίασε 4 έτη πριν
Συνεργάτης

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
MicheleC σχολίασε 4 έτη πριν
Συντάκτης
Ιδιοκτήτης

ok thanks 👍

ok thanks :+1:
deloptes σχολίασε 4 έτη πριν
Συνεργάτης

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
MicheleC σχολίασε 4 έτη πριν
Συντάκτης
Ιδιοκτήτης

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 έκλεισε αυτό το pull request 4 έτη πριν
MicheleC διέγραψε το κλάδο bug/2783/brightness 4 έτη πριν
deloptes σχολίασε 4 έτη πριν
Συνεργάτης

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
MicheleC σχολίασε 4 έτη πριν
Συντάκτης
Ιδιοκτήτης

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

If you could do a quick check it would be great :smile:
deloptes σχολίασε 4 έτη πριν
Συνεργάτης

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%
MicheleC σχολίασε 4 έτη πριν
Συντάκτης
Ιδιοκτήτης

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?
deloptes σχολίασε 4 έτη πριν
Συνεργάτης

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
MicheleC σχολίασε 4 έτη πριν
Συντάκτης
Ιδιοκτήτης

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
Το pull request έχει συγχωνευθεί χειροκίνητα ως 3c70b34ae3.
Συνδεθείτε για να συμμετάσχετε σε αυτή τη συνομιλία.
Δεν υπάρχουν εξεταστές
Χωρίς Ορόσημο
Χωρίς Αποδέκτη
2 Συμμετέχοντες
Ειδοποιήσεις
Ημερομηνία Παράδοσης

Δεν ορίστηκε ημερομηνία παράδοσης.

Εξαρτήσεις

Δεν έχουν οριστεί εξαρτήσεις.

Αναφορά: TDE/tdeutils#21
Φόρτωση…
Δεν υπάρχει ακόμα περιεχόμενο.