Cannot send events to PS3

Need help? Ask here and someone will help
fonk
Posts: 6
Joined: Sat Dec 08, 2018 4:35 pm

Cannot send events to PS3

Post by fonk »

Hi!

I like to use gimx to automatically start Netflix on my PS3 from my home automation software. With gimx I managed to power on my PS3 using my bluetooth dongle (Cambridge Silicon Radio), but I'm not able to send any events.

I run gimx with:

Code: Select all

[17:40:27] openhabian@hase:~$ gimx --src 127.0.0.1:55555 -t Sixaxis -b 5C:6D:20:71:15:24
controller #1: option -s with value `127.0.0.1:55555'
controller #1: option -t with value `Sixaxis'
controller #1: option -b with value `5C:6D:20:71:15:24'
now reading arguments for controller #2
using default refresh period: 10.00ms
Warning: can't open macro directory /home/openhabian//.gimx//macros/
connecting with hci0 = 34:C7:31:09:36:63 to 5C:6D:20:71:15:24 psm 0x0011
connecting with hci0 = 34:C7:31:09:36:63 to 5C:6D:20:71:15:24 psm 0x0013
connected with hci0 = 34:C7:31:09:36:63 to 5C:6D:20:71:15:24
It powers on and now this console eats up all keyboard events (if I want to exit, I have to send a kill -9 from another console - is this expected behaviour or a hint for a misbehaviour?

Well, now I try to send events from another terminal as explained at the "Command line" page:

Code: Select all

[17:41:46] openhabian@hase:~$  gimx --event "rel_axis_0(127)" --event "rel_axis_3(-128)" --event "abs_axis_8(255)" --event "abs_axis_10(0)" -d 127.0.0.1:55555
controller #1: option -e with value `rel_axis_0(127)'
controller #1: option -e with value `rel_axis_3(-128)'
controller #1: option -e with value `abs_axis_8(255)'
controller #1: option -e with value `abs_axis_10(0)'
controller #1: option -d with value `127.0.0.1:55555'
now reading arguments for controller #2
Remote GIMX detected, controller type is: Sixaxis.
using default refresh period: 10.00ms
[17:43:07] openhabian@hase:~$ 
Nothing happens. What might be the problem? How can I generate more debug logs?

Gimx-Version is:

Code: Select all

[17:43:07] openhabian@hase:~$ gimx --version
GIMX 7.9 ARMv6
Thanks a lot for any hint! Best regard,
Frank
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Cannot send events to PS3

Post by Matlo »

Hi,

Your commands look correct. You can add --status at the end of the first one to see if the events were received.
GIMX creator
fonk
Posts: 6
Joined: Sat Dec 08, 2018 4:35 pm

Re: Cannot send events to PS3

Post by fonk »

Hm, does not seem so:

Code: Select all

[17:01:52] openhabian@hase:~$ gimx --src 127.0.0.1:55555 -t Sixaxis -b 5C:6D:20:71:15:24 --status
controller #1: option -s with value `127.0.0.1:55555'
controller #1: option -t with value `Sixaxis'
controller #1: option -b with value `5C:6D:20:71:15:24'
now reading arguments for controller #2
status flag is set
using default refresh period: 10.00ms
Warning: can't open macro directory /home/openhabian//.gimx//macros/
connecting with hci0 = 34:C7:31:09:36:63 to 5C:6D:20:71:15:24 psm 0x0011
connecting with hci0 = 34:C7:31:09:36:63 to 5C:6D:20:71:15:24 psm 0x0013
connected with hci0 = 34:C7:31:09:36:63 to 5C:6D:20:71:15:24

Code: Select all

[17:02:39] openhabian@hase:~$ gimx --event "rel_axis_0(127)" --event "rel_axis_3(-128)" --event "abs_axis_8(255)" --event "abs_axis_10(0)" -d 127.0.0.1:55555
controller #1: option -e with value `rel_axis_0(127)'
controller #1: option -e with value `rel_axis_3(-128)'
controller #1: option -e with value `abs_axis_8(255)'
controller #1: option -e with value `abs_axis_10(0)'
controller #1: option -d with value `127.0.0.1:55555'
now reading arguments for controller #2
Remote GIMX detected, controller type is: Sixaxis.
using default refresh period: 10.00ms
[17:03:12] openhabian@hase:~$ gimx --event "rel_axis_0(127)" --event "rel_axis_3(-128)" --event "abs_axis_8(255)" --event "abs_axis_10(0)" -d 127.0.0.1:55555
controller #1: option -e with value `rel_axis_0(127)'
controller #1: option -e with value `rel_axis_3(-128)'
controller #1: option -e with value `abs_axis_8(255)'
controller #1: option -e with value `abs_axis_10(0)'
controller #1: option -d with value `127.0.0.1:55555'
now reading arguments for controller #2
Remote GIMX detected, controller type is: Sixaxis.
using default refresh period: 10.00ms
[17:03:19] openhabian@hase:~$ 

Code: Select all

[1]+  Stopped                 gimx --src 127.0.0.1:55555 -t Sixaxis -b 5C:6D:20:71:15:24 --status
[17:03:31] openhabian@hase:~$ kill -9 %1
[1]+  Killed                  gimx --src 127.0.0.1:55555 -t Sixaxis -b 5C:6D:20:71:15:24 --status
[17:03:34] openhabian@hase:~$ 

But I forget to mention: As it's a headless system, I tried to avoid installing packaged that depend on a full xserver. Maybe I missed something important?

Code: Select all

[17:01:04] openhabian@hase:~$ sudo dpkg -i --ignore-depends=libwxgtk3.0-0v5,xterm,xdg-utils gimx.deb
Selecting previously unselected package gimx.
(Reading database ... 46076 files and directories currently installed.)
Preparing to unpack gimx.deb ...
Unpacking gimx (7.9-1) ...
Setting up gimx (7.9-1) ...
Processing triggers for mime-support (3.60) ...
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Cannot send events to PS3

Post by Matlo »

I did not have any time to check this, sorry.
I added a new issue to track this: https://github.com/matlo/GIMX/issues/603
GIMX creator
fonk
Posts: 6
Joined: Sat Dec 08, 2018 4:35 pm

Re: Cannot send events to PS3

Post by fonk »

In the meantime I already tried installing the missing packages, but same result. I will test the dongle with an ubuntu at my laptop and maybe with a clean raspberry image to isolate the problem...
fonk
Posts: 6
Joined: Sat Dec 08, 2018 4:35 pm

Re: Cannot send events to PS3

Post by fonk »

I just tested with an ubuntu on my laptop according to your howto at https://gimx.fr/wiki/index.php?title=Gu ... vice=Mouse

The result was the same as mentioned above: It PS3 is switched on, an then I tried to select a user on my PS3 (at the start screen directly after boot) by moving the mouse or pressing keys on the keyboard. Nothing happens. I also can't quit gimx (the mouse freezes and ctrl+esc also shows no reaction). I realized that I can quit gimx when I power on the original PS3 controller, so the bluetooth dongle gets disconnected.

Here is a debug-log of what happened: https://pastebin.com/19QeBBqX

Hopefully you can find the problem with that information!

Best regards,
Frank
lionfish
Posts: 1
Joined: Sun Jan 06, 2019 9:48 pm

Re: Cannot send events to PS3

Post by lionfish »

Hey, Fonk!
Just wanted to say that I've got the same problem.
Running Ubuntu on my laptop, I can switch on the console, connect mouse and KB via BT and then nothing... PS3 just won't respond to my input.
And I cannot close GIMX via shift+esc as well. Have to reconnect the dongle to stop it each time.
User avatar
GoDlike
Posts: 1318
Joined: Thu Apr 28, 2016 12:47 pm
Location: Poland

Re: Cannot send events to PS3

Post by GoDlike »

For now please use cable connection, we will fix this.
My hardware: PS3 Slim CFW 4.80 | PS4 Pro 500 Million LE | PS5 | Xbox Series X
Steam: Godlike_RU | PSN: GoDlike_RU | XBL: GoDlike
fonk
Posts: 6
Joined: Sat Dec 08, 2018 4:35 pm

Re: Cannot send events to PS3

Post by fonk »

Hey!
Any progress on this?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Cannot send events to PS3

Post by Matlo »

Still no time for this at the moment, sorry.
GIMX creator
Post Reply