iPhone 7 (Intel, D101): apple_z2 does not autoload for spi:d101-touchscreen

Aperta Adatta ai principianti
#398 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
linux

Direzione di ricerca

Trova il driver apple_z2 e le relative dichiarazioni di alias del modulo, quindi controlla come è registrato il modalias SPI D111 esistente. Aggiungi il supporto per spi:d101-touchscreen e verifica che modprobe --resolve-alias spi:d101-touchscreen venga risolto in apple_z2. L’issue segnala la soluzione alternativa e il corretto funzionamento del touchscreen; conferma la modifica dell’alias con le verifiche pertinenti del progetto per la compilazione o il driver.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Environment

  • iPhone 7 (Intel), iPhone9,3, D101AP
  • Omarchy A 0.4.4
  • Kernel 7.3.0-rc1-orchard-apple-16k

Symptom and diagnosis

After boot, touch did not respond and only gpio-keys appeared in /proc/bus/input/devices. The apple_z2 module was installed but had not loaded.

The live SPI device, spi0.0, reports modalias spi:d101-touchscreen. Its device-tree compatible list contains apple,d101-touchscreen followed by apple,d111-touchscreen. Firmware apple/dfrmtfw-d101-c1f5d-2.bin is present.

modprobe --resolve-alias spi:d101-touchscreen fails with “Module spi:d101-touchscreen not found”. The same lookup for spi:d111-touchscreen resolves to apple_z2.

Confirmed workaround

Running sudo modprobe apple_z2 immediately registered an input device named iPhone9,4 Touchscreen and restored normal touch operation on this iPhone 7. udev identifies it as ID_INPUT_TOUCHSCREEN=1, with coordinate ranges 0–749 and 0–1333. A 50-second evdev check captured 184 input frames and 271 position updates, and the owner confirmed normal taps and swipes.

The following local configuration makes the device modalias resolve correctly:

# /etc/modprobe.d/90-orchard-d101-touch.conf
alias spi:d101-touchscreen apple_z2

The configuration has been checked with modprobe --resolve-alias. A further cold boot with this workaround has not yet been tested.

Could the D101 SPI modalias be added to apple_z2's module aliases so the driver loads automatically? The existing D111 device-tree fallback successfully binds and runs the touchscreen on this D101 unit.

Lingua principale
Python
Stelle
102
Fork
27
Merge medio
10h 43m
PR unite (30g)
293

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OrchardLinux/orchard

Tutte le issue di OrchardLinux/orchard

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.