Registered Member
|
Hi,
I'm running Debian testing, sporting KDE 4.12.4, on a Asus G55VW. At some point using KDE 4.11.x I had no trouble using my Fn+F3,F4 to change my keyboard's backlight brightness. An update (I wasn't keeping track so I can't say it was the 4.11 -> 4.12 migration or before that) eventually messed that up. The hardware is working properly:
THe above does the trick and changes the keyboard backlight brightness to level 1 of 3. Furthermore, xev reports the correct keycodes (as far as I can tell) for the the combinations Fn+F3 and Fn+F4.:
Finally the correct configuration appears to be in place, in the System Settings > Shortcuts and Gestures > Global Keyboard Shortcuts > KDE Daemon for the fields of: Decrease/Increase keyboard brightness But it still doesn't work! (except using echo as superuser). I've also noticed it works fine with an old script I used to use before KDE added this functionality in the 4.11 release. I suppose I could go back to the script, but I would prefer to fix what's broken with KDE. Any help is appreciated! Thanks Andres |
Administrator
|
If you click on the battery applet, are you able to change the brightness using the controls offered there?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yes, but the controls I see are ONLY for screen brightness. I'm talking about the keyboard brightness (and I don't see any controls there) |
Administrator
|
Sorry - I got the screen/keyboard rightness confused.
Are you automatically logging in by any chance? If so, if you logout and then back in, does that have any impact on the visibility of keyboard brightness controls?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I am NOT logging in automatically. However, I did as you suggested, logged out and then back in and that did the trick!, it works flawlessly now.... I'm confused why on first login it doesn't work though.. any clues? |
Administrator
|
It is probably because necessary services haven't yet started or the driver hasn't yet loaded - which prevents the keyboard backlight from being detected. Unfortunately KDE's Power Management system doesn't watch for new devices after it's initial scan (or it isn't possible to do so) which is why it only shows up on the subsequent login.
If you wait 30 seconds or so after your system starts up and then login, does this also alleviate the issue?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I see. That is unfortunate. The curious thing is that it was working at some point, but suddenly this changed, I guess this is some sort of race condition. The kernel module responsible for the driver is asus-nb-wmi. I wonder if there's a way to speedup its loading.
I've accidentally tried this in the past and It does not help. |
Administrator
|
Before logging in to the KDE desktop, could you check to see if the asus-nb-wmi module is loaded?
I suspect that it may be the KDE startup process which triggers the loading of this module - which is too late for it to be of use.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I tested this and the answer is YES, the module is loaded before login. I don't understand what's wrong. Let me know if you have you other suggestions Andres |
Administrator
|
Unfortunately i'm out of ideas - you could try comparing the output of "upower -d" in a broken and working session though (at least on my system it doesn't cover brightness devices, so i'm not sure if it will be of relevance in this case).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Well, in a "broken system", using the CLI I can change the keyboard backlight brightness by using upower as follows:
where ${value}} can be 0,1,2 or 3. So what I'm saying is that upower works like a charm. I used to have a script using this command for controlling the keyboard backlight brightness in previous KDE versions. |
Administrator
|
Just wondering, before logging into KDE could you login on a VT and check to see if UPower is running on the system bus?
(Don't try to directly call it as this will cause it to launch). If it is not running, does calling UPower and making it start allow subsequent KDE sessions to work properly?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I changed to a VT, logged in and tried this command:
The result was that upower is NOT running on the system prior to login.
Simply invoking upower didn't trigger it to run on my system. What I did, was to invoke the command to change keyboard brightness, as I posted earlier. After this, the upower daemon appeared in the list of running processes. I logged out of the VT, logged in KDM and success! KDE recognized the keyboard brightness capabilities of my laptop. It seems this is expected from upowerd:
I will submit the information in a bug report with Debian. Do you know how to remedy the situation in the meantime? (i.e. make upowerd start before login). Thanks! |
Administrator
|
Try creating a script in ~/.kde4/env/ which simply runs "qdbus --system org.freedesktop.UPower". This should be enough to trigger UPower to start up.
In this case I think the bug may actually be in KDE - as we should be detecting the presence of new brightness mechanisms or batteries as they become available (assuming UPower is informing us of them) although it is probably also a bug in UPower that this information only becomes available some point after it's initial start.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thank you! this works!
I see. Where should I submit this bug report? |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]