Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: ps3 bluetooth problem #90173
    thewiep
    Participant

    I don’t know what else to say :)

    For me it now just works..

    I did only test with 1 controller though.
    I also didn’t run the sixad command manually after re-installing..

    in reply to: ps3 bluetooth problem #90004
    thewiep
    Participant

    it seems I renamed the original to ps3controller_orig.sh and modified ps3controller.sh.
    this is the contents of my ps3controller.sh

    rp_module_id="ps3controller"
    rp_module_desc="Install PS3 controller driver-mod"
    rp_module_menus="3+"
    rp_module_flags="nobin"
    
    function depends_ps3controller() {
        getDepends bluez-utils bluez-compat bluez-hcidump checkinstall libusb-dev libbluetooth-dev joystick
    }
    
    function sources_ps3controller() {
        wget -nv http://www.pabr.org/sixlinux/sixpair.c -O "$md_build/sixpair.c"
        wget -O- -q http://sourceforge.net/projects/qtsixa/files/QtSixA%201.5.1/QtSixA-1.5.1-src.tar.gz | tar -xvz --strip-components=1
    }
    
    function build_ps3controller() {
        gcc -o sixpair sixpair.c -lusb
        cd sixad
        make clean
        make CXX="g++-4.6" CXXFLAGS="-O2"
    }
    
    function install_ps3controller() {
        cd sixad
        checkinstall -y --fstrans=no
        update-rc.d sixad defaults
    
        md_ret_files=(
            'sixpair'
        )
    }
    
    function configure_ps3controller() {
        printMsgs "dialog" "Please make sure that your Bluetooth dongle is connected to the Raspberry Pi and press ENTER."
        if ! hciconfig | grep -q "BR/EDR"; then
            printMsgs "dialog" "Cannot find the Bluetooth dongle. Please try to (re-)connect it and try again."
            break
        fi
    
        printMsgs "dialog" "Please connect your PS3 controller via USB-CABLE and press ENTER."
        if $md_inst/sixpair | grep -q "Setting master"; then
            printMsgs "dialog" "Cannot find the PS3 controller via USB-connection. Please try to (re-)connect it and try again."
            break
        fi
    
        printMsgs "dialog" "The driver and configuration tools for connecting PS3 controllers have been installed. Please visit https://github.com/retropie/RetroPie-Setup/wiki/Setting-up-a-PS3-controller for further information."
    }
    

    also there seems to be a difference in users:

    -rw-r--r-- 1 root root 1.7K Mar  1 15:06 ps3controller.sh
    -rw-r--r-- 1 pi   pi   1.9K Mar  1 15:03 ps3controller_orig.sh

    it is still working fine for me even after quite some reboots :)

    in reply to: ps3 bluetooth problem #89976
    thewiep
    Participant

    I also forgot to add that I needed to perform the same action that was needed on 2.5.0.
    After pairing and restart it seems that sixad is started before bluetooth is up or bluetooth doesn’t come up at all.
    You need to do following in this order:
    sudo hciconfig hci0 up
    sudo /etc/init.d/sixad restart

    and then press the PS button on your controller and it should connect.

    You can automate it by doing following:
    sudo nano /etc/udev/rules.d/10-local.rules

    and add following line:
    ACTION==”add”, KERNEL==”hci0″, RUN+=”/usr/sbin/hciconfig hci0 up”

    save and reboot.

    in reply to: ps3 bluetooth problem #89921
    thewiep
    Participant

    I cannot access that RPi now so will upload the file tomorrow if still needed.

    I did an additional step which I didn’t think was needed to mention..
    I actually created a copy of ps3controller.sh in the same folder and reverted the changes in the copied version.
    I also changed following entry in the copied version from
    rp_module_desc=”Install PS3 controller driver”
    to
    rp_module_desc=”Install PS3 controller driver – Mod”
    so I would recognize the difference between both when they show up in the menu.
    I then installed the driver again through the “Install PS3 controller driver – Mod” entry.

    in reply to: ps3 bluetooth problem #89865
    thewiep
    Participant

    I had the same problem.
    It worked fine under 2.5.0 on my Pi 2 with an original PS3 controller.
    Then did a clean install of 2.6.0 and it paired but after a reboot it just vibrated and blinked.
    I then tested with sixad -s like you posted and got the same message.

    I got it to work by reverting following commit:
    https://github.com/retropie/RetroPie-Setup/commit/a52118c97b4d9cf674392c1aedae92c1889d835e#diff-359bdced80f55957bff58044e064f3af
    You can just change following file:
    home/pi/RetroPie-Setup/scriptmodules/supplementary/ps3controller.sh

    then just start retropie_setup.sh and install the PS3 driver again.
    Pair it again and possibly you need to reboot once or twice before it really connects.

Viewing 5 posts - 1 through 5 (of 5 total)