Probouzení z režimu spánku

Založil mhscz, 24. 01. 2015, 10:51:13

Předchozí téma - Další téma

mhscz

Prosím o radu:

Aktuálně mám nainstalovaný CrunchBang Linux 11 "Waldorf" (Wheezy) na NB Asus K50ID (na stejném počítači jsem měl tento problém také na standardní instalaci Wheezy i Jessie).

Pokud chci použít režim spánku, dojde k uspání, ale téměř hned zase k probuzení. Po hledání na Internetu jsem to částečně vyřešil úpravou /proc/acpi/wakeup. Po restartu se ale nastavení nezachová a s tím si nevím rady.

Na NB jsem i aktualizoval BIOS na poslední oficiální verzi.

V logu (messages):

Citace
pci0000:00: ACPI _OSC request failed (AE_SUPPORT), returned control mask: 0x0c


Jan 22 09:13:00 michal-k50id kernel: [    8.253514] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326)
Jan 22 09:13:00 michal-k50id kernel: [    8.253562] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326)
Jan 22 09:13:00 michal-k50id kernel: [    8.253614] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326)
Jan 22 09:13:00 michal-k50id kernel: [    8.253655] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326)
Jan 22 09:13:00 michal-k50id kernel: [    8.253695] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326)
Jan 22 09:13:00 michal-k50id kernel: [    8.253736] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326)
Jan 22 09:13:00 michal-k50id kernel: [    8.253775] ACPI Warning: For \_SB_.PCI0.XVR0.VGA_.NVIF: Excess arguments - needs 2, found 3 (20110623/nspredef-326


Našel jsem si, že by to mohlo souviset s grafickou kartou (nainstalováno https://wiki.debian.org/NvidiaGraphicsDrivers#Version_340.65_.28via_wheezy-backports.29 - GT 320M), ale více s tím nesjem schopen udělat.

Díky.
Debian Jessie Cinnamon - 3.16.0-4-amd64

mhscz

#1
Doplňuji syslog:


Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> sleep requested (sleeping: no  enabled: yes)
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> sleeping or disabling...
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> (eth0): now unmanaged
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> (eth0): device state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> (eth0): cleaning up...
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> (eth0): taking down device.
Jan 28 16:47:59 michal-k50id avahi-daemon[2169]: Interface eth0.IPv6 no longer relevant for mDNS.
Jan 28 16:47:59 michal-k50id avahi-daemon[2169]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::4a5b:39ff:fe4a:4db0.
Jan 28 16:47:59 michal-k50id avahi-daemon[2169]: Withdrawing address record for fe80::4a5b:39ff:fe4a:4db0 on eth0.
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> (wlan0): now unmanaged
Jan 28 16:47:59 michal-k50id NetworkManager[2181]: <info> (wlan0): device state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]
Jan 28 16:48:00 michal-k50id ntpd[2060]: Deleting interface #32 eth0, fe80::4a5b:39ff:fe4a:4db0#123, interface stats: received=0, sent=0, dropped=0, active_time=27685 secs
Jan 28 16:48:00 michal-k50id ntpd[2060]: peers refreshed
Jan 28 16:48:09 michal-k50id kernel: [437121.473823] PM: Syncing filesystems ... done.
Jan 28 16:48:09 michal-k50id kernel: [437121.498570] PM: Preparing system for mem sleep
Jan 28 16:48:09 michal-k50id kernel: [437121.498586] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jan 28 16:48:09 michal-k50id kernel: [437121.512129] Freezing remaining freezable tasks ... (elapsed 1.96 seconds) done.
Jan 28 16:48:09 michal-k50id kernel: [437123.480079] PM: Entering mem sleep
Jan 28 16:48:09 michal-k50id kernel: [437123.480119] Suspending console(s) (use no_console_suspend to debug)
Jan 28 16:48:09 michal-k50id kernel: [437123.480863] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
Jan 28 16:48:09 michal-k50id kernel: [437123.480936] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jan 28 16:48:09 michal-k50id kernel: [437123.481061] sd 1:0:0:0: [sdb] Stopping disk
Jan 28 16:48:09 michal-k50id kernel: [437123.481791] sd 0:0:0:0: [sda] Stopping disk
Jan 28 16:48:09 michal-k50id kernel: [437123.504324] ACPI handle has no context!
Jan 28 16:48:09 michal-k50id kernel: [437123.524180] snd_hda_intel 0000:00:08.0: power state changed by ACPI to D3
Jan 28 16:48:09 michal-k50id kernel: [437124.092109] PM: suspend of devices complete after 611.620 msecs
Jan 28 16:48:09 michal-k50id kernel: [437124.108142] r8169 0000:03:00.0: wake-up capability enabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.124441] ehci_hcd 0000:00:06.1: wake-up capability enabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.140104] ohci_hcd 0000:00:06.0: wake-up capability enabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.156105] ehci_hcd 0000:00:04.1: wake-up capability enabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.172104] ohci_hcd 0000:00:04.0: wake-up capability enabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.188368] PM: late suspend of devices complete after 96.254 msecs
Jan 28 16:48:09 michal-k50id kernel: [437124.188500] ACPI: Preparing to enter system sleep state S3
Jan 28 16:48:09 michal-k50id kernel: [437124.204077] PM: Saving platform NVS memory
Jan 28 16:48:09 michal-k50id kernel: [437124.204627] Disabling non-boot CPUs ...
Jan 28 16:48:09 michal-k50id kernel: [437124.308057] CPU 1 is now offline
Jan 28 16:48:09 michal-k50id kernel: [437124.308940] Extended CMOS year: 2000
Jan 28 16:48:09 michal-k50id kernel: [437124.308940] ACPI: Low-level resume complete
Jan 28 16:48:09 michal-k50id kernel: [437124.308940] PM: Restoring platform NVS memory
Jan 28 16:48:09 michal-k50id kernel: [437124.308940] Extended CMOS year: 2000
Jan 28 16:48:09 michal-k50id kernel: [437124.308940] microcode: CPU0 updated to revision 0xa0b, date = 2010-09-28
Jan 28 16:48:09 michal-k50id kernel: [437124.326673] Enabling non-boot CPUs ...
Jan 28 16:48:09 michal-k50id kernel: [437124.326923] Booting Node 0 Processor 1 APIC 0x1
Jan 28 16:48:09 michal-k50id kernel: [437124.326925] smpboot cpu 1: start_ip = 99000
Jan 28 16:48:09 michal-k50id kernel: [437124.206035] Calibrating delay loop (skipped) already calibrated this CPU
Jan 28 16:48:09 michal-k50id kernel: [437124.338308] NMI watchdog enabled, takes one hw-pmu counter.
Jan 28 16:48:09 michal-k50id kernel: [437124.342379] microcode: CPU1 updated to revision 0xa0b, date = 2010-09-28
Jan 28 16:48:09 michal-k50id kernel: [437124.352182] CPU1 is up
Jan 28 16:48:09 michal-k50id kernel: [437124.353254] ACPI: Waking up from system sleep state S3
Jan 28 16:48:09 michal-k50id kernel: [437124.696529] ohci_hcd 0000:00:04.0: wake-up capability disabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.696567] ehci_hcd 0000:00:04.1: wake-up capability disabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.696598] ohci_hcd 0000:00:06.0: wake-up capability disabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.696633] ehci_hcd 0000:00:06.1: wake-up capability disabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.697704] PM: early resume of devices complete after 1.518 msecs
Jan 28 16:48:09 michal-k50id kernel: [437124.697866] ohci_hcd 0000:00:04.0: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.697883] ehci_hcd 0000:00:04.1: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.697888] ohci_hcd 0000:00:06.0: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.697902] ehci_hcd 0000:00:06.1: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.697922] pci 0000:00:09.0: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.697924] snd_hda_intel 0000:00:08.0: power state changed by ACPI to D0
Jan 28 16:48:09 michal-k50id kernel: [437124.697931] snd_hda_intel 0000:00:08.0: power state changed by ACPI to D0
Jan 28 16:48:09 michal-k50id kernel: [437124.712555] snd_hda_intel 0000:02:00.1: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.712605] ahci 0000:00:0b.0: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.712753] sd 0:0:0:0: [sda] Starting disk
Jan 28 16:48:09 michal-k50id kernel: [437124.712779] sd 1:0:0:0: [sdb] Starting disk
Jan 28 16:48:09 michal-k50id kernel: [437124.712862] snd_hda_intel 0000:00:08.0: power state changed by ACPI to D0
Jan 28 16:48:09 michal-k50id kernel: [437124.712877] r8169 0000:03:00.0: wake-up capability disabled by ACPI
Jan 28 16:48:09 michal-k50id kernel: [437124.719551] snd_hda_intel 0000:00:08.0: power state changed by ACPI to D0
Jan 28 16:48:09 michal-k50id kernel: [437124.719581] snd_hda_intel 0000:00:08.0: setting latency timer to 64
Jan 28 16:48:09 michal-k50id kernel: [437124.771673] Extended CMOS year: 2000
Jan 28 16:48:09 michal-k50id kernel: [437125.032060] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jan 28 16:48:09 michal-k50id kernel: [437125.080037] usb 4-1: reset full-speed USB device number 5 using ohci_hcd
Jan 28 16:48:09 michal-k50id kernel: [437125.289103] btusb 4-1:1.0: no reset_resume for driver btusb?
Jan 28 16:48:09 michal-k50id kernel: [437125.289108] btusb 4-1:1.1: no reset_resume for driver btusb?
Jan 28 16:48:09 michal-k50id kernel: [437125.450378] ata1.00: configured for UDMA/133
Jan 28 16:48:09 michal-k50id kernel: [437125.760047] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jan 28 16:48:09 michal-k50id kernel: [437126.012155] ata2.00: configured for UDMA/133
Jan 28 16:48:09 michal-k50id kernel: [437126.022059] PM: resume of devices complete after 1324.290 msecs
Jan 28 16:48:09 michal-k50id kernel: [437126.025358] PM: Finishing wakeup.


