mathoudebine / turing-smart-screen-python

Unofficial Python system monitor and library for small IPS USB-C displays like Turing Smart Screen or XuanFang
GNU General Public License v3.0
1.17k stars 196 forks source link

feat: implement basic support for turing 8.8 inch screen #585

Open nreinartz opened 1 month ago

nreinartz commented 1 month ago

Merges main back to target branch and implements the basic support and additional functions for the 8.8 inch screen #264

The new model is handled in a separate class due to several protocol changes. The only feature that is missing is the support for system sleep. There are several issues with that:

  1. Interval in which window messages are received (0.5s) is too small. This leads to the sleep/turnoff commands not being sent on time and the display not turning off. Setting this to 0.01 resolves this, but leads to high CPU usage.
  2. After waking up, the image updates are still generated and sent to the device, even though there is no active connection. This crashes the whole app. The whole process of displaying a theme needs to be restarted at this point, but I don't see the possibility to do that with the current state of the project.

Feel free to use this draft PR as a base for the 8.8 support. Unfortunately I am missing the energy and motivation to fix the remaining stuff.