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

Implement "turn off" behavior of the console on USB #366

Open
nefarius opened this issue Jun 1, 2024 · 0 comments
Open

Implement "turn off" behavior of the console on USB #366

nefarius opened this issue Jun 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request USB USB-related (wired)

Comments

@nefarius
Copy link
Owner

nefarius commented Jun 1, 2024

When the "turn off controller" option is used on supported models while the DS3 is wired connected to the PS3, it can be "turned off", meaning it is still connected via USB and - possibly? - charging but the LEDs will be off and it will stop sending input reports. There appear to be two control requests involved sent by the PS3:

"LEDs off" packet

Frame 64977: 51 bytes on wire (408 bits), 51 bytes captured (408 bits)
USB Link Layer
USB URB
Setup Data
    bmRequestType: 0x21
    bRequest: 9
    wValue: 0x0201
    wIndex: 0 (0x0000)
    wLength: 48
    Data Fragment: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

The wValue and wLength hint about a zero'ed out output report sent over the control EP instead of INT OUT.

"turn off" packet

Frame 65136: 7 bytes on wire (56 bits), 7 bytes captured (56 bits)
USB Link Layer
USB URB
Setup Data
    bmRequestType: 0x21
    bRequest: 9
    wValue: 0x03f4
    wIndex: 0 (0x0000)
    wLength: 4
    Data Fragment: 420b0000

The wValue hint at a specific SET_REPORT/SET_FEATURE request, the payload appears to be the same across all models I could test. This request is not issued to models that do not report support for it to the console on initial handshake.

@nefarius nefarius added enhancement New feature or request USB USB-related (wired) labels Jun 1, 2024
@nefarius nefarius self-assigned this Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request USB USB-related (wired)
Projects
None yet
Development

No branches or pull requests

1 participant