Power button package


Recommended Posts

Thanks for the help! It is working for me now, this is what I did.

 

DS918+ DSM 6.2.2-24922 Update 5

downloaded package from the link on the previous page.

checksum
Name: POWERBUTTON_6.2-0002.SPK
Size: 109056 bytes (106 KiB)
SHA256: F0D06DE8AF97058994F5EBFD5E1156BA8DAA670EF6277F600779A44A412B3875

downloaded extra driver file
checksum
Name: extra918plus_v0.8_std.zip
Size: 12775750 bytes (12 MiB)
SHA256: F611BCA5457A74AE65ABC4596F1D0E6B36A2749B16A827087D97C1CAF3FEA89A


uninstalled the power button package
reinstalled the power button package

extracted extra.lzma from that

extracted extra from that

extracted these two files from there
Name: button.ko
Size: 13368 bytes (13 KiB)
SHA256: 5BF59F946E6C4B3F7F52BE86072C1CA5654336E244A908C5507CE434A8A74D43
Name: evdev.ko
Size: 23816 bytes (23 KiB)
SHA256: 07B0D5894652EAEEDB6AC84899DC4FFD2D3B2254BEA9B24C953E9EE253956AC2
place on a NAS volume

using midnight commander I overwrote
Name: /usr/lib/modules/update/button.ko
Size: 13907 bytes (13 KiB)
SHA256: B9D8B2F9B4CF9BFD6740016BEC8ABEE073C2F1E92D55FD25CDBF3F2ADA1A2822

and I overwrote
Name: /usr/lib/modules/update/evdev.ko
Size: 23816 bytes (23 KiB)
SHA256: 07B0D5894652EAEEDB6AC84899DC4FFD2D3B2254BEA9B24C953E9EE253956AC2

set permissions on both files at destination to be root root 100644

restart

/dev/input/-event0
/dev/input/-event1
/dev/input/-event2
/dev/input/-event3
these existed but appear to invalid? files

/sys/class/input/~event0 
/sys/class/input/~event1
/sys/class/input/~event2
/sys/class/input/~event3
/sys/class/input/~input0
/sys/class/input/~input1
/sys/class/input/~input2
/sys/class/input/~input3
also existed but were 0 bytes

found these searching for "button"
   23.268742] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:0                                                   0/input/input0
[   23.268745] ACPI: Sleep Button [SLPB]
[   23.268763] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:0                                                   0/input/input1
[   23.268764] ACPI: Power Button [PWRB]
[   23.268783] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/inp                                                   ut2
[   23.268784] ACPI: Power Button [PWRF]

[  120.356664] evdev: version magic '4.4.59 SMP preempt mod_unload ' should be '                                                   4.4.59+ SMP preempt mod_unload '
[  120.372858] button: version magic '4.4.59 SMP preempt mod_unload ' should be                                                    '4.4.59+ SMP preempt mod_unload '

Link to post
Share on other sites

@mervincm, I followed your instruction but it doesn't seem to work for me. is there anyway to debug this? I am using Jun 1.04b loader for ds918+ 6.2.2 24922 (https://archive.synology.com/download/DSM/release/6.2.2/24922/DSM_DS918+_24922.pat) with 0.8_recovery ds918+ (http://s000.tinyupload.com/?file_id=02568989419278984390) from IG-88 and POWERBUTTON_6.2-0002.SPK. I am using Supermicro x10sdv-4c-tln2f. I can shutdown properly using the web interface. Here is my step to install:

1. uninstalled the mentioned.spk

2. reinstalled the mentioned .spk

3. extracted button.ko and evdev.ko from 0.8_recovery ds918+

4. overwrite the two ko in /usr/lib/modules/update with the extracted one.

5. restart

I see the following

=======

edwin@jarvis:/$ ls -l /dev/input/
total 0
crw------- 1 root root 13, 64 Feb 29 22:01 event0
crw------- 1 root root 13, 65 Feb 29 22:01 event1
crw------- 1 root root 13, 66 Feb 29 22:01 event2
crw------- 1 root root 13, 67 Feb 29 22:01 event3
crw------- 1 root root 13, 68 Feb 29 22:01 event4

=======

edwin@jarvis:/$ ll /sys/class/input/
total 0
drwxr-xr-x  2 root root 0 Feb 29 22:01 .
drwxr-xr-x 59 root root 0 Feb 29 22:01 ..
lrwxrwxrwx  1 root root 0 Feb 29 22:12 event0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0
lrwxrwxrwx  1 root root 0 Feb 29 22:12 event1 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:0B38:0010.0001/input/input1/event1
lrwxrwxrwx  1 root root 0 Feb 29 22:12 event2 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:0B38:0010.0002/input/input2/event2
lrwxrwxrwx  1 root root 0 Feb 29 22:12 event3 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:0557:2419.0003/input/input3/event3
lrwxrwxrwx  1 root root 0 Feb 29 22:12 event4 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:0557:2419.0004/input/input4/event4
lrwxrwxrwx  1 root root 0 Feb 29 22:12 input0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
lrwxrwxrwx  1 root root 0 Feb 29 22:12 input1 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:0B38:0010.0001/input/input1
lrwxrwxrwx  1 root root 0 Feb 29 22:12 input2 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:0B38:0010.0002/input/input2
lrwxrwxrwx  1 root root 0 Feb 29 22:12 input3 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:0557:2419.0003/input/input3
lrwxrwxrwx  1 root root 0 Feb 29 22:12 input4 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:0557:2419.0004/input/input4

