You are not logged in.

#1 2015-05-07 19:10:15

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Fn keys on asus ux303ln

Sup'

I got some trouble with my fn keys on my (not so) freshly installed Arch.
I'm running on a x86_64 Linux 4.0.1-1-ARCH kernel. The touchpad worked great, the sounds keys too (up, down and mute), and to turn off the screen. Unfortunately, the sleep, keyboard backlight and screen
backlight are not working at all.

Here's the part of my sxhkdrc who's in charge of the fn keys

#
# Fn keys
#

# Audio

XF86AudioRaiseVolume
    amixer -q sset Master 1%+

XF86AudioLowerVolume
    amixer -q sset Master 1%-

XF86AudioMute
    amixer -q set Master playback toggle

# Brightness

XF86MonBrightnessDown
    xbacklight -dec 10

XF86MonBrightnessUp
    xbacklight -inc 10

XF86KbdBrightnessUp
    asus-kbd-backlight up

XF86KbdBrightnessDown
    asus-kbd-backlight down

I got some informations about the kbd backlight. The permission in /sys/class/leds/asus::kbd_backlight/brightness is not set for the user.

-rw-rw-r-- 1 root users 4.0K May  7 14:41 /sys/class/leds/asus::kbd_backlight/brightness

I can change it but whenever I reboot, I got to change the permissions. Is there a way to auto chmod 666 the file permanently?

Is there a way to get the name of the brightness keys, or connect via the keycode?

Thanks.

Offline

#2 2015-05-07 19:17:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Fn keys on asus ux303ln

Bl4ckb0ne wrote:

I can change it but whenever I reboot, I got to change the permissions. Is there a way to auto chmod 666 the file permanently?

You don't need to do that and you shouldn't try.

Is there a way to get the name of the brightness keys, or connect via the keycode?

xev

XF86MonBrightnessDown is "0x1008ff03"
XF86MonBrightnessUp is "0x1008ff02"


Jin, Jîyan, Azadî

Offline

#3 2015-05-07 19:30:49

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Re: Fn keys on asus ux303ln

xev do nothing when I try XF86MonBrightnessDown and XF86MonBrightnessUp.

And how can I modify the keyboard brightness with this?

 simon@fuckyeahpizza  ~  asus-kbd-backlight up
/usr/bin/asus-kbd-backlight: line 26: /sys/class/leds/asus::kbd_backlight/brightness: Permission denied

Offline

#4 2015-05-07 20:10:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Fn keys on asus ux303ln

Bl4ckb0ne wrote:

xev do nothing when I try XF86MonBrightnessDown and XF86MonBrightnessUp.

I have supplied the codes in my post above -- AFAIK these are universal.

And how can I modify the keyboard brightness with this?

 simon@fuckyeahpizza  ~  asus-kbd-backlight up
/usr/bin/asus-kbd-backlight: line 26: /sys/class/leds/asus::kbd_backlight/brightness: Permission denied

I don't know -- I have never used a keyboard with backlit keys, sorry.

Examine the script and see what command is used at line 26: perhaps you could add the command to /etc/sudoers with "NOPASSWD" and then prepend the script command with `sudo`


Jin, Jîyan, Azadî

Offline

#5 2015-05-07 20:45:32

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Re: Fn keys on asus ux303ln

Yay, I got some news!
The ASUS_N550JV page helped me for the screen brightness.
I enabled and start the asus-kbd-backlight service, but the command wont change the file. Permission again.

How can I solve that?

Offline

Board footer

Powered by FluxBB