Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errors starting consolefont
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
aarestad
n00b
n00b


Joined: 09 Jan 2004
Posts: 32
Location: Chicago, USA

PostPosted: Tue Feb 10, 2004 6:57 pm    Post subject: Errors starting consolefont Reply with quote

I just upgraded baselayout to the latest stable version (1.8.6.13), but every time I restart my computer, I see this when the consolefont startup script runs:

Code:
 * Setting user font...
putfont: KDFONTOP: Invalid argument
putfont: KDFONTOP: Invalid argument
[etc. - 10 times total]
 * Failed to set user font


Any idea about what's going on?

FWIW, I set CONSOLEFONT to "sun12x22" in /etc/rc.conf. Incidentally, what do others of you use for your CONSOLEFONT setting?

(I did a search on KDFONTOP, and didn't come up with anything relevant, so I hope this isn't redux...)
_________________
During times of universal deceit, telling the truth becomes a revolutionary act.
--George Orwell
Back to top
View user's profile Send private message
aarestad
n00b
n00b


Joined: 09 Jan 2004
Posts: 32
Location: Chicago, USA

PostPosted: Fri Feb 13, 2004 10:55 pm    Post subject: Reply with quote

Bump...
_________________
During times of universal deceit, telling the truth becomes a revolutionary act.
--George Orwell
Back to top
View user's profile Send private message
aarestad
n00b
n00b


Joined: 09 Jan 2004
Posts: 32
Location: Chicago, USA

PostPosted: Tue Feb 17, 2004 10:23 pm    Post subject: Reply with quote

Bumping again. This is annoying, but obviously not life-threatening...
_________________
During times of universal deceit, telling the truth becomes a revolutionary act.
--George Orwell
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Wed Feb 18, 2004 1:56 am    Post subject: Reply with quote

Try setting up fonts manually:
Code:
 setfont <somefont>"

for your font of choice and for some other fonts and see if that works without errors. Post your findings here.
Back to top
View user's profile Send private message
moshiach
n00b
n00b


Joined: 19 Sep 2003
Posts: 68

PostPosted: Thu Feb 19, 2004 7:34 pm    Post subject: Reply with quote

Any ideas on this? I get that annoying consolefont help text and then the can't set user font error on bootup just as the original poster. I also have no terminal in X. When I start it up it presents me with a blank screen and no ability to type. Everything else works fine as evidenced by me typing this right now.

Here's what I did. I installed this new pc from scratch with gentoo-dev-sources as my kernel. Everything worked fine including consolefont.

Since I was setting this up to be my soho pbx, I tried to get the zaptel install to work using the 2.6 ebuild. Had lots of problems, so I decided to suck it up and go back to gentoo-sources and 2.4.22 (nforce motherboards seem to be better supported on 2.6, but oh well) I emerged the new kernel, set it up, installed it and rebooted. That's when I started getting the consolefont problem.

I've tried using setfont at the command prompt and it seems to load fine with no errors, but no change in X.

This is the only error left on my bootup and I really like a clean bootup. Call me anal. Plus, I can't use terminal so it's a bit of a pain (I can alt-f1 to get to a non-x console). Any ideas would be appreciated.
_________________
Linux: More fun than porn.
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Thu Feb 19, 2004 8:18 pm    Post subject: Reply with quote

moshiach,
what you see are two different problems. The setfont text console problem does not affect X, X handles fonts independently of the text mode.

So, your problem with terminal in X is probably due to wrong kernel configuration. Check if you have enabled virtual consoles in your kernel config, without this options, you cannot type anything into xterm or any other terminal in X. The problem you see is most probably font related.


As for as fonts in text console, if setfont command works fine (and it does ste font), check if your font setting is correct in /etc/rc.conf.
What happens when you try /etc/ini.d/consolefont restart ?
IAs a workaround, you can try adding "setfont <your font>" into your .bashrc file and the font should be loaded once you login in into text console.
Back to top
View user's profile Send private message
moshiach
n00b
n00b


Joined: 19 Sep 2003
Posts: 68

PostPosted: Fri Feb 20, 2004 12:05 am    Post subject: Reply with quote

Virtual Terminals is enabled in the console config. That was one thing I checked on. I'm recompiling xfree just on the off chance that I screwed up something.

Setfont actually works to set the fonts from the text console. If I restart consolefonts I get the same annoying help message and then "Failed to set user font" I'm lost at the corner of easy street and clueless loser.
_________________
Linux: More fun than porn.
Back to top
View user's profile Send private message
moshiach
n00b
n00b


Joined: 19 Sep 2003
Posts: 68

PostPosted: Fri Feb 20, 2004 12:18 am    Post subject: Reply with quote

I found a partial answer to the X terminal problem here Seems I neglected to mention I have udev instead of devfs installed. In /etc/udev/udev.permissions was the line
Code:
ptmx:root:tty:0666
which you think should allow anyone to open a vt in X. I added my login to the tty group and had the terminal instantly.

Still trying to figure out the consolefont help text issue.[/url]
_________________
Linux: More fun than porn.
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Fri Feb 20, 2004 2:43 am    Post subject: Reply with quote

moshiach,
is the font set up correctly in /etc/rc.conf?
What exactly is the error that you get? Post it here.

