LukeSmithxyz / LARBS

Luke's Auto-Rice Bootstrapping Scripts: Installation Scripts for My Arch Linux Meta-Distribution
GNU General Public License v3.0
2.02k stars 797 forks source link

Brightness Keys Not Working #535

Open DDAVID22291 opened 9 months ago

DDAVID22291 commented 9 months ago

The Brightness Keys do not work on 2 different laptops on a fresh install of LARBS. They did work on an older version, though.

I'll post the solution when I figure it out.

NicholasasaurusRex commented 7 months ago

I have a solution that may work for you.

Install this package:
pacman -S light

Then edit this file: sudo nvim /etc/sudoers.d/01-larbs-cmds-without-password

add this to the end of the file: ,/usr/bin/light -A 10,/usr/bin/light -U 10

Now you need to edit dwm: sudo nvim $HOME/.local/src/dwm/config.h

find this line: { 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } },

comment it out and add this line underneath it: { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("sudo light -A 10") },

Then do the same for BrightnessDown: { 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } },

and add this: { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("sudo light -U 10") },

when done editing dwm/config.

run these commands: cd $HOME/.local/src/dwm sudo make sudo make install

Then either reboot your computer, logout or renew dwm

This works on my computer.

ShahramMohammed commented 4 months ago

Same issue here

bybv commented 1 month ago

Friends, I had the same problem. In my case it was just a lack of the right package for drivers, but YMMV as it depends on your hardware. The package I needed was:

xf86-video-intel

Good luck!