-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Amiberry activity leds (DF0: etc.) not working #5536
Comments
Many thanks for your report. Did this work with the version we provided before DietPi v8.5? Are there probably some related error logs, either: journalctl -u amiberry or when you hit ALT+F3 to switch to TTY3 console where Amiberry runs on? I see now there is a new optional build option @midwan |
@MichaIng |
Hmm, on DietPi, Amiberry (still) runs as root, though I actually want to change this when I find time. So at least there shouldn't be permission issues. |
I think it was when running as root that it didn't work actually. Perhaps |
Alternatively, perhaps the console it's running under has something to do with it. |
Usually root has simply full permissions for everything, at least when it's about file permissions, it doesn't need to be member of any group and can even edit 000 mode files etc. But I'm not 100% sure how it is with system calls. We use KMS/DRM, on RPi with DispmanX, so no X server involved. It's started as systemd service with |
Hm, could it be that starting it as a service is related then? |
@DJP75 usermod -aG tty,input root And if it doesn't help, following midwan's idea: export LD_LIBRARY_PATH=/mnt/dietpi_userdata/amiberry/lib
cd /mnt/dietpi_userdata/amiberry
/mnt/dietpi_userdata/amiberry/amiberry |
Wow! The second solution works!! If i understood,it doesnt work using amiberry as a service. I'm using amiberry fast boot,how can i apply the fix? Thanks |
Interesting, so it is related to the systemd service environment somehow. The service does basically the same, but only switches to a different TTY to keep the main TTY free from keyboard input spam and avoid interference with Amiberry and ongoing boot messages. Could be actually tested if this is still required with latest SDL2:
Is it probably required to set |
I've fiddled a bit with the config but my knownledge of linux is very limited. No LED running as a service 😔Maybe it needs to be fixed by the developer of amiberry? |
Since it depends on the environment, it's not a bug of Amiberry but we need to test/figure out what is missing in the systemd units environment 🙂. |
It can be replicate quite easily: setleds +num # numlock enabled
setleds -num # numlock disabled
systemd-run setleds +num # nothing changes This is since cat << '_EOF_' > lib/systemd/system/amiberry.service
[Unit]
Description=Amiberry Amiga Emulator (DietPi)
Documentation=https://github.com/BlitterStudio/amiberry/wiki
[Service]
WorkingDirectory=/mnt/dietpi_userdata/amiberry
Environment=LD_LIBRARY_PATH=/mnt/dietpi_userdata/amiberry/lib
StandardInput=tty
TTYPath=/dev/tty3
ExecStartPre=/bin/chvt 3
ExecStart=/mnt/dietpi_userdata/amiberry/amiberry
ExecStopPost=/bin/chvt 1
[Install]
WantedBy=local-fs.target
_EOF_
systemctl daemon-reload
systemctl start amiberry |
Fixed with: f2684fb Builds are currently running: https://github.com/MichaIng/DietPi/actions/runs/4028173471 |
Great, many thanks for testing. I moved the builds to stable downloads as well, so issue can be indeed closed. |
Hi. I'm facing the same problem on ARM and x86 boards. You may want to take a look at @midwan's linked issue. export LD_LIBRARY_PATH=/mnt/dietpi_userdata/amiberry/lib There's no /lib directory under amiberry code. Is this something available only for DietPi? I guess not but still... thanks |
Creating a bug report/issue
Additional Information (if applicable)
Steps to reproduce
Expected behaviour
Actual behaviour
Extra details
The text was updated successfully, but these errors were encountered: