linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Risto Suominen <risto.suominen@gmail.com>
Cc: geert@linux-m68k.org, adaplas@pol.net,
	linux-fbdev-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: [Linux-fbdev-devel] [PATCH] fb: hide cursor in graphics mode
Date: Wed, 11 Feb 2009 14:24:09 -0800	[thread overview]
Message-ID: <20090211142409.b88c577e.akpm@linux-foundation.org> (raw)
In-Reply-To: <46e1c7760902101350r5a04d076j49cc611a843e6429@mail.gmail.com>

On Tue, 10 Feb 2009 23:50:08 +0200
Risto Suominen <risto.suominen@gmail.com> wrote:

> The same as attachment, so the last line won't disappear.
> 
> Risto
> 
> 
> [fbcon-graphics-nocursor.diff  application/octet-stream (814B)]

help.  My knowledge of fbcon is near zero.

> 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 even when in graphics mode.
> 
> Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
> ---
> The testing is done on kernel version 2.6.18.

That's a truly ancient kernel.  Is the patch needed on current kernels?
Does it work correctly in current kernels?

> --- a/drivers/video/console/fbcon.c.org	2007-03-03 07:14:54.000000000 +0200
> +++ b/drivers/video/console/fbcon.c	2009-01-23 12:42:14.000000000 +0200
> @@ -1363,6 +1363,12 @@ static void fbcon_cursor(struct vc_data 
>  	int y;
>   	int c = scr_readw((u16 *) vc->vc_pos);
>  
> +	if (mode == CM_ERASE && info->fbops->fb_cursor) {
> +		/* Hide H/W-cursor unconditionally */
> +		ops->cursor(vc, info, mode, 0, 0, 0);
> +		return;
> +	}
> +
>  	if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1)
>  		return;
>  

How does the cursor get re-enabled?

Should we be calling ops->cursor() if fbcon_is_inactive() is true?

  parent reply	other threads:[~2009-02-11 22:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23 12:33 [PATCH] fb: hide cursor in graphics mode Risto Suominen
2009-01-24  8:51 ` [Linux-fbdev-devel] " Geert Uytterhoeven
2009-01-24  9:09   ` Risto Suominen
2009-01-24 13:26     ` Geert Uytterhoeven
2009-01-24 14:49       ` Risto Suominen
2009-02-10 21:37         ` Risto Suominen
2009-02-10 21:50           ` Risto Suominen
2009-02-11 12:35             ` Risto Suominen
2009-02-11 22:24             ` Andrew Morton [this message]
2009-02-12 21:12               ` Risto Suominen
2009-02-13 20:06                 ` Krzysztof Helt
2009-02-22  7:15                   ` Krzysztof Helt
2009-02-22  9:25                     ` Risto Suominen
2009-02-22 11:20                       ` Krzysztof Helt
     [not found]                       ` <20090222164052.dd5442c4.krzysztof.h1@poczta.fm>
2009-02-23  6:53                         ` Risto Suominen
2009-02-28 18:51                           ` Krzysztof Helt
2009-03-01 11:50                             ` Risto Suominen
2009-03-12 15:19                               ` Risto Suominen
2009-03-15 18:21                                 ` Krzysztof Helt
2009-03-17 21:02               ` [PATCH] fb: hide hardware cursor in graphics mode (Mach64) Krzysztof Helt
2009-03-21 22:01                 ` Risto Suominen
2009-03-21 19:38               ` [PATCH, REPOST] " Krzysztof Helt

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=20090211142409.b88c577e.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=adaplas@pol.net \
    --cc=geert@linux-m68k.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=risto.suominen@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).