You are not logged in.

#1 2022-02-02 19:44:37

i_write_LISP_code_in_vim
Member
Registered: 2022-02-02
Posts: 3

Laptop turns off insted of suspending, exept when when on AC

My laptop is a Dell Latitude 5480, with a fresh Arch linux install on it, Xorg, xscreensaver, xrandr, acpid and i3 installed. (xrandr has an xbacklight version different from the xorg-xbacklight packige.)

If the laptop is on AC, and I close the lid, it suspends, and when I open the lid, it "turns back on" without a problem.

If I run "$systemctl suspend", it sudpends, and I can "turn it back on" with the power button.

If howewer I close the lid, when not on AC, the laptop shuts down.

If I run $systemctl suspend", and than close the lid, it shuts down.

I have tried set /etc/systemd/logind.conf the relevant variables as follows:
HandlePowerKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend

I have also tried to set "ignore" insted of "suspend", didn't seem to change anything.

I have altered the relevant part of /etc/acpid/handler.sh as suggested on the archwiki forum ( https://wiki.archlinux.org/title/acpid# … _is_closed ).

I have run acpi_listen and closed the lid, the acpid message is the following:
"buton/lid LID close"

I have been looking for solutions on the web, but the suggestions for solving similar problems usally were the ones i already tried, so I don't really know, what else shuld I try, or look after, so thank you for any help in advance!

Edit: misspelling

Last edited by i_write_LISP_code_in_vim (2022-02-02 20:48:15)

Offline

Board footer

Powered by FluxBB