nullobsi / clight-gui

Qt GUI for clight
GNU General Public License v3.0
96 stars 2 forks source link

The gui is all grayed at startup #27

Open guillaumeboehm opened 2 years ago

guillaumeboehm commented 2 years ago

When opening the gui after a reboot the interface is all grayed out, even though clight and clightd are running. I have to close (full close not just to tray) the program and reopen it again for it to work.

I'm under arch-5.19.1-zen1-1-zen using clight-gui r91.079bd99

nullobsi commented 2 years ago

if it works when you reopen it it's probably a weird d-bus issue

There a few things you can do to debug but I have been a bit busy:

guillaumeboehm commented 2 years ago

Thanks! Well I seem to have some issues with clightd (I have another issue opened there). So I'll try to figure out what's wrong over there first and come back to this issue either to close it or to continue debugging.

commi commented 2 years ago

Same problem. What is your issue with clightd, can you link it?

guillaumeboehm commented 2 years ago

Well my issue is because the ALS sensor isn't working. So might not be related https://github.com/FedeDP/Clightd/issues/88.

commi commented 2 years ago

Thanks. In the meantime of figured that the UI stayed disabled because clight (not clightd) was not yet available on my system.

mrwsl commented 2 years ago

I have the same issue as @guillaumeboehm. When I restart the clightd service and clight-gui the tabs of the gui aren't grayed out anymore.

nullobsi commented 2 years ago

I can probably debug this later but I've been busy with other things. I have a feeling the culprit is probably here: https://github.com/nullobsi/clight-gui/blob/079bd990b78b200216198d58a4df9a5757606726/src/gui/MainWindow.cpp#L46 My guess is that it launches when clight is not yet running/initalized fully so it disables all the tabs. Perhaps there should be a "startup delay" option? Or I can try to make it wait for clight...

hedmo commented 1 year ago

i have the same issue with grey in clight-gui . i am running plasma on gentoo . for me it looks like clight-gui starts before clight is done . i made a startup script that kills clight and clight-gui then starts clight but sleep clight-gui in X seconds . why i say X sec is because the sleep time depends on the time to load plasma on my system . one system have sleep 3 and another system have sleep 15 (armv7a) :P .