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

    /dev/input/by-id doesn't exist?

    Scheduled Pinned Locked Moved Help and Support
    controllermappinggamepadxboxdrv
    4 Posts 2 Posters 3.7k 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.
    • P
      pjs
      last edited by

      Hello,

      I am trying to map my controller to keyboard keys for atari800 using xboxdrv, so I need the full id of my controller.

      When I run ls /dev/input/by-id it says no such file or directory.

      Isn't it supposed to be there by default? Do I need to install another package?

      Any help appreciated.

      columboscoatC 1 Reply Last reply Reply Quote 0
      • columboscoatC
        columboscoat Banned @pjs
        last edited by

        @pjs just type lsusb if it is a usb controller.

        1 Reply Last reply Reply Quote 0
        • P
          pjs
          last edited by

          @columboscoat

          I forgot to mention it is a bluetooth connected controller. So no ID is given for lsusb.

          I think I am supposed to add this command to the emulation.cfg:

          atari800 = "sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
          --evdev /dev/input/by-id/*
          ...
          ...
          ...
          /opt/retropie/emulators/atari800/bin/atari800 %ROM%"
          default="atari800"

          The asterisk being the full ID of the controller and the ellipses containing various key mappings which I left out here. So I am wondering why I have no such file or directory when I do ls /dev/input/by-id in order to obtain the controller ID? Maybe I am misunderstanding the command, and it does not work for bluetooth controllers, only for USB?

          If that is the case, I will need to figure out the correct command to add to atari800's emulation.cfg when using xboxdrv to map controller buttons to bluetooth controllers.

          Thanks again for any help.

          1 Reply Last reply Reply Quote 0
          • P
            pjs
            last edited by pjs

            I found a solution in case anyone else has this problem in the future:

            I did cat /proc/bus/input/devices to list input devices, which does not give the full ID. But I saw a "Wireless Controller" listed there, so I knew that was my bluetooth controller. I saw it had an H: Handlers set as event0 and I recalled being ale to substitute this for the full ID. So, instead of doing --evdev /dev/input/by-id/*** where the ID is still unknown at this time, I was able to do --evdev /dev/input/event0 instead.

            Now whether or not the button mappings I did are accurate is a whole different problem. Time to go test it out.

            1 Reply Last reply Reply Quote 1
            • 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.