diff options
| author | Andy Whitcroft <apw@canonical.com> | 2010-07-29 11:36:31 -0400 |
|---|---|---|
| committer | Leann Ogasawara <leann.ogasawara@canonical.com> | 2011-08-30 13:17:47 -0400 |
| commit | cef3cd1958323cd71298fc8f90acfefaa0580ea4 (patch) | |
| tree | 77b3430e29e23467eb5f50a2c5746a4c2e4fefcc /drivers/tty | |
| parent | 4ea052023104b2d591f1ebadec6668fb2217de6d (diff) | |
UBUNTU: SAUCE: vt -- allow grub to request automatic vt_handoff
Grub may be able to select a graphics mode and paint a splash screen
for us. If so it needs to be able to tell us it has done so. Add
support for detecting a new graphics mode selected bit in the
screen_info passed over at boot. Use this to automatically enable
vt_handoff mode.
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Diffstat (limited to 'drivers/tty')
| -rw-r--r-- | drivers/tty/vt/vt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 1a6dd63097f..15764df2a00 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
| @@ -2894,6 +2894,13 @@ static int __init con_init(void) | |||
| 2894 | struct vc_data *vc; | 2894 | struct vc_data *vc; |
| 2895 | unsigned int currcons = 0, i; | 2895 | unsigned int currcons = 0, i; |
| 2896 | 2896 | ||
| 2897 | if (screen_info.flags & VIDEO_FLAGS_HANDOFF) { | ||
| 2898 | if (vt_handoff == 0) | ||
| 2899 | vt_handoff = 8; | ||
| 2900 | printk(KERN_INFO "vt handoff: grub requested handoff (vt#%d)\n", | ||
| 2901 | vt_handoff); | ||
| 2902 | } | ||
| 2903 | |||
| 2897 | console_lock(); | 2904 | console_lock(); |
| 2898 | 2905 | ||
| 2899 | if (conswitchp) | 2906 | if (conswitchp) |
