I'm using a Ubuntu 20.04 Live USB to run some gparted and backup work across my drives, but it keeps going to sleep after a while, stopping the backup process.
The settings menu crashes when I try to open it so I can't access the power settings to turn off sleep. How do I stop it from going to sleep?
Things i've tried:
Try Gparted Live .iso instead - does not work on my new hardware
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Opening the 'Install Ubuntu 20.04 LTS' installer and leaving it open - didn't work
for some reason putting a heavy object on the keyboard typing stuff to a terminal didn't work
Использование кофеина из центра программного обеспечения работало
Если вы можете установить dconf-editor (через программное обеспечение Ubuntu или через командную строку), затем вы сможете использовать этот инструмент GUI для редактирования соответствующих настроек.
Используйте dconf-editor для поиска org.gnome.settings-daemon.plugins .power
И я думаю, вам нужно изменить sleep-inactive-ac-type
и / или sleep-inactive-battery-type
со значения по умолчанию suspend
- ничего
Больше информации об инструменте здесь: https://wiki.gnome.org/Apps/DconfEditor