# Re: New API and X option UseFBDev

- From: Sven Luther \<hidden\>
- Date: 2003-09-09 16:41:09 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2003/09/13451706
- Thread: https://ratatoskr.run/linux-fbdev/2003/09/13451695/t.md

```text
On Tue, Sep 09, 2003 at 02:57:58PM +0100, Jim Hague wrote:
> On 09-Sep-2003 Sven Luther wrote:
> > On Tue, Sep 09, 2003 at 07:49:55AM +0100, Jim Hague wrote:
> >> I have a problem when I try and run X (Debian 4.2.1-11 20030829103906). My
> >> config uses the Glint driver with UseFBDev true, and works fine on 2.4.22.
> >> [....]
> >> It's occurred to me that maybe this just doesn't work and I need an updated
> >> fbdevhw. Do I? Or should it really Just Work?
> > 
> > I think the glint driver is hardcoded to expect amiga hardware when
> > using pm2 with fbdev. Just don't use the usefbdev option, and everything
> > should be fine.
> > 
> > the glint driver does not really support usefbdev anyway, only as a
> > hacky workaround for amigas with cybervision/bvision graphic board.
> 
> Unfortunately, I do rather think I need to use UseFBDev. Hardware is

Ok, i was wrong, it has been some time since i looked at the glint
driver for fbdev stuff, altough i am kind of the default maintainer of
the glint driver now, or at least part-wise with Alan Hourihane. After
looking at it, i saw that the fbdev code is hardcoded to use a ti_pm2,
and will not work with other graphic chips. But the pm3 X driver i wrote
worked perfectly well without it.

> Graphics Exxtreme, x86, BTW. Without, things just don't work properly -
> something isn't quite right with the mode set by X, and you can't switch back
> to the console. Well, you can try, but it seems to hang the kernel.
> 
> I'm currently using UseFBDev on 2.4, for the same reasons. I will keep on
> digging.

Mmm, notice that the :

(--) GLINT(0): Linear framebuffer at 0xCE800000
(--) GLINT(0): MMIO registers at 0xCFFE0000
(EE) GLINT(0): mmap mmio: Invalid argument
(EE) GLINT(0): mmap mmio: Invalid argument

means that the linear framebuffer and mmio registers, values given to
you by pm2fb, are correct (but check this fact with lspci). GLINTMapMem
should call fbdevHWMapVidmem, so i suppose the message you see are from
fbdevhw. Try enabling the DEBUG #define in glint_driver.c to get a bit
more context. 

Friendly,

Sven Luther


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
```
