IT8951: a clear after sleep fails, the busy line stays low 2.2 s while drawing
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- backend, embedded-iot
Direzione di ricerca
Start in src/epdlib/drivers/it8951/ and the related tests and docs; reproduce the clear-after-sleep failure with the pretend controller, then compare its busy-line waits with the stated timeout and ready_timeout behavior. The issue describes the intended recovery after waking, including one reset and resending settings. Done means the tests cover these behaviors and the result works on the 9.7" screen; pull request #105 is already open.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found while installing PaperPi as a systemd service on the 9.7" screen (txoof/PaperPi#295).
What happens
After sleep(), a clear() fails with "screen not ready: the busy line stayed low". Measured on the 9.7": while it draws the clear (INIT) right after waking from sleep, the controller keeps the busy line low for 2.2 s, and the driver waits at most ready_timeout (2.0 s) before each transfer, also for the "still drawing?" register reads after the draw command. A clear without sleep before it stays just under 2 s, and fast writes are much shorter, so only clears after sleep fail. PaperPi sleeps after every write, so its hourly cleaning clear failed (and its first clear at start).
(A first explanation, a board stuck after an interruption, was wrong: the time is just over the limit, so it fails or works by a few hundredths of a second.)
Fix (chosen by txoof)
- After a draw command, the wait for the busy line uses the operation's time limit (
timeout, 15 s), notready_timeout. - When the screen doesn't answer after waking, the driver resets it once, sends its settings (packed pixels, VCOM) again and goes on, with a warning in the log.
- Tests with the pretend controller, docs, and runs on the 9.7".
Area
drivers/it8951 (src/epdlib/drivers/it8951/), docs.
- Lingua principale
- Python
- Stelle
- 21
- Fork
- 10
- Merge medio
- 1h 34m
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di txoof/epdlib
-
area:layout enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:drivers enhancement hardware
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
New PyPI release workflowAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
add grayscale support for epd2in7Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
txoof/epdlib#71 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di txoof/epdlib
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
gramaziokohler/compas_timber#870 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
autowarefoundation/autoware_carla_scenario#500 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority: low size: XS testing
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
cubrid-lab/cubrid-mcp-server#385 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue priority: low size: S testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100