Re: [PATCH 1/8] PM: Add suspend block api

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arve,

 

I can see the usage of suspend blockers from the example you described below. I understand how applications can make use of suspend blockers to save power. Still, my first rule of their usage is don't use them unless necessary, as their misuse might cause increase of power usage.

 

I'm wondering whether you have a recommended rule of suspend blocker usage for both applications and drivers. From application and driver development point of view, I don't want to add suspend blockers everywhere.

 

Sam Shang

 

*******************

Date: Wed, 15 Apr 2009 17:34:43 -0700

From: Arve Hj?nnev?g <arve@xxxxxxxxxxx>

Subject: Re: [PATCH 1/8] PM: Add suspend block api.

To: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

Cc: ncunningham@xxxxxxxxxxx, u.luckas@xxxxxxx, swetland@xxxxxxxxxx,

        Linux-pm mailing list <linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx>

Message-ID:

        <d6200be20904151734o738c7a5dx52a800b97ebc2708@xxxxxxxxxxxxxx>

Content-Type: text/plain; charset=ISO-8859-1

 

2009/4/15 Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>:

> On Tue, 14 Apr 2009, [utf-8] Arve Hj?nnev?g wrote:

> 

>> +Suspend blockers can be used to allow user-space to decide which keys should

> 

> Then in the last section, say this:

> 

> ? ? ?- The user-space input-event thread returns from read. If it

> ? ? ? ?determines that the key should leave the screen off, it

> ? ? ? ?calls suspend_unblock on the process_input_events

> ? ? ? ?suspend_blocker and then calls select or poll. ?The system

> ? ? ? ?will automatically suspend again, since now no suspend blockers

> ? ? ? ?are active.

> 

 

This sounds reasonable too me.

 

--

Arve Hj?nnev?g



check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux