18.04를 실행하는 Ubuntu 데스크탑, 절전 및 최대 절전 모드가 꺼지고 모니터/키보드가 연결되어 있지 않으며 현재 몇 주 동안 실행되었으며 일부 사용자 정의가 훌륭합니다.
오늘 아침에는 SSH를 통해 응답하지 않았고 서비스가 클라우드 애플리케이션과 통신하지 못했습니다.
로그에 액세스하려면 컴퓨터를 재부팅해야 합니다. 이 로그 이전에 사용자 정의 서비스는 0.5초 동안만 실행되었으므로 시스템은 여전히 활성 상태였습니다. 이 무작위 절전/최대 절전 모드를 중지하는 방법에 대한 도움이 필요할 것입니다.
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.1230] manager: sleep: sleep requested (sleeping: no enabled: yes)
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.1236] manager: NetworkManager state is now ASLEEP
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.1253] device (enp1s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 06:54:00 home whoopsie[1025]: [06:54:00] offline
Feb 02 06:54:00 home gnome-shell[859]: Screen lock is locked down, not locking
Feb 02 06:54:00 home dbus-daemon[662]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.15' (uid=0 pid=709 comm="/usr/sbin/Network
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.1615] device (enp1s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 06:54:00 home avahi-daemon[684]: Withdrawing address record for xxx on enp1s0.
Feb 02 06:54:00 home avahi-daemon[684]: Leaving mDNS multicast group on interface enp1s0.IPv6 with address xxx.
Feb 02 06:54:00 home avahi-daemon[684]: Interface enp1s0.IPv6 no longer relevant for mDNS.
Feb 02 06:54:00 home systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.1970] dhcp4 (enp1s0): canceled DHCP transaction, DHCP client pid 968
Feb 02 06:54:00 home dbus-daemon[662]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.1971] dhcp4 (enp1s0): state changed bound -> done
Feb 02 06:54:00 home systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 02 06:54:00 home nm-dispatcher[24574]: req:1 'connectivity-change': new request (1 scripts)
Feb 02 06:54:00 home avahi-daemon[684]: Withdrawing address record for 192.168.4.44 on enp1s0.
Feb 02 06:54:00 home nm-dispatcher[24574]: req:1 'connectivity-change': start running ordered scripts...
Feb 02 06:54:00 home avahi-daemon[684]: Leaving mDNS multicast group on interface enp1s0.IPv4 with address 192.168.4.44.
Feb 02 06:54:00 home avahi-daemon[684]: Interface enp1s0.IPv4 no longer relevant for mDNS.
Feb 02 06:54:00 home NetworkManager[709]: <info> [1612248840.2066] device (enp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 06:54:00 home kernel: r8169 0000:01:00.0 enp1s0: Link is Down
Feb 02 06:54:00 home nm-dispatcher[24574]: req:2 'down' [enp1s0]: new request (1 scripts)
Feb 02 06:54:00 home nm-dispatcher[24574]: req:2 'down' [enp1s0]: start running ordered scripts...
Feb 02 06:54:00 home systemd[1]: Reached target Sleep.
Feb 02 06:54:00 home systemd[1]: Starting Hybrid Suspend+Hibernate...
Feb 02 06:54:00 home kernel: PM: Image not found (code -22)
Feb 02 06:54:00 home systemd-sleep[24587]: Suspending system...
Feb 02 06:54:00 home kernel: PM: hibernation entry
이 시간 동안의 전원 설정도 마찬가지입니다.
:/home/me# su - gdm -s /bin/bash
:~$ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type
'nothing'
:~$ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
'nothing'
:~$ dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type
'nothing'
:~$ dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout
0
:~$ dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout
1200
답변1
이러한 절전/최대 절전 상태의 원인을 찾을 수 없는 경우 완전히 비활성화할 수 있습니다(어차피 24/7 서버임).
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target