Also, make sure that you do NOT have the following installed: sys-apps/console-tool and sys-apps/console-data.

Have you tried putting setfont into your .bashrc file as I suggested above? Does it work?
Back to top
View user's profile Send private message
moshiach
n00b
n00b


Joined: 19 Sep 2003
Posts: 68

PostPosted: Sun Feb 22, 2004 4:38 am    Post subject: Reply with quote

The rc.conf line is correct. default8x16

The error is (or rather was, see below) "Failed to set user font" I have consolefont set to load at boot, right after hotplug, that is what it spits out.

Just before the error is a bunch of help text, which if memory serves, and it will have to (see below) is the helptext for setfont. And there is a lot of it.

As for sys-apps/console-tool, I never emerged it, but it was on my system so I can only assume it came in via some other package. So, being the experiMENTAL guy that I am, I emerge -C'd it. Now instead of all that nasty setfont help text I get "The setfont executable was not found" when consolefont starts. That's kind of an improvement.

When I had a working setfont on the system, putting it in .bashrc did set the font to whatever I wanted. It didn't get rid of the help text on startup of course.

Who needs consolefont anyway? Not me I say! Not me!
_________________
Linux: More fun than porn.
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Sun Feb 22, 2004 7:27 am    Post subject: Reply with quote

You really do not want console-tools package, it is old and not maintaned (btw, it is hard masked). sys-apps/kbdis its replacement. Make sure you have it installed. It provides setfont executable, so it should solve your error message.
Back to top
View user's profile Send private message
moshiach
n00b
n00b


Joined: 19 Sep 2003
Posts: 68

PostPosted: Sun Feb 22, 2004 7:29 pm    Post subject: Reply with quote

Getting closer, and thanks for sticking with me on this. I emerged sys-apps/kbd and got setfont back. Very good. Now I'm back to the original probelm. Here is what shows on boot when /init.d/consolefont runs.

Code:
 * Setting user font...
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.
 * Failed to set user font                             [ !! ]


All that help text is the help for setfont. Reading through the consolefont script, with my limited knowledge of scripting, I see a lot of references to devfs. That could possibly be the problem since I am using udev instead of devfs.
_________________
Linux: More fun than porn.
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Sun Feb 22, 2004 11:25 pm    Post subject: Reply with quote

I had a look at bug reports and the problem exactly like yours was recently reported
https://bugs.gentoo.org/show_bug.cgi?id=40938
There is a patch for this problem, which is just removing leading dash at the line 53 of /etc/init.d/consolefont script.
Try it out, hopefully it will work.
Back to top
View user's profile Send private message
moshiach
n00b
n00b


Joined: 19 Sep 2003
Posts: 68

PostPosted: Mon Feb 23, 2004 2:46 am    Post subject: Reply with quote

That did indeed work. Thank you very much. That will 'larn me to check the bug reports.
_________________
Linux: More fun than porn.
Back to top
View user's profile Send private message
Mogelhead
n00b
n00b


Joined: 01 Mar 2004
Posts: 12
Location: Örebro, Sweden

PostPosted: Wed Mar 03, 2004 11:15 am    Post subject: Reply with quote

I had the exact same problem as moshiach:
Code:

* Setting user font...
Usage: setfont [write-options] [-<N>] [newfont..] [-m consolemap] [-u unicodemap]
  write-options (take place before file loading):
    -o  <filename>      Write current font to <filename>
    -O  <filename>      Write current font and unicode map to <filename>
    -om <filename>      Write current consolemap to <filename>
    -ou <filename>      Write current unicodemap to <filename>
If no newfont and no -[o|O|om|ou|m|u] option is given,
a default font is loaded:
    setfont             Load font "default[.gz]"
    setfont -<N>        Load font "default8x<N>[.gz]"
The -<N> option selects a font from a codepage that contains three fonts:
    setfont -{8|14|16} codepage.cp[.gz]   Load 8x<N> font from codepage.cp
Explicitly (with -m or -u) or implicitly (in the fontfile) given mappings
will be loaded and, in the case of consolemaps, activated.
    --tty=device      Use `device' as console device for ioctls.
    -h<N>      (no space) Override font height.
    -m <fn>    Load console screen map.
    -u <fn>    Load font unicode map.
    -m none     Suppress loading and activation of a screen map.
    -u none     Suppress loading of a unicode map.
    -v          Be verbose.
    -V          Print version and exit.
Files are loaded from the current directory or /usr/lib/kbd/*/.


Then i tried this:
mhodak wrote:
I had a look at bug reports and the problem exactly like yours was recently reported
https://bugs.gentoo.org/show_bug.cgi?id=40938
There is a patch for this problem, which is just removing leading dash at the line 53 of /etc/init.d/consolefont script.
Try it out, hopefully it will work.


It solved the problem!
Thanks alot!
Back to top
View user's profile Send private message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Sun Mar 07, 2004 12:00 am    Post subject: Reply with quote

enter in menuconfig i mean
#cd /usr/src/linux
#make menuconfig
and then open File Systems>/dev file system and close /dev/pts after re-compile you kernel i mean
#make bzImage modules modules_install .... a reboot and bye " * Failed to set user font " :) ido like that and my problem is finish :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum