On Linux, suspending and waking the system breaks connection with software
Describe the bug:
Using a PCPanel Pro on Linux, suspending and waking the system causes an error to the thrown and the software reports no devices detected.
ERROR 387576 --- [er 5943E9343638] c.g.hid.DeviceCommunicationHandler : DCH ERR: h
Steps to reproduce:
- Use any Linux. I reproduced in Arch.
- Use any version of PCPanel, I reproduced in both 1.6 and master
- Suspend the system with the software open and detecting the PCPanel Pro
- Wake the system
Expected behavior:
The connection not break
Additional context:
Java: OpenJDK Runtime Environment (17.0.11+12) (build 17.0.11+12-LTS) - the Liberica release recommended in Linux.md
Restarting the software or replugging the PCPanel hardware works around the problem.
Just a small update, I did fix this for myself, but because I don't know Java or have the time to sit down and learn my way through this, Claude wrote the commit.
I don't understand Java super well and I'm sure Claude did an ugly job so I don't expect you to take this hack. But in case anybody else is trying to work around this, feel free to apply this commit. YMMV. https://github.com/Helios747/PCPanel/commit/3d23f7e88044b05447274f8464296b5dd90bbb4d