public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Framebuffer as a module
@ 2001-01-05 17:52 -=da TRoXX=-
  2001-01-06  7:41 ` Keith Owens
  0 siblings, 1 reply; 4+ messages in thread
From: -=da TRoXX=- @ 2001-01-05 17:52 UTC (permalink / raw)
  To: linux-kernel

Hello,

please CC me on any replies to this message since I'm not subscribed to the
list (just toooo much mail for me)

I have a very simple question:
I used to compile-in my framebuffer-device in the kernel
then i just appended "video=tdfxfb:1024x768-32@70" in lilo.conf and it
worked..

now i compiled it as a module, and want modprobe to start it up for me..
how can this be done?
modprobe tdfxfb 1024x768-32@70
won't work, because there is no '=' sign in it so modprobe doesn't recognize
it as a parameter, and doesn't pass it.

so what can i do about it?

tnx in advance :)



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Framebuffer as a module
  2001-01-05 17:52 Framebuffer as a module -=da TRoXX=-
@ 2001-01-06  7:41 ` Keith Owens
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Owens @ 2001-01-06  7:41 UTC (permalink / raw)
  To: -=da TRoXX=-; +Cc: linux-kernel

On Fri, 5 Jan 2001 18:52:45 +0100, 
"-=da TRoXX=-" <TRoXX@LiquidXTC.nl> wrote:
>I have a very simple question:
>I used to compile-in my framebuffer-device in the kernel
>then i just appended "video=tdfxfb:1024x768-32@70" in lilo.conf and it
>worked..
>
>now i compiled it as a module, and want modprobe to start it up for me..
>how can this be done?
>modprobe tdfxfb 1024x768-32@70
>won't work, because there is no '=' sign in it so modprobe doesn't recognize
>it as a parameter, and doesn't pass it.

A quick look at drivers/video/tdfxfb.c shows a complete lack of
MODULE_PARM entries so modprobe/insmod will not let specify any
parameters.  Ask the tdfxfb author to add this feature, or code it
yourself.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Framebuffer as a module
  2001-01-06  1:20 ` [PATCH] VESA framebuffer w/MTRR " David Wragg
@ 2001-01-06 17:28   ` Bryan Mayland
       [not found]     ` <002501c07819$21343900$fd1942c3@bluescreen>
  0 siblings, 1 reply; 4+ messages in thread
From: Bryan Mayland @ 2001-01-06 17:28 UTC (permalink / raw)
  To: David Wragg, linux-kernel; +Cc: TRoXX

> I used to compile-in my framebuffer-device in the kernel
> then i just appended "video=tdfxfb:1024x768-32@70" in lilo.conf and it
> worked..
> now i compiled it as a module, and want modprobe to start it up for me..
> how can this be done?
> modprobe tdfxfb 1024x768-32@70

That's a very good question.  The tdfxfb module has no parameters.  It would be
ideal if the tdfxfb mainatiner would add some MODULE_PARM lines for all the
parameters and move the code from tdfxfb_setup that does work into tdfxfb_init.

I think a valid work-around for you is to use fbset after you load the module
to set the resolution.  Does that work?
Bry

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Framebuffer as a module
       [not found]     ` <002501c07819$21343900$fd1942c3@bluescreen>
@ 2001-01-06 20:04       ` Bryan Mayland
  0 siblings, 0 replies; 4+ messages in thread
From: Bryan Mayland @ 2001-01-06 20:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: -=da TRoXX=-

-=da TRoXX=- wrote:

> and i don't get it, who accepts these parameters in the kernel then? i mean
> if i put them in lilo.conf at least SOME thing uses them to set the
> framebuffer right...

    The tdfxfb code does.  When compiled into the kernel, there is a function
(tdfxfb_setup) which the kernel calls with the relevant kernel command-line
parameters.  When compiled as a module, this function is ifdef'ed out, as well
it should be, because I don't think that there is a function which is called to
pass the module parameters.  Modules use MODULE_PARM to 'import' their
parameters.  The code is incomplete, perhaps for a reason.  In theory, the
author should add the required MODULE_PARM macros to export the parameters and
then move the code which does anything besides saving the paramter values to
tdfxfb_init, which is called when the module is loaded /and/ after tdfxfb_setup
when compiled into the kernel.  I don't have the time to fix it myself, I don't
even have a machine with Linux and a Voodoo3 card.

> I know this parameter is for modules only that support modedb (modedb.c) but
> tdfxfb supports that(that's why it works in the kernel)...

    It does, but only when compiled into the kernel due to the way it does its's
setup.

Bry

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-06 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-05 17:52 Framebuffer as a module -=da TRoXX=-
2001-01-06  7:41 ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2001-01-05 16:05 [PATCH] VESA framebuffer w/ MTRR locks 2.4.0 on init Alan Cox
2001-01-06  1:20 ` [PATCH] VESA framebuffer w/MTRR " David Wragg
2001-01-06 17:28   ` Framebuffer as a module Bryan Mayland
     [not found]     ` <002501c07819$21343900$fd1942c3@bluescreen>
2001-01-06 20:04       ` Bryan Mayland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox