* [PATCH] turn vesa framebuffer off at boot 2.4.18
@ 2002-07-27 19:56 Peter T. Breuer
2002-07-27 20:36 ` Bongani
0 siblings, 1 reply; 2+ messages in thread
From: Peter T. Breuer @ 2002-07-27 19:56 UTC (permalink / raw)
To: kraxel; +Cc: linux kernel
I use the same kernel everywhere but when vesa framebuffer is compiled
into the kernel the text mode console on my laptop doesn't show the
bottom few lines of the screen.
So I wanted to turn it off at boot .. but there didn't seem to be a way
:-(. Hence I added the boot param
video=vesa:off
Apologies if it was possible some other way. I believe I've heard
of some distros providing FB and NONFB kernels. I didn't stop to
investigate beyond reading the Documentation/fb/*.txt.
This patch is against the pre-2.4.18 kernel code I had handy.
Sorry if it needs to be more recent. I don't have another 120M
to spare for a newer source just now ...
It works.
--- vesafb.c.orig Sat Jul 27 21:42:39 2002
+++ vesafb.c Sat Jul 27 21:10:39 2002
@@ -98,6 +98,7 @@
static int pmi_setpal = 0; /* pmi for palette changes ??? */
static int ypan = 0; /* 0..nothing, 1..ypan, 2..ywrap */
+static int disable = 0; /* added by P. Breuer ptb@it.uc3m.es */
static unsigned short *pmi_base = 0;
static void (*pmi_start)(void);
static void (*pmi_pal)(void);
@@ -462,6 +463,8 @@
if (! strcmp(this_opt, "inverse"))
inverse=1;
+ else if (! strcmp(this_opt, "off"))
+ disable=1;
else if (! strcmp(this_opt, "redraw"))
ypan=0;
else if (! strcmp(this_opt, "ypan"))
@@ -504,6 +507,12 @@
int __init vesafb_init(void)
{
int i,j;
+
+ if (disable) {
+ printk(KERN_INFO
+ "vesafb: aborted on user req (disable)\n");
+ return -EINVAL;
+ }
if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB)
return -ENXIO;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] turn vesa framebuffer off at boot 2.4.18
2002-07-27 19:56 [PATCH] turn vesa framebuffer off at boot 2.4.18 Peter T. Breuer
@ 2002-07-27 20:36 ` Bongani
0 siblings, 0 replies; 2+ messages in thread
From: Bongani @ 2002-07-27 20:36 UTC (permalink / raw)
To: ptb; +Cc: kraxel, linux kernel
If you areusing lilo the remove the line
vga=788 (NOTE: this number might be different)
or replace it by vga=normal (IIRC)
the other option is to add the vga=normal on the boot param
On Sat, 2002-07-27 at 21:56, Peter T. Breuer wrote:
>
> I use the same kernel everywhere but when vesa framebuffer is compiled
> into the kernel the text mode console on my laptop doesn't show the
> bottom few lines of the screen.
>
> So I wanted to turn it off at boot .. but there didn't seem to be a way
> :-(. Hence I added the boot param
>
> video=vesa:off
>
> Apologies if it was possible some other way. I believe I've heard
> of some distros providing FB and NONFB kernels. I didn't stop to
> investigate beyond reading the Documentation/fb/*.txt.
>
> This patch is against the pre-2.4.18 kernel code I had handy.
> Sorry if it needs to be more recent. I don't have another 120M
> to spare for a newer source just now ...
>
> It works.
>
>
> --- vesafb.c.orig Sat Jul 27 21:42:39 2002
> +++ vesafb.c Sat Jul 27 21:10:39 2002
> @@ -98,6 +98,7 @@
>
> static int pmi_setpal = 0; /* pmi for palette changes ??? */
> static int ypan = 0; /* 0..nothing, 1..ypan, 2..ywrap */
> +static int disable = 0; /* added by P. Breuer ptb@it.uc3m.es */
> static unsigned short *pmi_base = 0;
> static void (*pmi_start)(void);
> static void (*pmi_pal)(void);
> @@ -462,6 +463,8 @@
>
> if (! strcmp(this_opt, "inverse"))
> inverse=1;
> + else if (! strcmp(this_opt, "off"))
> + disable=1;
> else if (! strcmp(this_opt, "redraw"))
> ypan=0;
> else if (! strcmp(this_opt, "ypan"))
> @@ -504,6 +507,12 @@
> int __init vesafb_init(void)
> {
> int i,j;
> +
> + if (disable) {
> + printk(KERN_INFO
> + "vesafb: aborted on user req (disable)\n");
> + return -EINVAL;
> + }
>
> if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB)
> return -ENXIO;
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-27 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-27 19:56 [PATCH] turn vesa framebuffer off at boot 2.4.18 Peter T. Breuer
2002-07-27 20:36 ` Bongani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®