Skip to content

[rcore] Touch/Input not detected after kernel update #4930

Open
@JesperNaarttijarvi

Description

@JesperNaarttijarvi

[Bug] Touch/Input Not Detected by Raylib After Kernel Update

Description:
After updating the Raspberry Pi kernel, Raylib no longer detects touch/input events. Verified using custom logging and Raylib's core_input examples. The issue persists even after a fresh Raylib installation.

I have only tested with our touch input, and not verified if it the same problem with a mouse or other touch pads.

System Details:

  • Hardware: Raspberry Pi CM4
  • OS: Debian GNU/Linux 12 (bookworm), Lite
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Kernel Update Details:
Issue started after performing the following kernel updates:

sudo apt-get install build-essential
...
...
Upgraded packages:
linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8

Newly installed:
linux-headers-6.12.25+rpt-common-rpi
linux-image-6.12.25+rpt-rpi-2712
linux-kbuild-6.12.25+rpt
linux-headers-6.12.25+rpt-rpi-2712
linux-image-6.12.25+rpt-rpi-v8
linux-headers-6.12.25+rpt-rpi-v8

Issue Verification:

  • evtest confirms touch input is detected:
evtest /dev/input/event0
Input device name: "ILITEK ILITEK-TP"
Supported events:
Event type 1 (EV_KEY), Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS), Event codes 0 (ABS_X), 1 (ABS_Y), 53 (ABS_MT_POSITION_X), 54 (ABS_MT_POSITION_Y), 57 (ABS_MT_TRACKING_ID)
Event type 4 (EV_MSC), Event code 5 (MSC_TIMESTAMP)

Sample evtest Output:

Event: time 1746805905.148705, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1746805905.148705, type 3 (EV_ABS), code 0 (ABS_X), value 5296
Event: time 1746805905.148705, type 3 (EV_ABS), code 1 (ABS_Y), value 5644
...

However, Raylib examples and applications do not react to these input events.

Expected Behavior:
Raylib should detect and handle touch/input events as previously.

Actual Behavior:
No touch/input events are detected by Raylib.

Steps to Reproduce:

  1. Update Raspberry Pi kernel to 6.12.25+rpt-rpi-v8.
  2. Run Raylib's core input examples or custom input logging applications.

Additional Information:

  • The issue started specifically after updating to kernel version 6.12.25+rpt-rpi-v8.
  • Evtest logs indicate the input hardware functions correctly, suggesting a compatibility issue between Raylib and the updated kernel.

Request:
Guidance or a fix to restore Raylib input functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions