tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
2.99k stars 250 forks source link

No keyboard, no mouse working #1620

Closed pierreact closed 11 months ago

pierreact commented 11 months ago

Description

Hello,

I've installed tinypilot on a raspberry pi 3, everything works but keyboard and mouse.

# echo asdf | /root/hid_gadget_test/hid_gadget_test /dev/hidg0 keyboard
    keyboard options:
        --hold
        --left-ctrl
        --right-ctrl
        --left-shift
        --right-shift
        --left-alt
        --right-alt
        --left-meta
        --right-meta

    keyboard values:
        [a-z] or
        --return        --esc
        --bckspc        --tab
        --spacebar      --caps-lock
        --f1            --f2
        --f3            --f4
        --f5            --f6
        --f7            --f8
        --f9            --f10
        --f11           --f12
        --insert        --home
        --pageup        --del
        --end           --pagedown
        --right         --left
        --down          --kp-enter
        --up            --num-lock

/dev/hidg0: Cannot send after transport endpoint shutdown
# modprobe g_hid
modprobe: ERROR: could not insert 'g_hid': No such device

What's the behavior that you expect?

Keyboard and mouse to work

What's happening instead?

What described above.

What are the steps to reproduce this behavior?

  1. Install raspbian bullseye
  2. Install tinypilot
  3. Connect cables to a compter to be managed (Tried a PC and a mac on different USB cables)

Thank you!

mtlynch commented 11 months ago

Thanks for reporting this!

Unfortunately, TinyPilot is not compatible with the Pi 3. See https://github.com/tiny-pilot/tinypilot/issues/911#issuecomment-1040720968 for additional details.

I'm surprised you were able to install, as the installer is supposed to error out if it detects a Pi 3. How did you install TinyPilot?

Can you share the output of this command cat /proc/cpuinfo?

pierreact commented 11 months ago

Sure, thanks for your reply, I wondered why for the life of me I couldn't get things working. Seems I got my answer now, will order a pi4.

processor   : 0
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 1
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 2
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 3
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

Hardware    : BCM2835
Revision    : a02082
Serial      : 00000000875c0799
Model       : Raspberry Pi 3 Model B Rev 1.2

Thank you for your time.

mtlynch commented 11 months ago

@pierreact - That's strange. The installer should have caught this.

Did you install with the get-tinypilot.sh script or some other way?

UmutAlihan commented 11 months ago

I am also able to install tinypilot using "get-tinypilot.sh" into my RPI 3

But I see that unfortunately RPI 3 models don't have proper I/O for OTG , therefore it is not possible to emulate keyboard and mouse in anyway.

It would be much appreciated if we could somehow solve this mouse/keyboard forwarding with a workaround or another approach.

Many thanks for this great contribution regarding tinypilot overall <3 !!

mtlynch commented 11 months ago

@UmutAlihan - Thanks for the kind words.

Unfortunately, I don't think there's any feasible workaround on the Pi 3. If the hardware doesn't support it, there's not much we can do from the software.