=======

edwin@jarvis:/$ dmesg | grep Button
[   21.134670] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[   21.134675] ACPI: Power Button [PWRB]

=======

dmesg gave me the following

[   34.766347] evdev: version magic '4.4.59 SMP preempt mod_unload ' should be '4.4.59+ SMP preempt mod_unload '
[   34.803902] button: version magic '4.4.59 SMP preempt mod_unload ' should be '4.4.59+ SMP preempt mod_unload '

Edited by whatever000
Link to post
Share on other sites

@mervincm I got this figured out. Just want to report back my findings in case someone has a supermicro board. It turns out there is a BIOS setting in Supermicro "Power button behaviour". You can choose between "instant off" or "4 sec override". The correct setting for the power button to work is "instant off"

 

Here is the details log

 

edwin@jarvis:/$ dmesg | grep Button
[   21.328442] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[   21.328447] ACPI: Power Button [PWRB]
[   21.328497] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[   21.328499] ACPI: Power Button [PWRF]
edwin@jarvis:/$ dmesg | grep button
[   35.696225] button: version magic '4.4.59 SMP preempt mod_unload ' should be '4.4.59+ SMP preempt mod_unload '
edwin@jarvis:/$ ls /dev/input/
event0  event1  event2  event3  event4  event5
edwin@jarvis:/$ ls -l /dev/input/
total 0
crw------- 1 root root 13, 64 Feb 29 23:33 event0
crw------- 1 root root 13, 65 Feb 29 23:33 event1
crw------- 1 root root 13, 66 Feb 29 23:33 event2
crw------- 1 root root 13, 67 Feb 29 23:33 event3
crw------- 1 root root 13, 68 Feb 29 23:33 event4
crw------- 1 root root 13, 69 Feb 29 23:33 event5
edwin@jarvis:/$ ls -l /sys/class/input/
total 0
lrwxrwxrwx 1 root root 0 Feb 29 23:39 event0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0
lrwxrwxrwx 1 root root 0 Feb 29 23:39 event1 -> ../../devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1
lrwxrwxrwx 1 root root 0 Feb 29 23:39 event2 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:0B38:0010.0001/input/input2/event2
lrwxrwxrwx 1 root root 0 Feb 29 23:39 event3 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:0B38:0010.0002/input/input3/event3
lrwxrwxrwx 1 root root 0 Feb 29 23:39 event4 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:0557:2419.0003/input/input4/event4
lrwxrwxrwx 1 root root 0 Feb 29 23:39 event5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:0557:2419.0004/input/input5/event5
lrwxrwxrwx 1 root root 0 Feb 29 23:39 input0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
lrwxrwxrwx 1 root root 0 Feb 29 23:39 input1 -> ../../devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
lrwxrwxrwx 1 root root 0 Feb 29 23:39 input2 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:0B38:0010.0001/input/input2
lrwxrwxrwx 1 root root 0 Feb 29 23:39 input3 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:0B38:0010.0002/input/input3
lrwxrwxrwx 1 root root 0 Feb 29 23:39 input4 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:0557:2419.0003/input/input4
lrwxrwxrwx 1 root root 0 Feb 29 23:39 input5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:0557:2419.0004/input/input5
edwin@jarvis:/$
 

Edited by whatever000
Link to post
Share on other sites
  • 2 weeks later...
  • 3 weeks later...
10 hours ago, vanst said:

This package is not working for my NAS. When I perform a shutdown via web interface, the whole PC power off then power on again.

I am currently running DSM 6.2-23739 Update 2 with Jun's V1.03b DS3615xs's loader on  HP Proliant ML110 G4. Thanks!

 

its about getting the acpi power button to work, if you have general shutdown problems like yours (you cross posted here) then this package can't solve it

Link to post
Share on other sites
2 hours ago, IG-88 said:

 

its about getting the acpi power button to work, if you have general shutdown problems like yours (you cross posted here) then this package can't solve it

Thanks IG-88 for sharing the feedback. I will follow up on my topic then. 

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
On 12/31/2019 at 2:46 PM, IG-88 said:

just remove the button.ko and evdev.ko  from /usr/lib/modules

there are new one in /usr/lib/modules/update already

the plugin is not aware of the changes of 6.2.2 and blindly overwrites with old 6.2.0 files

the rest is fine, after removing the old/wrong files and rebooting your system should be able to use acpi power off

i'm using this with my dsm test vm's in virtualbox

 

the plugin needs to be extended for 6.2.2 and needs new button.ko/evdev.ko files (can be extraxted from my extra.lzma's)

 

Don't do that on 6.2.3   Old drivers working again. Just install POWERBUTTON_6.2-0002.SPK. It should work.

Link to post
Share on other sites

Just tested POWERBUTTON_6.2-0002.SPK on Proxmox 6.1-8 VM running latest verion DSM 6.2.3-25423 and it works fine. 

 

I can finally use Shutdown button from within Proxmox web to turn off the VM.  Thanks for the EASY BUTTON 😀!

Link to post
Share on other sites
  • 3 weeks later...
  • 2 months later...
On 2/17/2020 at 12:15 AM, IG-88 said:

reinstall the package, overwrite the files (old file date) with the new as you did before, reboot

try the shutdown by button, check the log (dmesg) for errors during boot (drivers loading) and the (attempted) shutdown

you can also look for whats in /dev/input/ and /sys/class/input/ there should be something if the drivers are loaded properly

 
 

 

Have not been able to get this to work.

Not seeing a /dev/input/ directory at all.

 

DSM 6.2.3-25426, Proxmox VE 6.2-10, POWERBUTTON_6.2-0002.SPK

Link to post
Share on other sites
  • 3 weeks later...

Morning All!

 

It looks like the package is no longer available on the site. I found a reddit post that links to a 3rd party site, but I'm wary of installing it (the site is all in Chinese). Could someone please post up the correct file for the 6.2 powerbutton package?

Link to post
Share on other sites
17 hours ago, wreslrstud said:

Morning All!

 

It looks like the package is no longer available on the site. I found a reddit post that links to a 3rd party site, but I'm wary of installing it (the site is all in Chinese). Could someone please post up the correct file for the 6.2 powerbutton package?

 

I attach the file

POWERBUTTON_6.2-0002.SPK

  • Like 1
Link to post
Share on other sites
  • 2 weeks later...
On 8/5/2020 at 12:36 PM, DeepK said:

 

Have not been able to get this to work.

Not seeing a /dev/input/ directory at all.

 

DSM 6.2.3-25426, Proxmox VE 6.2-10, POWERBUTTON_6.2-0002.SPK

 

Ok got this to work by disabling QEMU Guest Agent in Proxmox VM Options... for some reason this was enabled. 

After rebooting, pressing Shutdown in Proxmox dashboard works.

 

Success - DSM 6.2.3-25426, Proxmox VE 6.2-10, POWERBUTTON_6.2-0002.SPK

Link to post
Share on other sites
  • 5 weeks later...

the plugin copy's some older files (6.2.0) to a new 6.2.3 system in the "original" place where synology keeps its own drivers

 

cp -R ${SYNOPKG_PKGDEST}/modules/$DSM_VERSION/$DSM_PACKAGE/* /usr/lib/modules/

either it should not replace it if a (newer) driver is already present (usually evdev.ko) or should copy it to /usr/lib/modules/update/

the last might "collide" with whats coming from extra.lzma, on next boot the loader/patch will replace everything whats different with the content of the extra.lzma, but imho that should not be a problem as is the evdev.ko and button.ko are present and match the dsm version (as it should be for additional drivers) then the drivers coming from extra.lzma will be newer (and presumably better, if using the old 6.2.0 extra.lzma with 6.2.3 it will not get worth as the drivers in the package are 6.2.0 level)

in theory it should be possible to tweak the package aka mode the install script (breaks the signature if it has one, but when loading manually you are usually beyond the point where this is a concern), also possible would be to extend it to the special need of dsm 6.2.2 (would takesome more changes, nothing i would do)

 

any comments on the two possible ways of copying the *.ko files?

 

 

 

Link to post
Share on other sites
  • 1 month later...

Спасибо большое создателю! ❤️💣
2 года я мучился выключая свой NAS из веб интерфейса
случайно увидел эту тему на форуме, установил POWERBUTTON_6.2-0002 и всё заработало!
p.s.

MB Asrock H310, CPU Celeron G4900T
DS918+ DSM 6.2-23739

 

Link to post
Share on other sites
  • 2 weeks later...

Hi,

just to 

On 8/25/2020 at 8:45 AM, jarugut said:

 

Just to confirm that I did install it and it works! 

(although I have another problem with shutdown: Xpenology restart after shutdown and turning off. In few second computer starts again but as IG-88 already stated: this is another problem).

 

My configuration is:
Jun Mod v.1.03b

DS3615xs, Baremetal
DMS: DSM 6.2.3-25426
HW: Lenovo IdeaCentre D400

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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.