[go: up one dir, main page]

I decided to switch to NixOS on my desktop and so far it鈥檚 been great, I love being able to build out my config in the Nix file, but there is one thing I鈥檝e not been able to figure out how to change. After a period of inactivity, the computer suspends (or hibernates?) and basically turns off (all the fans and lights turn off and it disconnects from the network, I don鈥檛 know if it鈥檚 saving the state in RAM of the drive). How do I get it to not do that and just lock the desktop and turn off the screen after inactivity? I鈥檓 using KDE Plasma and I鈥檝e tried different kinds of configurations that build successfully but still don鈥檛 prevent it from going offline.

  • Dr_Vindaloo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    4 months ago

    Caffeine. I use the GNOME extension version but I think there鈥檚 an app by the same name too.

  • adingbatponder@fosstodon.org
    link
    fedilink
    arrow-up
    1
    edit-2
    4 months ago

    @HiddenLayer555 This has been the bane of my life on nixos. I use
    services.xserver.displayManager.gdm.autoSuspend = false;
    to try to stop the suspending which works totally on my #x230 . I realise you are not using gnome but there might be a similar setting. This setting does not prevent a log-in screen appearing on my desktop machine HP EliteDesk 800 G1 and for that I bought a mouse wiggler in frustration https://amzn.eu/d/08n7oW3 which does the job. I even disable upower on non-laptops.