diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-11-30 12:58:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-11-30 12:58:40 +0000 |
commit | 9aabdfe6d1d5e8036bb22e03e05c3aa96b028703 (patch) | |
tree | 8776acbadbe71af8dcf208d4f951d6a5866c8642 /sys/dev/pci/drm | |
parent | 4c84d64c7cc7b6155392549dba3d4b433d28f546 (diff) |
Restore frame buffer upon last close; makes sure we we have a usable console
after exiting X.
tested by tobiasu@
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c index ebd26d66502..d2b2a6de870 100644 --- a/sys/dev/pci/drm/radeon/radeon_kms.c +++ b/sys/dev/pci/drm/radeon/radeon_kms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeon_kms.c,v 1.13 2013/11/28 21:45:36 kettenis Exp $ */ +/* $OpenBSD: radeon_kms.c,v 1.14 2013/11/30 12:58:39 kettenis Exp $ */ /* * Copyright 2008 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. @@ -1037,6 +1037,7 @@ int radeon_driver_firstopen_kms(struct drm_device *dev) */ void radeon_driver_lastclose_kms(struct drm_device *dev) { + drm_fb_helper_restore(); #ifdef notyet vga_switcheroo_process_delayed_switch(); #endif |