From: Risto Suominen <risto.suominen@gmail.com>
To: adaplas@pol.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] vt - fb: hide cursor in graphics mode
Date: Thu, 22 Jan 2009 20:23:05 +0200 [thread overview]
Message-ID: <46e1c7760901221023r2766a57ey4564d05c05751b6e@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 740 bytes --]
Xserver Xfbdev (kdrive) uses linux framebuffer in graphics mode. It doesn't
need the text mode cursor, it's a bit annoying to have it there sitting in a
corner. This patch disables the cursor when switching to graphics mode.
Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
---
The testing is done on kernel version 2.6.18.
--- a/drivers/char/vt_ioctl.c.org 2006-09-20 06:42:06.000000000 +0300
+++ b/drivers/char/vt_ioctl.c 2009-01-22 12:42:38.000000000 +0200
@@ -491,6 +491,10 @@ int vt_ioctl(struct tty_struct *tty, str
return -EPERM;
switch (arg) {
case KD_GRAPHICS:
+ /*
+ * hide H/W (text) cursor in graphics mode
+ */
+ vc->vc_sw->con_cursor(vc, CM_ERASE);
break;
case KD_TEXT0:
case KD_TEXT1:
[-- Attachment #2: vt_ioctl-graphics-nocursor.diff --]
[-- Type: text/x-diff, Size: 740 bytes --]
Xserver Xfbdev (kdrive) uses linux framebuffer in graphics mode. It doesn't
need the text mode cursor, it's a bit annoying to have it there sitting in a
corner. This patch disables the cursor when switching to graphics mode.
Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
---
The testing is done on kernel version 2.6.18.
--- a/drivers/char/vt_ioctl.c.org 2006-09-20 06:42:06.000000000 +0300
+++ b/drivers/char/vt_ioctl.c 2009-01-22 12:42:38.000000000 +0200
@@ -491,6 +491,10 @@ int vt_ioctl(struct tty_struct *tty, str
return -EPERM;
switch (arg) {
case KD_GRAPHICS:
+ /*
+ * hide H/W (text) cursor in graphics mode
+ */
+ vc->vc_sw->con_cursor(vc, CM_ERASE);
break;
case KD_TEXT0:
case KD_TEXT1:
next reply other threads:[~2009-01-22 18:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 18:23 Risto Suominen [this message]
2009-01-22 19:04 ` Alan Cox
2009-01-22 19:53 ` Risto Suominen
2009-01-22 20:23 ` Risto Suominen
2009-01-23 12:22 ` Risto Suominen
2009-01-22 20:54 ` Alan Cox
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=46e1c7760901221023r2766a57ey4564d05c05751b6e@mail.gmail.com \
--to=risto.suominen@gmail.com \
--cc=adaplas@pol.net \
--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
all inboxes | Powered by JetHome®