forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bluetooth Questions

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
knicknak



Joined: 06 Sep 2009
Posts: 4

PostPosted: Mon Sep 28, 2009 6:40 pm    Post subject: Bluetooth Questions Reply with quote

When you shut off a PS3 in GameOS mode, pressing the PS button on a remote or a controller will wake up the machine. Is it possible to do this when the machine is shut off in OtherOS mode - i.e. can a process be listening for these events when the machine is in Standby on OtherOS mode?

Could the Linux Bluetooth HIDP daemon (HIDD) be modified to turn off an active device if the device has not been used in some time period. I.e. could a timer be implemented where after say 10 mins of no activity from a controller that was active, turn off the device?

Could HIDD be modified to light the correct LED on the sixaxis controller(s) to indicate which joystick the device is enumerated as?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Sep 30, 2009 1:13 pm    Post subject: Re: Bluetooth Questions Reply with quote

knicknak wrote:
When you shut off a PS3 in GameOS mode, pressing the PS button on a remote or a controller will wake up the machine. Is it possible to do this when the machine is shut off in OtherOS mode - i.e. can a process be listening for these events when the machine is in Standby on OtherOS mode?
As far as I know, nobody has figured out how to do this. Since the BT module seems to sit on USB, one possibility would be to physically sniff traffic between the PS3 and the BT module and see if there's some magic incantation it's doing to put the BT module into that wake-up mode.

Quote:
Could the Linux Bluetooth HIDP daemon (HIDD) be modified to turn off an active device if the device has not been used in some time period. I.e. could a timer be implemented where after say 10 mins of no activity from a controller that was active, turn off the device?

If I remember right, closing the connection from the host side will cause the sixaxis to turn off. I don't know if the Bluez daemons can do that easily, but it should work.

Quote:
Could HIDD be modified to light the correct LED on the sixaxis controller(s) to indicate which joystick the device is enumerated as?
You'd have to modify HIDD, yeah, but it's possible. My "sixaxis server" code does this (without HIDD). http://ps3.jim.sh/sixaxis/bt/
Back to top
View user's profile Send private message
ouasse



Joined: 30 Jul 2007
Posts: 90
Location: Paris, France

PostPosted: Wed Sep 30, 2009 10:58 pm    Post subject: Reply with quote

the PS3 wireless joystick driver Sashz uses in pdaXrom-ng is derived from Jim's code, and implements a Linux Joystick device in /dev/js[0-]. There should be a way to modify it to turn the controller off after a certain period of inactivity.

It sets up the LEDs correctly and does not need the bluez driver to work (even though the bluetooth interface needs to be configured using hciconfig first).

http://mail.pdaxrom.org/downloads/PS3/bootloader/src/sixaxisd-0.2.1.tar.bz2
Back to top
View user's profile Send private message
knicknak



Joined: 06 Sep 2009
Posts: 4

PostPosted: Thu Oct 01, 2009 4:31 am    Post subject: Reply with quote

Thanks for the excellent info.

A tangent: Regarding pdaXrom-ng's implementation, when you boot linux, why does pdaXrom-ng leave the controller on? There isn't a way to handoff the controller to the flavor of linux that you boot is there? If you boot GameOS from pdaXrom-ng it turns off the controller (so that you can re-initialize with the GameOS I'm guessing).

PdaXrom-ng seems to work for the controllers, but not the ps3 remote - is adding support for the ps3 remote a difficult proposition? i.e. are there any gotchas because of the way the remote works compared to the controllers?
Back to top
View user's profile Send private message
ouasse



Joined: 30 Jul 2007
Posts: 90
Location: Paris, France

PostPosted: Thu Oct 01, 2009 7:25 pm    Post subject: Reply with quote

knicknak wrote:
when you boot linux, why does pdaXrom-ng leave the controller on? There isn't a way to handoff the controller to the flavor of linux that you boot is there?
I think you are talking about the pdaXrom-ng - based bootloader. pdaXrom-ng also is a full distribution to be used for liveCD's or bootable USB sticks.

The bootloader just does not shutdown the sixaxis daemon before booting the chosen Linux kernel. This is the only reason the controller is still on after kernel boot, and indeed messes up with joystick drivers on the distributions, whatever the driver is based on HIDD or sashz's sixaxisd.

knicknak wrote:
PdaXrom-ng seems to work for the controllers, but not the ps3 remote - is adding support for the ps3 remote a difficult proposition? i.e. are there any gotchas because of the way the remote works compared to the controllers?
I think it does not handle the remote because nobody added remote support. Feel free to have a look at the code, and add the necessary ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group