Page 1 of 1

Hibernation problem on closing the lid

Posted: Thu Sep 21, 2023 7:09 am
by hkjz
Hello,

when i close the lid, acutally system doesnt work and depletes the battery among others

message i got is following

Code: Select all

None of the screen lock tools ran successfully, the screen will not be locked. 
Do you still want to continue to sutend the system?

Code: Select all

System:    Kernel: 5.19.0-2mx-amd64 [5.19.11-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/vmlinuz-5.19.0-2mx-amd64 root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower September 18  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: LENOVO product: 20KGS49T0K v: ThinkPad X1 Carbon 6th 
           serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: LENOVO model: 20KGS49T0K v: SDK0J40697 WIN serial: <filter> UEFI: LENOVO 
           v: N23ET81P (1.56 ) date: 05/25/2022 
Battery:   ID-1: BAT0 charge: 7.3 Wh (14.5%) condition: 50.5/57.0 Wh (88.6%) volts: 11.1 min: 11.6 
           model: LGC 01AV494 type: Li-poly serial: <filter> status: Discharging cycles: 261 
CPU:       Info: Quad Core model: Intel Core i7-8650U bits: 64 type: MT MCP arch: Kaby Lake 
           note: check family: 6 model-id: 8E (142) stepping: A (10) microcode: F0 cache: 
           L2: 8 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33599 
           Speed: 800 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
           5: 798 6: 800 7: 800 8: 800 
           Vulnerabilities: 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 mitigation: Clear CPU buffers; SMT vulnerable 
           Type: retbleed mitigation: IBRS 
           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: IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort mitigation: TSX disabled 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0 
           chip-ID: 8086:5917 class-ID: 0300 
           Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:3 
           chip-ID: 04f2:b61e class-ID: 0e02 serial: <filter> 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
           s-diag: 777mm (30.6") 
           Monitor-1: eDP-1 res: 2560x1440 hz: 60 dpi: 210 size: 309x174mm (12.2x6.9") 
           diag: 355mm (14") 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.5 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel 
           v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403 
           Sound Server-1: ALSA v: k5.19.0-2mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel port: efa0 
           bus-ID: 00:1f.6 chip-ID: 8086:15d7 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: efa0 
           bus-ID: 02:00.0 chip-ID: 8086:24fd class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           IF-ID-1: nordlynx state: unknown speed: N/A duplex: N/A mac: N/A 
           IF-ID-2: wwan0 state: down mac: N/A 
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
           bus-ID: 1-7:2 chip-ID: 8087:0a2b class-ID: e001 
           Report: hciconfig ID: hci0 rfk-id: 5 state: down bt-service: N/A rfk-block: 
           hardware: no software: no address: <filter> 
           Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch hold sniff 
           link-mode: slave accept 
Drives:    Local Storage: total: 476.94 GiB used: 298.17 GiB (62.5%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB512HAJQ-000L7 
           size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: 5L2QEXA7 temp: 35.9 C scheme: GPT 
Partition: ID-1: / raw-size: 467.8 GiB size: 459.38 GiB (98.20%) used: 297.77 GiB (64.8%) fs: ext4 
           dev: /dev/dm-0 maj-min: 253:0 mapped: root.fsm 
           ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 400.4 MiB (41.1%) 
           fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-3: /boot/efi raw-size: 128 MiB size: 126 MiB (98.45%) used: 274 KiB (0.2%) fs: vfat 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 2.5 MiB (0.0%) priority: -2 
           dev: /dev/nvme0n1p3 maj-min: 259:3 
Sensors:   System Temperatures: cpu: 40.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 65535 fan-1: 0 fan-2: 
Repos:     Packages: 2303 note: see --pkg apt: 2295 lib: 1107 flatpak: 8 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/atom.list 
           1: deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bullseye main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://nl.mxrepo.com/mx/repo/ bullseye main non-free
           Active apt repos in: /etc/apt/sources.list.d/nordvpn.list 
           1: deb https://repo.nordvpn.com/deb/nordvpn/debian stable main
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial-added-by-mxpi.list 
           1: deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/sublime-text.list 
           1: deb https://download.sublimetext.com/ apt/stable/
           Active apt repos in: /etc/apt/sources.list.d/syncthing.list 
           1: deb https://apt.syncthing.net/ syncthing stable
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 264 Uptime: 2d 3h 9m wakeups: 205 Memory: 15.38 GiB used: 3.01 GiB (19.6%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI

Re: Hibernation problem on closing the lid

Posted: Thu Sep 21, 2023 7:25 am
by Charlie Brown
Is it a new issue? Was it always like that?

What happens if you just uncheck the "Lock Screen Before Going to Sleep" ? Is it ok then ?

Is it the same if you hibernate it other ways (rather than closing the lid) ?

Is it the same if you select "suspend" for "when closing the lid" rather than hibernate ?

Is light-locker or any others installed, and do they work if you just lock the screen ?

Re: Hibernation problem on closing the lid

Posted: Sun Sep 24, 2023 5:26 pm
by hkjz
Charlie Brown wrote: Thu Sep 21, 2023 7:25 am 1. Is it a new issue? Was it always like that?

2. What happens if you just uncheck the "Lock Screen Before Going to Sleep" ? Is it ok then ?

3. Is it he same if you hibernate it other ways (rather than closing the lid) ?

4. Is it the same if you select "suspend" for "when closing the lid" rather than hibernate ?

5. Is light-locker or any others installed, and do they work if you just lock the screen ?

1. Yes, new issue

2, yes, it is ok

3. if i use termianl, it works fine, no questiosn "sudo pm-hibernate"

4. yes, it asks the question again

5. no light-locker. but i have installed "xscreensaver" recently

Re: Hibernation problem on closing the lid

Posted: Sun Sep 24, 2023 5:51 pm
by Charlie Brown
... Then it seems to be due to xscreensaver. Maybe you consider just a locker instead of that:

light-locker/slock (suckless-tools)/xtrlock/i3lock ...

Meanwhile it's normal for #3 as pm-utils already doesn't lock the screen, just suspend/hibernate, hence no such question. If you prefer to not lock the screen: just create a hotkey(s) from keyboard for sudo pm-hibernate and press your key(s) that's it ...

If you like, just install light-locker and try .