无法在 ubuntu 17.10 上正确挂起或关闭

无法在 ubuntu 17.10 上正确挂起或关闭

我刚刚更新到 Ubuntu 17.10,但无法暂停桌面。我的屏幕已关闭,但风扇仍在运转,我无法按下电脑的电源按钮来恢复。

我有这个/var/log/syslog

Nov  3 04:35:57 oscar gnome-shell[3537]: JS WARNING: [/home/dougui/.local/share/gnome-shell/extensions/suspend-button@laserb/extension.js 202]: assignment to undeclared variable gnomeShellVersion
Nov  3 04:35:57 oscar NetworkManager[1050]: <info>  [1509698157.6376] manager: sleep requested (sleeping: no  enabled: yes)
Nov  3 04:35:57 oscar NetworkManager[1050]: <info>  [1509698157.6376] manager: sleeping...
Nov  3 04:35:57 oscar systemd[1]: Reached target Sleep.
Nov  3 04:35:57 oscar org.gnome.Shell.desktop[2428]: Window manager warning: Failed to set power save mode for output DVI-I-1: Not permitted
Nov  3 04:35:57 oscar org.gnome.Shell.desktop[2428]: Window manager warning: Failed to set power save mode for output HDMI-1: Not permitted
Nov  3 04:35:57 oscar gnome-shell[2428]: Screen lock is locked down, not locking
Nov  3 04:35:57 oscar systemd[1]: Starting Suspend...
Nov  3 04:35:57 oscar systemd-sleep[5572]: Selected interface 'enp4s0'
Nov  3 04:35:57 oscar systemd-sleep[5572]: OK
Nov  3 04:35:57 oscar systemd-sleep[5572]: Suspending system...

我有错误,但没有什么特别的。

以下是有关我的系统的信息:

Linux oscar 4.13.0-16-lowlatency #19-Ubuntu SMP PREEMPT Wed Oct 11 19:51:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

编辑

我关机时也会发生这种情况。当我关机时,我有以下跟踪:

Nov  5 12:35:55 oscar org.gnome.Shell.desktop[4021]: Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Nov  5 12:35:55 oscar gsd-print-notif[4211]: Source ID 2 was not found when attempting to remove it
Nov  5 12:35:55 oscar systemd[3975]: Stopping D-Bus User Message Bus...
Nov  5 12:35:55 oscar kernel: [34246.603751] rfkill: input handler enabled
Nov  5 12:35:55 oscar systemd[1]: Stopping PackageKit Daemon...
Nov  5 12:35:55 oscar systemd[1]: Stopping Save/Restore Sound Card State...
Nov  5 12:35:55 oscar systemd[1]: Stopping User Manager for UID 129...
Nov  5 12:35:55 oscar org.a11y.atspi.Registry[2794]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1024"
Nov  5 12:35:55 oscar org.a11y.atspi.Registry[2794]:       after 21 requests (21 known processed) with 0 events remaining.

结果如下lspcu

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               58
Model name:          Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
Stepping:            9
CPU MHz:             3403.445
CPU max MHz:         3800.0000
CPU min MHz:         1600.0000
BogoMIPS:            6806.89
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts

为了lspci

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1c.6 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 7 (rev c4)
00:1c.7 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 8 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
00:1f.5 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
02:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 41)
04:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)
05:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)

结果sudo lshw这里(对于 SO 来说太长了)。

答案1

我最终这样做了几个月:

gksudo -k -u root "sh -c 'sync && echo 1 > /sys/power/pm_trace && pm-suspend'"

我创建了一个快捷方式。

希望在Ubuntu 18.04中能解决这个问题。

相关内容