mcallegari / qlcplus

Q Light Controller Plus (QLC+) is a free and cross-platform software to control DMX or analog lighting systems like moving heads, dimmers, scanners etc. This project is a fork of the great QLC project written by Heikki Junnila that aims to continue the QLC development and to introduce new features.
Apache License 2.0
991 stars 356 forks source link

/dev/ttyUSB0 disappears after closing QLC+ #1486

Closed nospam2k closed 10 months ago

nospam2k commented 10 months ago

Describe the bug After starting QLC+ and exiting. /dev/ttyUSB0 is no longer showing.

To Reproduce Steps to reproduce the behavior:

  1. Reboot and don't run QLC+
  2. ls /dev/ttyUSB* shows.
  3. Start QLC+ and then exit.
  4. ls /dev/ttyUSB* shows nothing.

Expected behavior Should not lose ttyUSB0

Desktop (please complete the following information):

Additional context I have written a little usbreset app in C and if I reset the root hub, ttyUSB0 comes back. I imagine (though I haven't tried) unplugging and replugging the Entec DMX Pro would restore as well.

mcallegari commented 10 months ago

Should be fixed, please test

nospam2k commented 10 months ago

I would love to but I downloaded 4.12.7 source for linux, edited the plugins/dmxusb/src/libftdi-interface.cpp file and tried to build but failing with simple things.

Can't find any CMakeLists.txt files to try and manually compile.

cmake -DCMAKE_PREFIX_PATH="/home/david/Qt/5.15.2/gcc_64/lib/cmake" .. CMake Error: The source directory "/home/david/Src" does not appear to contain CMakeLists.txt.

cpack -G DEB CPack Error: CPack project name not specified

On a whim I tried running create-deb.sh which isn't documented on the compile page. I get: /usr/bin/env: ‘python’: No such file or directory I imagine I need to install python but I have no idea how to set it up for QLC (venv? version? Dependencies? )

nospam2k commented 10 months ago

Ok, I installed python3 and lxml and that seemed to make a deb but it complained about not being able to sign. I took out the libdmxusb.so file and tried it on my existing install and there was not difference, ttyUSB0 still isn't reset. For now, I'll just use my program and reset it after closing. I'll try again with 4.12.8 when it releases.

mcallegari commented 10 months ago

Every commit generates a build with artifacts via Github actions https://github.com/mcallegari/qlcplus/actions

nospam2k commented 10 months ago

Ok, thx. I'm new to appImage, can you use it with normal command line parameters or is there a way to install an appimage so I can test it?

nospam2k commented 10 months ago

Ok, I tried running and it looks like some of the command line params work but not all as it didn't auto start using qlcplus.appimage -p -w --open /home/church/.qlcplus/Workspaces/concert.qxw.

But... the port is still gone on closing. I tried just running with no params to just open and close the app and the port is still gone.