PCPanel icon indicating copy to clipboard operation
PCPanel copied to clipboard

On Linux, suspending and waking the system breaks connection with software

Open Helios747 opened this issue 1 year ago • 1 comments

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

image

Steps to reproduce:

  1. Use any Linux. I reproduced in Arch.
  2. Use any version of PCPanel, I reproduced in both 1.6 and master
  3. Suspend the system with the software open and detecting the PCPanel Pro
  4. 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.

Helios747 avatar Jul 16 '24 06:07 Helios747

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

Helios747 avatar Aug 25 '25 03:08 Helios747