Subject: Re: bug#22952: Backlight brightness keys in GDM and MATE require password authentication

From: Marius Bakke <[email-masked]>
Date: Wed, 18 Nov 2020 22:14:32 +0100

"pelzflorian (Florian Pelz)" <[email-masked]> skriver:

> I’m reopening this bug because it is very similar to my issue.
>
> When using my Macbook’s keyboard XF86MonBrightnessUp/Down keys to
> adjust screen brightness (probably on non-Macbooks too) in GDM or
> MATE, I am asked to enter my authentication password to make
> gnome-settings-daemon’s libexec/gsd-backlight-helper (or some
> equivalent program on MATE) change screen brightness.
>
> This should not be so; gsd-backlight-helper should have PolicyKit, pam
> or setuid or whatever.

gnome-service-type installs a PolicyKit rule for gnome-settings-daemon.

Should the MATE service do the same?

To work around it locally, try adding:

  (simple-service 'gsd-polkit polkit-service-type
                  (list gnome-settings-daemon))

to the (services ...) section of your system configuration.