-
Check logs:
journalctl --user -u huion-keydial-mini-user.service -f
-
Verify uinput access:
Shouldn't be necessary if running as a user service
ls -la /dev/uinput groups $USER # Should include 'input'
-
Check Bluetooth permissions:
bluetoothctl list
-
Check if service is running:
systemctl --user is-active huion-keydial-mini-user.service
-
Verify bindings:
keydialctl list-bindings
-
Test with event logger:
huion-keydial-mini --log-level DEBUG
If you get permission errors:
-
Ensure user is in input group:
groups $USER -
Reload udev rules:
sudo udevadm control --reload-rules sudo udevadm trigger
-
Check uinput permissions:
ls -la /dev/uinput
-
Check if device is paired:
bluetoothctl devices
-
Verify device is connected:
bluetoothctl info AA:BB:CC:DD:EE:FF
-
Check service logs for connection events:
journalctl --user -u huion-keydial-mini-user.service -f
Problem: The service cannot access /dev/uinput or create virtual devices.
Solution:
- Add user to input group:
sudo usermod -a -G input $USER - Log out and back in to apply group changes
- Restart the service:
systemctl --user restart huion-keydial-mini-user.service
Problem: Device is connected but pressing buttons doesn't trigger actions.
Solution:
- Check if keybindings are configured:
keydialctl list-bindings - Verify the service is receiving HID events:
journalctl --user -u huion-keydial-mini-user.service -f - Test with debug logging:
huion-keydial-mini --log-level DEBUG
Problem: Device won't connect or keeps disconnecting.
Solution:
- Ensure device is in pairing mode
- Clear Bluetooth cache:
bluetoothctl remove AA:BB:CC:DD:EE:FFthen re-pair - Check Bluetooth service status:
systemctl status bluetooth - Restart Bluetooth service:
sudo systemctl restart bluetooth
Problem: Virtual input device is not being created.
Solution:
- Check if
uinputmodule is loaded:lsmod | grep uinput - Load the module if missing:
sudo modprobe uinput - Verify device creation permissions:
ls -la /dev/uinput - Check service logs for device creation errors
Problem: Service is consuming excessive CPU resources.
Solution:
- Check for excessive logging: Set
debug_mode: falsein config - Verify no infinite loops in event processing
- Check if multiple instances are running:
ps aux | grep huion - Restart the service:
systemctl --user restart huion-keydial-mini-user.service
Problem: Config file changes are not being applied.
Solution:
- Restart the service:
systemctl --user restart huion-keydial-mini-user.service - Check config file syntax:
python3 -c "import yaml; yaml.safe_load(open('~/.config/huion-keydial-mini/config.yaml'))" - Verify config file location:
~/.config/huion-keydial-mini/config.yaml
systemctl --user status huion-keydial-mini-user.servicejournalctl --user -u huion-keydial-mini-user.service -fpython3 -m huion_keydial_mini.event_logger --testpython3 diagnose_hid.pybluetoothctl show
bluetoothctl devicespython3 -m huion_keydial_mini.create_uinput_deviceIf you're still experiencing issues:
- Check existing issues on the GitHub repository
- Gather logs using the debugging commands above
- Create a new issue with:
- Your Linux distribution and version
- Complete error logs
- Steps to reproduce the problem
- Your configuration file (remove sensitive info)
When reporting bugs, please include:
- System information: OS, kernel version, Python version
- Complete logs: Full service logs showing the error
- Device information: Device model, firmware version if available
- Configuration: Your config file (sanitized)
- Steps to reproduce: Exact steps that trigger the issue