You are not logged in.

#1 2024-03-18 00:01:50

UsernameDP
Member
Registered: 2024-01-17
Posts: 1

Hyprlock crashing on lid closed acpid

Hello I recently downloaded hyprland and I am trying to configure it so that when I close the lid, then I would launch hyprlock and systemctl suspend

I followed this thread and made sure to do the following :

In /etc/systemd/logind.conf

HandleLidSwitch=ignore

Installed and enabled acpid

 systemctl enable --now acpid 

In /etc/acpi/handler.sh I decided to write

   close)
        logger 'LID closed'
	exec hyprlock & systemctl suspend

However, when I run journalctl -f and close the lid, I get this core-dump error from hyprlock:

 Process 3069 (hyprlock) of user 0 dumped core.

                                                    Stack trace of thread 3069:
                                                    #0  0x000076ab9188bfdd n/a (libc.so.6 +
0x159fdd)
                                                    #1  0x00005c8ffd094a24 _ZNSt11char_traitsIcE6lengthEPKc (hyprlock + 0x40a24)
                                                    #2  0x00005c8ffd069b88 _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_ (hyprlock + 0x15b88)
                                                    #3  0x00005c8ffd061f28 _ZN14CConfigManagerC4Ev (hyprlock + 0xdf28)
                                                    #4  0x000076ab91757cd0 n/a (libc.so.6 +
0x25cd0)
                                                    #5  0x000076ab91757d8a __libc_start_main (libc.so.6 + 0x25d8a)
                                                    #6  0x00005c8ffd064ba5 _start (hyprlock
+ 0x10ba5)
                                                    ELF object binary architecture: AMD x86-64

systemctl suspend works perfectly fine, its just hyprlock. Also if I simply try running hyprlock in the terminal, it works perfectly fine, it only gives me this error when I run it upon closing the lid.

Last edited by UsernameDP (2024-03-18 00:03:38)

Offline

Board footer

Powered by FluxBB