You are not logged in.

#1 2009-01-24 15:29:58

shpenat
Member
Registered: 2009-01-24
Posts: 2

console font setting destroyed by X

Hi

I have problem with console fonts. I set them up during boot (setfont lat2-16). On runlevel 3 everything work fine. Bur when I run X server my font setting is overwriten. Where can I find configuration file responsible for this behaviour? 

Shpenat

Offline

#2 2009-01-24 18:48:40

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: console font setting destroyed by X

shpenat wrote:

Hi

I have problem with console fonts. I set them up during boot (setfont lat2-16). On runlevel 3 everything work fine. Bur when I run X server my font setting is overwriten. Where can I find configuration file responsible for this behaviour? 

Shpenat

Let me see if I understand your problem:

The console font is only for the non graphical console. When you run X, fonts are set in another way.

If you return to the console with Ctrl-Alt-F1 the font you set should be there.

Console font can be set in /etc/rc.conf.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2009-01-24 22:34:45

shpenat
Member
Registered: 2009-01-24
Posts: 2

Re: console font setting destroyed by X

Mektub wrote:

Let me see if I understand your problem:

The console font is only for the non graphical console. When you run X, fonts are set in another way.

If you return to the console with Ctrl-Alt-F1 the font you set should be there.

Console font can be set in /etc/rc.conf.

Mektub

Well the critical word there is "should".  I can go to console (Ctrl-Alt-F1), set the fonts (# setfont lat2-16) and everything is fine. Now, when I switch back to X (Alt-F7) and again to console (Ctrl-Alt-F1) the fonts are gone again.

Jjst some more info: I am using these fonts because of czech characters. I am not using UTF-8 encoding, but iso-8859-2 for console fonts. And my LANG and LC_ALL variables are set to en_US.iso-8859-1. Maybe here is the problem, but i dont see where.

Thanks for replay

PS. I am not using standart Arch-Linux buutscripts so my box does not have /etc/rc.conf file.  But I dont think it is bootscript problem. Booting to runlevel 3 (without X) sets font flawlessly.

Offline

#4 2009-03-14 07:45:17

hokum_rus
Member
From: Russia, Novosibirsk
Registered: 2009-03-14
Posts: 28

Re: console font setting destroyed by X

I can confirm this. Using UTF-8 locale and stock Arch init system. X started via GDM, and using NVIDIA proprietary drivers. Each time I'm switching to tty7 (Xorg) and back to tty1-6 a got incorrect font and must do setfont.


KISS is a right way ever

Offline

#5 2009-03-14 07:57:18

Chrysalis
Member
Registered: 2008-07-07
Posts: 155

Re: console font setting destroyed by X

setfont is not permanent. Set it in your rc.conf and reboot.

Offline

#6 2009-03-14 07:59:54

hokum_rus
Member
From: Russia, Novosibirsk
Registered: 2009-03-14
Posts: 28

Re: console font setting destroyed by X

Chrysalis wrote:

setfont is not permanent. Set it in your rc.conf and reboot.

correct CONSOLEFONT setting IS in rc.conf, but it works only if no GDM starting automatically and X loads.

Last edited by hokum_rus (2009-03-14 08:05:47)


KISS is a right way ever

Offline

#7 2009-03-14 08:12:12

Chrysalis
Member
Registered: 2008-07-07
Posts: 155

Re: console font setting destroyed by X

I dont know then. I use kdm and its fine.

Edit: inittab method is recomended though so make sure you are using that instead of daemons in rc.conf.

Last edited by Chrysalis (2009-03-14 08:13:46)

Offline

#8 2009-03-14 08:22:49

hokum_rus
Member
From: Russia, Novosibirsk
Registered: 2009-03-14
Posts: 28

Re: console font setting destroyed by X

Chrysalis wrote:

I dont know then. I use kdm and its fine.

Edit: inittab method is recomended though so make sure you are using that instead of daemons in rc.conf.

Thank you,
anyway, troubles with Xorg and cyrillic screen fonts in tty I have in Ubuntu as well sad


KISS is a right way ever

Offline

#9 2009-03-14 10:07:41

Chrysalis
Member
Registered: 2008-07-07
Posts: 155

Re: console font setting destroyed by X

Can you give some more details?

Wild guess here, but if its for tty read up on 'locale.gen' and enable whatever locale it is that you need or if you are talking about a font not showing in Xorg make sure its in xorgs fontpath... look at what fontpaths you have enabled in xorgs log and adjust as needed in xorg.conf.

Offline

#10 2009-03-14 11:21:47

hokum_rus
Member
From: Russia, Novosibirsk
Registered: 2009-03-14
Posts: 28

Re: console font setting destroyed by X

Chrysalis wrote:

Can you give some more details?

Wild guess here, but if its for tty read up on 'locale.gen' and enable whatever locale it is that you need or if you are talking about a font not showing in Xorg make sure its in xorgs fontpath... look at what fontpaths you have enabled in xorgs log and adjust as needed in xorg.conf.

I dont think its related to X fonts, because X not do anything to display tty console fonts.
But Xorg (maybe GDM, maybe NVIDIA proprietary driver) someway broke console font (not x terminal font, but tty console - agetty font indeed ) loaded in init sequence according to CONSOLEFONT setting in /etc/rc.conf


KISS is a right way ever

Offline

#11 2009-03-14 16:25:23

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: console font setting destroyed by X

shpenat wrote:

PS. I am not using standart Arch-Linux buutscripts so my box does not have /etc/rc.conf file.  But I dont think it is bootscript problem. Booting to runlevel 3 (without X) sets font flawlessly.

What are you using then?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#12 2009-03-14 19:11:48

rphx
Member
From: Russia, Siberia
Registered: 2009-03-14
Posts: 3

Re: console font setting destroyed by X

do you have a "vga=773" param at the kernel line?
it helped me.

Offline

#13 2009-03-15 00:52:45

hokum_rus
Member
From: Russia, Novosibirsk
Registered: 2009-03-14
Posts: 28

Re: console font setting destroyed by X

Thanx everybody!
Dont know exactly, what helped indeed, but after change rc.conf's DAEMON to inittab way of starting GDM and added vga=773 parameter to GRUB it all works correctly!


KISS is a right way ever

Offline

Board footer

Powered by FluxBB