I have a setup akin to @erfg12 's "Stream Xbox 360 and PS3 games to your GPDWin/Mac" post, where I stream my PS3 via a Windows server with Elgato HD60 to my Raspberry Pis or other devices on the LAN/remotely.
When playing PS3 games like this, it is convenient to power on/wake the PS3 remotely over Bluetooth.
I have therefore made a script, WakePS3, using GIMX to remotely power on my PS3 via a Raspberry Pi, but which should also work on other Linux devices as well:
https://github.com/Vegz78/WakePS3
In addition, I have made a Windows batch script package, PS3FromWin, which calls the above script from my Windows game streaming server, and sets up the PS3 gaming session:
https://github.com/Vegz78/PS3FromWin
Maybe more about my PS3 setup or my attempts/ambitions for routing controller inputs wirelessly via the Raspberry Pi with GIMX later...
Hope this can be useful for others, as well!

Br,
Vegard