Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force closing a running application #138

Closed
thedmmatt opened this issue Jun 10, 2020 · 8 comments
Closed

Force closing a running application #138

thedmmatt opened this issue Jun 10, 2020 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@thedmmatt
Copy link

Is there a way to force close a running game?
I am using the ps4-waker tool to command my assistant to turn on my console, login on my profile, and open a specific game for me.
Everything runs great if there is no games running or the PS4 is off.
However, if I use it to change the game that the console is running, the module just freezes, although I could hit X on the controller. Is that a way to force the current application to close? Or to unfreeze the "start" verb and send a remote instruction to press Enter?
Really loving the tool :)

@dhleong dhleong added the helpme Questions from users having trouble label Jun 10, 2020
@dhleong
Copy link
Owner

dhleong commented Jun 10, 2020

Glad you're enjoying it!

I'm not aware of any such functionality, but if it's possible from the official app it may be.

Are you running the CLI or interfacing directly with the NodeJS Device API? If the latter, it may be possible to detect that a game is running by using getDeviceStatus() and then send the PS button to leave it, if so (before then sending start()).

@thedmmatt
Copy link
Author

Hi dhleong, thank your for your prompt response.

Your code has been a great addition to my IoT workbench -- so thanks a lot again.

I'm mainly using the CLI option, but I came up with a lazy solution that works fine for now. I just commented out the line 377 of device.js, so the startTitle() function does not report the error. So I just tell ps4-waker to start a title and then send a 'remote enter' to close anything stopping that title.

@stale
Copy link

stale bot commented Aug 10, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix This will not be worked on label Aug 10, 2020
@stale stale bot closed this as completed Aug 18, 2020
@dhleong dhleong reopened this Aug 27, 2020
@stale stale bot removed the wontfix This will not be worked on label Aug 27, 2020
@dhleong dhleong added enhancement New feature or request and removed helpme Questions from users having trouble labels Aug 27, 2020
@dhleong dhleong self-assigned this Aug 27, 2020
@dhleong
Copy link
Owner

dhleong commented Aug 27, 2020

I decided to go ahead and update the start command to automatically quit any conflicting, running app before trying to start the requested one. Should be available now in 1.10.0

@dhleong
Copy link
Owner

dhleong commented Sep 7, 2020

I just released 1.10.1 that further improves this logic; if another game is running and the "do you want to quit?" confirmation shows up, we'll try to automatically agree. This behavior is also now accessible through the Device.startTitle API method, and not just the CLI.

@thedmmatt
Copy link
Author

Great to hear that, buddy. Thank you so much for the effort here!

I just released 1.10.1 that further improves this logic; if another game is running and the "do you want to quit?" confirmation shows up, we'll try to automatically agree. This behavior is also now accessible through the Device.startTitle API method, and not just the CLI.

@thedmmatt
Copy link
Author

Wonderful! Just update all my spcrits, and now I can turn it on right in a game on my way home.

@dhleong
Copy link
Owner

dhleong commented Sep 7, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants