Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3555

Raspberry Pi OS • Re: Missing hidg0 for keyboard emulation on pi 400

$
0
0
I've not tried the USB HID gadget on RPiOS Bookworm.

On Bullseye and earlier /dev/hidg0 appears automatically once the gadget has been configured.

I usually do that as follows:
  1. Add the following to config.txt

    Code:

    dtoverlay=dwc2
  2. Make sure the following is not present in config.txt or if it is present make sure it is commented out

    Code:

    otg_mode=1
    If present and not commented out (or not inside an inactive conditional filter) this always takes precedence over loading the dwc2 overlay.
  3. Run a shell script like this one from /etc/rc.local. Or cron, or a systemd service.

Statistics: Posted by thagrol — Wed Jun 12, 2024 11:52 am



Viewing all articles
Browse latest Browse all 3555

Trending Articles