Thank you very much for you answer. I will explain the situation more.
The first of all here is some info about inputdump program
Environment:
Celeron 450 96 Mb memory Matrox G100. Linux Red Hat 6.0 usual installation
without kernel recompiling.
Matroxfb is loaded as module in /etc/rc.d/localinit.d
instmod matroxfb
fbset xga16 -a
where xga16 is my setting for 1024x768 16bit
Svgalib is not intalled.
when I start under root I've got normal behavior and error output:
Under usual user I've got error output:
        display-fbdev: ioctl(VT_GETSTATE) failed: Invalid argument
        L/vtswitch: open /dev/vc/8: No such file or directory
        Linux-kbd: Couldn't open TTY: Device not configured
        display-fbdev: Unable to open linux-kbd, trying stdin input.
Also gpm mouse is always on the screen.

when I run my program I've got stderr output:
        display-fbdev: ioctl(VT_GETSTATE) failed: Invalid argument
        L/vtswitch: open /dev/vc/8: No such file or directory
        Linux-kbd: Couldn't open TTY: Device not configured
        display-fbdev: Unable to open linux-kbd, trying stdin input.
        1024x768.V1024x768.F2.D1x1.[C16/16]
My program draws some lines boxes over a screen within 10 sec.  it stops
after.
If I do not touch any key  or mouse there are no problems except one.
Sometimes I can see text cursor blinking in down part of the screen.
When I'm going to switch consoles my program is drawing over these consoles.
And also program completely loses parent console background.

When I ran inputdump using root I also had problems with loosing of
background. There is no problem with switching between consoles except that
one.

About vesafb. When I start Linux using vesafb on the same configuration I
can not run my program in F2 mode as well as I can not run GGI demo programs
in the same mode or using virtual screen.

Best regards, Dmitry



-----Original Message-----
From: James Simmons [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 12, 1999 8:18 AM
To: [EMAIL PROTECTED]
Subject: Re: GGI using




> Matrox(G100 4MB) Frame buffer.
> Problem is I can not operate with GGI input without super user privileges.

Weird. Never had this problem.

> Other problem that every console uses the same fb.

How many vidoe card do you have? Their is normally one video for all
virtual terminals. If you have more than one video card that uses fbdev
then you can use a utility called con2fb to map consoels to a particular
video card.

> How I can stop text
> cursor, gpm, loosing picture when switching between consoles?

Starnge. Never had this problem. I switch all the time between Mesa-GGI
and my nice fbcon termninal.

> (By the way may be some one knows. I load matroxfb as module and have
> problem with gpm. My text mouse catches only 80x25 moving range instead of
> 132x..(i use 1024x768))
> VESA Frame buffer(using vesa 2.0 over Matrox G100 4MB)
> I can not set modes: 0000x0000.V1111x1111  where 0000 and 1111 are the all
> possible combination
> also I can not set F2 mode.

Hum. These are fbcon bugs. More like console code bugs. I have sent this
to the fbdev list.

> When vesafb is loading at the boot time I can
> see(or inspect log)that frame buffer is set 1024x4824 .I can be wrong with
> exactly remembering of the last dimension.

This is right. Fbcon allocates all the video memory. This enables nice
scrolling.

> Could you show me any way how to
> use vesa fb with multiple frames?

I believe with GGI you can allocate more than one frame when you set a
mode.

> To cut a long story short my basic questions are
>
> 1. How to use ggi input with framebuffer target without root privileges

I never seen this before.

> 2. How to use vesafb with multi-frames

You shouldn't have to worry about this.LibGGI does this for you.

> 3. How I can stop text cursor, gpm, loosing picture when switching between
> consoles?

> some additional

> 4. I would like to get hardware mouse cursor.

LibGGI has no cursor support as of yet. This falls under the area of
sprites but I haven't heard anything recently on this.

Reply via email to