Skip to content
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

[s0] failed to set policy to SCHED_FIFO for counter_thread #7

Open
oxyde42 opened this issue May 23, 2024 · 0 comments
Open

[s0] failed to set policy to SCHED_FIFO for counter_thread #7

oxyde42 opened this issue May 23, 2024 · 0 comments

Comments

@oxyde42
Copy link

oxyde42 commented May 23, 2024

Erst einmal vielen Dank für das sehr nützliche Add-on.

Diese Fehlermeldung wird im Protokoll des Add-ons unmittelbar nach dem Start ausgegeben, weil die Thread-Policy nicht geändert werden kann. Ansonsten läuft S0 über einen GPIO-Pin recht zuverlässig - sicherlich nur mit der fehlenden Thread-Policy und deshalb mit ungenaueren Messwerten.
(Die größte Hürde für S0 war, die richtige Pin-Nummer zu finden. Da wäre eine kleine Hilfe für die aktuellen RPi-Systeme sicherlich hilfreich; in der echten 2222-SSH-Console: cat /sys/kernel/debug/gpio)

Ich möchte hierfür keinen extra Fork aufmachen. Vielleicht könnte die fehlende Eintragung, privileged: [ "SYS_NICE" ], in der config.json vorgenommen werden, um die notwendigen Rechte zu erteilen.
https://developers.home-assistant.io/docs/add-ons/configuration/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant