Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][KDE 5] Can't control my backlight brightness
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
AnOriginalNick
n00b
n00b


Joined: 02 Apr 2015
Posts: 14

PostPosted: Thu Aug 27, 2015 11:27 am    Post subject: [SOLVED][KDE 5] Can't control my backlight brightness Reply with quote

Hello there.

After migrating to the KDE5 I cannot control brightness of my notebook backlight through standard means, it works manually through /sys/... but the battery widget reports that backlight control is unavailable. Is there some obscure dependency I am missing?

Cheers.


Last edited by AnOriginalNick on Wed Sep 02, 2015 12:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Thu Aug 27, 2015 12:53 pm    Post subject: Reply with quote

do you see acpi events in your system log when you
try to change screen brightness?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
kensington
Developer
Developer


Joined: 02 Jan 2013
Posts: 177
Location: Australia

PostPosted: Thu Aug 27, 2015 4:12 pm    Post subject: Reply with quote

Do you have powerdevil installed, and if so which version? Do you use systemd, and how do you launch your Plasma session?
Back to top
View user's profile Send private message
AnOriginalNick
n00b
n00b


Joined: 02 Apr 2015
Posts: 14

PostPosted: Thu Aug 27, 2015 7:19 pm    Post subject: Reply with quote

kensington wrote:
Do you have powerdevil installed, and if so which version? Do you use systemd, and how do you launch your Plasma session?


