-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflicting 'paperpi.ini' configs causes a weird behavior #35
Comments
It's also a little weird that even after changing the config in /etc/default and then rerunning the program, the first clear still doesn't behave correctly until the first plugin is displayed. BUT if I stop the program and run it again (changing nothing), it works as intended. |
This is indeed super weird. The /etc version and ~/ version should be mutually exclusive. The logic should be to load the appropriate version based on daemon or user mode. I will investigate further. |
Can you check the first few lines of the debug output? It should list the config files that are loaded: This is my output when I run it in user-land mode.
I'm curious to see what shows up there on your system. |
Same...it's in the original report, you just have to scroll over. I was messing with the logging.cfg file and is wasn't there in the original post (and probably email notification), but I edited it a few mins later with the first few lines added. I was surprised that the /etc file wasn't listed when I first discovered this. Also, I tested going back to the 7.5 (from the 4.2) and the issue doesn't happen even leaving the /etc file on 4.2" |
Honestly, I wouldn't bother chasing this down too much. It could be just a weird issue in a very specific situation. When I do a full install test with EPDLib v0.6, I'll see if I can replicate the issue |
I ran into a weird bug where if two config files have different screens, the first few operations will run on the wrong driver/screen config and then by the time the first plugin is displayed, it works as intended. I was able to replicate the issue (after fixing it). It's also likely not a high impact bug since I'm sure the percentage of people running two different screens on the same device is small. Anyway, here are the details and steps to reproduce...
Issue found: The first "clear screen" operation in the Screen class does not complete successfully when two different screen types are listed in two separate paperpi.ini files. I was using a 4.2" yellow screen on a 32-bit Pi4 running buster. It's not a fresh install and there might be some issues with how I'm running the PaperPi application, but I wanted to at least document it.
Console output:
First few lines of
/etc/default/paperpi.ini
:First few lines of
/home/pi/.config/com.txoof.paperpi/paperpi.ini
:Changing the
/etc/default/paperpi.ini
to thewaveshare_epd.epd4in2c
driver fixes the issue.The text was updated successfully, but these errors were encountered: