JaKooLit / Arch-Hyprland

For automated installation of Hyprland on Arch or any arch based distros
GNU General Public License v3.0
1.27k stars 106 forks source link

[Bug]: Brightness setting doesn't work #82

Closed FatngatirBilek closed 3 months ago

FatngatirBilek commented 3 months ago

Bug Report

Description

[Brightness setting doesn't work.]

Steps to Reproduce

  1. Using brightness setting on waybar
  2. Using brightnessctl on terminal also not working

Expected Behavior

the brightness on my monitor will change

Actual Behavior

doesn't change the brightness

Environment

[Please add any other relevant information about the bug and remove the unnecessary lines.]

e.g.,

JaKooLit commented 3 months ago

whats the output of

~/.config/hypr/scripts/Brightness.sh --dec

?

JaKooLit commented 3 months ago

https://github.com/Hummer12007/brightnessctl?tab=readme-ov-file#id-like-to-configure-the-brightness-of-an-external-monitor

if you are controlling external monitor,

see here

I didnt configure external monitor brightness control

FatngatirBilek commented 3 months ago

~/.config/hypr/scripts/Brightness.sh --dec

here's the output image

FatngatirBilek commented 3 months ago

https://github.com/Hummer12007/brightnessctl?tab=readme-ov-file#id-like-to-configure-the-brightness-of-an-external-monitor

if you are controlling external monitor,

see here

I didnt configure external monitor brightness control

this is laptop monitor

JaKooLit commented 3 months ago

~/.config/hypr/scripts/Brightness.sh --dec

here's the output image

it seems working...

now increase again... this time with --inc instead of --dec

JaKooLit commented 3 months ago

sudo chmod +s $(which brightnessctl)

try this command

FatngatirBilek commented 3 months ago

sudo chmod +s $(which brightnessctl)

try this command

image

JaKooLit commented 3 months ago

try again.. hopefully this time will work :)

FatngatirBilek commented 3 months ago

try again.. hopefully this time will work :)

it's still not working :(((

JaKooLit commented 3 months ago

well im not so sure.... the script seems working... as per screenshot youve shown

swappy-20240524-173123

JaKooLit commented 3 months ago

swaync can also control backlight

but seeing you have nvidia,

you may need to configure it

https://github.com/JaKooLit/Hyprland-Dots/issues/118

FatngatirBilek commented 3 months ago

well im not so sure.... the script seems working... as per screenshot youve shown

swappy-20240524-173123

well the script is working, but I don't see any changes on my monitor. looks like this is nvidia's fault LOL

FatngatirBilek commented 3 months ago

image

ofc it's work, but i don't see any changes on the monitor

FatngatirBilek commented 3 months ago

@JaKooLit it works now.

Turns out this is a problem between Nvidia and Wayland which makes brightnessctl not work. Installing acpilight with

"sudo pacman -S acpilight"

and adding "acpi_backlight=native" on "/etc/default/grub" like this: image

then run "sudo grub-mkconfig -o /boot/grub/grub.cfg"

fixed the problem. Thanks for your help @JaKooLit

JaKooLit commented 3 months ago

@JaKooLit it works now.

Turns out this is a problem between Nvidia and Wayland which makes brightnessctl not work. Installing acpilight with

"sudo pacman -S acpilight"

and adding "acpi_backlight=native" on "/etc/default/grub" like this: image

then run "sudo grub-mkconfig -o /boot/grub/grub.cfg"

fixed the problem. Thanks for your help @JaKooLit

Thanks alot for sharing. I will refer this to my FAQ

FatngatirBilek commented 3 months ago

@JaKooLit it works now. Turns out this is a problem between Nvidia and Wayland which makes brightnessctl not work. Installing acpilight with

"sudo pacman -S acpilight"

and adding "acpi_backlight=native" on "/etc/default/grub" like this: image then run "sudo grub-mkconfig -o /boot/grub/grub.cfg" fixed the problem. Thanks for your help @JaKooLit

Thanks alot for sharing. I will refer this to my FAQ

you're welcome