OK, it's too soon to tell, but I think I just made Moode behave with the power button. I don't use any display so that part will have to be for someone else...
To make the power button (and LED) work, start with the tutorial for Volumio. Both systems use Debain, so installing wiringPi etc. is the same procedure.
Follow until step 4, where it gets a little different, but not much. There is (of course) no Volumio directory so just skip the cd /home/volumio command. The scripts will be downloaded into the home directory which is just fine.
Step 5 is also different. We do cd to the /var/www/command directory, but we backup 'worker.php' (in stead of player_wrk.php). So the command here will be
Now we will replace the worker.php with the attached file. For those interested, the changes are in lines 713 to 723. In stead of just issuing the shutdown or reboot command, it now calls the scripts downloaded above. Anyhow, you'll have to move the modified worker.php into the /var/www/command directory. I did this by first copying the file (unzip it first) from my Mac to the USB drive attached to the Pi and than
Code : Tout sélectionner
sudo cp /media/PiMuziek/stuff/worker.php /var/www/command/worker.php
Where PiMuziek is the name of my USB drive, change this to whatever you are using.
Now type
and you should have a working power button. I did not test this very well, but so far it seems to work for me. I don't take any responsibility for anybody trying this, try at your own risk etc. etc.
Let me know if it works for you too,
Cheers,
Arjen
Oops, embarrassing... I uploaded the wrong worker.php file. So if you downloaded the file before this edit, please re-download.