I'm sick and tired of fixing cosmetic issues trying to add support to PS3 bluetooth remote to linux (three months redoing patches). I'll just leave the latest version of the required patches here. good luck trying to get past the fashion police.
http://ruivo.org/~aris/ps3_remote/
Yes, the patches do work. If you have problems _using_ the patches, feel free to contact me.