Re: [Linux-fbdev-devel] [PATCH] fb: hide cursor in graphics mode

From: Krzysztof Helt
Date: Sun Feb 22 2009 - 06:16:05 EST


On Sun, 22 Feb 2009 11:25:04 +0200
Risto Suominen <risto.suominen@xxxxxxxxx> wrote:

> Krzysztof, thank you for your efforts.
>
> I've been using PowerMac platform with built-in ATI mach64 and Xorg
> server 1.1.1.

I will try to reproduce the problem with Xorg 1.1.1 and your options.
I do not have the PowerMac and the ATI mach64 card.

>
> In my opinion, Xfbdev assumes that the cursor will disappear when
> turning on graphics mode with ioctl(LinuxConsoleFd, KDSETMODE,
> KD_GRAPHICS). It's obvious that fbcon is not doing anything to switch
> the cursor off when it receives this ioctl, fbcon_is_inactive()
> prevents it. The problem comes from that something has made it appear,
> i.e. text mode frame buffer console. I have text consoles on VTs 1 to
> 6 and X on 7.
>


> One maybe unusual property of atyfb is that the frame buffer is higher
> than the screen. To make Xfbdev work correctly I needed the patch
> below.
>

The patch is not a correct fix. A simple workaround is to set a vyres = yres
and disable panning. I am able to reproduce this problem. A cause is
that Xfbdev prints some messages after it set up graphics mode, so
the screen got scrolled. I do not know what is an expected behaviour
(maybe with KD_GRAPHICS no messages should be printed).

Regards,
Krzysztof


----------------------------------------------------------------------
Zostan mistrzem parkowania w Bombaju!
Zagraj >> http://link.interia.pl/f204e

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/