-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
GNOME keeps suspending on unstable #42053
Comments
GNOME is set up to automatically suspend after 20 minutes of inactivity by default, I think it has something to do with some EU regulation. I have the following in my
|
@jtojnar, I copied that snippet verbatim into my |
Previously, GDM would not see that because the |
Hmm, maybe GDM filters the |
@jtojnar, I switch to the current
Am I missing something? |
It is defined here, not in the service:
|
That is probably why it's not working because |
This issue needs to be fixed. |
Why would this be an issue with lightdm? |
The new default display manager suspends my desktop when nobody is logged in, and I was under the impression that lightdm is the new default? Is that not correct? |
Yes, lightdm is the new default DM (#30890) but this is an issue about GDM. |
As I said, I have the same issue with lightdm. |
Alternately, you can try programs.dconf.enable = true;
programs.dconf.profiles.user = pkgs.writeText "dconf-user-profile" ''
user-db:user
system-db:local
'';
environment.etc."dconf/db/local.d/01-cros-ui".text = ''
[org.gnome.settings-daemon.plugins.power]
power-button-action='nothing'
idle-dim=true
sleep-inactive-battery-type='nothing'
sleep-inactive-ac-timeout=3600
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-timeout=1800
''; |
@jtojnar, I added these lines to my Also, I'm getting errors running
|
OK, the dconf error goes away after I run "dconf update" manually, which creates the missing file. Still, there is no effect on gdm. The machine suspends anyway (even after rebooting first and all). |
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to #42053.
OK, I've figured it out at last. The code from #42053 (comment) works after I applied 1af8f3a and manually ran
as |
I created a NixOS module that disables GDM's auto-suspension of the machine based on the code from #42053 (comment). Just import that module from your |
Eventually, we want to extend the dconf module to support creating databases, so that user could do something like programs.dconf = {
enable = true;
databases.local."org/gnome/settings-daemon/plugins/power" = "nothing";
}; and it would take care of running |
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to NixOS#42053.
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to NixOS#42053.
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to NixOS#42053.
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to NixOS#42053.
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to NixOS#42053.
This is necessary when system-wide dconf settings must be configured, i.e. to disable GDM's auto-suspending of the machine when no user is logged in. Related to NixOS#42053.
Here's the upstream bugtracker: https://bugzilla.gnome.org/show_bug.cgi?id=681869#c19 |
Setting services.xserver.displayManager.gdm.autoSuspend = false; should fix this until upstream sorts this out with a proper interface. |
And for lightdm? |
I believe lightdm and GDM will have nothing in common, so it wouldn't be this issue for lightdm. |
Unfortunately belief doesn't help with my laptop going to sleep after I
leave something running... This started since I upgraded to 20.03.
I've just tried:
/run/current-system/sw/bin/xset -dpms
/run/current-system/sw/bin/xset s off
But I haven't had a chance to test it yet.
…On Sat, 25 Apr 2020 at 20:47, worldofpeace ***@***.***> wrote:
Setting
services.xserver.displayManager.gdm.autoSuspend = false;
should fix this until upstream sorts this out with a proper interface.
And for lightdm?
I believe lightdm and GDM will have nothing in common, so it wouldn't be
this issue for lightdm.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#42053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWJWSWYLQETUEVCX7DNPX3ROM43TANCNFSM4FFC4B4Q>
.
|
Please open a new issue and describe the system you are using. GDM is a completely different software from lightdm and the issue with the GDM is fixed. |
That does exactly nothing for me on current unstable. Still suspends after 20 min if not logged in. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/need-help-for-nixos-gnome-scaling-settings/24590/5 |
Issue description
After upgrading from 18.03 to unstable my headless desktop tower just keeps suspending after some period of idleness. This happens irrespective of display manager (GDM) status and attempts at manual disabling via
logind
did not help.Technical details
nix-shell
configuration.nix
Also select options from configuration.nix:
Suspend on idle is disabled for my account in GNOME settings.
Logs
The text was updated successfully, but these errors were encountered: