Asus Zenbook Keyboard & Screen Brightness Fix On i3


Keyboard backlight fix

Source for this information can be found here

The link has a file called I set up this file in /usr/local/bin.

I then opened my i3config file and added the following:

bindsym XF86KbdBrightnessUp exec python /usr/local/bin/ +
bindsym XF86KbdBrightnessDown exec python /usr/local/bin/ -

And now when I press the keyboard brightness up and down key, the keyboard lights change as expected.

Screen brightness fix

For this I wanted to use xbacklight. The problem I got was that when I tried

xbacklight -inc 10

I got the error "No outputs have backlight propery".

To fix this, I installed the intel driver

sudo pacman -S xf86-video-intel

And after rebooting it worked well. So to set up the keyboard keys for screen brightness, I added this to my i3 config file:

bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness

Media Keys Usage Fix

For this, I first had to install pulseaudio.

sudo pacman -S pulseaudio

Then I added this to my i3 config files:

bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

Now audio can be increased / decreased using my media keys.

My i3 config file can be found here:i3_config_file