[solved] Powermanagement - Power down button does not work

  • After you guys put a check in power button and click on save did you click on the spinning arrows in the upper-right of the web-gui?????


    You can't just put the checkmark and the click on save. You need to apply the change by clicking on the spinning arrows.

  • hi all


    i did what was described regarding the powerbtn event, and all was there as described. The file existed and content was as described. Every time i changed something i click the spinning arrow (previous green light) as instructed in other topics ( :) ) . It seems the event is not triggered somehow , the instruction and folder mentionned in the shutdown command are correct. I verified that by doing the step manually. Problem is not solved, i'm sorry. i tried "touch powerbtn", nothing happened. Reading the help , this command is just to change the date/time of the file.


    i looked on google on regards of this acpi problem and found a possible direction , i just do not know where to place the command. Let me explain.


    Try running and press the button.
    acpi_listen
    If you see button events like "button/power PBTN 00000080 00000000" then it's needed to configure the acpi daemon.


    i have done , this and the press power button only shows when i previously typed the command acpid -n, this changes the way a pc reacts on a power button press. When login as root and type in the command acpi -n , then the powerbutton press reacts as it should do , shut the pc down.


    so where can i enter this instruction so it executes everytime i start my pc ??????

  • quoted from Mantis Bug-Tracker: #817

    Zitat von "votdev"

    Execute the following commands:

    Code
    update-rc.d acpid enable
    invoke-rc.d acpid start


    The final fix will be done in openmediavault 0.4.37 and 0.5.9.


    Please wait until 0.5.9 is out, upgrade and report back, thx

  • thanks all for the help and effort in getting this resolved.


    i tried these 2 instructions , but in my case they do not work without the "acpid -n " command , you need to enter this one or no powerbutton based shutdown will happen. Hope this is of any help to you to create a permanent fix.


    :D

    • Offizieller Beitrag

    You can add this option to /etc/default/openmediavault


    OMV_ACPID_OPTIONS="-n"


    Thus you are ensure that the option is set everytime OMV generates the acpid config files.


    Adding this as permanent option to OMV is no good because it might break functionality on systems that do not like this option. If we are sure that it works on EVERY system it is no problem to make it permanent.

  • Hello,
    first of all thanks to tekkbebe, thanks to Solo0815 and thanks to votdev.
    I checked the file "powerbtn" and is correct:


    root @ OMV-PSRV :/ etc / acpi / events # ls-l
    total 4
    -rw-rw-rw-1 root root 171 10 September 20:03 powerbtn
    root @ OMV-PSRV :/ etc / acpi / events # cat powerbtn
    # / Etc / acpi / events / powerbtn
    # This is called When the user presses the power button
    event = button [/] power (Pwr. | | PBTN)
    action = / sbin / shutdown-h now "Power button pressed"
    root @ OMV-PSRV :/ etc / acpi / events #


    then I run the following commands:


    update-rc.d acpid enable
    invoke-rc.d acpid start


    root@OMV-PSRV:/etc/default# update-rc.d acpid enable
    update-rc.d: using dependency based boot sequencing
    root@OMV-PSRV:/etc/default# invoke-rc.d acpid start
    Loading ACPI kernel modules....
    Starting ACPI services....


    then i add OMV_ACPID_OPTIONS="-n" option

    and actually now the power button works until the next change in the configuration.


    I show process:


    After command update-rc.d and invoke-rc.d


    OMV-PSRV root @: ~ # ps-ef | grep acp
    root 22 2 0 20:31? 00:00:00 [kacpid]
    root 23 2 0 20:31? 00:00:00 [kacpi_notify]
    root 24 2 0 20:31? 00:00:00 [kacpi_hotplug]
    root 1218 1 0 20:31? 00:00:00 / usr / sbin / acpid -n
    root 1843 1820 0 20:32 pts / 0 00:00:00 grep acp


    after change (check disabled) in openmediavault console config menu "System -> Power Management" button and apply:


    OMV-PSRV root @: ~ # ps-ef | grep acp
    root 22 2 0 20:31? 00:00:00 [kacpid]
    root 23 2 0 20:31? 00:00:00 [kacpi_notify]
    root 24 2 0 20:31? 00:00:00 [kacpi_hotplug]
    root 2079 1820 0 20:33 pts / 0 00:00:00 grep acp


    after change (check disabled) in openmediavault console config menu "System -> Power Management" button and apply:


    OMV-PSRV root @: ~ # ps-ef | grep acp
    root 22 2 0 20:31? 00:00:00 [kacpid]
    root 23 2 0 20:31? 00:00:00 [kacpi_notify]
    root 24 2 0 20:31? 00:00:00 [kacpi_hotplug]
    root 2314 1820 0 20:33 pts / 0 00:00:00 grep acp
    OMV-PSRV root @: ~ #


    but acpid in not restarted


    I have 0.5.8, i will wait 0.5.9.
    Thanks to all,
    Greetings.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!