挂起后恢复,不出现登录界面

有时候电脑挂起后没有登录界面, 只剩下一张蜥蜴的壁纸和鼠标. 可以开控制台.
我记得在 Ubuntu 里面可以通过
killall gnome-session
来重新登录.

KDE 肿么办? 或者有更高明的解决方案能解决这个问题吗?

不知道发在哪里, 只能发在水区了…

刚才吃饭去了, 又出现了这种情况 :joy:

之后我又重启了一次.tty1 上面有一堆文字, 但无法复制贴上来…

tty 中能登录不呢?不能复制就拍照试试

貌似挂起在很多电脑上都出现了问题。不知道你是挂起到内存还是挂起到磁盘?

最直接的方法是 kill 掉 Xorg。那样就会重现到登陆界面了。

这个问题我感觉不太好。

我从来不挂起。

看 /var/log/messages 卡在哪儿。

今天又出现了另外一个问题, 自从上次后我一般就直接注销了, 这次经过了一晚上的注销, 登录后卡在蜥蜴壁纸界面, 无法开 tty. 我装了 Bumblebee 跟这个可能有关系吗?

上次是挂起到内存

这是2月7日,我两次发帖时间中间的信息1:07-1:39

2014-02-07T13:04:22.258067+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-07T13:10:22.226693+08:00 linux-y0se dbus[647]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
2014-02-07T13:10:22.293706+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-07T13:15:01.488541+08:00 linux-y0se /usr/sbin/cron[8733]: pam_unix(crond:session): session opened for user root by (uid=0)
2014-02-07T13:15:01.490517+08:00 linux-y0se systemd[1]: Starting Session 49 of user root.
2014-02-07T13:15:01.490958+08:00 linux-y0se systemd[1]: Started Session 49 of user root.
2014-02-07T13:15:01.758478+08:00 linux-y0se /USR/SBIN/CRON[8733]: pam_unix(crond:session): session closed for user root
2014-02-07T13:16:22.226640+08:00 linux-y0se dbus[647]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
2014-02-07T13:16:22.310190+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-07T13:22:22.226615+08:00 linux-y0se dbus[647]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
2014-02-07T13:22:22.323781+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-07T13:28:22.226633+08:00 linux-y0se dbus[647]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
2014-02-07T13:28:22.255850+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-07T13:30:01.765098+08:00 linux-y0se /usr/sbin/cron[8834]: pam_unix(crond:session): session opened for user root by (uid=0)
2014-02-07T13:30:01.767365+08:00 linux-y0se systemd[1]: Starting Session 50 of user root.
2014-02-07T13:30:01.767805+08:00 linux-y0se systemd[1]: Started Session 50 of user root.
2014-02-07T13:30:01.862652+08:00 linux-y0se /USR/SBIN/CRON[8834]: pam_unix(crond:session): session closed for user root
2014-02-07T13:34:22.226655+08:00 linux-y0se dbus[647]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
2014-02-07T13:34:22.469284+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-07T13:35:31.848159+08:00 linux-y0se dhclient[7542]: DHCPREQUEST on wlp9s0 to 192.168.1.1 port 67
2014-02-07T13:35:31.858845+08:00 linux-y0se dhclient[7542]: DHCPACK from 192.168.1.1
2014-02-07T13:35:31.933685+08:00 linux-y0se dhclient[7542]: bound to 192.168.1.100 -- renewal in 3215 seconds.
2014-02-07T13:35:31.935454+08:00 linux-y0se dbus[647]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
2014-02-07T13:35:31.935784+08:00 linux-y0se systemd[1]: Starting Network Manager Script Dispatcher Service...
2014-02-07T13:35:32.084052+08:00 linux-y0se dbus[647]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
2014-02-07T13:35:32.084455+08:00 linux-y0se systemd[1]: Started Network Manager Script Dispatcher Service.
2014-02-07T13:40:22.226654+08:00 linux-y0se dbus[647]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)

鉴于论坛时间显示好像不是北京时间, 比如现在就比我的电脑慢了 6h. 我把这三天所有的 message 贴出来

sudo cat /var/log/messages|grep 2014-02-0[789] > mess

大大们自行 grep

这次又出现了第一种情况,
killall Xorg
后解决问题!终于能够登录了.

对tty1拍照后找到的对应的信息如下:

