[PATCH] vt - fb: hide cursor in graphics mode
- From: Risto Suominen <risto.suominen@xxxxxxxxx>
- Date: Thu, 22 Jan 2009 20:23:05 +0200
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@xxxxxxxxx>
---
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:
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@xxxxxxxxx>
---
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:
- Follow-Ups:
- Re: [PATCH] vt - fb: hide cursor in graphics mode
- From: Alan Cox
- Re: [PATCH] vt - fb: hide cursor in graphics mode
- Prev by Date: [PATCH] atyfb: fix distorted image on PowerMacs
- Next by Date: Re: [PATCH 4/5] debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n
- Previous by thread: [PATCH] atyfb: fix distorted image on PowerMacs
- Next by thread: Re: [PATCH] vt - fb: hide cursor in graphics mode
- Index(es):
Relevant Pages
|