On Tue, Jul 29, 2008 at 12:29 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > >> PS setting is rather global NIC state and should be set as user >> preference rather then per application ... socket. If I understand >> correctly what you mean by application. >> What user actually selects is performance/power consumption trade off. > > yes, but what we also pointed out was that the user isn't able to make a > good trade-off, and PS isn't necessarily linear anyway. Therefore, > making the default be based on letting applications set what sort of > latency/quality guarantees they set makes sense for a good user > experience with maximum power saving that doesn't affect applications, > if the user wants to go higher maybe we can later allow that in some > way, but the default should be based on what performance apps expect. I think the path of enabling user to control this through iw(nl) or wext is closer to come to usability as to relay on any application to implement it in next half a year. You need single API anyway since there have to be single point of decision as there are many applications running over single NIC e.g. VoIP and web browser have different requirements. What I would actually start with is to get notification about dc or battery supply. I don't think that class implements notification chain though. Tomas -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html