14.04 SSD 防止挂起

14.04 SSD 防止挂起

更新如下

我在华硕 Prime 笔记本 UX32A 上运行 Kubuntu 14.04,除了安装操作系统的 HDD 外,它还配备了 24GB SSD 驱动器。
自从切换到 Ubuntu 以来,我一直无法使用暂停功能,在关闭用户会话后,会话会立即恢复。
经过调查,似乎是 SSD 驱动器无法暂停。以下是 Dmesg 的摘录:

[  163.713133] PM: Syncing filesystems ... done.
[  163.886898] PM: Preparing system for mem sleep
[  163.887309] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  163.889158] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  163.890324] PM: Entering mem sleep
[  163.891015] Suspending console(s) (use no_console_suspend to debug)
[  163.891187] wlan0: deauthenticating from c4:3d:xx:xx:xx:39 by local choice (reason=3)
[  163.933244] cfg80211: Calling CRDA to update world regulatory domain
[  163.933412] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[  163.933425] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  163.933497] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  163.933499] ata2.00: irq_stat 0x40000001
[  163.933502] ata2.00: failed command: FLUSH CACHE
[  163.933510] ata2.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 8
[  163.933510]          res 51/04:00:00:00:00/00:00:00:00:00/a0 Emask 0x1 (device error)
[  163.933513] ata2.00: status: { DRDY ERR }
[  163.933515] ata2.00: error: { ABRT }
[  163.933543] sd 0:0:0:0: [sda] Stopping disk
[  163.934043] ata2.00: configured for UDMA/133
[  163.934047] ata2.00: device reported invalid CHS sector 0
[  163.934055] ata2: EH complete
[  163.934124] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  163.934126] ata2.00: irq_stat 0x40000001
[  163.934128] ata2.00: failed command: FLUSH CACHE
[  163.934141] ata2.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 9
[  163.934141]          res 51/04:00:00:00:00/00:00:00:00:00/a0 Emask 0x1 (device error)
[  163.934142] ata2.00: status: { DRDY ERR }
[  163.934144] ata2.00: error: { ABRT }
[  163.934509] ata2.00: configured for UDMA/133
[  163.934512] ata2.00: device reported invalid CHS sector 0
[  163.934519] ata2: EH complete
[  163.934581] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  163.934582] ata2.00: irq_stat 0x40000001
[  163.934584] ata2.00: failed command: FLUSH CACHE
[  163.934589] ata2.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 10
[  163.934589]          res 51/04:00:00:00:00/00:00:00:00:00/a0 Emask 0x1 (device error)
[  163.934590] ata2.00: status: { DRDY ERR }
[  163.934592] ata2.00: error: { ABRT }
[  163.934947] ata2.00: configured for UDMA/133
[  163.934949] ata2.00: device reported invalid CHS sector 0
[  163.934954] ata2: EH complete
[  163.934958] sd 1:0:0:0: [sdb]  
[  163.934959] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  163.934961] sd 1:0:0:0: [sdb]  
[  163.934964] Sense Key : Aborted Command [current] [descriptor]
[  163.934965] sd 1:0:0:0: [sdb]  
[  163.934967] Add. Sense: No additional sense information
[  163.934977] dpm_run_callback(): scsi_bus_suspend+0x0/0x40 returns -5
[  163.934982] PM: Device 1:0:0:0 failed to suspend async: error -5
[  164.506235] PM: Some devices failed to suspend, or early wake event detected
[  164.506441] sd 0:0:0:0: [sda] Starting disk
[  165.171009] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
[  165.177816] iwlwifi 0000:02:00.0: Radio type=0x2-0x1-0x0
[  165.270265] PM: resume of devices complete after 763.734 msecs
[  165.270597] PM: Finishing wakeup.
[  165.270599] Restarting tasks ... done.

有人知道如何排查并解决该问题吗?
如果是 SSD 阻止了挂起,我完全禁用它也没问题。
提前致谢

更新:
找到了解决方法这个帖子

我应用了经过验证的答案中详述的解决方法,并且似乎运行良好。

相关内容