Close

KVMD 1.101: Migrating to libgpiod

A project log for Pi-KVM

Open and cheap DIY IP-KVM on Raspberry Pi with Mass Storage, Mouse, VNC and much more

mdevaevmdevaev 09/17/2020 at 12:460 Comments

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.

More details

Discussions