How to safely shut down my laptop ONLY when required using keyboard shortcuts/keys?

some times, my laptop hangs and i have to force shot down by pressing the power button. the next time i boot it up, it takes a lot more time
i have tried these combinations to shut down:
altGr + PrtScrn + O
altGr + PrtScreen + R + E + S + U + O
neither seem to work, any help would be appreciated.

On a thinkpad e430 Edge

A few things to clarify:

  • A normal shutdown shall happen only when your system sends the appropriate command. This is usually done when you enter that command, either directly in CLI or through a graphical button in GUI. It usually hardly happens otherwise.
  • When your system freezes, it is often due to a “self-lock”, in the sense that the system doesn’t have enough available resources (in CPU or RAM) to continue processing all the active tasks – including rendering graphically. You should investigate why those occurrences happen.
  • As described above, a freezing system has great difficulties to process your shutdown input. So in order to shutdown safely, you can only wait for it to finish some of its tasks, thus freeing resources and processing your input.

i see. thanks for the info.Guess i should have clarified, i do wait when the system becomes unresponsive, and soon enough it goes back to normal after about 30 sec or so… Here’s where my real problem lies: I only force shutdown when my screen goes blank, this happens after my laptop goes to sleep (Sometimes, not always) and i just see the lenovo logo for minutes on and on… (UEFI booting btw)

So a sleep (hibernation?) issue. That’s not my forte, so i’ll have to let someone else step in.
In the meantime, please provide your system information.

1 Like

yes, hibernation issue- greeted with a black screen or a lenovo logo with the mouse cursor. nothing else. when i installed manjaro, i opted for the swap with hibernate option.
here is my system info:

  Kernel: 5.10.79-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.10-x86_64
  root=UUID=375e2536-afe5-413e-9a1a-2f5177f8cf09 rw rootflags=subvol=@ quiet
  resume=UUID=183e087a-3569-41a5-950d-c07e3caa37ef udev.log_priority=3
  Desktop: KDE Plasma 5.23.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1
  dm: SDDM Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: LENOVO product: 3254N2Q v: ThinkPad Edge E430
  serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 3254N2Q serial: <superuser required> UEFI: LENOVO
  v: H0ET95WW (2.55 ) date: 01/20/2014
  ID-1: BAT0 charge: 1.9 Wh (79.2%) condition: 2.4/52.8 Wh (4.6%) volts: 11.4
  min: 11.1 model: LGC 45N1055 type: Li-ion serial: <filter> status: Unknown
  RAM: total: 7.62 GiB used: 2.57 GiB (33.8%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
  Info: Dual Core model: Intel Core i5-3210M bits: 64 type: MT MCP
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21
  cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB bogomips: 19961
  Speed: 1481 MHz min/max: 1200/3100 MHz Core speeds (MHz): 1: 1481 2: 2230
  3: 1548 4: 1218
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov
  constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept
  erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida
  lahf_lm lm mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat
  pbe pcid pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdrand
  rdtscp rep_good sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall
  tm tm2 tpr_shadow tsc tsc_deadline_timer vme vmx vnmi vpid x2apic xsave
  xsaveopt xtopology xtpr
  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: spec_store_bypass
  mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
  IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300
  Device-2: NVIDIA GF119M [GeForce 610M] driver: N/A
  alternate: nouveau, nvidia_drm, nvidia bus-ID: 01:00.0 chip-ID: 10de:1058
  class-ID: 0300
  Device-3: Acer ThinkPad Integrated Camera type: USB driver: uvcvideo
  bus-ID: 2-1.6:3 chip-ID: 5986:02d2 class-ID: 0e02
  Display: x11 server: X.Org compositor: kwin_x11 driver:
  loaded: intel display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
  s-diag: 414mm (16.3")
  Monitor-1: LVDS1 res: 1366x768 hz: 60 dpi: 112 size: 310x170mm (12.2x6.7")
  diag: 354mm (13.9")
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2)
  v: 4.2 Mesa 21.2.5 compat-v: 3.0 direct render: Yes
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20
  class-ID: 0403
  Sound Server-1: ALSA v: k5.10.79-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.40 running: yes
  Device-1: Intel Centrino Wireless-N 2230 driver: iwlwifi v: kernel
  bus-ID: 03:00.0 chip-ID: 8086:0888 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: Lenovo driver: r8168 v: 8.049.02-NAPI modules: r8169 port: 2000
  bus-ID: 0c:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp12s0 state: down mac: <filter>
  WAN IP: <filter>
  Device-1: Intel Centrino Bluetooth Wireless Transceiver type: USB
  driver: btusb v: 0.8 bus-ID: 1-1.3:3 chip-ID: 8087:07da class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
  Message: No logical block device data found.
  Message: No RAID data found.
  Local Storage: total: 465.76 GiB used: 67.69 GiB (14.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST500LM030-2E717D
  size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
  type: HDD rpm: 5400 serial: <filter> rev: SDM1 scheme: GPT
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GT50N rev: LC02
  dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
  ID-1: / raw-size: 456.66 GiB size: 456.66 GiB (100.00%)
  used: 67.69 GiB (14.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
  uuid: 375e2536-afe5-413e-9a1a-2f5177f8cf09
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
  used: 568 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL
  uuid: 3E4C-EE2A
  ID-3: /home raw-size: 456.66 GiB size: 456.66 GiB (100.00%)
  used: 67.69 GiB (14.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
  uuid: 375e2536-afe5-413e-9a1a-2f5177f8cf09
  ID-4: /var/cache raw-size: 456.66 GiB size: 456.66 GiB (100.00%)
  used: 67.69 GiB (14.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
  uuid: 375e2536-afe5-413e-9a1a-2f5177f8cf09
  ID-5: /var/log raw-size: 456.66 GiB size: 456.66 GiB (100.00%)
  used: 67.69 GiB (14.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
  uuid: 375e2536-afe5-413e-9a1a-2f5177f8cf09
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
  dev: /dev/sda3 maj-min: 8:3 label: swap
  uuid: 183e087a-3569-41a5-950d-c07e3caa37ef
  Message: No unmounted partitions found.
  Hub-1: 1-0:1 info: Full speed or root hub ports: 3 rev: 2.0 speed: 480 Mb/s
  chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 1-1.3:3 info: Intel Centrino Bluetooth Wireless Transceiver
  type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s
  chip-ID: 8087:07da class-ID: e001
  Device-2: 1-1.4:4
  info: Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
  type: <vendor specific> driver: N/A interfaces: 1 rev: 1.0 speed: 12 Mb/s
  power: 100mA chip-ID: 147e:1002 class-ID: 0000
  Hub-3: 2-0:1 info: Full speed or root hub ports: 3 rev: 2.0 speed: 480 Mb/s
  chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 2-1.6:3 info: Acer ThinkPad Integrated Camera type: Video
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 200mA
  chip-ID: 5986:02d2 class-ID: 0e02
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-4:2 info: Logitech Wireless Receiver type: Mouse
  driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 50mA
  chip-ID: 046d:c542 class-ID: 0301
  Hub-6: 4-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
  System Temperatures: cpu: 29.8 C mobo: N/A
  Fan Speeds (RPM): cpu: 0
  Processes: 243 Uptime: 8m wakeups: 1 Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 Packages: pacman: 1250 lib: 370 Shell: Zsh v: 5.8
  default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.09