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

Handle "Check power mode" outputs 0x80 - 0x83 #13

Open
henryptung opened this issue Sep 5, 2024 · 0 comments
Open

Handle "Check power mode" outputs 0x80 - 0x83 #13

henryptung opened this issue Sep 5, 2024 · 0 comments

Comments

@henryptung
Copy link

henryptung commented Sep 5, 2024

See Table 204 in https://people.freebsd.org/~imp/asiabsdcon2015/works/d2161r5-ATAATAPI_Command_Set_-_3.pdf

Return values 0x80 - 0x83 are variants of the Idle state and should be treated similarly to 0xFF.

Relevant code line:

state = ( (args[2] == 0xFF) ? PWM_ACTIVE : PWM_STANDBY );

Related/similar: https://sourceforge.net/p/hdparm/support-requests/11/

henryptung added a commit to henryptung/hddtemp that referenced this issue Sep 5, 2024
These are idle state variants, so treat them the same way as 0xFF.

See vitlav#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant