You are not logged in.
Pages: 1
Hello,
I'm currently finalizing my Arch setup on my brand new laptop
I already faced some issues (such as the screen brightness control) but I managed to fix a great part of them
Right now, my laptop has a black keyboard with red backlight to see what you are typing, but I can't see anything in the dark when the backlight is off
I'd want to find a way to turn on and off this backlight with a script or a single command
I already searched on the wiki ( https://wiki.archlinux.org/index.php/Keyboard_backlight ), and the provided script crashes :
Traceback (most recent call last):
File "/usr/local/bin/kb-light.py", line 28, in <module>
print(kb_light_set(1))
File "/usr/local/bin/kb-light.py", line 13, in kb_light_set
current = kbd_backlight.GetBrightness()
File "/usr/lib/python3.6/site-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3.6/site-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: L'interface « org.freedesktop.UPower.KbdBacklight » n'existe pas pour l'objet à l'emplacement /org/freedesktop/UPower/KbdBacklight
I looked in /sys/class/leds and got this
asus-wireless::airplane input0::scrolllock input11::kana phy0-led
input0::capslock input11::capslock input11::numlock
input0::numlock input11::compose input11::scrolllock
(I already tried to change the brightness of phy0-led, but it was not what I was looking for)
Right now, I don't have any idea where to look for
Can someone try to help me please ?
EDIT: I have a dual boot with Windows, when I boot into Windows, the backlight turns on, and if I reboot immediatly into Arch, it stays on. Is it BIOS related ?
Last edited by Neraeh (2017-02-21 15:02:35)
Offline
Let us take a different tack. What is the output of ls -l /sys/class/leds ?
Edit: Oh, Welcome to the Arch Linux Forums.
Edit: Ack! Did I miss that you had posted that already, or had you edited that part?
Last edited by ewaller (2017-02-21 15:46:22)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Let us take a different tack. What is the output of ls -l /sys/class/leds ?
Here it is:
$ ls -l /sys/class/leds
total 0
lrwxrwxrwx 1 root root 0 21 févr. 16:42 asus-wireless::airplane -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/leds/asus-wireless::airplane
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input0::capslock -> ../../devices/platform/i8042/serio0/input/input0/input0::capslock
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input0::numlock -> ../../devices/platform/i8042/serio0/input/input0/input0::numlock
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input0::scrolllock -> ../../devices/platform/i8042/serio0/input/input0/input0::scrolllock
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input1::capslock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0001/input/input1/input1::capslock
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input1::compose -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0001/input/input1/input1::compose
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input1::kana -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0001/input/input1/input1::kana
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input1::numlock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0001/input/input1/input1::numlock
lrwxrwxrwx 1 root root 0 21 févr. 16:42 input1::scrolllock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0001/input/input1/input1::scrolllock
lrwxrwxrwx 1 root root 0 21 févr. 16:42 phy0-led -> ../../devices/pci0000:00/0000:00:1c.2/0000:03:00.0/leds/phy0-led
Edit: Oh, Welcome to the Arch Linux Forums.
Edit: Ack! Did I miss that you had posted that already, or had you edited that part?
Thank you
I'm a long time Arch user, but I never had to come here to ask for help until now ^^
Nope, was already there, but without the -l arg
Offline
Hi everyone,
I have the same laptop and same issue.
[tomas@morpheus ~]$ uname -r
4.10.6-1-ARCH
[tomas@morpheus ~]$ sudo lsmod |grep asus
asus_nb_wmi 28672 0
asus_wmi 24576 1 asus_nb_wmi
sparse_keymap 16384 1 asus_wmi
rfkill 20480 6 asus_wmi,bluetooth,cfg80211
video 36864 1 asus_wmi
wmi 16384 2 asus_wmi,mxm_wmi
asus_wireless 16384 0
led_class 16384 3 asus_wmi,input_leds,asus_wireless
i8042 24576 1 asus_nb_wmi
[tomas@morpheus ~]$ ls -l /sys/class/leds
total 0
drwxr-xr-x 2 root root 0 Apr 3 16:00 .
drwxr-xr-x 51 root root 0 Apr 3 15:57 ..
lrwxrwxrwx 1 root root 0 Apr 3 16:00 asus-wireless::airplane -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/leds/asus-wireless::airplane
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input0::capslock -> ../../devices/platform/i8042/serio0/input/input0/input0::capslock
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input0::numlock -> ../../devices/platform/i8042/serio0/input/input0/input0::numlock
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input0::scrolllock -> ../../devices/platform/i8042/serio0/input/input0/input0::scrolllock
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input2::capslock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0002/input/input2/input2::capslock
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input2::compose -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0002/input/input2/input2::compose
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input2::kana -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0002/input/input2/input2::kana
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input2::numlock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0002/input/input2/input2::numlock
lrwxrwxrwx 1 root root 0 Apr 3 16:00 input2::scrolllock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1837.0002/input/input2/input2::scrolllock
Is there anything that I can try?
I also tried to modify kernel boot parameters (acpi_osi & acpi_backlight), but no luck
Offline
ya I have the same issue on ASUS ROG GL702VM. I find it very odd that there is no kbd_backlight under the /sys/class/leds.
I've also tried the acpi_ios=<space>, acpi_ios="!Window 2012", acpi_ios=linux... in the /etc/mkinitcpio.conf with no luck.
I've tried installing the kbd_backlight module for asus https://aur.archlinux.org/packages/asus-kbd-backlight/ --- have you tried that?
when I run xev I don't get any output for Fn+F3/4. Do you guys get any output under xev?
The only time I've been able to get the keyboard backlight to be on is if I boot into windows and turn it on, then reboot into Arch and it stays on at full brightness until you reboot again.
I've also look for backlight in /sys/devices with the following output.
find /sys/devices -name '*backlight*' [23:56:33]
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight
which is what the screen brightness uses.
I've also not be able to get the Fn+F5/6 (keys for screen brightness) I'm not able to get any output from xev for those buttons but if I remap the keys to say ctrl+F5/6 I can adjust the backlight (don't know if you guys have that problem)
Last edited by ironLink21 (2017-04-08 05:59:29)
Offline
Pages: 1