The list of the kde software installed:
kde-apps/ark-4.14.3-r1
kde-apps/dolphin-4.14.3
kde-apps/gwenview-4.14.3
kde-apps/kcalc-4.14.3
kde-apps/kde4-l10n-15.08.0
kde-apps/kde-dev-scripts-4.14.3
kde-apps/kdialog-4.14.3
kde-apps/kfind-4.14.3
kde-apps/kioclient-4.14.3
kde-apps/kmix-15.08.0
kde-apps/konsole-4.14.3
kde-apps/kwrite-4.14.3
kde-apps/libkdcraw-4.14.3-r1
kde-apps/libkipi-4.14.3
kde-apps/libkonq-4.14.3
kde-apps/oxygen-icons-15.04.3
kde-apps/umbrello-4.14.3
kde-base/baloo-4.14.3
kde-base/baloo-widgets-4.14.3
kde-base/kactivities-4.13.3
kde-base/katepart-4.14.3
kde-base/kde-env-4.14.3
kde-base/kdelibs-4.14.11
kde-base/kdepimlibs-4.14.10
kde-base/kfilemetadata-4.14.3
kde-base/pykde4-4.14.3
kde-frameworks/attica-5.13.0
kde-frameworks/baloo-5.13.0
kde-frameworks/bluez-qt-5.13.0
kde-frameworks/extra-cmake-modules-5.13.0
kde-frameworks/frameworkintegration-5.13.0
kde-frameworks/kactivities-5.13.0
kde-frameworks/karchive-5.13.0
kde-frameworks/kauth-5.13.0
kde-frameworks/kbookmarks-5.13.0
kde-frameworks/kcmutils-5.13.0
kde-frameworks/kcodecs-5.13.0
kde-frameworks/kcompletion-5.13.0
kde-frameworks/kconfig-5.13.0
kde-frameworks/kconfigwidgets-5.13.0
kde-frameworks/kcoreaddons-5.13.0
kde-frameworks/kcrash-5.13.0
kde-frameworks/kdbusaddons-5.13.0
kde-frameworks/kdeclarative-5.13.0
kde-frameworks/kded-5.13.0
kde-frameworks/kdelibs4support-5.13.0
kde-frameworks/kdesignerplugin-5.13.0
kde-frameworks/kdesu-5.13.0
kde-frameworks/kdewebkit-5.13.0
kde-frameworks/kdoctools-5.13.0
kde-frameworks/kemoticons-5.13.0
kde-frameworks/kf-env-3
kde-frameworks/kfilemetadata-5.13.0
kde-frameworks/kglobalaccel-5.13.0
kde-frameworks/kguiaddons-5.13.0
kde-frameworks/khtml-5.13.0
kde-frameworks/ki18n-5.13.0
kde-frameworks/kiconthemes-5.13.0
kde-frameworks/kidletime-5.13.0
kde-frameworks/kinit-5.13.0
kde-frameworks/kio-5.13.0
kde-frameworks/kitemmodels-5.13.0
kde-frameworks/kitemviews-5.13.0
kde-frameworks/kjobwidgets-5.13.0
kde-frameworks/kjs-5.13.0
kde-frameworks/kjsembed-5.13.0
kde-frameworks/knewstuff-5.13.0
kde-frameworks/knotifications-5.13.0
kde-frameworks/knotifyconfig-5.13.0
kde-frameworks/kpackage-5.13.0
kde-frameworks/kparts-5.13.0
kde-frameworks/kpeople-5.13.0
kde-frameworks/kpty-5.13.0
kde-frameworks/kross-5.13.0
kde-frameworks/krunner-5.13.0
kde-frameworks/kservice-5.13.0
kde-frameworks/ktexteditor-5.13.0
kde-frameworks/ktextwidgets-5.13.0
kde-frameworks/kunitconversion-5.13.0
kde-frameworks/kwallet-5.13.0-r1
kde-frameworks/kwidgetsaddons-5.13.0
kde-frameworks/kwindowsystem-5.13.0
kde-frameworks/kxmlgui-5.13.0
kde-frameworks/kxmlrpcclient-5.13.0
kde-frameworks/networkmanager-qt-5.13.0
kde-frameworks/plasma-5.13.0
kde-frameworks/solid-5.13.0
kde-frameworks/sonnet-5.13.0
kde-frameworks/threadweaver-5.13.0
kde-misc/synaptiks-0.8.1-r4
kde-plasma/bluedevil-5.4.0
kde-plasma/breeze-5.4.0
kde-plasma/kde-cli-tools-5.4.0
kde-plasma/kdecoration-5.4.0
kde-plasma/kde-gtk-config-5.4.0
kde-plasma/kdeplasma-addons-5.4.0
kde-plasma/kgamma-5.4.0
kde-plasma/khelpcenter-5.4.0
kde-plasma/khotkeys-5.4.0
kde-plasma/kinfocenter-5.4.0
kde-plasma/kmenuedit-5.4.0
kde-plasma/kscreen-5.4.0
kde-plasma/ksshaskpass-5.4.0
kde-plasma/ksysguard-5.4.0
kde-plasma/kwallet-pam-5.4.0
kde-plasma/kwayland-5.4.0
kde-plasma/kwayland-integration-5.4.0
kde-plasma/kwin-5.4.0
kde-plasma/kwrited-5.4.0
kde-plasma/libkscreen-5.4.0
kde-plasma/libksysguard-5.4.0
kde-plasma/milou-5.4.0
kde-plasma/oxygen-5.4.0
kde-plasma/oxygen-fonts-5.4.0
kde-plasma/plasma-desktop-5.4.0
kde-plasma/plasma-mediacenter-5.4.0
kde-plasma/plasma-meta-5.4.0
kde-plasma/plasma-nm-5.4.0
kde-plasma/plasma-pa-5.4.0
kde-plasma/plasma-sdk-5.4.0
kde-plasma/plasma-workspace-5.4.0
kde-plasma/plasma-workspace-wallpapers-5.4.0
kde-plasma/polkit-kde-agent-5.4.0
kde-plasma/powerdevil-5.4.0
kde-plasma/sddm-kcm-5.4.0
kde-plasma/systemsettings-5.4.0
kde-plasma/user-manager-5.4.0

I am using OpenRC. I am launching it in the usual way by setting displaymanager to sddm, which launches my plasma sessions. Perhaps I am missing some permissions for sddm or/and plasma?
Back to top
View user's profile Send private message
kensington
Developer
Developer


