Ubuntu 19.10 筆記型電腦在掛起後立即喚醒

Ubuntu 19.10 筆記型電腦在掛起後立即喚醒

當我嘗試暫停我的 Ubuntu ASUS 筆記型電腦時,它會立即喚醒。這台筆記型電腦已經用了幾個月了,據我記憶,我一直遇到這個問題。我嘗試用​​多種解決方案來解決這個問題,但沒有一個有效。

我已經嘗試將文件中的所有字段設置/proc/acpi/wakeup為禁用。我還嘗試停用我的輔助 Nvidia 顯示卡,因為我發現這可能是一個問題(我不確定我是否真的成功做到了這一點,但我不知道如何檢查)。

dmesg 輸出:

[   57.214218] PM: suspend entry (s2idle)
[   61.995781] Filesystems sync: 4.787 seconds
[   62.000447] Freezing user space processes ... (elapsed 0.003 seconds) done.
[   62.004139] OOM killer disabled.
[   62.004140] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   62.005597] printk: Suspending console(s) (use no_console_suspend to debug)
[   62.007240] wlo1: deauthenticating from 24:7f:20:aa:03:56 by local choice (Reason: 3=DEAUTH_LEAVING)
[   62.402707] pci 0000:01:00.0: Enabling HDA controller
[   62.421668] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[   62.540601] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[   62.608208] iwlwifi 0000:00:14.3: FW already configured (0) - re-configuring
[   62.631788] OOM killer enabled.
[   62.631790] Restarting tasks ... done.
[   62.666222] PM: suspend exit
[   62.726320] ata3: SATA link down (SStatus 4 SControl 300)
[   66.418569] wlo1: authenticate with 24:7f:20:aa:03:56
[   66.427189] wlo1: send auth to 24:7f:20:aa:03:56 (try 1/3)
[   66.467410] wlo1: authenticated
[   66.471843] wlo1: associate with 24:7f:20:aa:03:56 (try 1/3)
[   66.476075] wlo1: RX AssocResp from 24:7f:20:aa:03:56 (capab=0x1411 status=0 aid=3)
[   66.482586] wlo1: associated
[   66.482657] wlo1: Limiting TX power to 20 (20 - 0) dBm as advertised by 24:7f:20:aa:03:56
[   66.523036] IPv6: ADDRCONF(NETDEV_CHANGE): wlo1: link becomes ready

我該怎麼解決這個問題 ?歡迎提供有關如何調試這種情況的任何資訊。

答案1

在 Ubuntu 21.04 Hirsute Hippo 更新後,我發生了這種情況。問題出在 nvidia 顯示卡和安裝的 CUDA 上。

若要解決此問題,請在軟體更新程式中停用 CUDA 儲存庫。 軟體更新程式的影像

更新 nvidia 驅動程式。

sudo apt install nvidia-driver-[your drive number]

如果您不知道驅動程式編號,請檢查已安裝的驅動程式。

apt list -i | grep nvidia

在 systemd 中啟用這些服務。

sudo systemctl enable nvidia-suspend.service
sudo systemctl enable nvidia-hibernate.service
sudo systemctl enable nvidia-resume.service

答案2

我在藍牙打開時遇到了這個問題。嘗試將其關閉並暫停。

運行systemctl disable bluetooth以在重新啟動時保持藍牙關閉。您仍然可以根據需要手動啟用。

答案3

遇到這個問題,我花了幾天時間努力尋找來源。我的解決方法是先搜尋日誌journalctl -b | grep suspend

我發現了以下內容:

PM: Device 0000:05:00.0 failed to suspend async: error 1

該行提供了造成此問題的設備位址,而不是我用來lspci識別設備的位址 05:00.0 ASmedia usb 3.1

使用lspci按地址顯示設備的實際名稱,就我而言,我記得在我的華擎 Bios 上看到過這個,所以我重新啟動禁用了對 ASmedia usb 3.1 的支持,並且我的桌面成功掛起。

我的案例對我來說很獨特,但可能會幫助其他人識別問題

相關內容