> Its pretty intrusive I'd say. I can sort of subscribe to that, but the whole suspend stuff is pretty intrusive overall. > And it is wrong; Obviously, I disagree. > we'd prefer userspace > to know what we are doing; if they are told we are suspending, > userspace may be able to do something more clever than long console > switch. Are you even talking about this patch? We don't currently give anyone a choice: We *always* do a "long console switch" anyway! If userspace were to decide that it can do much better and X can support suspend, then now we take the decision off it and switch to a suspend console while userspace is thinking there's no need. What this patch enables is basically allowing us to remove the suspend console switch. How? Currently, suspend notifications with a whole bunch of ramifications all over the place are invoked before the console switch. By moving the console switch up, we essentially make the sequence identical to (a) removing the in-kernel console switch and (b) replacing it with userspace doing a console switch right before asking us to suspend. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm