You are not logged in.
Hello everyone
.
I am a new arch user who is just starting using it for a month. I am using hyprland compositor.
My laptop get force stopped everytime I close the lid. tried multiple method, still not work.
I'm using thinkbook 14 G6 IMH with Ultra7 155H cpu
-Have tried logind option, here is my logind file:
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
-Also tried configured the hyprland key bind , added following:
# Swtich
# trigger when the switch is turning on
bindl = , switch:on:Lid Switch, exec, systemctl suspend
# trigger when the switch is turning off
bindl = , switch:off:Lid Switch, exec, systemctl suspend
-Configured the hibernate using swap file and suspend and sleep option
systemctl hibernate and suspend both work as expected.
sleep option is set to s2idle (suspend to idle)
Could any Saver point me a clearer direction or possibility.
I am currently suspecting ACPI events, base on this post: https://wiki.archlinux.org/title/Power_management
but I have no clue how to properly troubleshoot it.
Last edited by 17fengb (2025-02-23 13:31:04)
Offline
Have checked your BIOS setting of the lid action?
Offline
Have checked your BIOS setting of the lid action?
here is my power setting in BIOS
Disable Built-in battery : Null
System Performance Mode: extreme performance
Flip to start: Disabled
Power-on with AC Attached: Disabled
Offline
The BIOS does not have specific detail about what it will do in lid close.
Offline
Try to uncomment the last line of /etc/systemd/logind.conf
HandleLidSwitch=suspendOffline
Try to uncomment the last line of /etc/systemd/logind.conf
HandleLidSwitch=suspend
It has already been uncommented. But it seems to work the same.
Currently I have these 3 option enabled in logind
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
Offline
Do:
cat /proc/acpi/wakeupIf LID0 appears Disabled, then try (as root):
# echo " LID" > /proc/acpi/wakeupLast edited by RatzingerZeta (2025-02-25 12:27:48)
Offline
Do:
cat /proc/acpi/wakeupIf LID0 appears Disabled, then try (as root):
# echo " LID" > /proc/acpi/wakeup
A bit strange. I am not able to see LID in the first command. And second command returns nothing.
I do found something related tho. I have a folder contend LID01 related stuff. Here is the full skeleton of the dir.
.../acpi/
---->wakeup
---->button/
--->lid/
--->LID0/
--->state
the content of the "state" file:
state: open
command output:
╭─winter ? ~
╰─ ❯❯ sudo cat /proc/acpi/wakeup
[sudo] password for winter:
Device S-state Status Sysfs node
AWAC S4 *disabled
XDCI S4 *disabled
GLAN S4 *enabled pci:0000:00:1f.6
XHCI S4 *enabled pci:0000:00:14.0
HDAS S4 *disabled pci:0000:00:1f.3
I3C0 S4 *disabled
CNVW S4 *disabled pci:0000:00:14.3
RP01 S4 *disabled
PXSX S4 *disabled
RP02 S4 *enabled pci:0000:00:1c.0
PXSX S4 *disabled pci:0000:32:00.0
RP03 S4 *disabled
PXSX S4 *disabled
RP04 S4 *disabled
PXSX S4 *disabled
RP05 S4 *disabled
PXSX S4 *disabled
RP06 S4 *disabled
PXSX S4 *disabled
RP07 S4 *disabled
PXSX S4 *disabled
RP08 S4 *disabled
PXSX S4 *disabled
RP09 S4 *enabled pci:0000:00:06.0
PXSX S4 *disabled
RP10 S4 *disabled
PXSX S4 *disabled
RP11 S4 *enabled pci:0000:00:06.2
PXSX S4 *disabled pci:0000:07:00.0
RP12 S4 *enabled pci:0000:00:01.0
PXSX S4 *disabled pci:0000:01:00.0
TXHC S4 *enabled pci:0000:00:0d.0
TDM0 S4 *disabled
TDM1 S4 *enabled pci:0000:00:0d.3
TRP0 S4 *disabled
PXSX S4 *disabled
TRP1 S4 *disabled
PXSX S4 *disabled
TRP2 S4 *enabled pci:0000:00:07.0
PXSX S4 *disabled
TRP3 S4 *disabled
PXSX S4 *disabled
PWRB S4 *enabled platform:PNP0C0C:00
# echo " LID" > /proc/acpi/wakeup
Offline
Please use [code][/code] tags. Edit your post in this regard.
What exactly do you mean by "force stopped"? Does it cut power *immediately* (ie. not flashing lights and maybe suspend and then just fails to wakeup etc?)
What happens if you "systemctl suspend" the system and then close the lid? Also immediate power loss?
Entering non-existent devices into the wakeup table is pointless, if there's no lid-adjacent entry this also just means that the lid cannot be used to wake the system.
More stuff:
1. does this also happen when the system is on external power supply?
2. does this happen when closing the lid from a boot only into the multi-user.target (2nd link below, no hyprland nor any other GUI environment)
3. did you install acpid?
Offline
Try this:
# mkdir /etc/acpi/localVim, nano or whatever you preffer:
# vim /etc/acpi/local/lid.shCopy this there:
#!/bin/bash
if grep -q closed /proc/acpi/button/lid/*/state
then
/usr/sbin/suspend
fiFinally:
# chmod 755 /etc/acpi/local/lid.sh
# systemctl restart acpid.serviceFound here --> https://bugs.launchpad.net/ubuntu/+sour … /863834#30
Offline
in the logind.conf change
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
to
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
otherwise when you shut your lid it will suspend your system. One drawback is that it will continue to draw power from the battery while the lid is closed. This is how I can use a laptop as a jellyfin server and have the lid closed. If the value is set to suspend it will suspend the system.
Hope this helps.
Last edited by gumbomanpat (2025-10-28 12:54:40)
Offline
Have you tried to blacklist the module ideapad_laptop recommended here?
https://bbs.archlinux.org/viewtopic.php?id=295464
Offline