• [6.10-RC3] acpi_handler.sh not working after upgrade from 6.9.2 to 6.10-RC3


    JIll
    • Closed Minor

    First of all, sorry for my bad English.

     

    The power button of my server is located on the top of my machine and my cat always accidently (in purpose?) short press the power button, resulting my unraid to shutdown.

     

    In 6.9.2, I commented a line in   /etc/acpi/acpi_handler.sh to disable the power button action,  worked fine. 


    After upgrading to 6.10-RC3 today and I discover that this method is not working anymore. (my cat had shutdown my server twice today)

     

    Below is my acpi_handler.sh
    ========

    #!/bin/sh
    # Default acpi script that takes an entry for all actions

    IFS=${IFS}/
    set $@

    case "$1" in
      button)
        case "$2" in
    #     power) /sbin/init 0
             ;;
          *) logger "ACPI action $2 is not defined"
             ;;
        esac
        ;;
      *)
    #    logger "ACPI group $1 / action $2 is not defined"
        ;;
    esac

    ========

     

     




    User Feedback

    Recommended Comments

    Quote

    The power button of my server is located on the top of my machine and my cat always accidently (in purpose?) short press the power button, resulting my unraid to shutdown.

    I can't address the acpi handler issue, but I really recommend disconnecting the power button header from the motherboard. If your case has a reset button, it's usually much harder to hit by accident, so that's a good candidate for use as a power button.

     

    If you don't have IPMI or some other means of powering on, you could always either set the PC to boot immediately when it gets power, or attach a slot cover button.

    image.png.9f660edaffc0c515ecd74b4937372341.png

    Link to comment
    5 minutes ago, bonienl said:

    Put the hash sign (#) after "power)" and before "/sbin/init 0"

     

    Please close, this is not a bug!

     

    tried, not working

    I have also tried replace "/sbin/init 0" to another command, not working too.

    Every time I short pressing power button, then grace shutdown.

     

    If I cannot fix this problem, I think I will take @JonathanM's suggestion, set boot immediately when there is power and disconnecting the power button header from the motherboard.

     

    I will update the status to closed, if anyone need my DIAGNOSTICS please let me know. Thanks.

     

     

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.