After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759414 - gsd-backlight-helper --set-brightness: not authorized
gsd-backlight-helper --set-brightness: not authorized
Status: RESOLVED DUPLICATE of bug 756539
Product: gdm
Classification: Core
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-13 19:58 UTC by Dmitry
Modified: 2016-01-05 17:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dmitry 2015-12-13 19:58:07 UTC
After installing https://github.com/hadess/iio-sensor-proxy on my tablet I now have automatic brightness adjustment in Gnome, it works. What is strange and annoying though is that log keeps being polluted with the following message each time the light sensor receives a new value:

```
Dec 13 22:40:05 universe pkexec[1207]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 927]
Dec 13 22:40:05 universe gnome-session[366]: Error executing command as another user: Not authorized
Dec 13 22:40:05 universe gnome-session[366]: This incident has been reported.
```

The value of '--set-brightness' is always the same here - 927. If I enable auto-brightness then I also get a similar message but without 'error' and with different/changing '--set-brightness' value.
Comment 1 Lorenzo J. Lucchini 2015-12-31 18:26:52 UTC
I also have this problem, or a very similar one.

When automatic brightness is enabled, the errors in the journal are as follows:

Dec 31 18:20:37 ljltouch pkexec[26840]: ljl: Executing command [USER=root] [TTY=unknown] [CWD=/home/ljl] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 91]
Dec 31 18:20:37 ljltouch pkexec[26848]: Debian-gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm3] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 61]
Dec 31 18:20:37 ljltouch gnome-session[989]: Error executing command as another user: Not authorized
Dec 31 18:20:37 ljltouch gnome-session[989]: This incident has been reported.
Dec 31 18:20:37 ljltouch pkexec[26849]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 31 18:20:37 ljltouch pkexec[26849]: pam_systemd(polkit-1:session): Cannot create session: Already running in a session

When automatic brightness is disabled, the errors are more succint:

Dec 31 19:24:52 ljltouch pkexec[714]: Debian-gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm3] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 51]
Dec 31 19:24:52 ljltouch gnome-session[989]: Error executing command as another user: Not authorized
Dec 31 19:24:52 ljltouch gnome-session[989]: This incident has been reported.

When it is enabled, I also get some short freezes in desktop reactivity whenever a brightness change is requested.

This is on Debian Testing.
Comment 2 Rodrigo Virote Kassick 2015-12-31 21:29:34 UTC
I have this problem on a recently installed fedora 23 on a Dell notebook.

The log is flooded with about one message per second:

Dez 31 19:26:40 Voyager pkexec[14259]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:40 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:40 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.
Dez 31 19:26:41 Voyager pkexec[14265]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:41 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:41 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.
Dez 31 19:26:41 Voyager pkexec[14271]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:41 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:41 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.
Dez 31 19:26:42 Voyager pkexec[14277]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:42 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:42 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.
Dez 31 19:26:43 Voyager pkexec[14283]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:43 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:43 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.
Dez 31 19:26:43 Voyager pkexec[14289]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:43 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:43 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.
Dez 31 19:26:44 Voyager pkexec[14295]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/libexec/gsd-backlight-helper --set-brightness 927]
Dez 31 19:26:44 Voyager gnome-settings-daemon.desktop[2162]: Error executing command as another user: Not authorized
Dez 31 19:26:44 Voyager gnome-settings-daemon.desktop[2162]: This incident has been reported.


Process 2162 is gdm's gnome-settings-daemon
Comment 3 Rui Matos 2016-01-05 17:28:55 UTC

*** This bug has been marked as a duplicate of bug 756539 ***