sony laptop - keyboard backlight bizarre behaviour : not working on boot, working after sleep resume
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
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.
sony laptop - keyboard backlight bizarre behaviour : not working on boot, working after sleep resume
Hello, I would like to ask your help about the keyboard backlight of my sony vaio sve-1711x1eb, dual boot mint 18.3 xfce/win7.
I tried to put everything in the title but here is more background story.
The keyboard backlight doesn't work on boot, but works perfectly fine when i resume from sleep.
Expected/normal behaviour :
Like on win7 : press any key and it lights on for a few seconds before fading out. There is no hardware key or switch to turn it on or off or change the keyboard backlight brightness btw.
It was working fine on ubuntu-studio 12.04 and 14.04, then started to have this bizarre behaviour on ubuntu-studio 16.04 and never stopped (tried it on ubuntu-studio 17.04 as well).
Description of the problem :
the keyboard is lit on boot until the mint logo disapears, then it fades out and never turns on again.
if i enter sleep mode, and resume, then it will always work perfectly fine.
What I already tried :
changed /sys/module/sony_laptop/parameters/kbd_backlight from -1 to 1 as seen on another forum
create sony-laptop.conf with "options sony-laptop kbd_backlight=1" in modprobe.d as seen somewhere else
played with xset led commands as well.
no result.
I already asked this on a french mint forum as well as two other english forums, they didn't have a clue so one more step further !
One last word : I am very new here, but I am not a kid, I have 5+ years of using ubuntu behind me but I never had to ask anything on a linux forum, I'm not sure what to add here but please be kind to ask me any more info you'd need with the minimum direction on how to obtain them.
Please consider me a noob but I really want to learn, and I really want to fix this, even if I have to dig deep, I love this laptop.
Thank you very much for your reading of this long post and depending on the time zone, have a sweet night or a very good day.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
On your computer, controlling the keyboard backlight is problematic, because it is completely software controlled. This sounds like a kernel regression (something that worked in earlier kernels is broken in later ones).
OR, maybe modprobe.d isn't being used because of systemd. You can try to unload sony-laptop
Code:
$ modprobe -r sony-laptop
and reload it with the backlight parameter
Code:
$ modprobe sony-laptop keyboard_backlight=1
You might check /sys to see if the parameter you set with 'echo' actually changed. Sony is uncooperative with the open-source community, so it's difficult to write modules for their hardware. You might drop them an email encouraging them to make their stuff work with Linux.
Last edited by AwesomeMachine; 05-15-2018 at 06:32 PM.
thank you very much for your reply unfortunately this is still unchanged. the fact that it will work correctly when i resume from sleep lets me hope this is somehow fixable, but as you see i'm running dry of ideas.
thank you anyway for your reply, if you have any other idea i'm taking them gladly.
i had some time to play again with your two commands but this time after a sleep resume (so with the keyboard backlight actually working fine).
the first one has no visible effect, but the 2nd command will disable keyboard backlight again, until next sleep resume.
alright really sorry i tried again and i went a bit too fast in conclusion last time.
both of your commands will give me an error 'operation not permitted'. so i tried again with sudo and this is where the second command disables the keyboard backlight. no message at all for both commands when used with sudo.
so back to my last experiment, i just resume from sleep and the keyboard backlight works fine :
i try the commands in this order to be sure to be sure : second command with sudo does nothing (that i can see, and no message), first command with sudo does nothing as well (same thing). this is only when i hit first command line with sudo, then second command line with sudo, that the keyboard backlight stops working again, and still no message.
You can set sony-laptop kbd_backlight=1, 2, or 0. Try
Code:
$ /sbin/modinfo sony-laptop
Then, retry the commands in #2 with the correct parameter.
same story as before, I can see no difference between keyboard_backlight and kbd_backlight. tried in the same order as previously, before and after sleep, and exactly the same results as with the previous commands.
according to lsmod the sony-laptop is running on boot as well as after sleep.
funny i looked trough the boot/config file once to find a clue for this problem and was a lot confused about all these settings. sorry to ask but how do you read this file ? i assume '=y' is for yes, but i'm not sure about '=m'.
i just realised i went a bit too fast when translating this to "sleep" from french, the correct term is 'suspend' i just switched to the english language pack just to have a check. sorry for the misunderstanding if that is what you meant.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.