What type of hardware are you using: Old laptop or computer What YunoHost version are you running: 12.1.33 How are you able to access your server: The webadmin Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Installed on Debian 12 (clean install)
Describe your issue
After installing YunoHost on Debian 12, the power saving option disappears from the menu, the mini PC goes into sleep mode, and I can only restart it by performing a reset. I edited the /etc/systemd/logind.conf file:
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=ignore
LidSwitchIgnoreInhibited=no
But it still goes into power saving mode. What else do I need to do to keep it running?
Is it a graphical Debian? If yes, /etc/systemd/logind.conf should be ignore by the environment if you don’t disable the power management in it. But it is strongly recommended to install the server without graphical environment like gnome or xfce or whatever else.
Yes, it has a graphical interface. I need Calibre to work, as it allows adding multiple ebooks at once, and Calibre Web is limited in the number of ebooks that can be added simultaneously. Before the clean install, it worked correctly; I’ve only noticed that this installation recognized the video card properly, I don’t know if that’s related.
I don’t think it is a good idea, but if you want to stay with this installation, disable power management in your environment to use logind.conf configuration . Is it Xfce? But i don’t understand why the power menu disappeared when yunohost was installed.
How can I disable power management to use the logind.conf settings? I changed the environment from GNOME to LightDM for testing, but it’s still doing the same thing.
It’s more a linux question than a yunohost question. I don’t use gnome, but i guess you can do that with gsettings. Did you try to mask systemd services?
Thanks for the information. I had already seen this command in the search engine, but it didn’t do anything. I received an HDMI dummy today, I’ll try this. Thanks.