Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757923AbZAXIwP (ORCPT ); Sat, 24 Jan 2009 03:52:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751043AbZAXIv6 (ORCPT ); Sat, 24 Jan 2009 03:51:58 -0500 Received: from edna.telenet-ops.be ([195.130.132.58]:41465 "EHLO edna.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbZAXIv6 (ORCPT ); Sat, 24 Jan 2009 03:51:58 -0500 Date: Sat, 24 Jan 2009 09:51:55 +0100 (CET) From: Geert Uytterhoeven To: Risto Suominen cc: adaplas@pol.net, linux-fbdev-devel@lists.sourceforge.net, lkml Subject: Re: [Linux-fbdev-devel] [PATCH] fb: hide cursor in graphics mode In-Reply-To: <46e1c7760901230433i3045f273oa109ce97e790bca3@mail.gmail.com> Message-ID: References: <46e1c7760901230433i3045f273oa109ce97e790bca3@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1494 Lines: 43 On Fri, 23 Jan 2009, Risto Suominen wrote: > 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 > --- > The testing is done on kernel version 2.6.18. Which is well... quite old. Does it also (still) happen with 2.6.28? > --- 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)) > return; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/