2014-02-09T16:11:39.583260+08:00 linux-y0se kernel: [13565.314183] Freezing user space processes ... (elapsed 0.001 seconds) done.
2014-02-09T16:11:39.583271+08:00 linux-y0se kernel: [13565.315706] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
2014-02-09T16:11:39.583277+08:00 linux-y0se kernel: [13565.316859] Suspending console(s) (use no_console_suspend to debug)
2014-02-09T16:11:39.583283+08:00 linux-y0se kernel: [13565.354013] mei_me 0000:00:16.0: suspend
2014-02-09T16:11:39.583300+08:00 linux-y0se kernel: [13565.792691] Disabling non-boot CPUs ...
2014-02-09T16:11:39.583368+08:00 linux-y0se kernel: [13565.962305] dpm_run_callback(): pnp_bus_resume+0x0/0x70 returns -19
2014-02-09T16:11:39.583370+08:00 linux-y0se kernel: [13565.962306] PM: Device 00:07 failed to resume: error -19
2014-02-09T16:11:39.584149+08:00 linux-y0se kernel: [13568.387947] Restarting tasks ... done.
2014-02-09T16:11:39.585172+08:00 linux-y0se kernel: [13568.391134] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130517/nsarguments-95)

更详细的message信息如下:
sudo cat /var/log/messages|grep 2014-02-09T16:11

2014-02-09T16:11:39.581353+08:00 linux-y0se kernel: [13565.314125] pci 0000:01:00.0: power state changed by ACPI to D0
2014-02-09T16:11:39.583260+08:00 linux-y0se kernel: [13565.314183] Freezing user space processes ... (elapsed 0.001 seconds) done.
2014-02-09T16:11:39.583271+08:00 linux-y0se kernel: [13565.315706] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
2014-02-09T16:11:39.583274+08:00 linux-y0se kernel: [13565.316806] PM: Entering mem sleep
2014-02-09T16:11:39.583277+08:00 linux-y0se kernel: [13565.316859] Suspending console(s) (use no_console_suspend to debug)
2014-02-09T16:11:39.583279+08:00 linux-y0se kernel: [13565.317173] sd 0:0:0:0: [sda] Synchronizing SCSI cache
2014-02-09T16:11:39.583281+08:00 linux-y0se kernel: [13565.317352] sd 0:0:0:0: [sda] Stopping disk
2014-02-09T16:11:39.583283+08:00 linux-y0se kernel: [13565.354013] mei_me 0000:00:16.0: suspend
2014-02-09T16:11:39.583285+08:00 linux-y0se kernel: [13565.725518] PM: suspend of devices complete after 408.091 msecs
2014-02-09T16:11:39.583286+08:00 linux-y0se kernel: [13565.725634] PM: late suspend of devices complete after 0.113 msecs
2014-02-09T16:11:39.583288+08:00 linux-y0se kernel: [13565.736527] pcieport 0000:00:1c.2: System wakeup enabled by ACPI
2014-02-09T16:11:39.583290+08:00 linux-y0se kernel: [13565.747595] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
2014-02-09T16:11:39.583292+08:00 linux-y0se kernel: [13565.758670] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
2014-02-09T16:11:39.583294+08:00 linux-y0se kernel: [13565.780502] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
2014-02-09T16:11:39.583295+08:00 linux-y0se kernel: [13565.791522] PM: noirq suspend of devices complete after 65.811 msecs
2014-02-09T16:11:39.583297+08:00 linux-y0se kernel: [13565.791735] ACPI: Preparing to enter system sleep state S3
2014-02-09T16:11:39.583298+08:00 linux-y0se kernel: [13565.792039] PM: Saving platform NVS memory
2014-02-09T16:11:39.583300+08:00 linux-y0se kernel: [13565.792691] Disabling non-boot CPUs ...
2014-02-09T16:11:39.583303+08:00 linux-y0se kernel: [13565.793974] smpboot: CPU 1 is now offline
2014-02-09T16:11:39.583305+08:00 linux-y0se kernel: [13565.795531] smpboot: CPU 2 is now offline
2014-02-09T16:11:39.583307+08:00 linux-y0se kernel: [13565.797031] smpboot: CPU 3 is now offline
2014-02-09T16:11:39.583309+08:00 linux-y0se kernel: [13565.803371] ACPI: Low-level resume complete
2014-02-09T16:11:39.583311+08:00 linux-y0se kernel: [13565.803415] PM: Restoring platform NVS memory
2014-02-09T16:11:39.583313+08:00 linux-y0se kernel: [13565.803799] microcode: CPU0 sig=0x306a9, pf=0x10, revision=0x19
2014-02-09T16:11:39.583315+08:00 linux-y0se kernel: [13565.803886] Enabling non-boot CPUs ...
2014-02-09T16:11:39.583317+08:00 linux-y0se kernel: [13565.803971] smpboot: Booting Node 0 Processor 1 APIC 0x1
2014-02-09T16:11:39.583319+08:00 linux-y0se kernel: [13565.815018] CPU1 microcode updated early to revision 0x19, date = 2013-06-13
2014-02-09T16:11:39.583320+08:00 linux-y0se kernel: [13565.818395] microcode: CPU1 sig=0x306a9, pf=0x10, revision=0x19
2014-02-09T16:11:39.583322+08:00 linux-y0se kernel: [13565.818406] Intel pstate controlling: cpu 1
2014-02-09T16:11:39.583323+08:00 linux-y0se kernel: [13565.818452] CPU1 is up
2014-02-09T16:11:39.583325+08:00 linux-y0se kernel: [13565.818508] smpboot: Booting Node 0 Processor 2 APIC 0x2
2014-02-09T16:11:39.583327+08:00 linux-y0se kernel: [13565.829196] CPU2 microcode updated early to revision 0x19, date = 2013-06-13
2014-02-09T16:11:39.583329+08:00 linux-y0se kernel: [13565.832273] microcode: CPU2 sig=0x306a9, pf=0x10, revision=0x19
2014-02-09T16:11:39.583331+08:00 linux-y0se kernel: [13565.832282] Intel pstate controlling: cpu 2
2014-02-09T16:11:39.583332+08:00 linux-y0se kernel: [13565.832324] CPU2 is up
2014-02-09T16:11:39.583334+08:00 linux-y0se kernel: [13565.832394] smpboot: Booting Node 0 Processor 3 APIC 0x3
2014-02-09T16:11:39.583336+08:00 linux-y0se kernel: [13565.846172] microcode: CPU3 sig=0x306a9, pf=0x10, revision=0x19
2014-02-09T16:11:39.583338+08:00 linux-y0se kernel: [13565.846181] Intel pstate controlling: cpu 3
2014-02-09T16:11:39.583340+08:00 linux-y0se kernel: [13565.846223] CPU3 is up
2014-02-09T16:11:39.583342+08:00 linux-y0se kernel: [13565.849192] ACPI: Waking up from system sleep state S3
2014-02-09T16:11:39.583343+08:00 linux-y0se kernel: [13565.871129] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
2014-02-09T16:11:39.583345+08:00 linux-y0se kernel: [13565.893160] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
2014-02-09T16:11:39.583347+08:00 linux-y0se kernel: [13565.915181] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
2014-02-09T16:11:39.583348+08:00 linux-y0se kernel: [13565.926209] pci 0000:01:00.0: power state changed by ACPI to D0
2014-02-09T16:11:39.583351+08:00 linux-y0se kernel: [13565.959384] PM: noirq resume of devices complete after 109.527 msecs
2014-02-09T16:11:39.583353+08:00 linux-y0se kernel: [13565.959477] PM: early resume of devices complete after 0.074 msecs
2014-02-09T16:11:39.583354+08:00 linux-y0se kernel: [13565.959501] i915 0000:00:02.0: setting latency timer to 64
2014-02-09T16:11:39.583356+08:00 linux-y0se kernel: [13565.959509] xhci_hcd 0000:00:14.0: setting latency timer to 64
2014-02-09T16:11:39.583358+08:00 linux-y0se kernel: [13565.959531] mei_me 0000:00:16.0: irq 44 for MSI/MSI-X
2014-02-09T16:11:39.583360+08:00 linux-y0se kernel: [13565.959620] ahci 0000:00:1f.2: setting latency timer to 64
2014-02-09T16:11:39.583361+08:00 linux-y0se kernel: [13565.959657] pcieport 0000:00:1c.2: System wakeup disabled by ACPI
2014-02-09T16:11:39.583363+08:00 linux-y0se kernel: [13565.959741] ehci-pci 0000:00:1a.0: setting latency timer to 64
2014-02-09T16:11:39.583365+08:00 linux-y0se kernel: [13565.959944] ehci-pci 0000:00:1d.0: setting latency timer to 64
2014-02-09T16:11:39.583366+08:00 linux-y0se kernel: [13565.960003] snd_hda_intel 0000:00:1b.0: irq 48 for MSI/MSI-X
2014-02-09T16:11:39.583368+08:00 linux-y0se kernel: [13565.962305] dpm_run_callback(): pnp_bus_resume+0x0/0x70 returns -19
2014-02-09T16:11:39.583370+08:00 linux-y0se kernel: [13565.962306] PM: Device 00:07 failed to resume: error -19
2014-02-09T16:11:39.583372+08:00 linux-y0se kernel: [13566.166564] usb 1-1.1: reset high-speed USB device number 3 using ehci-pci
2014-02-09T16:11:39.583374+08:00 linux-y0se kernel: [13566.277576] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
2014-02-09T16:11:39.583376+08:00 linux-y0se kernel: [13566.281438] ata6.00: configured for UDMA/133
2014-02-09T16:11:39.583377+08:00 linux-y0se kernel: [13567.222073] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
2014-02-09T16:11:39.583379+08:00 linux-y0se kernel: [13568.113695] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
2014-02-09T16:11:39.583381+08:00 linux-y0se kernel: [13568.339847] ata1.00: configured for UDMA/133
2014-02-09T16:11:39.583383+08:00 linux-y0se kernel: [13568.351016] sd 0:0:0:0: [sda] Starting disk
2014-02-09T16:11:39.583384+08:00 linux-y0se kernel: [13568.387724] PM: resume of devices complete after 2425.469 msecs
2014-02-09T16:11:39.583386+08:00 linux-y0se kernel: [13568.387946] PM: Finishing wakeup.
2014-02-09T16:11:39.581705+08:00 linux-y0se systemd[1]: Time has been changed
2014-02-09T16:11:39.582077+08:00 linux-y0se systemd[1213]: Time has been changed
2014-02-09T16:11:39.584012+08:00 linux-y0se systemd[3970]: Time has been changed
2014-02-09T16:11:39.584149+08:00 linux-y0se kernel: [13568.387947] Restarting tasks ... done.
2014-02-09T16:11:39.584154+08:00 linux-y0se kernel: [13568.390751] video LNXVIDEO:00: Restoring backlight state
2014-02-09T16:11:39.584156+08:00 linux-y0se kernel: [13568.390754] video LNXVIDEO:01: Restoring backlight state
2014-02-09T16:11:39.585156+08:00 linux-y0se kernel: [13568.391123] bbswitch: disabling discrete graphics
2014-02-09T16:11:39.585172+08:00 linux-y0se kernel: [13568.391134] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130517/nsarguments-95)
2014-02-09T16:11:39.596151+08:00 linux-y0se kernel: [13568.402646] pci 0000:01:00.0: power state changed by ACPI to D3cold
2014-02-09T16:11:39.735401+08:00 linux-y0se dbus[693]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
2014-02-09T16:11:39.789130+08:00 linux-y0se dbus[693]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2014-02-09T16:11:39.840246+08:00 linux-y0se systemd-sleep[5489]: System resumed.
2014-02-09T16:11:39.846839+08:00 linux-y0se systemd-sleep[5489]: /usr/lib/systemd/system-sleep/atd.sh exited with exit status 1.
2014-02-09T16:11:39.847577+08:00 linux-y0se systemd[1]: Started Suspend.
2014-02-09T16:11:39.847939+08:00 linux-y0se systemd[1]: Service sleep.target is not needed anymore. Stopping.
2014-02-09T16:11:39.848277+08:00 linux-y0se systemd[1]: Stopping Sleep.
2014-02-09T16:11:39.848569+08:00 linux-y0se systemd[1]: Stopped target Sleep.
2014-02-09T16:11:39.848855+08:00 linux-y0se systemd[1]: Starting Suspend.
2014-02-09T16:11:39.849127+08:00 linux-y0se systemd[1]: Reached target Suspend.
2014-02-09T16:11:39.849406+08:00 linux-y0se systemd-logind[728]: Operation finished.
2014-02-09T16:11:39.937171+08:00 linux-y0se kernel: [13568.744299] r8169 0000:04:00.2 enp4s0f2: link down
2014-02-09T16:11:39.945717+08:00 linux-y0se kernel: [13568.744400] IPv6: ADDRCONF(NETDEV_UP): enp4s0f2: link is not ready
2014-02-09T16:11:39.945739+08:00 linux-y0se kernel: [13568.745342] iwlwifi 0000:09:00.0: L1 Enabled; Disabling L0S
2014-02-09T16:11:39.945747+08:00 linux-y0se kernel: [13568.752940] iwlwifi 0000:09:00.0: Radio type=0x0-0x0-0x0
2014-02-09T16:11:40.032245+08:00 linux-y0se kernel: [13568.838481] IPv6: ADDRCONF(NETDEV_UP): wlp9s0: link is not ready
2014-02-09T16:11:39.583368+08:00 linux-y0se kernel: [13565.962305] dpm_run_callback(): pnp_bus_resume+0x0/0x70 returns -19
2014-02-09T16:11:39.583370+08:00 linux-y0se kernel: [13565.962306] PM: Device 00:07 failed to resume: error -19