Joined: 02 Jan 2013
Posts: 177
Location: Australia

PostPosted: Thu Aug 27, 2015 7:20 pm    Post subject: Reply with quote

You could try with some other display manager like lightdm - there are known issues with openrc and sddm due to lack of consolekit support.
Back to top
View user's profile Send private message
AnOriginalNick
n00b
n00b


Joined: 02 Apr 2015
Posts: 14

PostPosted: Thu Aug 27, 2015 7:58 pm    Post subject: Reply with quote

Finally solved id! It was a polkit issue, added a rule for backlight and it works now.

For reference

Code:

polkit.addRule(function(action, subject) {
        if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 &&
        subject.isInGroup("users")) {
                return polkit.Result.YES;
        }
});
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1247
Location: Edinburgh, UK

PostPosted: Tue Sep 22, 2015 1:48 pm    Post subject: Reply with quote

AnOriginalNick wrote:
Finally solved id! It was a polkit issue, added a rule for backlight and it works now.

For reference

Code:

polkit.addRule(function(action, subject) {
        if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 &&
        subject.isInGroup("users")) {
                return polkit.Result.YES;
        }
});


AnOriginalNick, to what file would I add this rule?
Back to top
View user's profile Send private message
AnOriginalNick
n00b
n00b


Joined: 02 Apr 2015
Posts: 14

PostPosted: Tue Sep 22, 2015 6:55 pm    Post subject: Reply with quote

Havin_it wrote:
AnOriginalNick wrote:
Finally solved id! It was a polkit issue, added a rule for backlight and it works now.

For reference

Code:

polkit.addRule(function(action, subject) {
        if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 &&
        subject.isInGroup("users")) {
                return polkit.Result.YES;
        }
});


AnOriginalNick, to what file would I add this rule?


You should add it to /etc/polkit-1/rules.d/<some_number>-<name>.rules (for example 10-backlight.rules). Do note that this particular rule requires your user to be in users group, you can easily edit that by removing "&& subject.isInGroup("users")" clause if you want (or adding your user to users). Polkit automatically updates current rules after some time period, but you can hasten the process by rebooting.
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1247
Location: Edinburgh, UK

PostPosted: Sun Sep 27, 2015 1:10 pm    Post subject: Reply with quote

AnOriginalNick wrote:
Havin_it wrote:
AnOriginalNick wrote:
Finally solved id! It was a polkit issue, added a rule for backlight and it works now.

For reference

Code:

polkit.addRule(function(action, subject) {
        if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 &&
        subject.isInGroup("users")) {
                return polkit.Result.YES;
        }
});


AnOriginalNick, to what file would I add this rule?


You should add it to /etc/polkit-1/rules.d/<some_number>-<name>.rules (for example 10-backlight.rules). Do note that this particular rule requires your user to be in users group, you can easily edit that by removing "&& subject.isInGroup("users")" clause if you want (or adding your user to users). Polkit automatically updates current rules after some time period, but you can hasten the process by rebooting.


Thanks; it works like a charm!

Note to self: must educate myself a bit about polkit, I've body-swerved doing so whenever possible but a working knowledge might help me resolve a lot of the minor account-related quirks I put up with daily (like this one).
Back to top
View user's profile Send private message
mdshort
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 157

PostPosted: Fri Apr 22, 2016 3:58 am    Post subject: Reply with quote

Thanks you! This resolved my issue. This file should be provided by default.
_________________
"With every rise, there is a fall."
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 211
Location: European sticks

PostPosted: Mon Jul 03, 2017 1:19 pm    Post subject: Reply with quote

Though the thread is old perhaps it will help someone:


had the same issue, what worked for me was simply to append acpi_backlight=video to kernel parameters in grub.conf

graphic card Nvidia GeForce GTX 680M and all the relevant kernel options compiled in
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum