Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33743 - Consolefont changed after X session
Summary: Consolefont changed after X session
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 03:38 UTC by J.O. Aho
Modified: 2008-09-06 12:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.O. Aho 2003-11-18 03:38:24 UTC
When running XFree86 the consolefont selected in /etc/rc.conf has been changed
to default8xX.psfu.gz, which makes that I get sigma/divided by and other strange
characters in the console instead of the ISO8859-1 characters that I need and
which has been provided by my selected lat1-16.psfu.gz

Reproducible: Always
Steps to Reproduce:
1. Edit your /etc/rc.conf and set CONSOLEFONT="lat1-16" (this gives you aring
and aumlat/oumlat on keys near enter).
2. Reboot or restart the consolefont service
3. Test your ISO8859-1 characters
4. start Xfree86 (either starting service or use startx)
5. stop Xfree86 or use ctrl-alt-f7
6. type something that requiers the ISO8859-1 characters and you will see
"strange characters" part of the IBM/Microsft en/us charactersetup. 

Actual Results:  
Comment 1 J.O. Aho 2003-11-18 03:38:24 UTC
When running XFree86 the consolefont selected in /etc/rc.conf has been changed
to default8xX.psfu.gz, which makes that I get sigma/divided by and other strange
characters in the console instead of the ISO8859-1 characters that I need and
which has been provided by my selected lat1-16.psfu.gz

Reproducible: Always
Steps to Reproduce:
1. Edit your /etc/rc.conf and set CONSOLEFONT="lat1-16" (this gives you aring
and aumlat/oumlat on keys near enter).
2. Reboot or restart the consolefont service
3. Test your ISO8859-1 characters
4. start Xfree86 (either starting service or use startx)
5. stop Xfree86 or use ctrl-alt-f7
6. type something that requiers the ISO8859-1 characters and you will see
"strange characters" part of the IBM/Microsft en/us charactersetup. 

Actual Results:  
åäö vill be displayed as sigma/divided by and other strange characters.

Expected Results:  
pressing å,ä,ö should result in the characters å,ä,ö on the screen too.

It's not that the keymap has been unloaded, but it's that the font has been
replaced, as just loading the lat1-16 font gives the åäö back.

I do understand thant en/us charactersetup users don't care about this, but for
ous that uses national character this is a major bug.
Comment 2 Andrew Bevitt 2004-02-08 01:21:04 UTC
Well honestly I cant find where XFree itself changes this in the source code. Im actually fairly convinced it doesnt. Im thinking that potentially the best solution will be if we issue a /bin/setfont command from the end of the X init scripts.

J.O if you switch to a VT whilst X is running (ctrl-alt-F{1,2,3,etc}) do your fonts appear correctly, or are they incorrect from the starting of the server?
Comment 3 J.O. Aho 2004-02-12 06:41:55 UTC
When switching to VT gives the wrong fonts, reverting back to default font.
Comment 4 Hannu Kröger 2004-04-20 15:56:42 UTC
There is discussion about this problem at this thread:
http://forums.gentoo.org/viewtopic.php?t=115534

might be nvidia related problem?
Comment 5 J.O. Aho 2004-05-16 07:02:40 UTC
I must say I completly miss your logic in seeing that the nVidia would be causing ths problem. The problem I see is that most people involved with baselayout and xfree are english languaged people who don't use ISO-8859-1 or any other character setups (they just are happy with the following ASCII table:  
http://www.computerhope.com/ascii.gif) and therefor don't encounter the problem.

I have used RedHat, where I never had this kind of problem with switching between console/xfree (the console kept the font I wanted to have), I do see this as a Gentoo bug.
Comment 6 Rodrigo Severo 2004-10-30 20:47:33 UTC
I agree with J.O. Aho (Comment #4) that is doesn't seems like a nvidia related problem, except for the fact that apparently everybody with this problem is using nvidia. And it seems that with TwinView and/or TV Out.

Does anybody have any idea on how to fix it? Sometimes my systems also losses the cursor after getting out of X. To get the cursor back I have to change to a thrid font size and them get back to my original one. Just resetting my original font size fixes the font size but doesn't brings my cursor back.

It's really annoying to have to log as root and changes the font size two times just to get back to my original setup.
Comment 7 Soenke Huels 2004-11-18 14:21:38 UTC
This does not seem to be a nvidia related problem, as I get the same with Xorg 6.8.0 and i810 graphics driver. 
Consolefont is set to "lat0-16" by init-script or /bin/setfont, but reset to "default8x16" on X-server startup.  
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-14 10:48:07 UTC
You might like to take a look at https://bugs.freedesktop.org/show_bug.cgi?id=2277.
Comment 9 J.O. Aho 2005-06-19 13:38:20 UTC
Is that patch applied in the vanilla 2.6.12 kernel?
Or does it be attached in the Gentoo-sources patches?
Comment 10 Joshua Baergen (RETIRED) gentoo-dev 2005-07-26 19:05:01 UTC
It would appear that the required changes were committed in January and require
a kernel >= 2.6.11.  Can someone confirm that this is fixed in 6.8.2 or maybe
6.8.99?
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2005-10-12 20:04:19 UTC
Upstream bug.
Comment 12 Joshua Baergen (RETIRED) gentoo-dev 2005-11-13 14:47:24 UTC
Although the upstream bug remains open, the required changes have been
committed.  As this is a rather hefy code-change and largely considered a new
feature, I won't add it to 6.8.2 if it's not already there.  It should be fixed
in all future releases.
Comment 13 Joshua Baergen (RETIRED) gentoo-dev 2005-11-13 14:49:19 UTC
And by hefy I mean hefty :P

Fixed in 7.0 (modular).
Comment 14 sa wu 2008-09-06 12:29:48 UTC
got the specified bug on my box.

when firing up X with xinit/startx consolefont changes back to default 16
same happens when switching to X and back from virtual terminals
after issuing '/etc/init.d/consolefont restart'

consolefont is set to ter-v14n from terminus-font-4.26

i am using:
xorg-x11 7.2, xorg-server-1.34, xinit-1.0.5-r1
nvidia-drivers-173.14.12, baselayout 1.12.11
on an amd64 no-multilib build
dont't know how much more/less info is needed