ArcoLinux -D -B 19.5 iso's have been released

[SOLVED]How to Change Keyboard Backlight Timeout Value

"Off-topic" but Linux related discussion, about ArcoLinux or other distributions.
Post Reply
User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 11:30 am
United States of America
[SOLVED]How to Change Keyboard Backlight Timeout Value

Post by UOOP » Wed Mar 14, 2018 6:16 am

I have been digging around, trying to figure out how to change my keyboard's backlight timeout value and I have gotten as far as dumping a csv of all tokens from the smbios-utils. I was able to locate the associated keyboard information, but the associated token id doesn't look like a token; it's simply a number of 451.

1. How would I be able to verify this is actually a token?

2. How would I be able to read/set the value for the associated token?

I am running ArchMerge 6.3.1 on a Sony Vaio VPCF115FM laptop
:?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?:
Last edited by UOOP on Thu Mar 22, 2018 12:26 pm, edited 1 time in total.
Linux4life

User avatar
erikdubois
Captain
Posts: 1985
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: How to Change Keyboard Backlight Timeout Value?

Post by erikdubois » Wed Mar 14, 2018 12:04 pm

Thanks for writing the post here... now we need the time to investigate.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

nickpetrov
Commander
Posts: 55
Joined: Thu Nov 09, 2017 9:04 am
Canada
Re: How to Change Keyboard Backlight Timeout Value?

Post by nickpetrov » Wed Mar 14, 2018 1:16 pm

If you would like to see the available tokens on your system make sure you have libsmbios installed then, use this command:

Code: Select all

sudo smbios-token-ctl -d
if you would like to see the list of available token options to change the backlight, would be this command:

Code: Select all

sudo smbios-token-ctl | grep Keyboard
so for example on my system, the available options are:

Token: 0x01e1 - Keyboard Illumination (Off)
Token: 0x01e2 - Keyboard Illumination (On)
Token: 0x01e3 - Keyboard Illumination (Auto)

so lets say I wanted to set the backlight permanently on, would be like this:

Code: Select all

sudo smbios-token-ctl -i 0x01e2 --set-string true
If you can't set your backlight value like this, because not all laptop manufacturers support this you could try reading this:

https://wiki.archlinux.org/index.php/Keyboard_backlight

User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 11:30 am
United States of America
Re: How to Change Keyboard Backlight Timeout Value?

Post by UOOP » Thu Mar 15, 2018 9:21 am

Thanks for the reply. I will try this as soon as I can :)
Linux4life

User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 11:30 am
United States of America
Re: How to Change Keyboard Backlight Timeout Value?

Post by UOOP » Fri Mar 16, 2018 3:15 am

nickpetrov wrote:
Wed Mar 14, 2018 1:16 pm
If you would like to see the available tokens on your system make sure you have libsmbios installed then, use this command:

Code: Select all

sudo smbios-token-ctl -d
if you would like to see the list of available token options to change the backlight, would be this command:

Code: Select all

sudo smbios-token-ctl | grep Keyboard
so for example on my system, the available options are:

Token: 0x01e1 - Keyboard Illumination (Off)
Token: 0x01e2 - Keyboard Illumination (On)
Token: 0x01e3 - Keyboard Illumination (Auto)

so lets say I wanted to set the backlight permanently on, would be like this:

Code: Select all

sudo smbios-token-ctl -i 0x01e2 --set-string true
If you can't set your backlight value like this, because not all laptop manufacturers support this you could try reading this:

https://wiki.archlinux.org/index.php/Keyboard_backlight
OK I followed the steps listed above, found the token list and identified the 3 tokens controlling illumination which were the same as listed above. I used the command smbios-toke-ctl -i 0x01e2 --set-string true and got a return of "token 0x01e2 not found". Anyone run into this issue? Why does the illumination carry the token in the list, but yet it cannot be found?
Linux4life

nickpetrov
Commander
Posts: 55
Joined: Thu Nov 09, 2017 9:04 am
Canada
Re: How to Change Keyboard Backlight Timeout Value?

Post by nickpetrov » Fri Mar 16, 2018 11:05 am

Did you run the last command as sudo?

you might want to try with the linux-lts kernel, as kernel 4.15 changed the way it makes calls to the bios. could have broken it.

This is hard to figure out, since it's hardware specific, and I don't have the same hardware.

User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 11:30 am
United States of America
Re: How to Change Keyboard Backlight Timeout Value?

Post by UOOP » Tue Mar 20, 2018 11:40 pm

nickpetrov wrote:
Fri Mar 16, 2018 11:05 am
Did you run the last command as sudo?

you might want to try with the linux-lts kernel, as kernel 4.15 changed the way it makes calls to the bios. could have broken it.

This is hard to figure out, since it's hardware specific, and I don't have the same hardware.
Yes, I ran the command as sudo.

I will have to try the lts kernel and see if that works for me. I will report back once i get it switched and let you know what I find. Thanks for your help :)
Linux4life

User avatar
UOOP
Crewman
Posts: 16
Joined: Wed Feb 21, 2018 11:30 am
United States of America
Re: How to Change Keyboard Backlight Timeout Value?

Post by UOOP » Wed Mar 21, 2018 1:46 pm

Hours were spent trying to figure this out and today I stumbled across the solution; simplest little fixes are the best :)

1.

Code: Select all

cd /etc/modprobe.d/
2.

Code: Select all

nano sony-laptop.conf
3. inside sony-laptop.conf

Code: Select all

options sony laptop kbd_backlight=2
4. No timeout

Code: Select all

echo 3 > /sys/devices/platform/sony-laptop/kbd_backlight_timeout
You could change the value from 0 - 3

You can also turn your backlight off/auto/on as well (0/1/2):

Code: Select all

echo # > /sys/devices/platform/sony-laptop/kbd_backlight
commands will need to be ran each time after startup because they won't stick.
Linux4life

User avatar
erikdubois
Captain
Posts: 1985
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [SOLVED]How to Change Keyboard Backlight Timeout Value

Post by erikdubois » Sun Apr 01, 2018 7:42 pm

Congrats and thanks for sharing. :geek:
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

Mic
Crewman
Posts: 42
Joined: Sat Mar 10, 2018 5:39 pm
Location: Nantes-France
France
Re: [SOLVED]How to Change Keyboard Backlight Timeout Value

Post by Mic » Sun Apr 01, 2018 8:06 pm

Super !! ;)
Nobody is perfect..... :lol:


Post Reply

Return to “ArcoLinux and General Linux Discussion”