Laptop Background light

Hi everyone
Im not sure this is the right section for my post.
I Have Laptop Huawei MateBook 13 , this OS working perfect on it but after last install on February i dont have backround light on my keyboard or is turn on sometime when i close and open the screen.
Do you have idea how to fix it

Probably not. This is the German section of the forum.

Omurtak

1h

Hi everyone
Im not sure this is the right section for my post.
I Have Laptop Huawei MateBook 13 , this OS working perfect on it but after last install on February i dont have backround light on my keyboard or is turn on sometime when i close and open the screen.
Do you have idea how to fix it

if you are on X11 ,not wayland , a temporary fix is to type in terminal

xset led on

and

xset led off

to switch on and off.

there is a way to make this permanent when you log in (some bash script at login) , but i can’t remember how .

https://forum.endeavouros.com/t/laptop-no-keyboard-backgtount-light/70723/3?u=3nd

Another temporary workaround:

yay -S brightnessctl
brightnessctl --list

find your device
as an example (my keyboard has no backlight)

Device 'input3::capslock' of class 'leds':
        Current brightness: 0 (0%)
        Max brightness: 1

brightnessctl --device='input3::capslock' set 1

Further info here

thanks but have any option to make it autostart because i don’t know how to add it

If you use Plasma create a script like kbd_blon.sh in your home:

#!/bin/sh
brightnessctl --device='input3::capslock' set 1

NB. your device will be different.
chmod +x kbd_blon.sh # to enable execution
and press Super, type Autostart, Add new Login script and select the above script.

1 Like

i have tried this way , but i get this output

Available devices:
Device 'acpi_video0' of class 'backlight':
	Current brightness: 7 (100%)
	Max brightness: 7

Device 'input4::capslock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Device 'input4::scrolllock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Device 'input5::capslock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Device 'input4::numlock' of class 'leds':
	Current brightness: 1 (100%)
	Max brightness: 1

Device 'input5::scrolllock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Device 'input5::numlock' of class 'leds':
	Current brightness: 1 (100%)
	Max brightness: 1

how do i know which device is my keyboard ?

PS: i have a laptop that keyboard doesn’t work so i’m using an external keyboard that i want the backlight on

edit : have now tried both device 4 and 5 , keyboard light doesn’t come on ?

[jp@jp14 ~]$ brightnessctl --device='input4::capslock' set 1
Updated device 'input4::capslock':
Device 'input4::capslock' of class 'leds':
	Current brightness: 1 (100%)
	Max brightness: 1

[jp@jp14 ~]$ brightnessctl --device='input5::capslock' set 1
Updated device 'input5::capslock':
Device 'input5::capslock' of class 'leds':
	Current brightness: 1 (100%)
	Max brightness: 1

lsusb
and show us the Keyboard part of the output.

BTW Have you tried Fn + PgUp and Fn + PgDn to increase and decrease the brightness?

Bus 001 Device 002: ID 1a2c:2c27 China Resource Semico Co., Ltd USB Keyboard

the external doesn’t have a FN key. And i don’t want to increase/decrease brightness, i just want it on ( i can get it on/off my way , just thought i’ll give your way a try)

How about this command?

xset led on

That’s what I gave the OP at beginning of this thread.

My apologies. ‘It’s a long way to Tipperary…’
F5 perhaps?