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

Adjusting screen brightness in GNOME 3.12 causes endless password prompt loop #2908

Closed
bjornfor opened this issue Jun 11, 2014 · 6 comments
Closed
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@bjornfor
Copy link
Contributor

While testing gnome 3.12 I tried the screen brightness widget up in the upper right corner. Immediately after moving the slider I got prompted for password (pkexec popup or something). But it would not accept my password and just kept popping up. This popup actually "hogs the whole screen" (it grays out other elements and alt-tab stops working), so I ended up restarting my machine and went back to gnome 3.10. In gnome 3.10 there is no password prompt when changing screen brightness.

@bjornfor
Copy link
Contributor Author

Clicking "cancel" didn't stop the popup from popping up either...

@wmertens
Copy link
Contributor

next time you might be able to avoid a reboot by pressing ctrl-alt-1,
logging in, and finding the process that generated the popup and killing
it...

On Thu, Jun 12, 2014 at 12:23 AM, Bjørn Forsman [email protected]
wrote:

Clicking "cancel" didn't stop the popup from popping up either...


Reply to this email directly or view it on GitHub
#2908 (comment).

@lucabrunox
Copy link
Contributor

What happens if you launch /nix/store/*gnome-settings*3.12*/libexec/gsd-backlight-helper --set-brightness 7 ?

@lucabrunox
Copy link
Contributor

Should be something related to share/polkit-1/actions/org.gnome.settings-daemon.plugins.power.policy in the gnome-settings-daemon out path.

@bjornfor
Copy link
Contributor Author

@lethalman: Issue solved!

Turns out that this only happens in the time between "nixos-rebuild switch" (from 3.10 to 2.12) and until a reboot (or possibly a re-login). So not really a "gnome 3.12" bug, but more of a "nixos-switch sometimes has some unfortunate side-effects" bug. After I rebooted, I could move the screen brightness slider with no password prompt.

Also, it was not really an "endless loop". When moving the slider the system generates lots of events, and for each event GNOME runs "pkexec ..." askin for password (blocking). All I had to do was press escape 20+ times to get back to my desktop. :-)

And it works without adding gnome3_12.gnome_settings_daemon to environment.systemPackages.

@lucabrunox
Copy link
Contributor

@bjornfor I see, that's because nixos-rebuild does not restart all services I guess. Maybe upower is not restarted (because gnome 3.12 needs a major version bump) or such.
Thanks for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

3 participants