web-dev-qa-db-ja.com

カーネルの一時停止が速すぎるため、再開時に一時停止タスクが続行する

2019年6月29日更新

以下の削除された回答(投稿者はコメントを投稿するのに十分な評価ポイントを持っていなかった)から、バグレポートがKernel.org Bugzillaに提出されました。

別のバグレポートがLaunchpadに提出されました:


2018年10月21日更新

問題はまだここにあり、どれだけ多くの研究を行ったとしても(大抵は以前の研究を繰り返す)、解決策は近づきません。別のユーザーが本日同じ問題を報告しました: スリープモードではバッテリーが非常に速く消耗します

簡単に言えば、私のjournalctl -xeログを見ることができます:

Oct 21 16:12:28 alien kernel: PM: Syncing filesystems ... done.
Oct 21 16:12:28 alien kernel: PM: Preparing system for sleep (mem)
Oct 21 16:12:29 alien whoopsie[1129]: [16:12:29] Cannot reach: https://daisy.ubuntu.com
Oct 21 16:12:29 alien whoopsie[1129]: [16:12:29] Cannot reach: https://daisy.ubuntu.com
Oct 21 16:12:29 alien nm-dispatcher[14659]: req:2 'down' [enp59s0]: start running ordered scripts...
Oct 21 16:13:14 alien kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
  • 16:12:28システムでサスペンドが開始されます。
  • 16:13:14でシステムは再開されますが、タスクをフリーズすることにより中断が続行されます

2018年2月25日更新

この質問が最初に投稿されたとき、14.04から16.04にアップグレードされたラップトップがありました。それ以来、16.04フレッシュインストールの新しいラップトップを使用しています。問題はまだ残っています:

    (... Feb 24/2018 laptop lid closed system suspends ...)
Feb 24 23:20:39 alien systemd[1]: Starting TLP suspend/resume...
Feb 24 23:20:39 alien systemd[1]: Started TLP suspend/resume.
Feb 24 23:20:39 alien systemd[1]: Reached target Sleep.
Feb 24 23:20:39 alien systemd[1]: Starting Suspend...
Feb 24 23:20:39 alien systemd-sleep[9105]: /lib/systemd/system-sleep/sound: Going to suspend...
Feb 24 23:20:39 alien systemd-sleep[9105]: /lib/systemd/system-sleep/display-auto-brightness: Going to suspend...
Feb 24 23:20:39 alien systemd-sleep[9105]: Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
Feb 24 23:20:39 alien systemd-sleep[9106]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Feb 24 23:20:39 alien root: /lib/systemd/system-sleep/r8169-reset case=[ pre ]
Feb 24 23:20:40 alien systemd-sleep[9105]: Suspending system...
Feb 24 23:20:40 alien kernel: [32114.051624] PM: suspend entry (deep)
    (... Feb 25/2018 laptop lid open system resumes and immediately sleeps ...)
