Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to systemd service / init cleanups #9

Open
joolswills opened this issue Oct 19, 2016 · 5 comments
Open

convert to systemd service / init cleanups #9

joolswills opened this issue Oct 19, 2016 · 5 comments

Comments

@joolswills
Copy link
Member

joolswills commented Oct 19, 2016

made a few init script cleanups -

Noticed an issue with it not always starting correctly. Not sure what it is though, and it doesn't seem to be consistent. Shouldn't have had sudo in though, so I removed that. I wonder if we should switch to using systemd natively though.

the /usr/bin/sixad script is a bit of a mess though imho and needs some work (I realise some cleanup has already been done) although ideally we would ditch all of this and just use the native bluetooth stack. I am going to look into if we can maintain a backported updated bluetooth perhaps with raspbian patches.

@joolswills
Copy link
Member Author

This issue is for no-one in particular, feel free to comment. Mostly a heads up for @gizmo98 and a reminder for me that work needs to be done :)

@joolswills
Copy link
Member Author

This method actually works reasonably well - https://www.piborg.org/rpi-ps3-help#setup-jessie and I think I may be able to automate it. Got some code in progress anyway. Only good for original controllers of course.

@gizmo98
Copy link
Member

gizmo98 commented Oct 22, 2016

As i can see this is just a combination of sixpair and bluez. I think i had something like this running. The only problem was to add automated permission (trust). Newer bluez versions have builtin sixpair functionality. The ps3 controller tries to connect to the builtin bluetooth if it was connected once over usb. But the trust problem persists. Does the bluetooth connection script add trust to bluetooth devices trying to connect somehow? I have not taken a look.

@joolswills
Copy link
Member Author

Supposedly the Jessie version of bluez should have sixpair functionality build in, but I couldn't get it working (Unless I misunderstood the changelogs I was reading). Work ok on my Ubuntu machine.

The bluetooth connection script doesn't handle that, but I intend to try and automate it. One of the problems is it doesn't seem to be "consistent", but I will see what I can do.

@joolswills joolswills mentioned this issue Nov 7, 2016
@Dark-Show
Copy link

Joolswills, I think the problem with it not always starting is more of a race condition with Bluetooth service starting on boot. If you watch the kernel messages on boot up you can see Bluetooth fails after sixad installation. Maybe look into modifying the bluetooth startup script. It's just a though, after my last init script changes I didn't look much more into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants