New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] Add support for the Argon One case power button / safe shutdown script #789
Comments
It looks like the script installs some dependencies then a python daemon, it's very standard I think we should provide a generic way for users to use their own shutdown scripts instead of making 74 different images with one for each case |
There is also a fan speed script. @natinusala Basically, I see two design paths here:
Maybe there is some other way. :) There are pros and cons for each of them. LibreELEC has plugin infrastructure, but I'm not familiar with that and probably we would need to somehow modify retroarch to support such a thing. Also, it would not solve low-level stuff like case-specific device-tree files. |
Well adding a new BOARD for each case isn't maintanable, it adds 2 hours and 400mb to the release cycle |
BOARD directory is pretty lightweight, just some device-tree files and option tweaks. Probably they won't be modified anymore, so I don't see it unmaintainable. Increased build time of a complete release and storage requirements are the only cons here. |
Well, it does require us to maintain an entire version just for three python scripts and a background service 😅 |
So get rid of squashfs and become RetroPie :) |
My Argon One case arrived today and I have it installed. If there's any viability for offering these scripts, let me know if I can help test. |
@natinusala I've looked over the scripts for Argon One case again and you are right, no need for a separate BOARD. That's how I see it:
This way we will have support for Argon One case built in RPI3 project, which could be activated by adding some switch to kernel cmd line. What do you think? |
That sounds great! For other cases where dtbos are needed, we can have the systemd service copy the dtbo to the bootloader partition, alter config.txt and reboot. So that you add the kernel param, you boot, it copies the files and reboots, and you're all set |
Follow these instruction to install Argon One script on Lakka:
That's all! |
Thank you ilovelinux. |
Sorry for the late answer @Slybo. The script shouldn't affect bluetooth in any way. What board are you using? |
I rebuild the functionality of the Python script as a standalone executable. No need to install Python or any other programs anymore. Feel free to give it a try: |
Thank you very much. I’m currently lending my Lakka Pi to a coworker. I’ll give the new executable a try when I get it back.
…Sent from my iPhone
On Jun 3, 2020, at 3:31 PM, Ivo Palli ***@***.***> wrote:
I rebuild the functionality of the Python script as a standalone executable. No need to install Python or any other programs anymore. Feel free to give it a try:
https://github.com/RenHoekNL/argonONE
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello, "Lakka:~ /.config # systemctl enable argonONE The Powerbutton works but only for start, shut down and long press shut down. Reboot dont works. |
The systemd script didn't go to the right directory.. See the Readme on github (I fixed it) and start from
Reboot from the menu. Or just shut down and click again to power on. (The original script says you can reboot with a double click and shutdown by pressing the button for 3 seconds. This is not true. The long press will start a hardware controlled shutdown regardless from the state your system is in. To ensure a clean shutdown, I repurposed the double click to a shutdown since I can actually detect that and act on it without a timer starting to run in hardware.)
It should :) I'll probably add a commandline option to set the fan speed so you can test it. |
Reboot from the Lakka menu works, only the double click on the Button dont works. The 3 Sec. shutdown and 5 sec. Shutdown works |
I tested now your Update. I dont geht an Error now. |
This is the same thing. The 3 second shutdown is the same as the 5 second shutdown. It's a hardware controlled forced poweroff, is UNSAFE and can lead to corrupted filesystems.
Yes, that is what I changed.. Instead of a reboot it does a SAFE shutdown. So it waits until the Pi4 indicates it's ready to power off and then does so, not before. For reboots, use the Lakka menu. |
The Argon One case from Argon40 has a built-in power button with multiple features that allows for a safe shutdown or reboot. The Argon40 team has made a script available for this, located here: https://download.argon40.com/argon1.sh
I know Lakka already has support for some other cases and their included power buttons and scripts, but I don't believe this one is included. I'd love to see it. I don't yet have my case because they have a shipping backlog, but when I get it I would be happy to help test.
The text was updated successfully, but these errors were encountered: