Hi, I've discovered that the non-working brightness controls for theMacBook2,1 are due to insufficient permissions. The first indication of this was that I could change brightness byrunning the program redshift with root permissions (`sudo redshift`). Today I was presented with this dialog box in GNOME 3 after havingpressed one of the brightness-control keys: "Authentication is needed to run'/gnu/store/[...]-gnome-settings-daemon-3.18.2/libexec/gsd-backlight-helper'as the super user. AdministratorPassword [__________]" I tried to input both the user password and the root password but noneof this this had any effect. When I back into GNOME 3 as root, however,the brightness controls were working. Does anyone have a suggestion what I could try to give the variousbrightness control programs (for GNOME 3, Xfce, etc.) the requiredpermissions without having to be logged in as root? Cheers! Albin
Re: bug#22952: MacBook2, 1 brightness control requires root privileges
(name . Albin)(address . email@example.com)
Albin <firstname.lastname@example.org> skribis:
Toggle quote (6 lines)> I've discovered that the non-working brightness controls for the> MacBook2,1 are due to insufficient permissions.>> The first indication of this was that I could change brightness by> running the program redshift with root permissions (`sudo redshift`).
Interesting. I use a simple window manager (ratpoison), and ‘redshift’works fine as non-root.
Toggle quote (10 lines)> Today I was presented with this dialog box in GNOME 3 after having> pressed one of the brightness-control keys:>> "Authentication is needed to run> '/gnu/store/[...]-gnome-settings-daemon-3.18.2/libexec/gsd-backlight-helper'> as the super user.>> Administrator> Password [__________]"
I’m reopening this bug because it is very similar to my issue. When using my Macbook’s keyboard XF86MonBrightnessUp/Down keys toadjust screen brightness (probably on non-Macbooks too) in GDM orMATE, I am asked to enter my authentication password to makegnome-settings-daemon’s libexec/gsd-backlight-helper (or someequivalent program on MATE) change screen brightness. This should not be so; gsd-backlight-helper should have PolicyKit, pamor setuid or whatever. Regards,Florian
Toggle quote (11 lines)> 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.
On Wed, Nov 18, 2020 at 10:14:32PM +0100, Marius Bakke wrote:
Toggle quote (7 lines)> 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.
Thank you. You are correct for GDM. Adding this fixes changing thebacklight in GDM. Perhaps the GDM service should extend the polkitservice like that. It also does not conflict with adding agnome-service-type. MATE still complains. Without changing services, normally both on thefirst log-in to MATE and on subsequent log-ins, when pressing the keysto change the backlight, a message window still tells me that/gnu/store/5kmmwc9q23lihpy3nv2knbvsr9qv2aln-mate-power-manager-1.24.2/sbin/mate-power-backlight-helperneeds to be authenticated as the super user; I need to enter thepassword. Only with gnome-service-type and when not removing the GDM service,after GDM (which uses the gsd), on the first log-in to the MATEdesktop, the backlight keys do nothing at all. When I try to log out,it says Power Manager is not responding. When I force the log-outdespite the Power Manager, then log back in, I again get the messageeach time I press the backlight keys. I added: (simple-service 'mate-power-polkit polkit-service-type (list mate-power-manager)) It does not work. Regards,Florian