power management – close lid – shutdown

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.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4309
    Member
    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 nothing

      My 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,
      Fonsis

      Best regards,
      Fonsis
      πŸ™‚

      #4311
      Anonymous
        Helpful
        Up
        0
        ::

        your stated goal is inadvisable
        and
        as a practical matter, one cannot install systemd in antiX

        #4320
        Member
        Fonsis
          Helpful
          Up
          0
          ::

          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,
          Fonsis

          Best regards,
          Fonsis
          πŸ™‚

          #4322
          Forum Admin
          Dave
            Helpful
            Up
            0
            ::

            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

            #4325
            Forum Admin
            dolphin_oracle
              Helpful
              Up
              0
              ::

              dang it.

              on the old forum I had a post with how to do this with upower. give me a bit.

              #4326
              Forum Admin
              dolphin_oracle
                Helpful
                Up
                0
                ::

                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.

                #4327
                Forum Admin
                dolphin_oracle
                  Helpful
                  Up
                  0
                  ::

                  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.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.