Frikadelle schrieb:
systemctl suspend
Dann lande ich bei der Anmeldung, lightdm vermutlich, einfach nur die Sitzung abgemeldet, nix suspend.
Habe gerade bemerkt, dass es DOCH ein log gibt:
Fehlerfall, kein suspend:
# cat /var/log/pm-suspend.log
Initial commandline parameters:
Mo 6. Jul 16:07:10 CEST 2020: 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/000record-status suspend suspend:
/usr/lib/pm-utils/sleep.d/000record-status suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux edge4 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Module Size Used by
snd_usb_audio 262144 0
snd_usbmidi_lib 36864 1 snd_usb_audio
nls_utf8 16384 0
isofs 49152 0
nls_iso8859_1 16384 0
uas 28672 0
usb_storage 77824 1 uas
ccm 20480 9
rfcomm 81920 16
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 24576 6 algif_hash,algif_skcipher
vmnet 53248 13
vmw_vsock_vmci_transport 32768 0
vsock 36864 1 vmw_vsock_vmci_transport
vmw_vmci 69632 1 vmw_vsock_vmci_transport
vmmon 106496 0
bnep 24576 2
btusb 57344 0
btrtl 24576 1 btusb
btbcm 16384 1 btusb
snd_hda_codec_hdmi 61440 1
snd_hda_codec_conexant 28672 1
snd_hda_codec_generic 81920 1 snd_hda_codec_conexant
btintel 24576 1 btusb
snd_hda_intel 53248 5
snd_intel_dspcfg 24576 1 snd_hda_intel
bluetooth 581632 41 btrtl,btintel,btbcm,bnep,btusb,rfcomm
thinkpad_acpi 110592 0
nvram 16384 1 thinkpad_acpi
ledtrig_audio 16384 3 snd_hda_codec_generic,snd_hda_codec_conexant,thinkpad_acpi
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core 90112 5 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep 20480 2 snd_usb_audio,snd_hda_codec
joydev 24576 0
snd_pcm 106496 6 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
snd_seq_midi 20480 0
ecdh_generic 16384 2 bluetooth
ecc 28672 1 ecdh_generic
snd_seq_midi_event 16384 1 snd_seq_midi
iwldvm 237568 0
intel_rapl_msr 20480 0
intel_rapl_common 24576 1 intel_rapl_msr
mac80211 843776 1 iwldvm
x86_pkg_temp_thermal 20480 0
intel_powerclamp 20480 0
libarc4 16384 1 mac80211
rmi_smbus 16384 0
rmi_core 81920 1 rmi_smbus
coretemp 20480 0
kvm_intel 282624 0
uvcvideo 98304 0
videobuf2_vmalloc 20480 2 rmi_core,uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 24576 2 rmi_core,uvcvideo
videobuf2_common 49152 3 rmi_core,videobuf2_v4l2,uvcvideo
videodev 225280 4 rmi_core,videobuf2_v4l2,uvcvideo,videobuf2_common
serio_raw 20480 0
kvm 663552 1 kvm_intel
mei_hdcp 24576 0
input_leds 16384 0
mc 53248 5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
intel_cstate 20480 0
intel_rapl_perf 20480 0
snd_rawmidi 36864 2 snd_seq_midi,snd_usbmidi_lib
rtsx_pci_ms 24576 0
snd_seq 69632 2 snd_seq_midi,snd_seq_midi_event
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 36864 2 snd_seq,snd_pcm
iwlwifi 331776 1 iwldvm
mei_me 40960 1
snd 90112 23 snd_hda_codec_generic,snd_seq,snd_hda_codec_conexant,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm,snd_rawmidi
cfg80211 704512 3 iwldvm,iwlwifi,mac80211
wmi_bmof 16384 0
memstick 20480 1 rtsx_pci_ms
soundcore 16384 1 snd
mei 106496 3 mei_hdcp,mei_me
mac_hid 16384 0
sch_fq_codel 20480 8
parport_pc 40960 0
ppdev 24576 0
lp 20480 0
parport 53248 3 parport_pc,lp,ppdev
ip_tables 32768 0
x_tables 40960 1 ip_tables
autofs4 45056 2
hid_generic 16384 0
usbhid 57344 0
hid 131072 2 usbhid,hid_generic
crct10dif_pclmul 16384 1
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
i915 1986560 9
rtsx_pci_sdmmc 28672 0
aesni_intel 372736 10
i2c_algo_bit 16384 1 i915
crypto_simd 16384 1 aesni_intel
drm_kms_helper 184320 1 i915
syscopyarea 16384 1 drm_kms_helper
cryptd 24576 3 crypto_simd,ghash_clmulni_intel
glue_helper 16384 1 aesni_intel
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 491520 7 drm_kms_helper,i915
psmouse 155648 0
r8169 90112 0
ahci 40960 3
rtsx_pci 73728 2 rtsx_pci_sdmmc,rtsx_pci_ms
i2c_i801 32768 0
libahci 32768 1 ahci
lpc_ich 24576 0
realtek 24576 1
wmi 32768 1 wmi_bmof
video 49152 2 thinkpad_acpi,i915
gesamt belegt frei gemeinsam Zwischen verfügbar
Speicher: 11830320 3923012 254656 1012844 7652652 6574552
Auslager: 15625212 52664 15572548
/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/40inputattach suspend suspend:
/usr/lib/pm-utils/sleep.d/40inputattach suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend:
/usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
Selected interface 'wlp4s0'
OK
/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/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: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver 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.
Mo 6. Jul 16:07:11 CEST 2020: performing suspend
/usr/sbin/pm-suspend: 321: echo: echo: I/O error
=================== im Folgenden sofort hinterher ein ungewolltes Resume: =====================
Mo 6. Jul 16:07:13 CEST 2020: Awake.
Mo 6. Jul 16:07:13 CEST 2020: 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: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level = 254
/usr/lib/pm-utils/sleep.d/95hdparm-apm 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:
Selected interface 'wlp4s0'
OK
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/50unload_alx resume suspend:
/usr/lib/pm-utils/sleep.d/50unload_alx resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/40inputattach resume suspend:
/usr/lib/pm-utils/sleep.d/40inputattach 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 /etc/pm/sleep.d/10_grub-common resume suspend:
/etc/pm/sleep.d/10_grub-common 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/000record-status resume suspend:
/usr/lib/pm-utils/sleep.d/000record-status 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.
Mo 6. Jul 16:07:14 CEST 2020: Finished.
Auffällig ist das
/usr/sbin/pm-suspend: 321: echo: echo: I/O error
In dem skript, das letztlich das pm-action ist (pm-suspend ist link darauf) , gibt es gar keine Zeile 321 → unter Berücksichtung des "source pm-functions" schon, Zeile 321 von /usr/lib/pm-utils/pm-functions steht:
do_suspend() { echo -n "mem" >/sys/power/state; }
@ Lösung in https://askubuntu.com/questions/496237/sh-echo-i-o-error-on-pm-suspend-ubuntu-14-04 aber ich verstehe es nicht ... es hängt mir eine fehlerhaften sda/ sdb zusammen !?!?!?
Tatsächlich geht nach dem booten echo -n "mem" >/sys/power/state . Habe gerade gebootet, davor gabs diesen I/O-Fehler. Leider klappt bei mir dieser Trick mit einem USB-Stick nicht, dieses echo -n "mem" >/sys/power/state zum Laufen zu bringen. Ein Stick rein und wieder raus bringt nichts.
@ Hier eine weitere Lösung: der Fehler hängt mit der Höhe der Speichernutzung zusammen, genauer mit der Nutzung des RAM als Cache. Der Cache muss vor dem suspend geleert werden: https://ubuntuforums.org/showthread.php?t=1573459
Werde das testen, wenn ich den Fehler wieder habe, vorhin habe ich rebootet, derzeit besteht der suspend-Fehler nicht.
@nachdem mir beim erfolgreichen Suspend gestern nach nur uptime vom 3 Std der Laptop nicht mehr erwacht ist, habe ich in /usr/lib/pm-utils/bin/pm-action an den Anfang reinkopiert:
#hack, gerlach, wegen /usr/sbin/pm-suspend: 321: echo: echo: I/O error wenn "viel" RAM als cache genutzt wird.
# cache leeren vor dem suspend:
sync
echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches
# end of hack
Das ist die Lösung, zweiter Link oberhalb. Der cache wird offenbar geleert, zumindest bis auf 1,9GB, erkennbar bei top oder /proc/meminfo, zuvor waren ca 4GB RAM meiner 12GB als Cache genutzt. Wenn ich mich nicht mehr hier melde, hat das geholfen.