Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-03-2020, 12:43 PM
|
#1
|
Member
Registered: Sep 2011
Distribution: Debian testing
Posts: 62
Rep:
|
Cannot turn off keyboard backlight permanently
Hi,
I have a Chuwi GemiBook laptop (with Intel Celeron J4115 CPU) and i'd like to turn off its keyboard backlight permanently.
It can be turned off with one of the Fn keys, but the turned off state is not persisted through reboots.
EDIT: I'm running Debian stable with i3wm.
Found the following ArchWiki article:
https://wiki.archlinux.org/index.php/keyboard_backlight
But i don't seem to have any keyboard related devices under /sys/class/leds.
Code:
$ brightnessctl --list
Available devices:
Device 'intel_backlight' of class 'backlight':
Current brightness: 3200 (33%)
Max brightness: 9600
Device 'phy0-led' of class 'leds':
Current brightness: 1 (100%)
Max brightness: 1
Device 'mmc2::' of class 'leds':
Current brightness: 0 (0%)
Max brightness: 255
Device 'input0::scrolllock' of class 'leds':
Current brightness: 0 (0%)
Max brightness: 1
Device 'input0::capslock' of class 'leds':
Current brightness: 0 (0%)
Max brightness: 1
Device 'mmc1::' of class 'leds':
Current brightness: 0 (0%)
Max brightness: 255
Device 'input0::numlock' of class 'leds':
Current brightness: 0 (0%)
Max brightness: 1
Device 'mmc0::' of class 'leds':
Current brightness: 0 (0%)
Max brightness: 255
intel_backlight is the display brightness and setting phy0-led to 0 does not seem to have any effect.
Checked the BIOS as well, didn't find any settings related to the keyboard backlight.
I'd really appreciate any advice.
Thanks in advance!
Last edited by earthw0rmjim; 10-03-2020 at 03:11 PM.
|
|
|
10-03-2020, 01:03 PM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,982
|
What distro, what desktop environment?
|
|
|
10-03-2020, 01:16 PM
|
#3
|
Member
Registered: Sep 2011
Distribution: Debian testing
Posts: 62
Original Poster
Rep:
|
Right, forgot to mention that, i'm using Debian stable with i3.
|
|
|
10-03-2020, 02:57 PM
|
#4
|
Senior Member
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,982
|
What desktop environment? Those tend to have their own method of controlling the keyboard, so the exact setting method varies by DE. I usually run Xfce, but sometimes KDE. I'm not familiar enough with the others to tell you how to go about changing the settings in those.
|
|
|
10-03-2020, 03:30 PM
|
#5
|
Member
Registered: Sep 2011
Distribution: Debian testing
Posts: 62
Original Poster
Rep:
|
I've edited my original post with the distro/de.
I think all desktop environments use (more or less) the same ways under the hood to control the backlight.
In my case i cannot even find a trace of my kernel recognizing the backlit keyboard. I guess there should be something in /sys/class/leds, /sys/class/backlight or /proc/acpi, but i find nothing.
EDIT: Found the following:
Code:
$ cat /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7
Can i use this information somehow?
Last edited by earthw0rmjim; 10-03-2020 at 04:13 PM.
|
|
|
10-03-2020, 04:22 PM
|
#6
|
Senior Member
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,982
|
Perhaps. You still didn't say what desktop environment you're using, though. For instance, Xfce uses an applet to set this.
I did stumble on one possibility. I don't have a laptop with backlit keyboard, but there is a file /sys/class/backlight/acpi_video0/bl_power. The sole contents are the number 0. I suspect it's a binary 0 or 1, and may control the backlighting. I have no way of testing this. The subdirectory under sys/class/backlight might be different depending on the hardware installed. Perhaps changing yours to 0 would turn the backlight off, but again, I have not tested this. Better to run the applet in your DE, whatever it is - gnome, mate, cinnamon, KDE, Xfce, LXDE, or whatever. There are other files in my system, but I haven't investigated them. It might be a starting point.
BTW, there are many apps available on GitHub that control backlit keyboards. Again, no recommendations because I've never tried any of them.
Last edited by sgosnell; 10-03-2020 at 04:34 PM.
|
|
|
All times are GMT -5. The time now is 07:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|