Re: Kernel-Modul um bei einem bestimmten Event eine bestimmte Funktion auszführen

Daniel Leidert <[email protected]>
Newsgroups gmane.user-groups.linux.dresden
Message-ID <[email protected]>
Am Mittwoch, dem 08.06.2022 um 01:16 +0200 schrieb Daniel Leidert:
> 
[Unblank Screen via BTN_TOUCH]
> Jetzt dachte ich, dass es eine Möglichkeit wäre, mit einem Kernel-Modul einfach
> auf BTN_TOUCH zu reagieren und einfach nur do_unblank_screen() aufzurufen, wenn
> das Event auftritt.
> 
> Ist hier jemand mit dem Input-Subsystem so vertraut, dass er mir dabei unter
> die Arme greifen kann?

Ich habe mir jetzt mal Beispiele wie drivers/input/apm-power.c angeschaut und
einen Handler für BTN_TOUCH und den Touchscreen geschrieben, der
do_unblank_screen() aufruft, wenn ein BTN_TOUCH Event eintritt. Mal schauen,
onb das so funktioniert, wie ich mir das vorstelle. 

Gruß, Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.