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

    Custom script for driver change

    Scheduled Pinned Locked Moved Help and Support
    pythoncoderetropie 4.2
    3 Posts 1 Posters 1.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.
    • J
      Jeddo
      last edited by

      Hi everyone,

      I wrote myself a script for changing the gamepad driver. So far i tested the isolated code pieces and they are working. Now I tried to put it all together but it does nothing. I loaded it into cron for reboot. I would apreciate if you could help me out.

      here is my code

      basicly I want to unload all possible loaded current drivers on a GPIO signal and then load the right one on the specific GPIO signal.

      Thanks for the help

      1 Reply Last reply Reply Quote 0
      • J
        Jeddo
        last edited by

        so no one any idea? :(

        1 Reply Last reply Reply Quote 0
        • J
          Jeddo
          last edited by

          I could narrow the problem down a little bit. When the db9_GPIO_RPI driver is not loaded and i try to unload it, I get:

          "modprobe: FATAL: Module db9_gpio_rpi is not in kernel"

          that makes sense but I tried to avoid that with try/except. Seems it does not work. Any idea why?

          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.