我在其他地方报告了多种错误,例如登出问题和这个启动问题。只是在我的情况下,它在启动时发生了两次。第一次是在热守护程序启动后,第二次是在登录屏幕之前或登录屏幕上。thermald
但这不是服务,因为停止它不会改变注销行为。此外,每次我切换到终端时,即按 Ctrl+Alt+F1,计算机都会进入睡眠状态。在 14.04 上从未发生过。不过,在 arch 的测试安装中看到了类似的事情。硬件很旧。它是 2005 年的 Cebop Hel500。它基于富士通西门子 Amilo,所以基本上硬件都是英特尔的。我已经尝试过将显示管理器更改为slim
,但我删除了light-lock
...徒劳无功。
不幸的是,这种行为使得 16.04 的使用非常不舒服。您知道是什么原因导致的吗?更重要的是,如何阻止它?
....为什么我要升级...永远不要改变正在运行的系统!
更多信息 检查 syslog 中显示的一些日志文件
Aug 11 07:55:11 xyz kernel: [ 0.100063] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150930/hwxface-580)
Aug 11 07:55:11 xyz kernel: [ 0.100077] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150930/hwxface-580)
某物已知?
后来我发现了这个块:
Aug 11 07:55:12 xyz systemd[1]: Started Raise network interfaces.
Aug 11 07:55:12 xyz systemd[1]: Started LSB: daemon to balance interrupts for SMP systems.
Aug 11 07:55:12 xyz systemd[1]: Stopped LSB: Start NTP daemon.
Aug 11 07:55:12 xyz systemd[1]: Reached target Sleep.
Aug 11 07:55:12 xyz systemd[1]: Starting Suspend...
Aug 11 07:55:12 xyz ntpdate[2148]: no servers can be used, exiting
Aug 11 07:55:12 xyz systemd-sleep[2141]: Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
Aug 11 07:55:12 xyz ModemManager[1996]: <info> ModemManager (version 1.4.12) starting in system bus...
Aug 11 07:55:12 xyz systemd[1]: Starting LSB: Start NTP daemon...
Aug 11 07:55:12 xyz systemd-sleep[2142]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Aug 11 07:55:12 xyz systemd-sleep[2141]: Suspending system...
Aug 11 07:55:12 xyz systemd[1]: Started IIO Sensor Proxy service.
Aug 11 07:55:12 xyz ntp[2184]: * Starting NTP server ntpd
Aug 11 07:55:13 xyz dbus[2010]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkitd.service'
Aug 11 07:55:13 xyz systemd[1]: Starting Authenticate and Authorize Users to Run Privileged Tasks...
Aug 11 07:55:13 xyz systemd[1]: Started Thermal Daemon Service.
Aug 11 07:55:13 xyz thermald[1955]: NO RAPL sysfs present
Aug 11 07:55:13 xyz thermald[1955]: 2 CPUID levels; family:model:stepping 0x6:d:8 (6:13:8)
Aug 11 07:55:13 xyz thermald[1955]: Need Linux PowerCap sysfs
Aug 11 07:55:13 xyz apport[1979]: ...done.
介于两者之间以及稍后出现在块上的一些东西,例如:
Aug 11 07:55:45 xyz dnsmasq[2445]: setting upstream servers from DBus
Aug 11 07:55:45 xyz dnsmasq[2445]: using nameserver fe80::1%eth3#53
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6861] dns-mgr: Writing DNS information to /sbin/resolvconf
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.7868] dns-mgr: Writing DNS information to /sbin/resolvconf
Aug 11 07:55:45 xyz dnsmasq[2445]: setting upstream servers from DBus
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.8120] manager: NetworkManager state is now ASLEEP
Aug 11 07:55:45 xyz ntpd[2864]: Soliciting pool server 144.76.96.7
Aug 11 07:55:45 xyz ntpd[2864]: Soliciting pool server 46.4.88.180
Aug 11 07:55:45 xyz ntpd[2864]: Soliciting pool server 129.70.132.36
Aug 11 07:55:45 xyz ntpd[2864]: error resolving pool 3.ubuntu.pool.ntp.org: Temporary failure in name resolution (-3)
Aug 11 07:55:46 xyz nm-dispatcher: req:4 'down' [eth3]: new request (1 scripts)
Aug 11 07:55:46 xyz nm-dispatcher: req:4 'down' [eth3]: start running ordered scripts...
Aug 11 07:55:46 xyz systemd[1]: Reached target Sleep.
Aug 11 07:55:46 xyz systemd[1]: Starting Suspend...
Aug 11 07:55:46 xyz systemd-sleep[3039]: Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
Aug 11 07:55:46 xyz systemd-sleep[3042]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Aug 11 07:55:46 xyz systemd-sleep[3039]: Suspending system...
Aug 11 07:55:52 xyz kernel: [ 69.728623] PM: Syncing filesystems ... done.
Aug 11 07:55:52 xyz kernel: [ 70.380778] PM: Preparing system for sleep (mem)
Aug 11 07:55:52 xyz kernel: [ 70.380884] Freezing user space processes ... (elapsed 0.001 seconds) done.
Aug 11 07:55:52 xyz kernel: [ 70.383421] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 11 07:55:52 xyz kernel: [ 70.384585] PM: Suspending system (mem)
Aug 11 07:55:52 xyz kernel: [ 70.384604] Suspending console(s) (use no_console_suspend to debug)
Aug 11 07:55:52 xyz kernel: [ 70.430782] sd 0:0:1:0: [sda] Synchronizing SCSI cache
Aug 11 07:55:52 xyz kernel: [ 70.431005] eth3: Going into suspend...
Aug 11 07:55:52 xyz kernel: [ 70.544302] sd 0:0:1:0: [sda] Stopping disk
Aug 11 07:55:52 xyz kernel: [ 71.660023] PM: suspend of devices complete after 1275.120 msecs
Aug 11 07:55:52 xyz kernel: [ 71.676023] PM: late suspend of devices complete after 15.992 msecs
Aug 11 07:55:52 xyz kernel: [ 71.676341] r8169 0000:01:0c.0: System wakeup enabled by ACPI
Aug 11 07:55:52 xyz kernel: [ 71.692041] PM: noirq suspend of devices complete after 16.036 msecs
Aug 11 07:55:52 xyz kernel: [ 71.692239] ACPI: Preparing to enter system sleep state S3
Aug 11 07:55:52 xyz kernel: [ 71.692414] ACPI : EC: EC stopped
Aug 11 07:55:52 xyz kernel: [ 71.692415] PM: Saving platform NVS memory
Aug 11 07:55:52 xyz kernel: [ 71.692538] Disabling non-boot CPUs ...
Aug 11 07:55:52 xyz kernel: [ 71.692538] ACPI: Low-level resume complete
Aug 11 07:55:52 xyz kernel: [ 71.692538] ACPI : EC: EC started
Aug 11 07:55:52 xyz kernel: [ 71.692538] PM: Restoring platform NVS memory
Aug 11 07:55:52 xyz kernel: [ 71.692538] Force enabled HPET at resume
Aug 11 07:55:52 xyz kernel: [ 71.692538] ACPI: Waking up from system sleep state S3
kernel.log 有一个相应的块,例如:
Aug 11 07:55:33 xyz NetworkManager[2059]: <info> [1470894933.8160] dhcp6 (eth3): client pid 2545 exited with status 0
Aug 11 07:55:33 xyz NetworkManager[2059]: <info> [1470894933.8182] dhcp6 (eth3): state changed bound -> done
Aug 11 07:55:33 xyz kernel: [ 56.556134] vboxdrv: Found 1 processor cores
Aug 11 07:55:34 xyz kernel: [ 56.816117] vboxdrv: TSC mode is Synchronous, tentative frequency 800059759 Hz
Aug 11 07:55:34 xyz kernel: [ 56.816121] vboxdrv: Successfully loaded version 5.0.24_Ubuntu (interface 0x00240000)
Aug 11 07:55:34 xyz kernel: [ 56.856075] VBoxNetFlt: Successfully started.
Aug 11 07:55:34 xyz kernel: [ 56.888112] VBoxNetAdp: Successfully started.
Aug 11 07:55:34 xyz kernel: [ 56.944327] VBoxPciLinuxInit
Aug 11 07:55:34 xyz kernel: [ 56.980240] vboxpci: IOMMU not found (not registered)
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6526] manager: sleep requested (sleeping: no enabled: yes)
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6535] manager: sleeping...
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6543] device (eth3): state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6562] dhcp4 (eth3): canceled DHCP transaction, DHCP client pid 2421
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6570] dhcp4 (eth3): state changed bound -> done
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6587] dhcp6 (eth3): canceled DHCP transaction
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.6861] dns-mgr: Writing DNS information to /sbin/resolvconf
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.7868] dns-mgr: Writing DNS information to /sbin/resolvconf
Aug 11 07:55:45 xyz NetworkManager[2059]: <info> [1470894945.8120] manager: NetworkManager state is now ASLEEP
Aug 11 07:55:52 xyz kernel: [ 69.728623] PM: Syncing filesystems ... done.
Aug 11 07:55:52 xyz kernel: [ 70.380778] PM: Preparing system for sleep (mem)
Aug 11 07:55:52 xyz kernel: [ 70.380884] Freezing user space processes ... (elapsed 0.001 seconds) done.
Aug 11 07:55:52 xyz kernel: [ 70.383421] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 11 07:55:52 xyz kernel: [ 70.384585] PM: Suspending system (mem)
Aug 11 07:55:52 xyz kernel: [ 70.384604] Suspending console(s) (use no_console_suspend to debug)
Aug 11 07:55:52 xyz kernel: [ 70.430782] sd 0:0:1:0: [sda] Synchronizing SCSI cache
Aug 11 07:55:52 xyz kernel: [ 70.431005] eth3: Going into suspend...
Aug 11 07:55:52 xyz kernel: [ 70.544302] sd 0:0:1:0: [sda] Stopping disk
Aug 11 07:55:52 xyz kernel: [ 71.660023] PM: suspend of devices complete after 1275.120 msecs
Aug 11 07:55:52 xyz kernel: [ 71.676023] PM: late suspend of devices complete after 15.992 msecs
Aug 11 07:55:52 xyz kernel: [ 71.676341] r8169 0000:01:0c.0: System wakeup enabled by ACPI
Aug 11 07:55:52 xyz kernel: [ 71.692041] PM: noirq suspend of devices complete after 16.036 msecs
Aug 11 07:55:52 xyz kernel: [ 71.692239] ACPI: Preparing to enter system sleep state S3
Aug 11 07:55:52 xyz kernel: [ 71.692414] ACPI : EC: EC stopped
Aug 11 07:55:52 xyz kernel: [ 71.692415] PM: Saving platform NVS memory
Aug 11 07:55:52 xyz kernel: [ 71.692538] Disabling non-boot CPUs ...
Aug 11 07:55:52 xyz kernel: [ 71.692538] ACPI: Low-level resume complete
Aug 11 07:55:52 schwuppdi kernel: [ 71.692538] ACPI : EC: EC started
Aug 11 07:55:52 xyz kernel: [ 71.692538] PM: Restoring platform NVS memory
Aug 11 07:55:52 xyz kernel: [ 71.692538] Force enabled HPET at resume
Aug 11 07:55:52 xyz kernel: [ 71.692538] ACPI: Waking up from system sleep state S3
Aug 11 07:55:52 xyz kernel: [ 71.716315] PM: noirq resume of devices complete after 16.573 msecs
Aug 11 07:55:52 xyz kernel: [ 71.716515] PM: early resume of devices complete after 0.439 msecs
boot.log 没有显示有关挂起或睡眠的任何信息。
一个很重要的一点如果我使用 debian jessie live stick 启动计算机,也会进入睡眠状态。所以我猜这是一个更根本的问题,不仅 Ubuntu 有,还包括 Ubuntu。
更多信息:我以为这可能是内核问题,而 Lubuntu 使用的是 4.4,而 debian live (lxde) 使用的是 3.16。Bunsenlabs Hydrogen 也是如此,但我没有看到挂起。
错误的:Bunsenlabs 有暂停问题,但在登录时没有。测试安装在注销和切换到 tty1、2、3 等时(即 Crtl+Alt+F1 等)显示此问题。
答案1
再次检查错误消息(包括dmesg > dmesg.txt
启动后的转储)后,我发现Arch 的讨论。在分别尝试了这两个选项后,结果发现添加HandleLidSwitch=ignore
到/etc/systemd/logind.conf
就成功了。HandleSuspendKey=ignore
不过,提到的 并不是必需的。老实说,我认为这更像是一种变通方法,而不是解决方案。虽然目前的问题已经解决,但我仍然不清楚从 14.04 到 16.04 到底发生了哪些变化,才导致这个问题出现。
干杯