From: Matthew Garrett <mjg@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: hpa@zytor.com, gregkh@suse.de, Matthew Garrett <mjg@redhat.com>
Subject: [PATCH 3/3] vgacon: Add support for setting the default cursor state
Date: Fri, 13 Nov 2009 14:57:02 -0500 [thread overview]
Message-ID: <1258142222-16092-3-git-send-email-mjg@redhat.com> (raw)
In-Reply-To: <1258142222-16092-2-git-send-email-mjg@redhat.com>
Pass the vga cursor state to the vt layer, ensuring that we don't hide
the cursor when the bootloader has deliberately disabled it.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
drivers/video/console/vgacon.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 564643e..cc4bbbe 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -586,7 +586,10 @@ static void vgacon_init(struct vc_data *c, int init)
if (!vgacon_uni_pagedir[0] && p)
con_set_default_unimap(c);
- hide_boot_cursor(screen_info.flags & VIDEO_FLAGS_NOCURSOR);
+ /* Only set the default if the user didn't deliberately override it */
+ if (global_cursor_default == -1)
+ global_cursor_default =
+ !(screen_info.flags & VIDEO_FLAGS_NOCURSOR);
}
static void vgacon_deinit(struct vc_data *c)
--
1.6.5.2
next prev parent reply other threads:[~2009-11-13 19:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 19:57 [PATCH 1/3] setup: Store the boot " Matthew Garrett
2009-11-13 19:57 ` [PATCH 2/3] vc: Add support for hiding the cursor when creating VTs Matthew Garrett
2009-11-13 19:57 ` Matthew Garrett [this message]
2009-11-14 0:10 ` [tip:x86/setup] vgacon: Add support for setting the default cursor state tip-bot for Matthew Garrett
2009-11-13 20:14 ` [PATCH v2] vc: Add support for hiding the cursor when creating VTs Matthew Garrett
2009-11-14 0:09 ` [tip:x86/setup] " tip-bot for Matthew Garrett
2009-11-13 22:38 ` [PATCH 2/3] " H. Peter Anvin
2009-11-13 22:41 ` Matthew Garrett
2009-11-13 21:51 ` [PATCH 1/3] setup: Store the boot cursor state H. Peter Anvin
2009-11-13 22:02 ` Matthew Garrett
2009-11-13 22:16 ` H. Peter Anvin
2009-11-14 0:09 ` [tip:x86/setup] x86, " tip-bot for Matthew Garrett
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=1258142222-16092-3-git-send-email-mjg@redhat.com \
--to=mjg@redhat.com \
--cc=gregkh@suse.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome