自从我安装了 Ubuntu 16.04 后,我的笔记本电脑(HP Probook 450 G2)就无法从挂起状态唤醒。它很少能从挂起状态正常唤醒,但大多数情况下屏幕要么保持黑色,要么打开,并在 2 或 3 秒后完全冻结,然后在这两种情况下都会出现稍大一点的风扇活动。我无法切换到 tty shell,也无法执行任何其他操作,只能按住电源按钮关闭电源。
我尝试了以下不同的解决方案,例如禁用 USB Legacy、将 acpi_backlight=vendor acpi_osi='!Windows 2013' acpi_osi='!Windows 2012' 添加到 GRUB_CMDLINE_LINUX_DEFAULT,但没有任何效果。
我昨天切换到 Linux Mint,只是为了测试是否存在问题,但问题仍然存在。以下是 /var/log/kern.log 的输出,显示了我上一次会话的最后消息。
Feb 13 09:51:55 hamza-PC kernel: [ 913.345833] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.4773] manager: sleep requested (sleeping: no enabled: yes)
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.4774] manager: sleeping...
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.4774] device (wlo1): state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.4969] dhcp4 (wlo1): canceled DHCP transaction, DHCP client pid 1440
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.4970] dhcp4 (wlo1): state changed bound -> done
Feb 13 09:52:22 hamza-PC kernel: [ 940.019586] wlo1: deauthenticating from b4:75:0e:ce:22:bb by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.5125] dns-mgr: Writing DNS information to /sbin/resolvconf
Feb 13 09:52:22 hamza-PC kernel: [ 940.034017] cfg80211: World regulatory domain updated:
Feb 13 09:52:22 hamza-PC kernel: [ 940.034019] cfg80211: DFS Master region: unset
Feb 13 09:52:22 hamza-PC kernel: [ 940.034020] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034022] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034024] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034025] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034026] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034027] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034028] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034029] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 hamza-PC kernel: [ 940.034030] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Feb 13 09:52:22 hamza-PC NetworkManager[1004]: <info> [1486975942.5423] manager: NetworkManager state is now ASLEEP
Feb 13 09:52:26 hamza-PC kernel: [ 943.880782] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 13 09:52:27 hamza-PC kernel: [ 944.885059] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
还
uname -a
Linux hamza-PC 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
任何信息都会有帮助,谢谢!
答案1
我有一个 4.19 内核和 Nvidia 驱动程序版本 390。我将 gdm 更改为 lightdm。
sudo apt install lightdm
问题现已解决。
答案2
使用 Ubuntu 16.04 LTS 几天后,一切都正常,我开始遇到挂起/睡眠时冻结的情况。我重新安装了 lightdm 显示管理器,但问题并没有消失。我的日志与您的类似,但没有硬错误。
对我来说,解决问题的方法是将默认的 X.org 视频驱动程序更改为 NVidia 驱动程序。
它位于Settings -> Software & Updates -> Additional Drivers
我在那里选择了以下选项。
'Using X.org X server - Nouveau display driver...'
改为后:
Using NVidia binary driver ... (proprietary, tested)
重新启动后,一切都正常了:)
答案3
自从一段时间前安装 Ubuntu 20.04 以来,我也遇到了同样的问题 - 进入挂起状态时冻结 - 只有按住电源按钮约六秒钟才能解决。尝试了各种建议 - 包括上面给出的建议 - 但都不起作用,直到我使用“软件和更新”应用程序进行升级,嘿,Presto,一切都解决了!
希望它也适合你。
答案4
使用 Vim、gedit 等编辑器打开 /etc/systemd/logind.conf:
sudo gedit /etc/systemd/logind.conf
您将看到所有这些选项:
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=12288
只需将这些条目的值更改为暂停,一切就会正常工作:
HandleSuspendKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
如果仍未修复:
HandleHibernateKey=suspend
查看这篇文章伊斯福斯