Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
FatngatirBilek opened this issue May 24, 2024 · 16 comments
Closed

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

FatngatirBilek opened this issue May 24, 2024 · 16 comments

Comments

@FatngatirBilek
Copy link

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.,

  • Linux Distro: EndeavourOS
  • Linux Version, output of uname -a: Linux archie 6.9.1-arch1-2 How to get external screen up and running ? #1 SMP PREEMPT_DYNAMIC Wed, 22 May 2024 13:47:07 +0000 x86_64 GNU/Linux
  • Hyprland Version, output of hyprctl version: Hyprland, built from branch at commit cba1ade848feac44b2eda677503900639581c3f4 (props: bump version to 0.40.0).
    Date: Sat May 4 15:42:32 2024
    Tag: v0.40.0, commits: 4606
  • Installation Environment: main hardware
  • Other info: using nvidia card
@JaKooLit
Copy link
Owner

whats the output of

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

?

@JaKooLit
Copy link
Owner

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
Copy link
Author

FatngatirBilek commented May 24, 2024

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

here's the output
image

@FatngatirBilek
Copy link
Author

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
Copy link
Owner

~/.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
Copy link
Owner

sudo chmod +s $(which brightnessctl)

try this command

@FatngatirBilek
Copy link
Author

sudo chmod +s $(which brightnessctl)

try this command

image

@JaKooLit
Copy link
Owner

try again.. hopefully this time will work :)

@FatngatirBilek
Copy link
Author

try again.. hopefully this time will work :)

it's still not working :(((

@JaKooLit
Copy link
Owner

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

swappy-20240524-173123

@JaKooLit
Copy link
Owner

swaync can also control backlight

but seeing you have nvidia,

you may need to configure it

JaKooLit/Hyprland-Dots#118

@FatngatirBilek
Copy link
Author

FatngatirBilek commented May 24, 2024

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
Copy link
Author

image

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

@FatngatirBilek
Copy link
Author

FatngatirBilek commented May 24, 2024

@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
Copy link
Owner

@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
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants