Talk:Suspend and resume

From OLPC
Revision as of 05:14, 3 July 2009 by Wad (talk | contribs)
Jump to navigation Jump to search

Testing Suspensions

The "weird" units of accum_current seem to be joules*10 (or kilojoules/100; that would be consistent with the temperature units degreesC/100). Anyway, I ran /usr/bin/olpc-logbat into a spreadsheet and compared the accum_current values with a prediction based on accumulating current_avg * voltage_avg. they were pretty close, a small error that grows linearly over time. this is to be expected, i guess, since the current and voltage are 10-second averages and not the actual instantaneous numbers that accumulate into accum_current.

Other weirdness: accum_current will drop below zero before the battery dies. Also, 16 watt-hours is 57.60 kJ. My battery seems to range from about -550 to 6850. does my battery store 74.00 kJ? that's 20.55 watt-hours! well, it is new...

instead of joules, the units could be volt-coulombs. but joule = watt * second = volt * amp * second = volt * coulomb. whatever... Co149 02:45, 18 January 2008 (EST)

inhibit-idle-suspend...

The dev mailing list mentioned, courtesy of Chris Ball, that as of update 1 candidate build 699, the inhibit-idle-suspend module exists to allow the user to disable idle suspend while still allowing the explicit suspends of pressing the power button or closing the lid. Or perhaps, per John W., that is sleep and not suspend.

Disabling Suspensions

.ini files from /etc/ohm/plugins.d

# acadapter preference values

# xorg preference values
xorg.display 0

# dpms preference values
# method:
# 0     stagger
# 1     standby
# 2     suspend
# 3     off
dpms.method 3 public
powerstatus.percentage_low 20 public
powerstatus.percentage_critical 10 public
suspend.fixme_inhibit 0 public

# backlight preference values
backlight.hardware_brightness 15 public
backlight.percent_brightness 100 public

# battery preference values
timeouts.timer_momentary 25000 public
timeouts.timer_powerdown 30000 public

# timeremaining preference values
timeremaining.calculate_hysteresis 1 public
display.value_ac 15 public
display.value_battery 15 public
display.value_idle 6 public
display.value_user 15 public

# button preference values

# xrandr preference values


Disable suspend features

To prevent suspend from happening.

 # touch /etc/ohm/inhibit-suspend

To re-enable suspend.

 # rm  /etc/ohm/inhibit-suspend

Still under consideration, refusing to suspend when certain classes of USB devices are plugged in. This hasn't been implemented yet (as of Update.1 build 680)