Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › power management – close lid – shutdown
- This topic has 6 replies, 4 voices, and was last updated Dec 25-8:42 am by dolphin_oracle.
-
AuthorPosts
-
December 24, 2017 at 8:39 pm #4309Member
Fonsis
Hi guys,
is there a way in antix 17 to configure a power management tool to support shutdown when closing a laptop lid?
I tried xfce4 power manager, but it only offers hibernate, suspend, blank screen or do nothingMy goal is: close the lid and the laptop will do a full shutdown -P now
Should I give systemd a try or is this a bad idea?
(systemd is currently not installed)Thank you for your help. π
Best regards,
FonsisBest regards,
Fonsis
πDecember 24, 2017 at 10:13 pm #4311Anonymous
::your stated goal is inadvisable
and
as a practical matter, one cannot install systemd in antiXDecember 25, 2017 at 2:06 am #4320Member
Fonsis
::Ok, inadvisable or not.
I have used this “close lid – shutdown” option for years in other Linux distros and as far as I can remember there where never files gone with wind. It worked well.So, the question is, do we have a solution here for this issue.
Is there a power management system available in Debian / antix 17 which allows me to reach my goal: Close the laptop lid and system shuts down. (properly)Thank you.
π
Best regards,
FonsisBest regards,
Fonsis
πDecember 25, 2017 at 6:14 am #4322Forum Admin
Dave
::Having never done this myself… perhaps you could see it as a button event. Open terminal, run xev, and open / close the lid. If it shows a button event you would need to take that button event and put it in the window manager keys file for the shutdown command.
Other than that I think you would be looking at making an udev or acpid rule.
Here seems to be a decent example
custom scripts with acpid and udev (Ubuntu help)Edit: I would think to start half way down the page with the acpid rule and skip the dbus stuff.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
December 25, 2017 at 8:22 am #4325Forum Admin
dolphin_oracle
December 25, 2017 at 8:42 am #4326Forum Admin
dolphin_oracle
::Ok, I mis-remembered. Its not upower, its acpi-support.
You can edit /etc/default/acpi-support to change values. Its a well commented file. There are a couple of lid state options, one for suspend, one for shutdown. Just uncomment the one you want. I don’t think you even need to reboot or anything. acpi should be monitoring the lid switch already, and /etc/acpi/lid.sh should be executed. but it doesn’t do anything unless you configure /etc/default/acpi-support.
December 25, 2017 at 8:42 am #4327Forum Admin
dolphin_oracle
::Ok, I mis-remembered. Its not upower, its acpi-support.
You can edit /etc/default/acpi-support to change values. Its a well commented file. There are a couple of lid state options, one for suspend, one for shutdown. Just uncomment the one you want. I don’t think you even need to reboot or anything. acpi should be monitoring the lid switch already, and /etc/acpi/lid.sh should be executed. but it doesn’t do anything unless you configure /etc/default/acpi-support.
-
AuthorPosts
- You must be logged in to reply to this topic.