diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2013-03-09 12:39:21 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@openbsd.org> | 2013-03-09 12:39:21 +0100 |
commit | 29ef1c73dd123c46689aee02bbbb943e8e44d17d (patch) | |
tree | ccfe0257651cf6d6062b36692ab85dc0dabc0357 /sys/dev | |
parent | 12c3f143b0ef1bc32025ca4cafe33c379b9ae952 (diff) |
Enable multiple screens
Since proper VT support is still lacking this will make VTs share a single
framebuffer in emulation mode. As a result the display will be messed up
a bit if you run anything on VTs 1-8. This can be mitigated by disabling
the apropriate lines in /etc/ttys. This does allow VT switching between X
and the framebuffer console and makes suspend/resume do the right thing
when in X.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index ba06f8ca88e..ca89e2681b7 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -662,7 +662,7 @@ inteldrm_alloc_screen(void *v, const struct wsscreen_descr *type, struct inteldrm_softc *dev_priv = v; struct rasops_info *ri = &dev_priv->ro; - if (dev_priv->nscreens > 0) + if (dev_priv->nscreens > 8) return (ENOMEM); *cookiep = ri; @@ -1128,7 +1128,7 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux) aa.scrdata = &inteldrm_screenlist; aa.accessops = &inteldrm_accessops; aa.accesscookie = dev_priv; - aa.defaultscreens = 1; + aa.defaultscreens = 0; if (wsdisplay_console_initted) { long defattr; |