Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
putfont: PIO_FONT: Invalid argument
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
McMCC
n00b
n00b


Joined: 24 Nov 2004
Posts: 3
Location: Moscow, Russia

PostPosted: Sun Nov 28, 2004 9:37 pm    Post subject: Reply with quote

VinzC wrote:

Will console fonts still be applied with that patch?


The given patch will not affect in any way work of the console, fonts will work...
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Nov 29, 2004 11:18 am    Post subject: Reply with quote

Thanks, McMCC.

Here's another one. Well, I know it doesn't fix the problem but it's a bit faster; for those who fear editing kernel files: a possible workaround is to boot with kernel argument splash=verbose (in grub.conf or lilo.conf).

Console fonts are applied and no error occurs. I made that change temporarily until the bug is fixed in sources. Then I'll restore my bootsplash.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Nov 29, 2004 2:30 pm    Post subject: Reply with quote

I've tried your patch, McMCC.

But first congrat's! I hadn't seen your post count. You aren't any n00b are you ;-).

A strange thing happens though: the nice splash disappears and switches to verbose mode anyway where it used to say an error about putfont(). Results: I never see bootsplash run through.

Any more magic bullet? ;-)
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
McMCC
n00b
n00b


Joined: 24 Nov 2004
Posts: 3
Location: Moscow, Russia

PostPosted: Mon Nov 29, 2004 3:05 pm    Post subject: Reply with quote

VinzC wrote:
I've tried your patch, McMCC.

But first congrat's! I hadn't seen your post count. You aren't any n00b are you ;-).

A strange thing happens though: the nice splash disappears and switches to verbose mode anyway where it used to say an error about putfont(). Results: I never see bootsplash run through.

Any more magic bullet? ;-)


I do not use Gentoo, I use Fedora Core 3, I have casually left on this forum when searched for the decision of a problem with setfont, in result I managed to solve this problem itself and now fbsplash works excellently together with setfont... The principal cause not works setfont consists that it uses mode KD_TEXT, it depends fblash in a mode silent uses KD_GRAPHICS, the given patch disconnects check of modes of the console and allows setfont to load fonts in any mode...
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Dec 01, 2004 10:55 am    Post subject: Reply with quote

McMCC wrote:
The principal cause not works setfont consists that it uses mode KD_TEXT, it depends fblash in a mode silent uses KD_GRAPHICS, the given patch disconnects check of modes of the console and allows setfont to load fonts in any mode...


Just a thought: can I prevent Gentoo from switching anyway to verbose mode by patching vt.c a bit further?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Endoscient
n00b
n00b


Joined: 17 Mar 2004
Posts: 44

PostPosted: Sat Dec 04, 2004 7:17 pm    Post subject: Reply with quote

does that patch thingy work? how do i install it...


i am getting this annoying msg too... with fbsplash
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sun Dec 05, 2004 12:09 pm    Post subject: Reply with quote

Endoscient wrote:
does that patch thingy work? how do i install it...


You must edit file /usr/src/linux/drivers/char/vt.c and apply changes mentionned by McMCC. Find a piece of code that looks like the following:
Code:

        int rc = -EINVAL;
        int size;

        if (vt_cons[currcons]->vc_mode != KD_TEXT)
                return -EINVAL;
        if (!op->data)
                return -EINVAL;
        if (op->charcount > 512)

I suggest you searched for KD_TEXT in nano. Change code as follows:
Code:

        int rc = -EINVAL;
        int size;

#ifndef CONFIG_FB_SPLASH /* Fix for setfont (McMCC) */
        if (vt_cons[currcons]->vc_mode != KD_TEXT)
                return -EINVAL;
#endif
        if (!op->data)
                return -EINVAL;
        if (op->charcount > 512)

Don't forget to make a backup of that file before making changes. Then recompile your kernel.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Sun Dec 05, 2004 6:26 pm    Post subject: Reply with quote

The patch didn't work for me. It thought of a solution, but i don't know if it is possible: to put the consolefont as the last thing that init runs, and the consolefont script to first tell the splash to go verbose (so it doesn't give that error). If anyone knows how this can be done...
_________________
We are not alone.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sun Dec 05, 2004 8:56 pm    Post subject: Reply with quote

WladyX wrote:
The patch didn't work for me.


Do you mean you're still getting an error or does the screen turn back to verbose mode without error? I don't get any error but verbose mode is back at the same moment the error took place.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Sun Dec 05, 2004 10:53 pm    Post subject: Reply with quote

I still get the error, the splash does not go verbose because of consolefont like it was said, it goes verbose when the splash init is started. If you make consolefont to start after splash it works (no error&the fonts are applied), but the other ttys don't have splash aplied, very strange. :?
_________________
We are not alone.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Dec 06, 2004 11:42 am    Post subject: Reply with quote

WladyX wrote:
I still get the error, the splash does not go verbose because of consolefont like it was said, it goes verbose when the splash init is started. If you make consolefont to start after splash it works (no error&the fonts are applied), but the other ttys don't have splash aplied, very strange. :?


Please then post the content of uname -a and dmesg. We'll see.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Mon Dec 06, 2004 3:19 pm    Post subject: Reply with quote

Sorry i modifeid back my kernel, edited the consolefont not to send the output and made splash not to go verbose on errors, so it would be irrelevant at this time, but thank you for tring to help me :)
_________________
We are not alone.
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Tue Dec 14, 2004 3:36 am    Post subject: Having console font Reply with quote

I'm french Canadian and I use accents in console mode. If consolefont failes, then convertion from iso to unicode failes to, and I get bizarre symboles. Here is my fix:

First remove consolefont from rc
Code:
rc-update del consolefont


Then add this line to /etc/conf.d/local.start
Code:
/etc/init.d/consolefont start


This makes consolefont work properly with splash screen in silent mode. The splash screen is still switched to verbose mode near step 3 of the init process. I don't know why since there is no error on screen.
_________________
Stormer :)
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Tue Dec 14, 2004 4:00 am    Post subject: An other solution Reply with quote

An other solution:
Remove from rc
Code:
rc-update del consolefont

Add this to /etc/conf.d/local.start in the same order:
Code:
splash_util -mv -c setmode
/etc/init.d/consolefont start

And never switch on error:
In /etc/conf.d/splash
Code:
SPLASH_VERBOSE_ON_ERRORS="no"

That's it, don't forget to switch the on errors to yes when you update your system.
_________________
Stormer :)
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Tue Dec 14, 2004 10:25 am    Post subject: Reply with quote

If you make splash not to go verbose on errors, you don't have to make the other changes (put consolefont and splash in local). Maybe only edit consolefont not to print the error message, if it bugs you.
_________________
We are not alone.
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Tue Dec 14, 2004 11:56 am    Post subject: putfont will not work in silent mode Reply with quote

Yes you need the other steps if putfont is doing job for you. The fact is that in vesa mode, you cannot access font palette when you are in a complete videomode. In that mode we use that palette to enlarge the real palette. That mean, you need to be in verbose mode to be able to set font on your tty.

So if you ask your splash not to switch on errors and don't make changes I propose to your local.start, then you'll end up with bad console font, which mean you'll get bizarre symbole instead of accent if you are using unicode.
_________________
Stormer :)
Back to top
View user's profile Send private message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Sun Jan 02, 2005 7:46 pm    Post subject: PIO_FONT error without gensplash Reply with quote

Hi,
unfortunately i had to recompile compleate gentoo... so now I have only system, nvidia,alsa,xorg,kde.
and....
Quote:
holly root # setfont
putfont: PIO_FONT: Invalid argument


So I thought (and hope) its fbsplash bug and it will be removed in next version...BUT I have the same problem even without fbsplash.... ????

have you any idea how it is in real? and how to fix it?
W
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Mon Jan 03, 2005 1:09 am    Post subject: This is not a fb splash bug Reply with quote

It is not a fbsplash bug. I think the bug is that PIO functions are not correctly used in the font application.
_________________
Stormer :)
Back to top
View user's profile Send private message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Mon Jan 03, 2005 9:04 am    Post subject: ))-: Reply with quote

hmm... is there any known solution already? this post start to be quite and I still haven't idea how to fix it.
W

PS: 2.6.10-ck, kbd-1.12
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Mon Jan 03, 2005 8:47 pm    Post subject: There is Reply with quote

Try reading previous post, and you'll see that there is a fix. It's probably why it is so quite here...
_________________
Stormer :)
Back to top
View user's profile Send private message
indanet
n00b
n00b


Joined: 05 Sep 2004
Posts: 54

PostPosted: Thu Jan 20, 2005 9:38 am    Post subject: Reply with quote

Hi!

I have the same problem since installing splashutils...

I think the problem should be fixed so that it works out of the box. Right now I see several solutions how to fix it in this thread, but I don't know which one to choose.

Best regards
indanet
Back to top
View user's profile Send private message
indanet
n00b
n00b


Joined: 05 Sep 2004
Posts: 54

PostPosted: Thu Jan 27, 2005 9:20 pm    Post subject: Reply with quote

The problem seems to be fixed with the newest version of splashutils...
http://dev.gentoo.org/~spock/projects/gensplash/current/ChangeLog
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Jan 28, 2005 7:51 am    Post subject: Reply with quote

indanet wrote:
The problem seems to be fixed with the newest version of splashutils...
http://dev.gentoo.org/~spock/projects/gensplash/current/ChangeLog

I'm excited at testing it since I've yet got a lockup (again :cry: ) with recent kernel sources gentoo-dev-sources-2.6.10-r(5 maybe). See this post.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Jan 29, 2005 10:55 pm    Post subject: Reply with quote

Well I tried gentoo-dev-sources-2.6.10-r6 with splashutils 0.9.1 and it seems to work (boot) quite fine. I'll post back to say if splash autoswitch has been fixed :-)
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Jan 29, 2005 11:09 pm    Post subject: Reply with quote

I wrote too quickly. My PC still happens to hang while initializing VesaFB module. I pushed the hard reset button and it booted as expected, i.e. started with splash screen. It's exactly the problem I had when I first tried splashutils...

Moreover splash still goes to verbose mode with that bloody PIO_FONT error message. So in my case nothing was solved. It's even worse than gentoo-dev-sources-2.6.9-r12 for that kernel never hung in vesafb.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
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
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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