You are not logged in.

#1 2025-02-23 13:26:41

17fengb
Member
Registered: 2025-02-23
Posts: 5

hyprland - My laptop get force stopped when I close the lid

Hello everyone smile.

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

#2 2025-02-23 15:45:03

fam007e
Member
From: Dhaka, Bangladesh
Registered: 2024-05-04
Posts: 10
Website

Re: hyprland - My laptop get force stopped when I close the lid

Have checked your BIOS setting of the lid action?

Offline

#3 2025-02-24 10:04:38

17fengb
Member
Registered: 2025-02-23
Posts: 5

Re: hyprland - My laptop get force stopped when I close the lid

fam007e wrote:

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

#4 2025-02-24 10:05:30

17fengb
Member
Registered: 2025-02-23
Posts: 5

Re: hyprland - My laptop get force stopped when I close the lid

The BIOS does not have specific detail about what it will do in lid close.

Offline

#5 2025-02-25 04:53:39

RatzingerZeta
Member
From: BCN
Registered: 2025-02-13
Posts: 6

Re: hyprland - My laptop get force stopped when I close the lid

Try to uncomment the last line of /etc/systemd/logind.conf

HandleLidSwitch=suspend

Offline

#6 2025-02-25 07:33:27

17fengb
Member
Registered: 2025-02-23
Posts: 5

Re: hyprland - My laptop get force stopped when I close the lid

RatzingerZeta wrote:

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

#7 2025-02-25 12:25:57

RatzingerZeta
Member
From: BCN
Registered: 2025-02-13
Posts: 6

Re: hyprland - My laptop get force stopped when I close the lid

Do:

cat /proc/acpi/wakeup

If LID0 appears Disabled, then try (as root):

# echo " LID" > /proc/acpi/wakeup

Last edited by RatzingerZeta (2025-02-25 12:27:48)

Offline

#8 2025-02-27 08:04:51

17fengb
Member
Registered: 2025-02-23
Posts: 5

Re: hyprland - My laptop get force stopped when I close the lid

RatzingerZeta wrote:

Do:

cat /proc/acpi/wakeup

If 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

#9 2025-02-27 09:00:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: hyprland - My laptop get force stopped when I close the lid

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

#10 2025-02-27 09:17:07

RatzingerZeta
Member
From: BCN
Registered: 2025-02-13
Posts: 6

Re: hyprland - My laptop get force stopped when I close the lid

Try this:

# mkdir /etc/acpi/local

Vim, nano or whatever you preffer:

# vim /etc/acpi/local/lid.sh

Copy this there:

 #!/bin/bash
 if grep -q closed /proc/acpi/button/lid/*/state
 then
     /usr/sbin/suspend
 fi

Finally:

# chmod 755 /etc/acpi/local/lid.sh
# systemctl restart acpid.service

Found here --> https://bugs.launchpad.net/ubuntu/+sour … /863834#30

Offline

#11 2025-10-28 12:54:10

gumbomanpat
Member
Registered: 2025-10-28
Posts: 1

Re: hyprland - My laptop get force stopped when I close the lid

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

#12 2025-11-15 21:36:22

tropicalia
Member
Registered: 2025-11-13
Posts: 17

Re: hyprland - My laptop get force stopped when I close the lid

Have you tried to blacklist the module ideapad_laptop recommended here?
https://bbs.archlinux.org/viewtopic.php?id=295464

Offline

Board footer

Powered by FluxBB