M
M
MiNiMoZg2014-04-26 21:42:57
linux
MiNiMoZg, 2014-04-26 21:42:57

Setting backlight on openSuse 13.1?

Greetings dear ones.
Please help me set up hotkeys to adjust keyboard backlight on asus n56vz laptop. I found a topic where it says that you need to add acpi_osi = to the kernel boot parameters and everything will work. I didn't succeed.
Also, tell me how to set up switching of video cards and a subbuffer that came with the laptop on openSuse.
On the Internet I found jerky information. You can if not too lazy to throw links on the topic. I will be grateful.
I am using KDE environment. OpenSuse 13.1, Asus N56VB laptop. I used the official distribution for installation.
Thanks in advance. Not very strong on Linux.
ps How to determine which of the two video cards is currently working?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MiNiMoZg, 2014-04-28
@MiNiMoZg

Fixed the backlight issue. A friend helped me write two simple scripts, which I then hung on hotkeys
Increase brightness

#!/bin/bash
cur_bright=$(cat /sys/class/leds/asus::kbd_backlight/brightness)
if [ $cur_bright -lt 3 ] ; then
cur_bright=$(($cur_bright + 1));
fi
echo $cur_bright > /sys/class/leds/asus::kbd_backlight/brightness

reduce brightness
#!/bin/bash
cur_bright=$(cat /sys/class/leds/asus::kbd_backlight/brightness)
if [ $cur_bright -lt 3 ] ; then
cur_bright=$(($cur_bright + 1));
fi
echo $cur_bright > /sys/class/leds/asus::kbd_backlight/brightness

If anyone needs it. =) For the scripts to work, you need to have permissions to the /sys/class/leds/asus::kbd_backlight/brightness file, which crash every time you reboot.
I solved the problem by adding the line chmod 4666 /sys/class/leds/asus::kbd_backlight/brightness to the file /etc/init.d/before.local
PS if you play with scripts, you can create light music.
Pss thanks a lot mate =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question