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

ACPI/PM: Propagate power button event to user space when device wakes up #2

Closed
wants to merge 1 commit into from

Conversation

kaushlen
Copy link
Contributor

Sometimes power button does not wake up the systemm and we get suspends event right after that. Here Android needs to see KEY_POWER at resume. Otherwise, its opportunistic suspend will kick in shortly.

However, other OS such as Ubuntu doesn't like KEY_POWER at resume. So add a knob "/sys/module/button/parameters/key_power_at_resume" for users to select.

Sometimes power button does not wake up the systemm and we get suspends
event right after that. Here Android needs to see KEY_POWER at resume.
Otherwise, its opportunistic suspend will kick in shortly.

However, other OS such as Ubuntu doesn't like KEY_POWER at resume.
So add a knob "/sys/module/button/parameters/key_power_at_resume" for
users to select.

Signed-off-by: Kaushlendra Kumar <[email protected]>
@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

@sysopenci
Copy link

Android CI has started Engineering Build for this issue ,Please check Android CI Web for more details.

@sysopenci
Copy link

SUCCESS: Android CI has completed Engineering Build for this issue, Please check Android CI Web for more details.

@kaushlen kaushlen closed this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants