KVMD 1.101: Improvement for the HDMI USB dongle
The main change in this release concerns the internals of Pi-KVM.
About a year ago, the Linux kernel interface, which is used by most applications on the Raspberry Pi that work with GPIO, was deprecated (sysfs/gpiomem). This was replaced by the character device /dev/gpiochipX
.
It is stated that the old interface will be removed in 2020, that is, very soon. Existing GPIO libraries for Python and C will also stop working: RPi.GPIO, pigpio, wiringpi and other.
It seems that the coming year will be fun for many projects that use the old library. For this reason, I got rid of RPi.GPIO and now KVMD uses libgpiod, a library for working with GPIO recommended and supported by kernel developers.
GPIO changes will not affect those who simply use this to control the ATX or control the KVM switch. However, those who use custom GPIO in Pi-KVM should know that it is no longer possible to save the pin state for GPIO (this is the kernel limitation) using option initial=null
. In other words, when KVMD is restarted, the state of the relay connected to the GPIO will be reset to logic 0.
With the exception of this, the new library allowed KVMD to get rid of active GPIO state polling cycles, as well as crutches around kvmd-cleanup (does anyone even know what this is lol?). I have thoroughly tested this release and everything should be OK. However, if you notice any oddities, please let me know.
To update:
rw
pacman -Syu
reboot