Re: [AD] d_ctext_proc

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> > This happens only on the Linux console (not under X).  If the system is
> > autodetected and nothing is specified in the config file,
> > _xwin_sysdrv_init (x/xsystem.c) is called before sys_linux_init
> > (linux/lsystem.c).  It first loads the modules and only then tries to
> > open a display, which fails.  Then sys_linux_init is called and loads
> > the modules again.
>
> _xwin_sysdrv_exit() seems to be called the right places, which would
> unload the modules first.  What am I missing?

Nothing for me. Here's a session from the Linux console:

load module: 0x8076c00 (/usr/local/lib/allegro//4.1/alleg-vga.so)
load module: 0x8076f10 (/usr/local/lib/allegro//4.1/alleg-fbcon.so)
load module: 0x8077248 (/usr/local/lib/allegro//4.1/alleg-svgalib.so)
load module: 0x8077870 (/usr/local/lib/allegro//4.1/alleg-dga2.so)
load module: 0x8077be0 (/usr/local/lib/allegro//4.1/alleg-artsdigi.so)
load module: 0x8078230 (/usr/local/lib/allegro//4.1/alleg-alsadigi.so)
load module: 0x8078988 (/usr/local/lib/allegro//4.1/alleg-alsamidi.so)
unload module: 0x8078988
unload module: 0x8078230
unload module: 0x8077be0
unload module: 0x8077870
unload module: 0x8077248
unload module: 0x8076f10
unload module: 0x8076c00
load module: 0x8077c30 (/usr/local/lib/allegro//4.1/alleg-vga.so)
load module: 0x8075b98 (/usr/local/lib/allegro//4.1/alleg-fbcon.so)
load module: 0x8075eb0 (/usr/local/lib/allegro//4.1/alleg-svgalib.so)
load module: 0x80764d8 (/usr/local/lib/allegro//4.1/alleg-dga2.so)
load module: 0x8076800 (/usr/local/lib/allegro//4.1/alleg-artsdigi.so)
load module: 0x8078330 (/usr/local/lib/allegro//4.1/alleg-alsadigi.so)
load module: 0x8078a88 (/usr/local/lib/allegro//4.1/alleg-alsamidi.so)
Fatal error: unable to set GFX_SAFE
Unable to set any graphic mode
This driver needs root privileges
unload module: 0x8078a88
unload module: 0x8078330
unload module: 0x8076800
unload module: 0x80764d8
unload module: 0x8075eb0
unload module: 0x8075b98
unload module: 0x8077c30

So I think Annie's umodules.diff patch is useless.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/