On Mar 12, 2009, at 9:22 PM, Dan Nicholson <dbn.li...@gmail.com> wrote:
> On Thu, Mar 12, 2009 at 4:41 PM, Victor Lowther > <victor.lowt...@gmail.com> wrote: >> On Mar 12, 2009, at 4:58 PM, Kristian Høgsberg <k...@redhat.com> wr >> ote: >> >>> Hi Victor, >>> >>> I'm attaching a patch that I've just added to pm-utils in Fedora >>> Rawhide. With a kernel modesetting capable drm driver and DRI2, >>> we no >>> longer need to chvt away from X to suspend and resume correctly. >>> We'll >>> keep it in rawhide and see how it goes, but I've tested it on a >>> bunch of >>> intel machines and it works. Dave Airlie is testing this with >>> radeon >>> modesetting and it should work there too. >> >> No problem - I have been waiting for KMS to hit mainline before >> patching pm-utils myself. > > Speaking of which, right now smart_kernel_intel() doesn't disable the > S3 hooks. I think with KMS, we shouldn't need to run any video hooks. > So, perhaps something like this should be added: > > local kms=`cat /sys/module/i915/parameters/modeset 2>/dev/null` > [ "$kms" = 1 ] && remove_parameters --quirk-s3-mode --quirk-s3-bios What I had in mind was to: Merge apatch that makes chvt handling happen in 99video/uswusp, and makes it act like a quirk that always runs unless explicitly disabled. Merge another patch that looks for kernel mode setting, removes all quirks, and explicitly disables chvt. > > -- > Dan _______________________________________________ Pm-utils mailing list Pm-utils@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pm-utils