Page 1 of 1

[SOLVED] Powerkit problem with brightness control

Posted: 10 Mar 2022 01:39
by bsd4me
Brightness slider button doesn't work so when I plug laptop into AC power, the screen dims so much it's hard to see desktop.
I've searched and searched to find answer but I haven't found it yet.
I've even tried removing powerkit and then reinstalling and that didn't work either ... was hoping a config file was bad.
Other actions on powerkit seem to work fine, just not the brightness adjustment.
Any ideas what config file/line applies to brightness?

If not, what is a good alternative?
Oh, I'm running 7.5 with Openbox

Thanks!

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 02:12
by djemos
yes you're right about the slider, but i don't have this behavior "the screen dims so much it's hard to see desktop".
I use the keys on F11 - F12 to decrease increase brightness.
I don't remember if this behavior about the slider happens now or it existed before. I will try to find out why the slider is not working with mouse.
For now just use the keys.

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 02:28
by bsd4me
The F keys don't work either.
Now have to reboot to get brightness back up where I can see.
I have to leave for a while (Bible study time). Will check back later tonight, or in the morning (local time)

Thanks djemos!

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 02:58
by djemos
OK.
type in terminal

Code: Select all

xbacklight +100
to increase backlight to 100%
xbacklight -10 (decrease backlight) xbacklight +10 increase backlight
this has to working, otherwise something is missing.
This has to be working.
Then to check the keys
type in terminal

Code: Select all

obkey
go down and look for XF86MonbrightnesUP (on the right you have to see command: xbacklight +10 and enabled: checked
And for XF86MonbrightnesDown (command: xbacklight -10 and enabled: checked)

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 06:25
by bsd4me

Code: Select all

$ xbacklight -10
No outputs have backlight property

Code: Select all

obkey
I had to check to XF86MonbrightnessUP and Down to enable. They weren't checked.

I typed xbacklight -10 after checking the boxes, and got the same response.
I will try again in the morning when I start the laptop again, and will let you know outcome.

Thanks again djemos. Appreciate your help!

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 11:16
by djemos
After enable XF86MonbrightnessUP and Down click on the top left button to save the file.
then log out and log in again or reboot.
check again

Code: Select all

xbacklight -10
no message will appear if message appeared again then type

Code: Select all

cat /etc/X11/xorg.conf.d/20-intel.conf
the output has to be

Code: Select all

Section "Device"
    Identifier  "Intel Graphics" 
    Driver      "intel"
    Option      "Backlight"  "intel_backlight"
EndSection
This is a double check to be sure.

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 16:16
by djemos
type

Code: Select all

sudo slapt-get -u
sudo slapt-get -i powerkit
log out and log in
and see that slider backlight is working now.

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 17:51
by bsd4me
Don't know what I'm doing wrong, but this is my third time trying to respond :lol:

I already tried removing and installing powerkit. Mentioned in my first post.
Oops... just saw that powerkit was updated. Now installed :)

I had to copy /usr/share/X11/xorg.conf.d/10-amdgpu.conf to /etc/X11/xorg.conf.d/ and then rebooted.

I still get the same response:

Code: Select all

xbacklight -10
No outputs have backlight property

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 20:53
by djemos
you have an amdgpu.
xbacklight works only for intel gpu.
for amd use its replacement acpilight maybe will work.

after install the package type

Code: Select all

sudo cp /etc/udev/rules.d/90-backlight.rules.new /etc/udev/rules.d/90-backlight.rules

Re: Powerkit problem with brightness control

Posted: 10 Mar 2022 22:34
by bsd4me
djemos that took care of the brightness issue!

Thank you so very much.
Also, this is a new laptop, so had to verify all the chips :D