Energiespareinstellungen (Debian): Unterschied zwischen den Versionen

Aus MattWiki
Keine Bearbeitungszusammenfassung
Zeile 59: Zeile 59:


  sleep-inactive-ac-timeout = 0
  sleep-inactive-ac-timeout = 0
  sleep-inactive-ac-type='blank'
  sleep-inactive-ac-type='nothing'





Version vom 3. Juni 2021, 11:53 Uhr

Festplatte Spindown aktivieren

# nano /etc/hdparm.conf
command_line {
       hdparm -B 200 /dev/sda
}

Werte 1 bis 240 sind in 5 Sekunden-Schritten, Werte 241 bis 251 sind Schritte von 30 Minuten.

Festplatte Spindown deaktivieren

Entweder in Root-Terminal:

hdparm -B 255 /dev/sdx

Oder in /etc/hdparm.conf die o. g. Einträge wieder auskommentieren. Evtl beides?

Disable Suspend and Hibernation

If the operation system should not attempt any type of suspend or hybernation, the appropriate targets need to be disabled at the systemd level:

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Re-enable hibernate and suspend with the following command:

systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

Restart systemd-login service or reboot:

systemctl restart systemd.logind.service

Check if changes have been applied:

systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target

Sources:

Disable Sleep on Login Screen (Untested)

Settings in Debian DConf (seems not to work)

Open dconf

Go to org/gnome/settings-daemon/plugins/power/

Try to change the following settings:

  • sleep-inactive-ac-timeout -> 0
  • sleep-inactive-ac-type -> 'nothing'
  • sleep-inactive-battery-timeout -> 0
  • sleep-inactive-battery-type -> 'nothing'

Settings in greeter.dconf-defaults

Edit /etc/gdm3/greeter.dconf-defaults

Uncomment and change following lines to:

sleep-inactive-ac-timeout = 0
sleep-inactive-ac-type='nothing'