A pm-suspand.log:


Wed Jan 28 16:48:00 CET 2015: 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 michal-k50id 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux
Module                  Size  Used by
nls_cp437              16553  0
vfat                   17316  0
fat                    45642  1 vfat
cryptd                 14517  0
aes_x86_64             16843  0
aes_generic            33026  1 aes_x86_64
xts                    12645  0
gf128mul               13048  1 xts
dm_crypt               22586  0
dm_mod                 63645  1 dm_crypt
ses                    13106  0
enclosure              13306  1 ses
usb_storage            43870  0
des_generic            20851  0
ecb                    12737  0
md4                    12529  0
fuse                   62012  5
hmac                   12835  1
nls_utf8               12456  6
cifs                  243028  7
fscache                36739  1 cifs
parport_pc             22364  0
ppdev                  12763  0
lp                     17149  0
parport                31858  3 lp,ppdev,parport_pc
rfcomm                 33700  0
bnep                   17567  2
cpufreq_userspace      12576  0
cpufreq_powersave      12454  0
cpufreq_stats          12866  0
cpufreq_conservative    13147  0
binfmt_misc            12957  1
loop                   22641  0
snd_hda_codec_hdmi     30824  4
joydev                 17266  0
usbhid                 36418  0
hid                    81372  1 usbhid
snd_hda_codec_realtek   188851  1
btusb                  17502  1
bluetooth             119455  13 btusb,bnep,rfcomm
arc4                   12458  2
nvidia              10492298  40
mxm_wmi                12515  0
snd_hda_intel          26259  3
snd_hda_codec          78031  3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_hwdep              13186  1 snd_hda_codec
snd_pcm                68083  3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc         13003  2 snd_pcm,snd_hda_intel
snd_seq                45126  0
snd_seq_device         13176  1 snd_seq
snd_timer              22917  2 snd_seq,snd_pcm
ath9k                  64619  0
ath9k_common           12728  1 ath9k
uvcvideo               57744  0
ath9k_hw              322112  2 ath9k_common,ath9k
snd                    52893  15 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
ath                    21370  3 ath9k_hw,ath9k_common,ath9k
videodev               70889  1 uvcvideo
mac80211              192806  1 ath9k
v4l2_compat_ioctl32    16655  1 videodev
media                  18148  2 videodev,uvcvideo
cfg80211              137243  3 mac80211,ath,ath9k
psmouse                69265  0
pcspkr                 12579  0
coretemp               12898  0
soundcore              13065  1 snd
serio_raw              12931  0
evdev                  17562  11
video                  17683  0
battery                13146  0
wmi                    13243  1 mxm_wmi
ac                     12624  0
power_supply           13475  2 ac,battery
i2c_nforce2            12584  0
asus_laptop            18484  0
sparse_keymap          12760  1 asus_laptop
acpi_cpufreq           12935  1
rfkill                 19012  4 asus_laptop,cfg80211,bluetooth
i2c_core               23876  3 i2c_nforce2,videodev,nvidia
input_polldev          12906  1 asus_laptop
mperf                  12453  1 acpi_cpufreq
button                 12937  0
processor              28149  3 acpi_cpufreq
ext4                  350804  4
crc16                  12343  2 ext4,bluetooth
jbd2                   62115  1 ext4
mbcache                13114  1 ext4
microcode              30126  0
sg                     25874  0
sd_mod                 36136  7
crc_t10dif             12348  1 sd_mod
thermal                17383  0
thermal_sys            18040  3 thermal,processor,video
ohci_hcd               26563  0
ahci                   24997  5
libahci                22941  1 ahci
libata                140630  2 libahci,ahci
ehci_hcd               40249  0
r8169                  47008  0
mii                    12675  1 r8169
usbcore               128741  9 ehci_hcd,ohci_hcd,uvcvideo,btusb,usbhid,usb_storage
usb_common             12354  1 usbcore
scsi_mod              162321  5 libata,sd_mod,sg,usb_storage,ses
             total       used       free     shared    buffers     cached
Mem:       8197936    4514308    3683628          0     186996    1746408
-/+ buffers/cache:    2580904    5617032
Swap:      9764860     223120    9541740

/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_unattended-upgrades-hibernate suspend suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager 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:

/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:
nVidia binary video drive detected, not using 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:
kernel.acpi_video_flags = 0

/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Wed Jan 28 16:48:02 CET 2015: performing suspend
Wed Jan 28 16:48:09 CET 2015: Awake.
Wed Jan 28 16:48:09 CET 2015: Running hooks for resume
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:

/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:

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

/dev/sdb:
setting Advanced Power Management level to 0x7f (127)
APM_level = 127

/dev/sdb:
setting standby to 36 (3 minutes)

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

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

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

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

/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:
Having NetworkManager wake interfaces back up...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:

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

/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.
Wed Jan 28 16:48:10 CET 2015: Finished.



Omlouvám se, měl jsem víc hledat. Nakonec jsem to vyřešil podle http://ubuntuforums.org/showthread.php?t=1969615&p=12229272#post12229272, tzn. úpravou /etc/rc.local.
Debian Jessie Cinnamon - 3.16.0-4-amd64