Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Avoid suspend after closing laptop lid
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu Apr 18, 2024 6:19 am    Post subject: Avoid suspend after closing laptop lid Reply with quote

Hi,

on Xfce I can disable the suspend-to-ram when closing the lid. But without login or without X, the laptop tries to go to standby and crashes as expected (don't know why, using the universal gentoo-kernel-bin)..
How can I prevent this, when using OpenRC?
I found in sys-power/acpid, something around these files:
Code:
/etc/acpi/actions/lm_lid.sh
/etc/acpi/events/lm_lid
/lib/udev/lmt-udev
But I don't see any configuration file. How can I disable the suspend on lid close?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu Apr 18, 2024 6:23 am    Post subject: Reply with quote

I guess removing /etc/acpi/events/lm_lid is sufficient to avoid calling any handler on event=button[ /]lid.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum