joseluis / huion-linux-drivers

Linux user-space drivers for Huion Graphic Tablets
MIT License
168 stars 95 forks source link

Add systemd service file to enable driver autostart with udev rule #83

Open lynxhug opened 4 years ago

lynxhug commented 4 years ago

Hello i added driver autostart for tablet with uclogic driver on detevtion event via systemd and udev.

To enable it you need to copy udev rule to /etc/udev/rules.d, service to /etc/systemd/system, your config file to /etc/huion folders respectively. Change user and edit path to script in service file or better place it in that path. # udevadm control --reload-rules; systemctl enable huion-tablet-driver; systemctl start huion-tablet-driver and you are done.

Also there is minor change to py script to search configuration in /etc/huion/config.ini location if none present in working dir.