Feb 25 07:40:14 alien kernel: [32114.051627] PM: Syncing filesystems ... done.
Feb 25 07:40:14 alien kernel: [32114.071584] Freezing user space processes ... (elapsed 0.001 seconds) done.
Feb 25 07:40:14 alien kernel: [32114.073493] OOM killer disabled.
Feb 25 07:40:14 alien kernel: [32114.073494] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Feb 25 07:40:14 alien kernel: [32114.074945] Suspending console(s) (use no_console_suspend to debug)
Feb 25 07:40:14 alien kernel: [32114.075534] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
Feb 25 07:40:14 alien kernel: [32114.076006] sd 1:0:0:0: [sda] Synchronizing SCSI cache
Feb 25 07:40:14 alien kernel: [32114.076471] sd 1:0:0:0: [sda] Stopping disk
Feb 25 07:40:14 alien kernel: [32116.375342] ACPI: Preparing to enter system sleep state S3
Feb 25 07:40:14 alien kernel: [32116.376678] ACPI: EC: event blocked
Feb 25 07:40:14 alien kernel: [32116.376679] ACPI: EC: EC stopped
Feb 25 07:40:14 alien kernel: [32116.376680] PM: Saving platform NVS memory
Feb 25 07:40:14 alien kernel: [32116.376821] Disabling non-boot CPUs ...
Feb 25 07:40:14 alien kernel: [32116.394624] smpboot: CPU 1 is now offline
Feb 25 07:40:14 alien kernel: [32116.413577] IRQ 137: no longer affine to CPU2
Feb 25 07:40:14 alien kernel: [32116.414597] smpboot: CPU 2 is now offline
Feb 25 07:40:14 alien kernel: [32116.437543] IRQ 127: no longer affine to CPU3
Feb 25 07:40:14 alien kernel: [32116.438566] smpboot: CPU 3 is now offline
Feb 25 07:40:14 alien kernel: [32116.461504] IRQ 122: no longer affine to CPU4
Feb 25 07:40:14 alien kernel: [32116.461511] IRQ 124: no longer affine to CPU4
Feb 25 07:40:14 alien kernel: [32116.463298] smpboot: CPU 4 is now offline
Feb 25 07:40:14 alien kernel: [32116.486420] smpboot: CPU 5 is now offline
Feb 25 07:40:14 alien kernel: [32116.509384] IRQ 123: no longer affine to CPU6
Feb 25 07:40:14 alien kernel: [32116.510409] smpboot: CPU 6 is now offline
Feb 25 07:40:14 alien kernel: [32116.533331] IRQ 1: no longer affine to CPU7
Feb 25 07:40:14 alien kernel: [32116.533337] IRQ 8: no longer affine to CPU7
Feb 25 07:40:14 alien kernel: [32116.533341] IRQ 9: no longer affine to CPU7
Feb 25 07:40:14 alien kernel: [32116.533345] IRQ 12: no longer affine to CPU7
Feb 25 07:40:14 alien kernel: [32116.534378] smpboot: CPU 7 is now offline
    (... Feb 25/2018 suspend started last night now complete, system resumes ...)

Feb 25 07:40:14 alien kernel: [32116.537314] ACPI: Low-level resume complete
Feb 25 07:40:14 alien kernel: [32116.537405] ACPI: EC: EC started
Feb 25 07:40:14 alien kernel: [32116.537406] PM: Restoring platform NVS memory
Feb 25 07:40:14 alien kernel: [32116.538161] Enabling non-boot CPUs ...
Feb 25 07:40:14 alien kernel: [32116.538217] x86: Booting SMP configuration:
Feb 25 07:40:14 alien kernel: [32116.538218] smpboot: Booting Node 0 Processor 1 APIC 0x2
Feb 25 07:40:14 alien kernel: [32116.539597]  cache: parent cpu1 should not be sleeping
Feb 25 07:40:14 alien kernel: [32116.539750] CPU1 is up
Feb 25 07:40:14 alien kernel: [32116.539773] smpboot: Booting Node 0 Processor 2 APIC 0x4
Feb 25 07:40:14 alien kernel: [32116.541154]  cache: parent cpu2 should not be sleeping
Feb 25 07:40:14 alien kernel: [32116.541312] CPU2 is up
    (... SNIP ....)
Feb 25 07:40:15 alien systemd[1]: Started Daily apt upgrade and clean activities.
Feb 25 07:40:16 alien systemd[1]: Started Suspend.
Feb 25 07:40:16 alien systemd[1]: sleep.target: Unit not needed anymore. Stopping.
Feb 25 07:40:16 alien systemd[1]: Stopped target Sleep.
Feb 25 07:40:16 alien systemd[1]: tlp-sleep.service: Unit not needed anymore. Stopping.
Feb 25 07:40:16 alien systemd[1]: Stopping TLP suspend/resume...
Feb 25 07:40:16 alien systemd[1]: Reached target Suspend.
Feb 25 07:40:16 alien systemd[1]: suspend.target: Unit is bound to inactive unit systemd-suspend.service. Stopping, too.
Feb 25 07:40:16 alien systemd[1]: Stopped target Suspend.
Feb 25 07:40:16 alien systemd[1]: Started Run anacron jobs at resume.
Feb 25 07:40:16 alien NetworkManager[904]: <info>  [1519569616.5268] manager: wake requested (sleeping: yes  enabled: yes)
Feb 25 07:40:16 alien NetworkManager[904]: <info>  [1519569616.5268] manager: waking up...
Feb 25 07:40:16 alien NetworkManager[904]: <info>  [1519569616.5269] device (enp59s0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 25 07:40:16 alien NetworkManager[904]: <info>  [1519569616.5283] device (wlp60s0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 25 07:40:16 alien kernel: [32122.065301] IPv6: ADDRCONF(NETDEV_UP): enp59s0: link is not ready
Feb 25 07:40:16 alien kernel: [32122.065783] IPv6: ADDRCONF(NETDEV_UP): enp59s0: link is not ready
Feb 25 07:40:16 alien kernel: [32122.066900] alx 0000:3b:00.0 enp59s0: NIC Up: 1 Gbps Full
Feb 25 07:40:16 alien kernel: [32122.067126] IPv6: ADDRCONF(NETDEV_CHANGE): enp59s0: link becomes ready
Feb 25 07:40:16 alien kernel: [32122.067303] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready
Feb 25 07:40:16 alien systemd[1]: Started Run anacron jobs.
Feb 25 07:40:16 alien anacron[9772]: Anacron 2.3 started on 2018-02-25
Feb 25 07:40:16 alien anacron[9772]: Will run job `cron.daily' in 5 min.
Feb 25 07:40:16 alien anacron[9772]: Will run job `cron.weekly' in 10 min.

2月24日の午後11時30分にシステムが一時停止し、2月25日の午前7時40分に再開したことに注目してください。再開すると、システムはすぐに「スリープ」状態になり、その後「ウェイクアップ」します。

バックグラウンド

注:Ubuntu 16.04では、バッテリーとプラグインの両方で電源設定のふたを閉じるを「サスペンド」に設定します。

/etc/systemd/logind.conf内で、デフォルトの「無視」がHandleLidSwitch=suspendおよびHandleLidSwitchDocked=suspendに変更されました。 HDMI外付けテレビが接続されており、これらのオプション(またはUbuntuの電源設定)のいずれかが「無視」または「何もしない」に設定されている場合、ふたを閉じてもテレビが空になるとシステムは動作し続けます。 Ubuntu 14.04(systemdなし)で、ふたを閉じるとサスペンドが正常に機能しました。

Acpi-events、pm-utils、gnome-???には多くの歴史的な変更がありました。おそらくdbus-???。また、フリーズとメモリのさまざまなサスペンド方法を試しています。

正直なところ、試したすべてのことを思い出すことはできませんが、太陽の下ですべてを検索したようです。

/ var/log/syslogの関連コンテンツ

/var/log/syslogを午前5時5分に見ると、システムは(systemdによって)中断されました。午後4時46分(16時46分)にsystemdが再開しましたが、カーネルはラップトップをスリープ状態にし、すぐにウェイクアップしました。 「親CPUはスリープしないでください」などの奇妙なメッセージがたくさんあります。

私の懸念は、この質問が最初に2016年10月に投稿されてから6か月後に他のものが壊れ始めていることです。私はr8169ドライバーをr8168にダウングレードしましたが、それは助けにはなりませんでした。私はネットワークの再起動をセットアップしましたが、それは物事を助けていませんでした。確かに時々DNSが失われます。

関連する/var/log/syslogは次のとおりです。

Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8097] manager: sleep requested (sleeping: no  enabled: yes)
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8098] manager: sleeping...
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8100] device (18:4F:32:8D:AA:98): state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8104] manager: NetworkManager state is now ASLEEP
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8110] device (wlan0): state change: activated -> deactivating (reason 'sleeping') [100 110 37]
Apr 11 05:05:47 Dell whoopsie[1081]: [05:05:47] offline
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8159] device (eth0): state change: activated -> deactivating (reason 'sleeping') [100 110 37]
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8236] device (wlan0): state change: deactivating -> disconnected (reason 'sleeping') [110 30 37]
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for 2001:56a:f114:bf00:9466:976d:8bf9:9cc2 on wlan0.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Leaving mDNS multicast group on interface wlan0.IPv6 with address 2001:56a:f114:bf00:9466:976d:8bf9:9cc2.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::6d92:f19f:f5c3:f173.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Registering new address record for fe80::6d92:f19f:f5c3:f173 on wlan0.*.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for fe80::6d92:f19f:f5c3:f173 on wlan0.
Apr 11 05:05:47 Dell gnome-session[2394]: (deja-dup-monitor:11605): GLib-CRITICAL **: Source ID 957 was not found when attempting to remove it
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8266] dhcp4 (wlan0): canceled DHCP transaction, DHCP client pid 21469
Apr 11 05:05:47 Dell avahi-daemon[1169]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::6d92:f19f:f5c3:f173.
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8267] dhcp4 (wlan0): state changed bound -> done
Apr 11 05:05:47 Dell avahi-daemon[1169]: Interface wlan0.IPv6 no longer relevant for mDNS.
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8273] dhcp6 (wlan0): canceled DHCP transaction
Apr 11 05:05:47 Dell kernel: [17371.316039] wlan0: deauthenticating from 70:f1:96:42:5f:02 by local choice (Reason: 3=DEAUTH_LEAVING)
Apr 11 05:05:47 Dell wpa_supplicant[1631]: wlan0: CTRL-EVENT-DISCONNECTED bssid=70:f1:96:42:5f:02 reason=3 locally_generated=1
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for 192.168.1.68 on wlan0.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.68.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Interface wlan0.IPv4 no longer relevant for mDNS.
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8572] dns-mgr: Writing DNS information to /sbin/resolvconf
Apr 11 05:05:47 Dell dnsmasq[21738]: setting upstream servers from DBus
Apr 11 05:05:47 Dell dnsmasq[21738]: using nameserver 2001:568:ff09:10c::53#53(via eth0)
Apr 11 05:05:47 Dell dnsmasq[21738]: using nameserver 2001:568:ff09:10b::122#53(via eth0)
Apr 11 05:05:47 Dell dnsmasq[21738]: using nameserver 2001:568:ff09:10c::53#53(via wlan0)
Apr 11 05:05:47 Dell dnsmasq[21738]: using nameserver 2001:568:ff09:10b::122#53(via wlan0)
Apr 11 05:05:47 Dell wpa_supplicant[1631]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Apr 11 05:05:47 Dell kernel: [17371.351376] cfg80211: World regulatory domain updated:
Apr 11 05:05:47 Dell kernel: [17371.351381] cfg80211:  DFS Master region: unset
Apr 11 05:05:47 Dell kernel: [17371.351383] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Apr 11 05:05:47 Dell kernel: [17371.351388] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Apr 11 05:05:47 Dell kernel: [17371.351391] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Apr 11 05:05:47 Dell kernel: [17371.351394] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Apr 11 05:05:47 Dell kernel: [17371.351398] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Apr 11 05:05:47 Dell kernel: [17371.351402] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Apr 11 05:05:47 Dell kernel: [17371.351406] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Apr 11 05:05:47 Dell kernel: [17371.351409] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Apr 11 05:05:47 Dell kernel: [17371.351413] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.8990] dns-mgr: Writing DNS information to /sbin/resolvconf
Apr 11 05:05:47 Dell dnsmasq[21738]: setting upstream servers from DBus
Apr 11 05:05:47 Dell dnsmasq[21738]: using nameserver 2001:568:ff09:10c::53#53(via eth0)
Apr 11 05:05:47 Dell dnsmasq[21738]: using nameserver 2001:568:ff09:10b::122#53(via eth0)
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.9082] device (eth0): state change: deactivating -> disconnected (reason 'sleeping') [110 30 37]
Apr 11 05:05:47 Dell dbus[1234]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for 2001:56a:f114:bf00:1513:4a3e:2ff6:2764 on eth0.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for 2001:56a:f114:bf00:1baa:569:8a37:6121 on eth0.
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.9130] dns-mgr: Writing DNS information to /sbin/resolvconf
Apr 11 05:05:47 Dell avahi-daemon[1169]: Registering new address record for 2001:56a:f114:bf00:9e2a:fb78:b1f:606 on eth0.*.
Apr 11 05:05:47 Dell NetworkManager[21298]: <warn>  [1491908747.9273] sup-iface[0x275ac00,wlan0]: connection disconnected (reason -3)
Apr 11 05:05:47 Dell avahi-daemon[1169]: Registering new address record for fe80::44a5:819f:4f44:182d on eth0.*.
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.9274] device (wlan0): supplicant interface state: completed -> disconnected
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for 2001:56a:f114:bf00:9e2a:fb78:b1f:606 on eth0.
Apr 11 05:05:47 Dell systemd[1]: Starting Network Manager Script Dispatcher Service...
Apr 11 05:05:47 Dell avahi-daemon[1169]: Leaving mDNS multicast group on interface eth0.IPv6 with address 2001:56a:f114:bf00:9e2a:fb78:b1f:606.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::44a5:819f:4f44:182d.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Withdrawing address record for fe80::44a5:819f:4f44:182d on eth0.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::44a5:819f:4f44:182d.
Apr 11 05:05:47 Dell avahi-daemon[1169]: Interface eth0.IPv6 no longer relevant for mDNS.
Apr 11 05:05:47 Dell dnsmasq[21738]: setting upstream servers from DBus
Apr 11 05:05:47 Dell dbus[1234]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 11 05:05:47 Dell nm-dispatcher: req:1 'down' [wlan0]: new request (2 scripts)
Apr 11 05:05:47 Dell nm-dispatcher: req:1 'down' [wlan0]: start running ordered scripts...
Apr 11 05:05:47 Dell systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 11 05:05:47 Dell nm-dispatcher: req:2 'down' [eth0]: new request (2 scripts)
Apr 11 05:05:47 Dell NetworkManager[21298]: <info>  [1491908747.9503] device (wlan0): state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
Apr 11 05:05:48 Dell rtkit-daemon[1815]: Supervising 1 threads of 1 processes of 1 users.
Apr 11 05:05:48 Dell rtkit-daemon[1815]: Successfully made thread 6828 of process 2517 (n/a) owned by '1000' RT at priority 5.
Apr 11 05:05:48 Dell rtkit-daemon[1815]: Supervising 2 threads of 1 processes of 1 users.
Apr 11 05:05:48 Dell NetworkManager[21298]: <info>  [1491908748.4032] device (eth0): state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
Apr 11 05:05:48 Dell wpa_supplicant[1631]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Apr 11 05:05:48 Dell NetworkManager[21298]: <info>  [1491908748.4417] device (eth0): link disconnected
Apr 11 05:05:48 Dell systemd[1]: Starting TLP suspend/resume...
Apr 11 05:05:48 Dell nm-dispatcher: req:2 'down' [eth0]: start running ordered scripts...
Apr 11 05:05:48 Dell systemd[1]: Started TLP suspend/resume.
Apr 11 05:05:48 Dell systemd[1]: Reached target Sleep.
Apr 11 05:05:48 Dell systemd[1]: Starting Suspend...
Apr 11 05:05:48 Dell systemd-sleep[7020]: /lib/systemd/system-sleep/sound: Going to suspend...
Apr 11 05:05:48 Dell systemd-sleep[7020]: Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
Apr 11 05:05:48 Dell systemd-sleep[7022]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Apr 11 05:05:49 Dell systemd-sleep[7020]: Suspending system...
Apr 11 16:46:51 Dell kernel: [17373.370197] PM: Syncing filesystems ... done.
Apr 11 16:46:51 Dell kernel: [17373.391541] PM: Preparing system for sleep (mem)
Apr 11 16:46:51 Dell kernel: [17373.391987] Freezing user space processes ... (elapsed 0.003 seconds) done.
Apr 11 16:46:51 Dell kernel: [17373.395058] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Apr 11 16:46:51 Dell kernel: [17373.396500] PM: Suspending system (mem)
Apr 11 16:46:51 Dell kernel: [17373.396521] Suspending console(s) (use no_console_suspend to debug)
Apr 11 16:46:51 Dell kernel: [17373.398621] sd 2:0:0:0: [sdc] Synchronizing SCSI cache
Apr 11 16:46:51 Dell kernel: [17373.398748] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
Apr 11 16:46:51 Dell kernel: [17373.398842] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Apr 11 16:46:51 Dell kernel: [17373.398999] sd 1:0:0:0: [sdb] Stopping disk
Apr 11 16:46:51 Dell kernel: [17373.399653] sd 0:0:0:0: [sda] Stopping disk
Apr 11 16:46:51 Dell kernel: [17373.400760] sd 2:0:0:0: [sdc] Stopping disk
Apr 11 16:46:51 Dell kernel: [17373.782939] PM: suspend of devices complete after 386.188 msecs
Apr 11 16:46:51 Dell kernel: [17373.798944] PM: late suspend of devices complete after 15.999 msecs
Apr 11 16:46:51 Dell kernel: [17373.800622] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
Apr 11 16:46:51 Dell kernel: [17373.800930] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
Apr 11 16:46:51 Dell kernel: [17373.800980] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
Apr 11 16:46:51 Dell kernel: [17373.815056] PM: noirq suspend of devices complete after 16.108 msecs
Apr 11 16:46:51 Dell kernel: [17373.815505] ACPI: Preparing to enter system sleep state S3
Apr 11 16:46:51 Dell kernel: [17373.827032] ACPI : EC: EC stopped
Apr 11 16:46:51 Dell kernel: [17373.827033] PM: Saving platform NVS memory
Apr 11 16:46:51 Dell kernel: [17373.827039] Disabling non-boot CPUs ...
Apr 11 16:46:51 Dell kernel: [17373.827534] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.828570] smpboot: CPU 1 is now offline
Apr 11 16:46:51 Dell kernel: [17373.839988] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.839993] Broke affinity for irq 30
Apr 11 16:46:51 Dell kernel: [17373.841017] smpboot: CPU 2 is now offline
Apr 11 16:46:51 Dell kernel: [17373.851875] Broke affinity for irq 16
Apr 11 16:46:51 Dell kernel: [17373.851879] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.851882] Broke affinity for irq 30
Apr 11 16:46:51 Dell kernel: [17373.852900] smpboot: CPU 3 is now offline
Apr 11 16:46:51 Dell kernel: [17373.863836] Broke affinity for irq 16
Apr 11 16:46:51 Dell kernel: [17373.863841] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.863845] Broke affinity for irq 30
Apr 11 16:46:51 Dell kernel: [17373.864873] smpboot: CPU 4 is now offline
Apr 11 16:46:51 Dell kernel: [17373.875982] Broke affinity for irq 16
Apr 11 16:46:51 Dell kernel: [17373.875987] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.875990] Broke affinity for irq 30
Apr 11 16:46:51 Dell kernel: [17373.877020] smpboot: CPU 5 is now offline
Apr 11 16:46:51 Dell kernel: [17373.891692] Broke affinity for irq 16
Apr 11 16:46:51 Dell kernel: [17373.891700] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.891707] Broke affinity for irq 27
Apr 11 16:46:51 Dell kernel: [17373.891710] Broke affinity for irq 30
Apr 11 16:46:51 Dell kernel: [17373.892762] smpboot: CPU 6 is now offline
Apr 11 16:46:51 Dell kernel: [17373.907749] Broke affinity for irq 1
Apr 11 16:46:51 Dell kernel: [17373.907759] Broke affinity for irq 9
Apr 11 16:46:51 Dell kernel: [17373.907764] Broke affinity for irq 12
Apr 11 16:46:51 Dell kernel: [17373.907769] Broke affinity for irq 16
Apr 11 16:46:51 Dell kernel: [17373.907774] Broke affinity for irq 23
Apr 11 16:46:51 Dell kernel: [17373.907777] Broke affinity for irq 25
Apr 11 16:46:51 Dell kernel: [17373.907779] Broke affinity for irq 27
Apr 11 16:46:51 Dell kernel: [17373.907781] Broke affinity for irq 28
Apr 11 16:46:51 Dell kernel: [17373.907783] Broke affinity for irq 30
Apr 11 16:46:51 Dell kernel: [17373.908817] smpboot: CPU 7 is now offline
Apr 11 16:46:51 Dell kernel: [17373.924754] ACPI: Low-level resume complete
Apr 11 16:46:51 Dell kernel: [17373.924793] ACPI : EC: EC started
Apr 11 16:46:51 Dell kernel: [17373.924794] PM: Restoring platform NVS memory
Apr 11 16:46:51 Dell kernel: [17373.925803] microcode: CPU0 microcode updated early to revision 0x1c, date = 2015-02-26
Apr 11 16:46:51 Dell kernel: [17373.925825] Enabling non-boot CPUs ...
Apr 11 16:46:51 Dell kernel: [17373.944779] x86: Booting SMP configuration:
Apr 11 16:46:51 Dell kernel: [17373.944780] smpboot: Booting Node 0 Processor 1 APIC 0x1
Apr 11 16:46:51 Dell kernel: [17373.948142]  cache: parent cpu1 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17373.948292] CPU1 is up
Apr 11 16:46:51 Dell kernel: [17373.964863] smpboot: Booting Node 0 Processor 2 APIC 0x2
Apr 11 16:46:51 Dell kernel: [17373.965785] microcode: CPU2 microcode updated early to revision 0x1c, date = 2015-02-26
Apr 11 16:46:51 Dell kernel: [17373.968640]  cache: parent cpu2 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17373.968795] CPU2 is up
Apr 11 16:46:51 Dell kernel: [17373.988826] smpboot: Booting Node 0 Processor 3 APIC 0x3
Apr 11 16:46:51 Dell kernel: [17373.992163]  cache: parent cpu3 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17373.992310] CPU3 is up
Apr 11 16:46:51 Dell kernel: [17374.008879] smpboot: Booting Node 0 Processor 4 APIC 0x4
Apr 11 16:46:51 Dell kernel: [17374.009697] microcode: CPU4 microcode updated early to revision 0x1c, date = 2015-02-26
Apr 11 16:46:51 Dell kernel: [17374.012573]  cache: parent cpu4 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17374.012722] CPU4 is up
Apr 11 16:46:51 Dell kernel: [17374.033044] smpboot: Booting Node 0 Processor 5 APIC 0x5
Apr 11 16:46:51 Dell kernel: [17374.036644]  cache: parent cpu5 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17374.036796] CPU5 is up
Apr 11 16:46:51 Dell kernel: [17374.073039] smpboot: Booting Node 0 Processor 6 APIC 0x6
Apr 11 16:46:51 Dell kernel: [17374.073925] microcode: CPU6 microcode updated early to revision 0x1c, date = 2015-02-26
Apr 11 16:46:51 Dell kernel: [17374.076895]  cache: parent cpu6 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17374.077046] CPU6 is up
Apr 11 16:46:51 Dell kernel: [17374.101162] smpboot: Booting Node 0 Processor 7 APIC 0x7
Apr 11 16:46:51 Dell kernel: [17374.104861]  cache: parent cpu7 should not be sleeping
Apr 11 16:46:51 Dell kernel: [17374.105012] CPU7 is up
Apr 11 16:46:51 Dell kernel: [17374.111893] ACPI: Waking up from system sleep state S3
Apr 11 16:46:51 Dell kernel: [17374.169369] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
Apr 11 16:46:51 Dell kernel: [17374.170294] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
Apr 11 16:46:51 Dell kernel: [17374.170310] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
Apr 11 16:46:51 Dell kernel: [17374.170418] PM: noirq resume of devices complete after 17.795 msecs

これは正常ですか? (リッドクローズは、systemdがより速くサスペンドし、タスクが少なくなることを除いて同じことを行います)。

9

私が見つけることができるすべての情報を確認した後、Asus、Dell、HP、Lenovoなどを含む多くのシステムに影響を与えている このカーネルバグ の影響を受けているという結論に達しました。さらなる活動が発生しない場合、47日間で期限切れとマークされ、非常に暑く、バグヒートスコアで412を記録し、現時点で86人に影響を与えていると報告されています。それをサブスクライブし、カーネル関連の情報を提供することをお勧めします。この情報を使用して、問題を明確にし、開発者が問題を解決できるようにします。

可能性のある回避策は、注記 here および確認済み here のようにカーネル4.4.8にアップグレード/復帰することですおよび ここ

reverse bisect the kernel の作業が要求されましたが、バグは現在有効期限が切れているため、開発者はこの動作の根本原因を特定するのに必要なすべての支援を得られなかったようです。バグレポートを熟読することでわかるように、この問題はカーネル4.4.0で発生し、4.4.8で解決され、その後4.5.2頃に再び現れましたが、確信があるとは言いません。

別のカーネルアップグレードの回避策が報告されました here .

リポジトリからカーネルを使用している場合、ターミナルからubuntu-bug linuxを起動して、カーネル/問題に関する特定の情報を提供する新しいバグレポートを作成すると役立ちます。

異常な実行を犯人として除外することもできます。次のようにCPU0以外をすべて無効にすることで、これを達成できるはずです。

for x in /sys/devices/system/cpu/cpu*/online; do
  echo 0 >"$x"
done

この情報 は、この問題の根本原因を追跡するのに役立つこともあります。

ソース:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1574125/

https://unix.stackexchange.com/questions/145645/disabling-cpu-cores-on-quad-core-processor-on-linux

4
Elder Geek

これは、dmesgに表示される特定の問題です。

PM: Preparing system for sleep (mem)
[...]
PM: Suspending system (mem)

最初にしようとする:

Sudo -H gedit /etc/default/grub

次の行を設定します。

GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor"

この行に以前存在していた他のパラメーターは、変更しないままにすることができます。

変更を有効にするには、次を実行します:

Sudo update-grub

さらに、apt-daily.serviceに問題があるというレポートがあります。これは、ブート時に更新サービスが実行されるため、すべてが無期限に実行され、終了できません。

サービスを無効にしてみてください:

Sudo apt-systemctl disable daily.service # disable run when system boot

私にとって合理的に機能した別の回避策:

Sudo -H gedit /etc/systemd/system.conf

次の行のコメントを外し、設定を、ロードシステムを引き続き許可する値に変更します。

# DefaultTimeoutStartSec = 90s
DefaultTimeoutStartSec = 10s
# DefaultTimeoutStopSec = 90s
DefaultTimeoutStopSec = 10s

調整によって負荷障害が発生しない場合はdmesgに注意し、必要に応じて値を調整します。

2
Druida Obelix