RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Mouse not detected by udev (pi4?)

    Scheduled Pinned Locked Moved Help and Support
    mouseretroarchpi4
    6 Posts 5 Posters 562 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      ksuquix
      last edited by

      Pi Model or other hardware: 4
      Power Supply used: Multiple
      RetroPie Version Used: 4.5.1
      Built From: Source on 2019-07-10-raspbian-buster-full
      USB Devices connected: X-Arcade Tankstick + basic keyboard
      Controller used: X-Arcade Tankstick
      Error messages received: None
      Log found in /dev/shm/runcommand.log (if relevant): https://pastebin.com/1rQmDFLt
      Guide used: (Mention if you followed a guide)
      initial setup: https://www.tomshardware.com/news/raspberry-pi-4-game-emulators,40102.html
      mouse docs: https://retropie.org.uk/docs/Spinners,-Trackballs,-Lightguns,-and-other-Mouse-Devices/
      undocumented configs: https://retropie.org.uk/forum/topic/18928/mouse-not-working-in-lr-mame2003/28
      File: (File with issue - with FULL path)
      Emulator: (Name of emulator - if applicable)
      Attachment of config files: (PLEASE USE PASTEBIN.COM FOR LARGE LOGS)
      How to replicate the problem:

      Basically, retroarch isn't probing the mouse and producing the output that it found a mouse like I've seen in other posts.

      The trackball does work, I can use it as a mouse in the OS just fine.

      It is bound to the devices as expected:
      pi@raspberrypi:~ $ ls -aLl /dev/input/by-id/
      crw-rw---- 1 root input 13, 64 Aug 8 21:40 usb-1241_1111-event-mouse
      crw-rw---- 1 root input 13, 32 Aug 8 21:40 usb-1241_1111-mouse
      crw-rw---- 1 root input 13, 67 Aug 8 21:40 usb-Dell_Dell_USB_Keyboard-event-kbd
      crw-rw----+ 1 root input 13, 65 Aug 8 21:40 usb-XGaming_X-Arcade_2-event-joystick
      crw-rw----+ 1 root input 13, 66 Aug 8 21:40 usb-XGaming_X-Arcade_2-if01-event-joystick
      crw-rw----+ 1 root input 13, 1 Aug 8 21:40 usb-XGaming_X-Arcade_2-if01-joystick
      crw-rw----+ 1 root input 13, 0 Aug 8 21:40 usb-XGaming_X-Arcade_2-joystick

      And I am in the input group with appropriate permissions.

      I ran strace on the retroarch invocation and noticed that something in the process did probe the device (here's what info it would have retrieved):
      pi@raspberrypi:~ $ cat /run/udev/data/c13:64
      S:input/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-event-mouse
      S:input/by-id/usb-1241_1111-event-mouse
      I:29171934215
      E:ID_INPUT=1
      E:ID_INPUT_MOUSE=1
      E:ID_VENDOR=1241
      E:ID_VENDOR_ENC=1241
      E:ID_VENDOR_ID=1241
      E:ID_MODEL=1111
      E:ID_MODEL_ENC=1111
      E:ID_MODEL_ID=1111
      E:ID_REVISION=0440
      E:ID_SERIAL=1241_1111
      E:ID_TYPE=hid
      E:ID_BUS=usb
      E:ID_USB_INTERFACES=:030102:
      E:ID_USB_INTERFACE_NUM=00
      E:ID_USB_DRIVER=usbhid
      E:ID_PATH=platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
      E:ID_PATH_TAG=platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_4_1_0
      E:LIBINPUT_DEVICE_GROUP=3/1241/1111:usb-0000:01:00.0-1

      Which seems like ID_INPUT_MOUSE=1 should make it be detected as a mouse device.

      thestargliderT 1 Reply Last reply Reply Quote 0
      • thestargliderT
        thestarglider @ksuquix
        last edited by

        @ksuquix since there is no official release of Retropie for the Pi4 yet, I doubt you are going to get much tech support at this time.

        Starglider!!! From Rainbird!!!

        1 Reply Last reply Reply Quote 0
        • F
          Foiloutboy
          last edited by

          Hi ksuquix, did you get this resolved i seem to have the same problem.

          1 Reply Last reply Reply Quote 0
          • S
            simpletone
            last edited by

            I have the same issue as well on pi4, with verbose logging udev is not picking up any mouse. The mouse works fine on the Operating System.

            I've googled for quite some time; experimented with various configuration options to no avail.

            Any guidance is greatly appreciated!

            1 Reply Last reply Reply Quote 0
            • 4
              4RetroPieTFT
              last edited by

              I have the same Problem on Pi 4 2gb, Raspberry Pi Os, RetroPie compiled with RetroPie instructions.

              ls -aLl /dev/input/by-id/
              total 0
              drwxr-xr-x  2 root root     180 ene 17 18:07 .
              drwxr-xr-x  4 root root     240 ene 17 18:07 ..
              crw-rw----  1 root input 13, 65 ene 17 18:07 usb-Logitech_USB_Receiver-if01-event-kbd
              crw-rw----  1 root input 13, 66 ene 17 18:07 usb-Logitech_USB_Receiver-if01-event-mouse
              crw-rw----  1 root input 13, 32 ene 17 18:07 usb-Logitech_USB_Receiver-if01-mouse
              crw-rw----+ 1 root input 13, 64 ene 17 18:07 usb-ShanWan_USB_WirelessGamepad-event-joystick
              crw-rw----+ 1 root input 13,  0 ene 17 18:07 usb-ShanWan_USB_WirelessGamepad-joystick
              
              
              pi@raspberrypi:~ $ cat /run/udev/data/c13:32
              S:input/by-id/usb-Logitech_USB_Receiver-if01-mouse
              S:input/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.1-mouse
              I:7416875
              E:ID_INPUT=1
              E:ID_INPUT_MOUSE=1
              E:ID_VENDOR=Logitech
              E:ID_VENDOR_ENC=Logitech
              E:ID_VENDOR_ID=046d
              E:ID_MODEL=USB_Receiver
              E:ID_MODEL_ENC=USB\x20Receiver
              E:ID_MODEL_ID=c534
              E:ID_REVISION=2901
              E:ID_SERIAL=Logitech_USB_Receiver
              E:ID_TYPE=hid
              E:ID_BUS=usb
              E:ID_USB_INTERFACES=:030101:030102:
              E:ID_USB_INTERFACE_NUM=01
              E:ID_USB_DRIVER=usbhid
              E:ID_PATH=platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.1
              E:ID_PATH_TAG=platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_4_1_1
              
              

              Tried all, udev, x, null, sdl, linuxraw, hid, nothing works, only the wheel in retroarch menu

              1 Reply Last reply Reply Quote 0
              • 4
                4RetroPieTFT
                last edited by 4RetroPieTFT

                Finally i found a really easy solution We Just need to press

                Ctrl+Alt+F2, login,  then write emulationstation, to go back Quit Emulationstation and press Ctrl+Alt+F1.
                

                The mouse works like a charm in atomiswave and mame, just put the game, go to Retroarch, Quick menu, Settings, Input p1, Move the mouse Index and the mouse to see it, no need udev nothing! Just that. I try to logout but now Raspberry pi OS have a Login Graphical screen, so we can't logout and run emulationstation just from a desktop Shortcut. But is a solution to shoot in games.

                @ksuquix , @Foiloutboy , @simpletone

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.