New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669307 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

/usr/bin/powerd_suspend: suspend_prevention models are hardcoded. Does not read value from /var/lib/power_manager/suspend_prevention_models

Reported by chackone...@gmail.com, Nov 29 2016

Issue description

Chrome Version: <From about:version: Google Chrome 53.0.2785.148>
Chrome OS Version: <From about:version: Platform 53.1.6>
Chrome OS Platform: <Lenovo 11e 20GB000LUS>
<b>Network info: <network, encryption type, router model (if known)></b>

Please specify Cr-* of the system to which this bug/feature applies (add
the label below).
/usr/bin/powerd_suspend
    I think this is the original chromium code, not modified by platform customization.

Steps To Reproduce:
(1)set the model number, in my case, 20GB000LUS to the suspend_prevention_models, by

  echo 20GB000LUS > /var/lib/power_manager/suspend_prevention_models
  
(2)
restart powerd


(3)
at the specified inactivity time, powerd will still suspend.

Expected Result:
suspend will not take plca
Actual Result:
suspend takes place

How frequently does this problem reproduce? (Always, sometimes, hard to
reproduce?)
Every time

What is the impact to the user, and is there a workaround? If so, what is
it?
On models which cannot handle suspend, this is equivalent to a crash. Also when you run off a usb stick.

Please provide any additional information below. Attach a screen shot or
log if possible.

If I change the hardcoded values in powerd_suspend to 20GB000LUS, then it would prevent suspend.  It is clear powerd_suspend does not have the code for reading the external values from the settings /var/lib/power_manager/suspend_prevention_models



 
Cc: twreid@chromium.org dchan@chromium.org rjahagir@chromium.org ka...@chromium.org
Components: OS>Kernel>Power
Labels: M-53
Status: Archived (was: Unconfirmed)

Sign in to add a comment