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

    Aimtrak Installation Issue

    Scheduled Pinned Locked Moved Help and Support
    aimtrakpythonoptional packag
    47 Posts 6 Posters 9.1k 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.
    • EfriimE
      Efriim @Garavar
      last edited by Efriim

      @Garavar
      I don't know, perhaps a reset, or reinstallation.

      https://github.com/gunpadawan/gunconf#prerequisites

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @Garavar
        last edited by

        @Garavar Python is the scripting language which is used by the calibration script, the error is specific to the script - so I don't think you did something wrong. How are you running the script ?

        G 1 Reply Last reply Reply Quote 0
        • G
          Garavar @mitu
          last edited by

          @mitu said in Aimtrak Installation Issue:

          @Garavar Python is the scripting language which is used by the calibration script, the error is specific to the script - so I don't think you did something wrong. How are you running the script ?

          I followed the directions from site (below). They all worked except sudo cp utils/aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules which did nothing and sudo udevadm control --reload-rules which said "no directory found"

          Directions followed...

          sudo apt install apt-transport-https python-dev python-pygame python-setuptools

          Get the source
          git clone https://github.com/gunpadawan/gunconf

          Install python module
          cd gunconf

          sudo python setup.py install

          Udev rules
          Application requires access to the aimtrak usb device. It is usually necessary to configure udev to let your specific user access that device.

          To let any user access the device, do:

          sudo cp utils/aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules

          sudo udevadm control --reload-rules

          Launch
          To launch application, you can execute utils/gunconf.sh

          When I get here, it launches application, detects gun but does nothing else. When I exit I get those errors.

          EfriimE mituM 2 Replies Last reply Reply Quote 0
          • EfriimE
            Efriim @Garavar
            last edited by Efriim

            @Garavar
            You should have this file in the gunconf/utils/ subfolder:
            https://github.com/gunpadawan/gunconf/blob/master/utils/aimtrak.rules

            and it needs to go here "/etc/udev/rules.d/99-aimtrak.rules"

            sudo mkdir -p /etc/udev/rules.d
            cd
            cd gunconf/utils
            sudo cp aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules
            sudo udevadm control --reload-rules

            G 2 Replies Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @Garavar
              last edited by

              @Garavar said in Aimtrak Installation Issue:

              I followed the directions from site (below). They all worked except sudo cp utils/aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules which did nothing and sudo udevadm control --reload-rules which said "no directory found"

              That's not needed, if the gun is detected as a mouse, the running user should be able to access the mouse device.

              EfriimE 1 Reply Last reply Reply Quote 0
              • EfriimE
                Efriim @mitu
                last edited by

                @mitu
                but it also has a specific vendor id that is not registered anywhere else

                SUBSYSTEMS=="usb", ATTRS{idVendor}=="d209", MODE="0666"
                
                1 Reply Last reply Reply Quote 0
                • G
                  grant2258 Banned
                  last edited by

                  it can be detected as a mouse or joystick or both the wiimote does the same thing you only need that is you are using the joystick. I dug my old wii mote out a and set it up seems to be working ok ill need to get a sensor bar for it at some point to test the ir though

                  1 Reply Last reply Reply Quote 0
                  • G
                    Garavar @Efriim
                    last edited by

                    @Efriim said in Aimtrak Installation Issue:

                    @Garavar
                    You should have this file in the gunconf/utils/ subfolder:
                    https://github.com/gunpadawan/gunconf/blob/master/utils/aimtrak.rules

                    and it needs to go here "/etc/udev/rules.d/99-aimtrak.rules"

                    sudo mkdir -p /etc/udev/rules.d
                    cd
                    cd gunconf/utils
                    sudo cp aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules
                    sudo udevadm control --reload-rules

                    I cant even find my gunconf/utils/ folder...is there a permission I am missing?

                    EfriimE 1 Reply Last reply Reply Quote 0
                    • EfriimE
                      Efriim @Garavar
                      last edited by

                      @Garavar
                      it should be in the directory where you cloned the github for gunconf.
                      maybe
                      cd ~/gunconf/

                      1 Reply Last reply Reply Quote 0
                      • G
                        Garavar @Efriim
                        last edited by

                        @Efriim said in Aimtrak Installation Issue:

                        @Garavar
                        You should have this file in the gunconf/utils/ subfolder:
                        https://github.com/gunpadawan/gunconf/blob/master/utils/aimtrak.rules

                        and it needs to go here "/etc/udev/rules.d/99-aimtrak.rules"

                        sudo mkdir -p /etc/udev/rules.d
                        cd
                        cd gunconf/utils
                        sudo cp aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules
                        sudo udevadm control --reload-rules

                        Tried this, still gets stuck on configuration and went I quit I get the same index error from photo ;(

                        mituM G 2 Replies Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @Garavar
                          last edited by

                          @Garavar Do you have more than one mouse device connected ? You didn't gave much details about your actual system - maybe the configuration utility incorrectly chooses you mouse device.
                          Can you run cat /proc/bus/input/devices with the gun connected and post the output here ?

                          1 Reply Last reply Reply Quote 0
                          • G
                            Garavar @Garavar
                            last edited by

                            @Garavar said in Aimtrak Installation Issue:

                            @Efriim said in Aimtrak Installation Issue:

                            @Garavar
                            You should have this file in the gunconf/utils/ subfolder:
                            https://github.com/gunpadawan/gunconf/blob/master/utils/aimtrak.rules

                            and it needs to go here "/etc/udev/rules.d/99-aimtrak.rules"

                            sudo mkdir -p /etc/udev/rules.d
                            cd
                            cd gunconf/utils
                            sudo cp aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules
                            sudo udevadm control --reload-rules

                            Tried this, still gets stuck on configuration and went I quit I get the same index error from photo ;(

                            I think I figured out the problem but don't know how to fix it. When I go to file manager all the folders and files are there (utils, pgu) but the Gunconf folder with drivers and files like conversion.py aren't there. Don't know why.

                            I followed the download steps it should be there.

                            1 Reply Last reply Reply Quote 0
                            • G
                              grant2258 Banned
                              last edited by grant2258

                              make sure you are using python 2.x and not 3

                              try running with gunconf/utils/gunconf_w_logs.sh aand post the log

                              also post a

                              sudo udevadm test -a add $(udevadm info -q path -n /dev/input/js0 )

                              replace path with relevant joystick and mice

                              G 1 Reply Last reply Reply Quote 0
                              • G
                                Garavar @grant2258
                                last edited by

                                @grant2258 said in Aimtrak Installation Issue:

                                make sure you are using python 2.x and not 3

                                try running with gunconf/utils/gunconf_w_logs.sh aand post the log

                                also post a

                                sudo udevadm test -a add $(udevadm info -q path -n /dev/input/js0 )

                                replace path with relevant joystick and mice

                                Error log phot attached, I also tried reinstalling and got similar errorIMG_20190414_1040029.jpg
                                IMG_20190414_1054504.jpg

                                1 Reply Last reply Reply Quote 0
                                • G
                                  grant2258 Banned
                                  last edited by

                                  any more information in ~/.gunconf.log ?

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    a1084426
                                    last edited by

                                    Hi

                                    I have exactly the same issue. The gun works ok as I cheated and calibrated it on a windows laptop on the same external screen so it sorta works but id still like to know why I detects the Gun but never proceeds past into the following screen for calibration

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      a1084426 @grant2258
                                      last edited by

                                      @grant2258 that file comes up blank or as a new file so must not get created when running with the log option.

                                      1 Reply Last reply Reply Quote 0
                                      • EfriimE
                                        Efriim
                                        last edited by Efriim

                                        Could try again from start, maybe the python setup was missed?
                                        sudo apt install apt-transport-https python-dev python-pygame python-setuptools
                                        git clone https://github.com/gunpadawan/gunconf
                                        cd gunconf
                                        sudo python setup.py install
                                        sudo cp utils/aimtrak.rules /etc/udev/rules.d/99-aimtrak.rules
                                        sudo udevadm control --reload-rules
                                        sudo cp utils/gunconf.sh /home/pi/RetroPie/retropiemenu/

                                        I apologize I missed that step when I posted earlier, I thought it was a good reference to the hub I guess.

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          a1084426 @Efriim
                                          last edited by

                                          @Efriim yeah ive done it 3 times now, I also increased the logging level to critical incase, but still nothing in the logs at all. It's almost as if the script itself doesn't have permissions to read the config from the usb device is my guess. I have Unix and python gurus at work i'm going to work thru it with as other than that the aimtrak gun works ok, justs needs calibration as some games like Lethal enforcers require you to shoot off screen to reload and this doesn't work to well without setting calibration

                                          It's also worth nothing I have firmware 9.2 on the gun device as well. I doesn't have an issue reading and calibrating on windows, so I assume its an issue with Python and some sort of access on the Raspberry as that's Debian

                                          EfriimE 1 Reply Last reply Reply Quote 0
                                          • EfriimE
                                            Efriim @a1084426
                                            last edited by

                                            @a1084426
                                            Okay, thanks for being understanding, I've been away and did not read many the updates.

                                            I have no aimtrak device, the script gunconf calibration works for me from a RetroPie 4.4 image. So it is probably not the usb device.

                                            I just got a 64gb sdcard so I'm starting new, and I'll try some things to see if I can understand your scenario better.

                                            A 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.