[Pm-utils] Skipping pm-utils chvt on suspend and resume under kernel modesetting

Dan Nicholson dbn.lists at gmail.com
Thu Mar 12 19:22:06 PDT 2009


On Thu, Mar 12, 2009 at 4:41 PM, Victor Lowther
<victor.lowther at gmail.com> wrote:
> On Mar 12, 2009, at 4:58 PM, Kristian Høgsberg <krh at redhat.com> wrote:
>
>> 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

--
Dan


More information about the Pm-utils mailing list