eruption-project / eruption

Realtime RGB LED Driver for Linux
https://eruption-project.org/
GNU General Public License v3.0
272 stars 33 forks source link

Initialize Failure Flooding Journal #200

Open m1st0 opened 1 year ago

m1st0 commented 1 year ago
name about title labels assignees
Bug report initializing devices Initialize Failure Flooding Journal     

Introduction I have a branch from Discussion 155 currently updating with the Master branch, found at non-root branch 155.

Please describe the bug My journal is flooded with the following. I believe I have it in the correct order because it is non-stop.

eruption[1390]: Skipping uninitialized device, trying to re-initialize it now...
eruption[1390]: Error opening the keyboard device: Could not open the device file
eruption[1390]: Could not initialize the device: Device not opened

However, the keyboard and gui are functional and everything is working.

To Reproduce Install the Discussion 155 branch, restart your system. You should see the journal with the messages described. Messages disappear if I restart Eruption services manually or from returning system from sleep.

Expected behavior Eruption not complaining since my devices are working.

Logs

Starting Realtime RGB LED Driver for Linux...
Started Realtime RGB LED Driver for Linux.
Error opening the keyboard device: Could not open the device file
This could be a permission problem, or maybe the device is locked by another process?
Could not initialize the device: Device not opened
Could not initialize LEDs: Device not opened
Skipping uninitialized device, trying to re-initialize it now...
Error opening the keyboard device: Could not open the device file
Could not initialize the device: Device not opened
More than 82 milliseconds of jitter detected!
This means that we dropped at least one frame
Loop took: 156 milliseconds, goal: 41
Skipping uninitialized device, trying to re-initialize it now...
Error opening the keyboard device: Could not open the device file
Could not initialize the device: Device not opened

Repeat last 3 log messages.

Please complete the following information:

Additional context Again, messages disappear if returning from sleep or restarting eruption services. Should I add a delay in eruption.service?

With Discussion 155, I have the following modified in udev rules but it has no effect on this issue.

# Permissions

ACTION=="add|change", SUBSYSTEMS=="input", RUN+="/usr/bin/setfacl -m u:eruption:rw /dev/input/by-id/eruption-virtual-keyboard"
ACTION=="add|change", SUBSYSTEMS=="input", RUN+="/usr/bin/setfacl -m u:eruption:rw /dev/input/by-id/eruption-virtual-mouse"
X3n0m0rph59 commented 1 year ago

Duplicate of #208

X3n0m0rph59 commented 1 year ago

Hi @m1st0 thank you for reporting this issue! I have pushed the first round of fixes to the develop branch.