mf6333
28 Wrzesień 2023 18:21
1
Problem jak w tytule wątku. Zabytkowy laptop nie chce przejść w stan hibernacji. Polecenie:
sudo systemctl hibernate
blokuje ekran, zaś komenda:
sudo pm-hibernate
normalnie zamyka system.
Początkowo myślałem, że mam za mały swap (2GB), więc powiększyłem go do czterokrotności pamięci RAM. Nie pomogło.
Z góry dziękuję za pomoc.
Tomek
28 Wrzesień 2023 21:55
2
Przydałoby się więcej szczegółów, póki co mogę jedynie odesłać do lektury tematu na Arch Wiki
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation
mf6333
29 Wrzesień 2023 13:57
3
Tamten artykuł czytałem już wcześniej, bo w menu start nie miałem nawet opcji hibernacji i musiałem trochę pokombinować, żeby taki guzik się tam pojawił.
Wyniki jakich komend lub zawartość jakich plików konfiguracyjnych mam podać?
Używam partycji wymiany. Środowisko graficzne to Plasma.
Gdy próbuję hibernować komputer poleceniem
sudo systemctl hibernate
a następnie po odblokowaniu ekranu wklepuję sudo dmesg
otrzymuję w końcówce tylko coś takiego:
[ 1051.158892] wlp3s0: deauthenticating from ac:64:62:6f:60:80 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1054.092883] wlp3s0: authenticate with ac:64:62:6f:60:80
[ 1054.092905] wlp3s0: 80 MHz not supported, disabling VHT
[ 1054.110005] wlp3s0: send auth to ac:64:62:6f:60:80 (try 1/3)
[ 1054.111907] wlp3s0: authenticated
[ 1054.113613] wlp3s0: associate with ac:64:62:6f:60:80 (try 1/3)
[ 1054.119736] wlp3s0: RX AssocResp from ac:64:62:6f:60:80 (capab=0x411 status=0 aid=1)
[ 1054.119941] wlp3s0: associated
[ 1054.120052] ath: EEPROM regdomain: 0x8268
[ 1054.120055] ath: EEPROM indicates we should expect a country code
[ 1054.120056] ath: doing EEPROM country->regdmn map search
[ 1054.120058] ath: country maps to regdmn code: 0x37
[ 1054.120059] ath: Country alpha2 being used: PL
[ 1054.120060] ath: Regpair used: 0x37
[ 1054.120062] ath: regdomain 0x8268 dynamically updated by country element
[ 1054.180564] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
Tomek
1 Październik 2023 04:33
4
Na początek to:
inxi -Fazy
cat /etc/mkinitcpio.conf
swapon --show
cat /etc/fstab
mf6333
1 Październik 2023 08:24
5
inxi -Fazy
System:
Kernel: 6.4.16-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.4-x86_64
root=UUID=e5ead7e6-827a-4a90-8718-c9364c87571a rw rootflags=subvol=@
apparmor=1 security=apparmor
resume=UUID=08014533-5db4-42f6-8306-97e5cfd905c9 udev.log_priority=3
Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 wm: kwin_wayland dm: SDDM
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: Acer product: Aspire 5750G v: V1.11 serial: <filter>
Chassis: type: 10 v: 1.11 serial: N/A
Mobo: Acer model: JE50_HR serial: N/A BIOS: Acer v: 1.11 date: 05/24/2011
Battery:
ID-1: BAT0 charge: 25.2 Wh (100.0%) condition: 25.2/48.8 Wh (51.5%)
volts: 12.1 min: 11.1 model: SANYO Li_Ion_4000mA type: Li-ion
serial: <filter> status: full
CPU:
Info: model: Intel Core i5-2410M bits: 64 type: MT MCP arch: Sandy Bridge
gen: core 2 level: v2 built: 2010-12 process: Intel 32nm family: 6
model-id: 0x2A (42) stepping: 7 microcode: 0x2F
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 3 MiB desc: 1x3 MiB
Speed (MHz): avg: 825 high: 900 min/max: 800/2900 base/boost: 2300/4000
scaling: driver: intel_cpufreq governor: schedutil volts: 0.0 V
ext-clock: 1333 MHz cores: 1: 800 2: 800 3: 800 4: 900 bogomips: 18366
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: retbleed status: Not affected
Type: spec_rstack_overflow status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen-6
code: Sandybridge process: Intel 32nm built: 2011 ports: active: LVDS-1
empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0116
class-ID: 0300
Device-2: NVIDIA GF108M [GeForce GT 540M] vendor: Acer Incorporated ALI
driver: N/A alternate: nouveau, nvidia_drm, nvidia non-free: series: 390.xx+
status: legacy-active (EOL~late 2022) arch: Fermi code: GF1xx
process: 40/28nm built: 2010-16 pcie: speed: Unknown lanes: 63 link-max:
gen: 6 speed: 64 GT/s bus-ID: 01:00.0 chip-ID: 10de:0df4 class-ID: 0300
Device-3: Alcor Micro Acer Integrated Webcam driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.3:3
chip-ID: 058f:b002 class-ID: 0e02
Display: server: X.Org v: 23.2 with: Xwayland v: 23.2.0
compositor: kwin_wayland driver: X: loaded: intel dri: i965 gpu: i915
display-ID: :1 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31") monitors: <missing: xrandr>
Monitor-1: LVDS-1 model: LG Display 0x0250 built: 2010 res: 1366x768
dpi: 101 gamma: 1.2 size: 345x194mm (13.58x7.64") diag: 396mm (15.6")
ratio: 16:9 modes: 1366x768
API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus
device: 1 drv: swrast gbm: drv: crocus surfaceless: drv: crocus x11:
drv: crocus inactive: wayland
API: OpenGL v: 4.5 compat-v: 3.3 vendor: intel mesa v: 23.1.7-1 glx-v: 1.4
direct-render: yes renderer: Mesa Intel HD Graphics 3000 (SNB GT2)
device-ID: 8086:0116 memory: 1.46 GiB unified: yes
API: Vulkan Message: No Vulkan data available.
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
vendor: Acer Incorporated ALI 6 driver: snd_hda_intel v: kernel
bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403
Device-2: NVIDIA GF108 High Definition Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel pcie: speed: Unknown lanes: 63 link-max:
gen: 6 speed: 64 GT/s bus-ID: 01:00.1 chip-ID: 10de:0bea class-ID: 0403
API: ALSA v: k6.4.16-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: JACK v: 1.9.22 status: off tools: N/A
Server-2: PipeWire v: 0.3.80 status: n/a (root, process)
with: pipewire-media-session status: active tools: pw-cli
Server-3: PulseAudio v: 16.1 status: active (root, process)
with: pulseaudio-alsa type: plugin tools: pacat,pactl
Network:
Device-1: Broadcom NetLink BCM57785 Gigabit Ethernet PCIe
vendor: Acer Incorporated ALI driver: tg3 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0 chip-ID: 14e4:16b5
class-ID: 0200
IF: enp2s0f0 state: down mac: <filter>
Device-2: Qualcomm Atheros AR9287 Wireless Network Adapter
vendor: Foxconn T77H167.00 driver: ath9k v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:002e class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros AR3011 Bluetooth driver: btusb v: 0.8 type: USB
rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-1.6:5 chip-ID: 0cf3:3005
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 3.0
lmp-v: 5 status: discoverable: yes pairing: yes class-ID: 7c010c
Drives:
Local Storage: total: 465.76 GiB used: 161.31 GiB (34.6%)
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MK5059GSXP family: 2.5"
HDD MK..59GSXP (AF) size: 465.76 GiB block-size: physical: 4096 B
logical: 512 B sata: 2.6 speed: 3.0 Gb/s tech: HDD rpm: 5400
serial: <filter> fw-rev: 3J temp: 32 C scheme: MBR
SMART: yes state: enabled health: PASSED on: 1y 84d 23h cycles: 5900
Old-Age: g-sense error rate: 312
Partition:
ID-1: / raw-size: 59 GiB size: 59 GiB (100.00%) used: 18.32 GiB (31.1%)
fs: btrfs block-size: 4096 B dev: /dev/sda1 maj-min: 8:1
ID-2: /home raw-size: 374.76 GiB size: 374.76 GiB (100.00%)
used: 142.98 GiB (38.2%) fs: btrfs block-size: 4096 B dev: /dev/sda3
maj-min: 8:3
ID-3: /var/log raw-size: 59 GiB size: 59 GiB (100.00%)
used: 18.32 GiB (31.1%) fs: btrfs block-size: 4096 B dev: /dev/sda1
maj-min: 8:1
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
compressor: zstd max-pool: 20%
ID-1: swap-1 type: partition size: 32 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda2 maj-min: 8:2
Sensors:
System Temperatures: cpu: 51.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Processes: 199 Uptime: 43m wakeups: 4 Memory: total: 8 GiB
available: 7.62 GiB used: 1.41 GiB (18.5%) igpu: 128 MiB Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
Packages: pm: pacman pkgs: 1373 libs: 385 tools: pamac pm: flatpak pkgs: 0
Shell: Sudo (sudo) v: 1.9.14p3 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.30
cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(usbhid xhci_hcd)
MODULES="crc32c-intel"
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No RAID, lvm2, or encrypted root is needed.
# HOOKS=(base)
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS=(base udev autodetect modconf block filesystems resume fsck)
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS=(base udev modconf block filesystems fsck)
#
## This setup assembles a mdadm array with an encrypted root file system.
## Note: See 'mkinitcpio -H mdadm_udev' for more information on RAID devices.
# HOOKS=(base udev modconf keyboard keymap consolefont block mdadm_udev encrypt filesystems fsck)
#
## This setup loads an lvm2 volume group.
# HOOKS=(base udev modconf block lvm2 filesystems fsck)
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr and fsck hooks.
HOOKS="base udev autodetect modconf block keyboard keymap consolefont plymouth filesystems resume"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
# MODULES_DECOMPRESS
# Decompress kernel modules during initramfs creation.
# Enable to speedup boot process, disable to save RAM
# during early userspace. Switch (yes/no).
#MODULES_DECOMPRESS="yes"
swapon --show
NAME TYPE SIZE USED PRIO
/dev/sda2 partition 32G 0B -2
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=e5ead7e6-827a-4a90-8718-c9364c87571a / btrfs subvol=/@,defaults 0 0
UUID=e5ead7e6-827a-4a90-8718-c9364c87571a /var/cache btrfs subvol=/@cache,defaults 0 0
UUID=e5ead7e6-827a-4a90-8718-c9364c87571a /var/log btrfs subvol=/@log,defaults 0 0
/dev/sda3 /home btrfs defaults 0 0
/dev/sda2 swap swap noatime 0 0
Tomek
1 Październik 2023 14:33
6
Konfiguracja na pierwszy rzut oka wydaje się w porządku, raczej nie ma powodów, dla których hibernacja miałaby nie działać. Być może przesiadka na inny kernel pomoże, jak nie to tu jest jeszcze parę pomysłów do wypróbowania.
mf6333
4 Październik 2023 15:08
7
W wolnej chwili wpadł mi do głowy pomysł, żeby wypróbować najnowszy dostępny kernel z serii rt: 6.5.2_rt8-1 - do tej pory jechałem na wersji 6.4.16-5 i na razie przy niej zostaję. Hibernacja zadziałała tak, jak powinna, ale za to laptop przestał się wyłączać. Zamyka system, parkuje głowice dysku twardego i zatrzymuje się świecąc diodami w obudowie i kręcąc wiatrakiem chłodzącym. Muszę wtedy wyłączać go ręcznie przytrzymując przycisk w obudowie przez kilka sekund. To samo dzieje się gdy próbuję go normalnie wyłączyć oraz uruchomić ponownie. Tak samo zachowuje się na innych jądrach z serii 6.5. Chyba pozostaje mi tylko czekanie na jądro nr 6.6.