Linux

LinuxMint15:掛起到 RAM 不起作用

  • October 12, 2013

我剛剛在 Acer Aspire V3-771G-73638G500Maii 上安裝了 LinuxMint15。

冬眠有效。但是掛起到 RAM 不會。

點擊暫停時:幾秒鐘後螢幕變灰然後關閉。網路已關閉。電腦的風扇停止轉動。電源 LED 緩慢閃爍橙色。電池指示燈仍然亮著。總而言之,這是我所期望的。

點擊電源按鈕時,風扇會打開。電源 LED 變為藍色。硬碟 LED 閃爍幾次。到這里為止,它看起來就像我所期望的那樣。但是:螢幕仍然關閉。網路仍然關閉。在掛起之前開始執行的“貓”不會繼續執行(即硬碟 LED 不會開始忙亂地閃爍)。

再次點擊電源按鈕沒有任何作用。需要斷電。Ctrl-Alt-SysRq-REISUB 不引導系統。

這讓我相信這不僅僅是重新啟動顯卡的問題,而是系統沒有執行。

系統有全盤加密,所以這個問題可能是系統選擇了錯誤的顯卡(螢幕上什麼都沒有顯示)並等待密碼,但是盲輸入密碼什麼也沒做(即執行的“貓”沒有繼續)。

到底是怎麼回事?我該如何修復它,以便暫停到 ram(和恢復)實際上有效?


系統資訊:

Linux mint15 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

兩張顯卡(lshw):

           description: VGA compatible controller
           product: GK107M [GeForce GT 740M]
           vendor: NVIDIA Corporation

        description: VGA compatible controller
        product: 3rd Gen Core processor Graphics Controller
        vendor: Intel Corporation

我很確定它只使用英特爾卡(syslog 或 Xorg.0.log 中沒有任何關於 nv、nvidia、nouveau 的資訊)。我將此添加到 /etc/default/grub 以使從休眠中恢復圖形工作:

GRUB_GFXPAYLOAD_LINUX=text
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

系統具有全盤加密。

pm-suspend.log:

Initial commandline parameters: 
Sat Oct 12 11:10:07 CEST 2013: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux aspire 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Module                  Size  Used by
autofs4                36475  1 
rfcomm                 42641  16 
bnep                   18036  2 
parport_pc             28152  0 
ppdev                  17073  0 
binfmt_misc            17500  1 
nfsd                  248016  2 
auth_rpcgss            40632  1 nfsd
nfs_acl                12837  1 nfsd
nfs                   164047  0 
lockd                  76670  2 nfs,nfsd
sunrpc                235585  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
fscache                57430  1 nfs
ext2                   72837  1 
uvcvideo               80847  0 
videobuf2_vmalloc      13056  1 uvcvideo
videobuf2_memops       13202  1 videobuf2_vmalloc
videobuf2_core         40513  1 uvcvideo
videodev              129260  2 uvcvideo,videobuf2_core
coretemp               13355  0 
kvm_intel             132891  0 
kvm                   443165  1 kvm_intel
joydev                 17377  0 
arc4                   12615  2 
snd_hda_codec_hdmi     36913  1 
snd_hda_codec_realtek    78399  1 
ath9k                 149924  0 
ath9k_common           14055  1 ath9k
snd_hda_intel          39619  3 
ath9k_hw              413680  2 ath9k_common,ath9k
snd_hda_codec         136453  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
ath                    23827  3 ath9k_common,ath9k,ath9k_hw
snd_pcm                97451  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
mac80211              606457  1 ath9k
snd_seq_midi           13324  0 
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30180  1 snd_seq_midi
snd_seq                61554  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
cfg80211              510937  3 ath,ath9k,mac80211
snd_timer              29425  2 snd_pcm,snd_seq
ath3k                  12918  0 
acer_wmi               32467  0 
sparse_keymap          13890  1 acer_wmi
mac_hid                13205  0 
snd                    68876  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device
btusb                  22474  0 
psmouse                95870  0 
mei                    41158  0 
bluetooth             228619  23 bnep,ath3k,btusb,rfcomm
lp                     17759  0 
parport                46345  3 lp,ppdev,parport_pc
rtsx_pci_ms            13011  0 
lpc_ich                17061  0 
memstick               16554  1 rtsx_pci_ms
soundcore              12680  1 snd
serio_raw              13215  0 
microcode              22881  0 
dm_multipath           22843  0 
scsi_dh                14843  1 dm_multipath
btrfs                 785967  0 
zlib_deflate           26885  1 btrfs
libcrc32c              12615  1 btrfs
dm_crypt               22820  1 
raid10                 48088  0 
raid456                65844  0 
async_memcpy           12529  1 raid456
async_raid6_recov      12795  1 raid456
async_pq               12912  1 raid456
async_xor              12777  2 async_pq,raid456
async_tx               13291  5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
raid6_pq               97812  2 async_pq,async_raid6_recov
raid1                  35240  0 
raid0                  17159  0 
multipath              13145  0 
linear                 12894  0 
dm_raid45              76725  0 
xor                    17116  2 async_xor,dm_raid45
dm_mirror              21946  0 
dm_region_hash         20820  1 dm_mirror
dm_log                 18529  3 dm_region_hash,dm_mirror,dm_raid45
rtsx_pci_sdmmc         17475  0 
ghash_clmulni_intel    13259  0 
aesni_intel            55399  2 
aes_x86_64             17255  1 aesni_intel
xts                    12885  1 aesni_intel
lrw                    13257  1 aesni_intel
gf128mul               14951  2 lrw,xts
ablk_helper            13597  1 aesni_intel
cryptd                 20373  4 ghash_clmulni_intel,aesni_intel,ablk_helper
i915                  600396  0 
video                  19390  2 i915,acer_wmi
i2c_algo_bit           13413  1 i915
ahci                   25731  2 
drm_kms_helper         49394  1 i915
libahci                31364  1 ahci
rtsx_pci               33355  2 rtsx_pci_ms,rtsx_pci_sdmmc
atl1c                  41071  0 
wmi                    19070  1 acer_wmi
drm                   286028  2 i915,drm_kms_helper
            total       used       free     shared    buffers     cached
Mem:       7993996     902544    7091452          0      54568     441044
-/+ buffers/cache:     406932    7587064
Swap:      8200188          0    8200188

/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:

/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common suspend suspend:

/etc/pm/sleep.d/10_grub-common suspend suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:

/usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:

/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron suspend suspend:
stop: Unknown instance: 

/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:

/usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:

/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Using last known working set of quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
/usr/lib/pm-utils/sleep.d/99video: 22: /usr/lib/pm-utils/sleep.d/99video: shopt: not found
kernel.acpi_video_flags = 0
Allocated buffer at 0x11000 (base is 0x0)
ES: 0x1100 EBX: 0x0000

/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Running hook /etc/pm/sleep.d/novatel_3g_suspend suspend suspend:

/etc/pm/sleep.d/novatel_3g_suspend suspend suspend: success.
Sat Oct 12 11:10:09 CEST 2013: performing suspend

我安裝了 uswsusp 並且這有效:

s2ram -f -a 1

非常感謝@frostschutz,他讓我跑步hibernate-ram失敗了:

hibernate-ram:Warning: Tuxonice binary signature file not found.
s2ram: unknown machine, see s2ram(8) and the USuspendRamForce option
hibernate-ram: Aborting.

並因此讓我嘗試s2ram

從視覺上看,它以完全相同的方式掛起(灰屏,然後關閉),但恢復確實有效。

不幸的是它打破了休眠狀態。哦,好吧,不能全贏。

引用自:https://unix.stackexchange.com/questions/94735