Hi,
unfortunately I have the following problem:
When I press my power button while manjaro is running and in AC powered mode, it works normally (in my case a screen pops up asking what to do now (shutdown, restart, …).
When I press the button running the laptop from battery, nothing happens at all! Also when closing the lid, on reopening, the laptop is frozen or at least I can’t find a way to wake it up again…
The only thing that still works (as far as I know) is pressing the power button for some seconds to shutdown the laptop entirely.
can anyone help on this?
Installed Kernel:
5.16.20-2-MANJARO
I have read an article from the manjaro tutorial section talking about still being able to control some stuff with some “magical” special linux keyboard shortcuts. But I cannot get these to work at all for my laptop (lenovo ideapad).
Here’s the tutorial:
Difficulty: ★★☆☆☆
This tutorial was created because people are using a hard power off during freezes, so this will teach you how to turn off your computer when everything is frozen using softer means.
So whenever you see someone saying they had to “Power Off” or “Hard Reset” their system without doing a REISUB, please send them here!
If you’re reading this in response to a question, please click the green link above this text to bring you to the full unabridged text of the tutorial…
Here’s an overview of the “magical shortcut” stuff:
The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low-level commands regardless of the system's state. It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem. Its effect is similar to the computer's hardware reset button (or power switch) but with many more options and much more control.
This key combination provides access to features for disaster recovery. In this sense, it can be con...
captainjerk01:
When I press my power button while manjaro is running and in AC powered mode, it works normally (in my case a screen pops up asking what to do now (shutdown, restart, …).
When I press the button running the laptop from battery, nothing happens at all!
Have you checked the Power Settings?
https://docs.xfce.org/xfce/xfce4-power-manager/preferences
captainjerk01:
When I press the button running the laptop from battery, nothing happens at all! Also when closing the lid, on reopening, the laptop is frozen or at least I can’t find a way to wake it up again…
Ahoy cap’n,
Is it a Lenovo laptop? When you close the lid, do you have it set to Suspend? Assuming so, Does the laptop suspend & recover correctly if you choose ‘suspend’ directly in the desktop panel?
Kernel 5.16 is EOL, so to get good advice in the forums you’ll probably need to update that. 5.17 should be fine.
It might help others too if you can post the terminal output of:
inxi --admin --verbosity=7 --filter --width
Yes I have. Under tab “general” if have set everything to “ask”.
I tried other settings but that did not have any effect. It works fine when the laptop is plugged to AC.
Riquez:
Ahoy cap’n,
Is it a Lenovo laptop? When you close the lid, do you have it set to Suspend? Assuming so, Does the laptop suspend & recover correctly if you choose ‘suspend’ directly in the desktop panel?
Yes, it’s a Lenovo!
IdeaPad 5 Pro 14ACN6
Yes, exactly, it is set to “suspend”. And yes, if i choose suspend with the desktop gui then it suspends and recovers correctly.
I’ll try to install the newest kernel later, thanks for the hint!
Just have to check out before how to do it
Thanks a lot for helping so far!
Output of command
inxi --admin --verbosity=7 --filter --width
System:
Kernel: 5.16.20-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.16-x86_64
root=UUID=90e48791-b397-407a-9cb7-2e3ce448f02a rw quiet apparmor=1
security=apparmor udev.log_priority=3
Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29 info: xfce4-panel wm: xfwm
v: 4.16.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82L7 v: IdeaPad 5 Pro 14ACN6
serial: Chassis: type: 10 v: IdeaPad 5 Pro 14ACN6
serial:
Mobo: LENOVO model: LNVNB161216 v: No DPK serial:
UEFI: LENOVO v: GECN29WW(V1.13) date: 01/12/2022
Battery:
ID-1: BAT1 charge: 40.0 Wh (70.1%) condition: 57.1/56.5 Wh (101.1%)
volts: 12.1 min: 11.5 model: 0x53 0x75 0x6E 0x77 0x6F 0x64 0x 0x4C 0x32
0x30 0x44 0x33 0x50 0x5650
type: Li-ion serial: status: discharging cycles: 9
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M215 2nd Gen
serial: charge: 100% (should be ignored) rechargeable: yes
status: discharging
Device-2: hidpp_battery_1 model: Logitech Wireless Keyboard K330
serial: charge: 55% (should be ignored) rechargeable: yes
status: discharging
Memory:
RAM: total: 13.57 GiB used: 1.85 GiB (13.7%)
RAM Report:
permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 7 5800U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000C
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 1399 high: 1455 min/max: 1600/4505 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 1455 2: 1397
3: 1396 4: 1396 5: 1396 6: 1396 7: 1397 8: 1395 9: 1390 10: 1395 11: 1395
12: 1397 13: 1395 14: 1395 15: 1395 16: 1397 bogomips: 60704
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown 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: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA TU117M [GeForce MX450] vendor: Lenovo driver: nvidia
v: 510.68.02 alternate: nouveau,nvidia_drm pcie: gen: 3 speed: 8 GT/s
lanes: 4 link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:1f97 class-ID: 0302
Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
active: HDMI-A-1 off: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0
chip-ID: 1002:1638 class-ID: 0300
Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
bus-ID: 1-3:2 chip-ID: 04f2:b6be class-ID: fe01 serial:
Display: x11 server: X.Org v: 21.1.3 compositor: xfwm v: 4.16.1 driver: X:
loaded: amdgpu,nvidia unloaded: modesetting,nouveau alternate: fbdev,nv,vesa
gpu: amdgpu display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1680x1050 s-dpi: 96 s-size: 445x278mm (17.52x10.94")
s-diag: 525mm (20.66")
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: primary model: Acer V223W
serial: built: 2009 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2
size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes:
max: 1680x1050 min: 720x400
Monitor-2: eDP-1 mapped: eDP note: disabled model: AU Optronics 0xc391
built: 2020 res: 1680x1050 dpi: 243 gamma: 1.2 size: 301x188mm (11.85x7.4")
diag: 355mm (14") ratio: 16:10 modes: max: 2880x1800 min: 640x480
Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
driver: snd_rn_pci_acp3x v: kernel alternate: snd_pci_acp3x,snd_pci_acp5x
pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
Device-4: Texas Instruments PCM2902 Audio Codec type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-2:2 chip-ID: 08bb:2902
class-ID: 0300
Sound Server-1: ALSA v: k5.16.20-2-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: Lenovo driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
bus-ID: 02:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlp2s0 state: up mac:
IP v4: type: dynamic noprefixroute scope: global
broadcast:
IP v6: type: dynamic noprefixroute scope: global
IP v6: type: dynamic noprefixroute scope: global
IP v6: type: noprefixroute scope: link
WAN IP:
Bluetooth:
Device-1: Foxconn / Hon Hai Wireless_Device type: USB driver: btusb v: 0.8
bus-ID: 3-4:3 chip-ID: 0489:e0cd class-ID: e001 serial:
Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 476.94 GiB used: 36.47 GiB (7.6%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: MZVLB512HBJQ-000L2 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial:
rev: 3L1QEXF7 temp: 39.9 C scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 146.48 GiB size: 143.13 GiB (97.71%)
used: 36.47 GiB (25.5%) fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4
label: N/A uuid: 90e48791-b397-407a-9cb7-2e3ce448f02a
ID-2: /boot/efi raw-size: 1000 MiB size: 998 MiB (99.80%)
used: 4.6 MiB (0.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
label: EFI BOOT uuid: BF92-B71F
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
uuid: 7484ea3a-c35d-4e07-865e-abd8f1a1c88b
Unmounted:
ID-1: /dev/nvme0n1p10 maj-min: 259:10 size: 100 MiB fs: ext4 label: reserve2
uuid: 47727c43-790c-49e0-8456-ebd56fcbe46b
ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 1000 MiB fs: vfat label: N/A
uuid: 7DC6-6710
ID-3: /dev/nvme0n1p5 maj-min: 259:5 size: 146.48 GiB fs: ext4 label: N/A
uuid: 502fb9f9-ed88-4b00-a371-d55dd6e7e1bc
ID-4: /dev/nvme0n1p6 maj-min: 259:6 size: 39.06 GiB fs: ext4
label: Linux Secure uuid: 633e4f0c-8430-4561-93f7-99daa3ffdaa9
ID-5: /dev/nvme0n1p7 maj-min: 259:7 size: 34.18 GiB fs: ext4
label: Linux Test uuid: 41b36c45-838a-4225-be24-1f124c1a17ae
ID-6: /dev/nvme0n1p8 maj-min: 259:8 size: 48.83 GiB fs: ext4
label: Linux Sound uuid: 7f8bf7c5-c2a9-4c9b-9314-717aa25b7fc3
ID-7: /dev/nvme0n1p9 maj-min: 259:9 size: 100 MiB fs: ext4 label: reserve1
uuid: 0d7bc44c-1e67-4799-839f-15f5ef51e541
USB:
Hub-1: 1-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
Hub-2: 1-2:3 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s
power: 100mA chip-ID: 1a40:0101 class-ID: 0900
Device-1: 1-2.4:4 info: Logitech Unifying Receiver
type: Keyboard,Mouse,HID driver: logitech-djreceiver,usbhid interfaces: 3
rev: 2.0 speed: 12 Mb/s power: 98mA chip-ID: 046d:c52b class-ID: 0300
Device-2: 1-3:2 info: Chicony Integrated Camera type: Video
driver: uvcvideo interfaces: 5 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 04f2:b6be class-ID: fe01 serial:
Hub-3: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-4: 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-2:2 info: Texas Instruments PCM2902 Audio Codec
type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 08bb:2902 class-ID: 0300
Device-2: 3-4:3 info: Foxconn / Hon Hai Wireless_Device type: Bluetooth
driver: btusb interfaces: 3 rev: 2.1 speed: 480 Mb/s power: 100mA
chip-ID: 0489:e0cd class-ID: e001 serial:
Hub-5: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 46.0 C mobo: N/A gpu: amdgpu temp: 46.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 362 Uptime: 4m wakeups: 9 Init: systemd v: 250 tool: systemctl
Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 1245 pacman: 1241 lib: 331
flatpak: 0 snap: 4 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
inxi: 3.3.15
Great. I forgot to mention, please edit your post & enclose the terminal output with 3 backticks ` , as it makes it easier for people to read & give advice. ~ like this
```
text
```
Thanks!
This tutorial is superseded by this one. Remember all Tutorials are wiki posts that can be edited by TL2 (Trust Level 2) members and above.
Welcome to Manjaro!
To allow all of us helpful people on this forum TO HELP YOU, we need some basic information about your system. This probably means you described the symptoms of your problem, but now we need some more information to know where the origin of your issue is exactly.
Someone else probably linked you to…