#10129 NORM 1.5-sof: powerd should inhibit idle-suspend on tty use
Zarro Boogs per Child
bugtracker at laptop.org
Wed Apr 21 20:32:59 EDT 2010
#10129: powerd should inhibit idle-suspend on tty use
------------------------------------+---------------------------------------
Reporter: cjb | Owner: pgf
Type: defect | Status: new
Priority: normal | Milestone: 1.5-software-update
Component: power manager (powerd) | Version: not specified
Keywords: | Next_action: never set
Verified: 0 | Deployment_affected:
Blockedby: | Blocking:
------------------------------------+---------------------------------------
Hi,
powerd just idle-suspended on me while I was typing on VT1, which seems
like a bug. OHM did:
{{{
if (stat(TTY1, &tty1) >= 0) {
g_debug ("tty1 time is %lu", (unsigned long)
tty1.st_mtime);
if (curtime-tty1.st_mtime >= 0 && curtime-tty1.st_mtime <
60) {
/* We check for >= 0 so that a future filesystem
doesn't inhibit. */
g_debug("tty1 is in use; inhibiting screen dim.");
ohm_plugin_conf_set_key (plugin,
"suspend.fixme_inhibit", 1);
return TRUE;
}
}
}}}
Can powerd do something similar?
--
Ticket URL: <http://dev.laptop.org/ticket/10129>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list