2004-09-26 13:53:08

by Fabrice Ménard

[permalink] [raw]
Subject: fbcon and unimap (kernel 2.6.8.1) again

Hi,

Switching from 2.6.5 to 2.6.8.1, I found the same problem with accented chars
at boot time (fbcon didn't set a unicode map in 2.6.5).
Looking into fbcon.c, I found that in the 2.6.8.1 release it is done in
fbcon_startup (fbcon.c). I don't know exactly the internals but I think this
call is misplaced (maybe too late for the boot process ?).

So I placed a call to con_set_default_unimap in fbcon_init and it works fine !

Here is the patch

--- linux-2.6.8.1/drivers/video/console/fbcon.c.orig 2004-09-26
15:48:10.000000000 +0200
+++ linux-2.6.8.1/drivers/video/console/fbcon.c 2004-09-26 14:27:37.000000000
+0200
@@ -853,6 +853,7 @@ static void fbcon_init(struct vc_data *v
softback_top = 0;
}
}
+ con_set_default_unimap(vc->vc_num);
}

static void fbcon_deinit(struct vc_data *vc)

(I think it doesn't hurt to leave the previous call in fbcont_startup)

regards,

--
Fabrice M?nard
[email protected]