I wanted combine OSMC on my RasPi 4 with my home automation system FHEM, which needs access to UART via ttyAMA0 for one of my radio modules.
To do so I needed to add this to /boot/config-user.txt
, and run the following lines.
sudo systemctl stop serial-getty@ttyAMA0.service sudo systemctl disable serial-getty@ttyAMA0.service sudo systemctl mask serial-getty@ttyAMA0.service sudo shutdown -r now
Unfortunately, after the reboot I did not get my TV connected via HDMI anymore.
I was able to get the HDMI back working by restarting the serial-getty@ttyAMA0.service, but obviously this does not solve the problem.
Any ideas how to get this configuration working?