Last active
May 24, 2025 12:07
-
-
Save ardera/ae9e887dd88ec99b2f90306c742aa7b0 to your computer and use it in GitHub Desktop.
Setup Chalkboard Electronics 7" hwdb properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
if [ $(id -u) -ne 0 ]; then | |
echo "Script must be run as root." | |
exit 1 | |
elif [ ! -d "/etc/udev/hwdb.d" ]; then | |
echo "Directory /etc/udev/hwdb.d was not found. Check your system is running hwdb." | |
exit 1 | |
fi | |
cat <<EOF >/etc/udev/hwdb.d/61-evdev-local.hwdb | |
evdev:input:b0003v04D8pF723* | |
EVDEV_ABS_00=::8 | |
EVDEV_ABS_01=::8 | |
EOF | |
systemd-hwdb update | |
udevadm trigger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: