Energiespareinstellungen (Debian): Unterschied zwischen den Versionen
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== Festplatte Spindown == | == Festplatte Spindown aktivieren == | ||
<syntaxhighlight lang="bash"># nano /etc/hdparm.conf | <syntaxhighlight lang="bash"># nano /etc/hdparm.conf | ||
command_line { | command_line { | ||
Zeile 6: | Zeile 6: | ||
Werte 1 bis 240 sind in 5 Sekunden-Schritten, Werte 241 bis 251 sind Schritte von 30 Minuten. | 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 <code>/etc/hdparm.conf</code> 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: | |||
* https://wiki.debian.org/Suspend#Disable_suspend_and_hibernation | |||
* https://ostechnix.com/linux-tips-disable-suspend-and-hibernation/ | |||
== Disable Sleep on Login Screen (Untested) == | |||
On a default installation of Debian the login screen is provided by the Gnome Display Manager, or GDM in short. It can be customized as follows: | |||
=== Settings in Debian DConf (seems only to work for the User session not for the login screen) === | |||
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 (seems not to work) === | |||
Edit ''/etc/gdm3/greeter.dconf-defaults'' | |||
Uncomment and change following lines to: | |||
sleep-inactive-ac-timeout = 0 | |||
sleep-inactive-ac-type='nothing' | |||
=== Settings in gconf of GDM3 User (seems not to work) === | |||
On Debian 10 the GDM greeter runs as the user ''Debian-gdm''. You can see the user name of the user the greeter runs with with using ''top'' or ''htop'' in a terminal session when on the Display the greeter is shown by lookig for the ''gdm-wayland-session'' for ''/usr/share/gdm/greeter/autostart''. | |||
The user ''Debian-gdm'' has own gconf settings. These can be checked as follows: | |||
sudo -u Debian-gdm gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type | |||
sudo -u Debian-gdm gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout | |||
sudo -u Debian-gdm gsettings get org.gnome.settings-daemon.plugins.power idle-tim | |||
They can be changed as follows: | |||
sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' | |||
sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 | |||
sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power idle-tim false | |||
[[Category:Linux]] |
Aktuelle Version vom 3. Juni 2021, 16:36 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:
- https://wiki.debian.org/Suspend#Disable_suspend_and_hibernation
- https://ostechnix.com/linux-tips-disable-suspend-and-hibernation/
Disable Sleep on Login Screen (Untested)
On a default installation of Debian the login screen is provided by the Gnome Display Manager, or GDM in short. It can be customized as follows:
Settings in Debian DConf (seems only to work for the User session not for the login screen)
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 (seems not to work)
Edit /etc/gdm3/greeter.dconf-defaults
Uncomment and change following lines to:
sleep-inactive-ac-timeout = 0 sleep-inactive-ac-type='nothing'
Settings in gconf of GDM3 User (seems not to work)
On Debian 10 the GDM greeter runs as the user Debian-gdm. You can see the user name of the user the greeter runs with with using top or htop in a terminal session when on the Display the greeter is shown by lookig for the gdm-wayland-session for /usr/share/gdm/greeter/autostart.
The user Debian-gdm has own gconf settings. These can be checked as follows:
sudo -u Debian-gdm gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type sudo -u Debian-gdm gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout sudo -u Debian-gdm gsettings get org.gnome.settings-daemon.plugins.power idle-tim
They can be changed as follows:
sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 sudo -u Debian-gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power idle-tim false