You are not logged in.

#1 2022-07-17 12:39:48

PROBUBBLE01
Member
Registered: 2021-09-07
Posts: 11

Display brightness keeps changing after keyboard special key press

Hello, I own an MSI Modern 14 B5M Laptop. I recently installed arch Linux on it. And since the CPU is AMD the default xbacklight won't work, so I installed acpilight which is supposed to be a drop-in replacement for xbacklight.

When I change the brightness using the terminal

 xbacklight -inc 10

it works properly

I use DWM (though this issue was present on xfce when I tried it first)

And my DWM key combo looks like this:

static const char *inclight[]  = { "xbacklight", "-inc", "10", NULL };
static const char *declight[]  = { "xbacklight", "-dec", "10", NULL };
...
{ 0,                            XF86XK_MonBrightnessUp,     spawn,      {.v = inclight } },
{ 0,                            XF86XK_MonBrightnessDown,   spawn,      {.v = declight } },

Thanks to: https://bbs.archlinux.org/viewtopic.php?id=254025

But when I press the brightness up and brightness down button, it works but then it suddenly increases or decreases to ±10% the current brightness (same amount defined in the keycombo)

Thought it was related to acpilight and i switched to

brightnessctl

program..

But it's the same thing. If I change the brightness from the terminal, it works fine. If I do it using the buttons, It keeps changing randomly for some time. I used cat to see the content of

/sys/class/.../brightness

and it is infact changing automatically.

Is this a hardware issue? Is there a way to diagnose this and maybe fix it?.

Thank you so much for your help.

Last edited by PROBUBBLE01 (2022-07-17 12:42:48)

Offline

Board footer

Powered by FluxBB