All of lore.kernel.org
 help / color / mirror / Atom feed
From: vcaputo@pengaru.com
To: dri-devel@lists.freedesktop.org
Subject: RFC: fb restore on drm master close
Date: Wed, 21 Dec 2016 12:13:06 -0600	[thread overview]
Message-ID: <20161221181306.GW1976@shells.gnugeneration.com> (raw)

Hello list,

I've been playing with an unaccelerated drm program[1] and have been
annoyed that whenever this program exits the fbcon isn't restored, with
the display left completely off.

This seems to happen because Xorg is still running from a different VT.

Upon further investigation, it seems like the fb restore only occurs on
"lastclose", which explains what I'm observing.

Why don't we perform the fb restore whenever the current master is
closed to cover this case, since masters are the ones that can change
modes?

My github has a quick-n-dirty i915 implementation[2] which seems to fix
this without negative effects, though I haven't exhaustively tested to
see what breaks.

This isn't a list I subscribe to so please CC me directly in any
replies, thanks everyone!

Regards,
Vito Caputo


1. https://github.com/vcaputo/rototiller
2. https://github.com/torvalds/linux/compare/master...vcaputo:masterclose?expand=1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2016-12-21 18:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-21 18:13 vcaputo [this message]
2017-01-04  8:30 ` RFC: fb restore on drm master close Daniel Vetter
2017-01-04  8:38   ` Stéphane Marchesin
2017-01-04  8:48     ` vcaputo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161221181306.GW1976@shells.gnugeneration.com \
    --to=vcaputo@pengaru.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.