2008-03-18, 22:53
Thanks and sorry for the OT!
brandonj Wrote:Back in the day, before the script was modified to use the eventclient, i just had the script loop forever - if it wasn't connected, then try to pair until it connects. It worked for me, but it was far from ideal. At this point, it pretty much works the way you are using it. It needs some work, but i think the bluetooth tools in linux need some help first.
In the mean time, it might help you to note that the key events (outlined somewhere in the forums - probably in this thread, i can't remember) sent by the remote are received by the computer even if the remote isn't paired. Someone out there wrote a script that reads BD data, and if it finds one coming from the remote, it sends a command to LIRC. This method lets you use the remote in an unpaired state, but i don't know if battery life is affected using this method or not. You can find it here: http://antst.mine.nu/linuxdriverforsonybdremote
Good luck
d4rk Wrote:Currently, you need to use ps3d.py (executed as root) to have it autoconnect after initial pairing. I haven't tested using the BD Remote with it in a few months.
The reason it needs to run as root is that it needs to listen on certain privileged Bluetooth sockets, specifically L2CAP PSMs 17 and 19.
d4rk Wrote:Currently, you need to use ps3d.py (executed as root) to have it autoconnect after initial pairing.
danillll Wrote:when you mentioned "initial pairing", can you elaborate please, do I need to do other steps from just running ps3d.py ? do I need to pair it with linux directely?
If yes, how would I do it from a command line? I am using the live version.
Thanks
Quote:The remote needs to be paired initially with the 'ps3_remote.py'By "initially" I guess that means on every reboot? I don't mind running ps3d.py as root since it's only the HTPC box, so does this mean I don't need ps3_remote.py?
program in this directory which you can continue using if you do not
want to run 'ps3d.py' as root.
Quote:The disadvantage of usingIs the "disadvantage" a fact, or does it only apply in the case where I don't want to run ps3d.py as root? Though you talk about running ps3d.py as root and pairing with ps3_remote.py, so I assume that you have to use it in any case? Again, "every run" means every system startup?
'ps3_remote.py' is that pairing is required on every run. Once initial
pairing is done, 'ps3d.py', when run as root, will automatically
detect incoming connections from both the PS3 remote and the Sixaxis
controller.