minus-squareleezh@lemmy.blahaj.zonetoLinux@programming.dev•[Solved] How to *permanently* disable "resume from suspend" when opening lid?linkfedilinkarrow-up3·16 days agoYou could just drop the line into a script (without the sudo) into /usr/local/bin/ and call it on startup. If you use systemd it’s as simple as: [Unit] Description=Disable Lid Suspend [Service] Type=oneshot ExecStart=/usr/local/bin/lid-suspend [Install] WantedBy=basic.target Just drop it into /etc/systemd/system/lid-suspend.service and then call sudo systemctl daemon-reload and sudo systemctl enable lid-suspend linkfedilink
You could just drop the line into a script (without the sudo) into
/usr/local/bin/and call it on startup.If you use systemd it’s as simple as:
[Unit] Description=Disable Lid Suspend [Service] Type=oneshot ExecStart=/usr/local/bin/lid-suspend [Install] WantedBy=basic.targetJust drop it into
/etc/systemd/system/lid-suspend.serviceand then callsudo systemctl daemon-reloadandsudo systemctl enable lid-suspend