Summary: | brightness control keys: OSD appears but brightness does not change | ||
---|---|---|---|
Product: | [Plasma] plasma4 | Reporter: | Andreas Kuhl <mail> |
Component: | widget-battery | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | giorgos.tsiapaliokas, KaiUweBroulik2, rk |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | proposed patch |
Description
Andreas Kuhl
2010-08-02 16:23:19 UTC
I see this bug in KDE 4.5.3. The OSD is shown, but brighness level doesn't change. Changing it with the slider in the battery widget works. Forgot to add: seeing this on Kubuntu 10.04 with KDE 4.5.3 from the Backports PPA. *** Bug 258179 has been marked as a duplicate of this bug. *** my box's specifications are: Qt: 4.7.1 KDE Development Platform: 4.5.4 (KDE 4.5.4) os:gentoo ~amd64(testing) machine:toshiba qosmio f60 in my box with generic kernel i cannot reproduce the bug. also i tried that bug in openSUSE 11.3 and i can't reproduce it there. This is more likely a bug in your Linux distribution/kernel/whatever than in KDE. Try starting your system with the kernel parameters “acpi_osi=Linux”. This solves the issue that your brightness cannot be adjustet in most cases. what will happen with the current stauts of the bug? Created attachment 55950 [details] proposed patch I can confirm that the bug is still there in kde 4.5.5. Origin ====== Everything worked in KDE 4.4. Regression appeared after fixing the bug #182400. Reason ====== In http://websvn.kde.org/tags/KDE/4.5.5/kdebase/workspace/solid/hal/halpower.cpp the m_brightnessInHardware variable is set to true by default. That is wrong, because there's no "brightness_in_hardware" property sometimes, in that case it remains true while actually it should be false. And for my laptop there's no such property: $ qdbus --system \ org.freedesktop.Hal \ /org/freedesktop/Hal/Manager \ org.freedesktop.Hal.Manager.FindDeviceByCapability \ laptop_panel /org/freedesktop/Hal/devices/computer_backlight $ qdbus --system \ org.freedesktop.Hal \ /org/freedesktop/Hal/devices/computer_backlight \ org.freedesktop.Hal.Device.GetPropertyBoolean \ laptop_panel.brightness_in_hardware Error: org.freedesktop.Hal.NoSuchProperty No property laptop_panel.brightness_in_hardware on device with id /org/freedesktop/Hal/devices/computer_backlight Solution ======== Set it to false by default. Attached "patch" fixed the problem for me, and brightness keys work again. PS: I guess similar patch should be applied to trunk http://websvn.kde.org/trunk/KDE/kdebase/workspace/powerdevil/daemon/backends/hal/powerdevilhalbackend.cpp as well. SVN commit 1214118 by aseigo: default to false, so if the dbus call fails it will be set to something appropriately pessimistic. patch by Sergey. BUG:246521 M +1 -1 powerdevilhalbackend.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1214118 SVN commit 1214119 by aseigo: default to false, so if the dbus call fails it will be set to something appropriately pessimistic. patch by Sergey. BUG:246521 M +1 -1 powerdevilhalbackend.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1214119 |