这是说你的一个 ID 为 00:07 的 PNP (Plug & Play)设备没能成功 resume。你可以用:

$ dmidecode 
$ lspci
$ lsusb

看看是哪个设备。然后拔下该设备(比如是个 USB 的鼠标、耳机、打印机什么的)再试。

2014-02-09T16:11:39.585172+08:00 linux-y0se kernel: [13568.391134] ACPI Warning: _SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130517/nsarguments-95)

这个据说是 ACPI 的一个 bug。具体看这里:https://bbs.archlinux.org/viewtopic.php?pid=1341777

2014-02-09T16:11:39.840246+08:00 linux-y0se systemd-sleep[5489]: System resumed.
2014-02-09T16:11:39.846839+08:00 linux-y0se systemd-sleep[5489]: /usr/lib/systemd/system-sleep/atd.sh exited with exit status 1.

使用 sudo systemctl status -l atd.service 查看错误日志。

2014-02-09T16:11:39.945717+08:00 linux-y0se kernel: [13568.744400] IPv6: ADDRCONF(NETDEV_UP): enp4s0f2: link is not ready
2014-02-09T16:11:40.032245+08:00 linux-y0se kernel: [13568.838481] IPv6: ADDRCONF(NETDEV_UP): wlp9s0: link is not ready

可以试着先 sudo systemctl stop NetworkManager.service 后再挂起看看有没有效果。如果问题依旧,就不是 NetworkManager 的问题。我觉得是它的概率比较低。

我的硬盘今天好像挂掉了,导致无法启动系统。现在准备去换一块。为什么那个设备是可拔插的 PNP?我好像没有使用任何可拔插的设备,这几天都是裸机运行。有没有可能是硬盘的问题导致无法启动?

按照 czmmiao.iteye.com/blog/1058215 ,使用 SMART 检测硬盘:

# smartctl -H /dev/sda



smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11.6-4-desktop] (SUSE RPM)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
Failed Attributes:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   001   001   036    Pre-fail  Always   FAILING_NOW 16408

目前开机无法启动,不过似乎有时候能进控制台,等我看看 00:07 是不是硬盘。

请问我的硬盘还有的救吗?如果没得救,准备这两天去换一块硬盘 :weary:

至于 su 姐所说 Network Manager 的问题,我家的路由器好像只提供 IPV4 不提供 IPV6 的连接,所以在图形界面看到 IPV6 就是未分配。我怀疑这个应该是不用担心的。

显卡是什么型号的?
我以前也出过这个问题,当时的显卡是 nvidia 的。

显卡是 NVIDIA GT630M

我还遇到过锁屏(出现登陆框和密码框)的时候……竟然鼠标晃一下就能开 完全不用输入账户、密码,竟被人嘲笑说:你这是故意 P 的一张图做待机背景么

因为那就是待机不是锁屏。不信你查查 KDE 设置绝对没有默认设置说多长时间没用就锁屏

电脑修好后重装好了系统以及 Bumblebee 后又有两次不出现登录界面的。

最新进展是,应该可以排除是 Bumblebee 的问题,也可以排除是硬件的问题。因为我有一个同学她的电脑是 AMD 的显卡,也出现了这个问题。她用的是开源驱动 Radeon 。所以这会不会是 openSUSE 的问题呢。