Bugzilla – Bug 114200
swsusp font issue
Last modified: 2007-11-27 16:52:12 UTC
Upon restoring a swsusp image, the previously used VGA font is not restored. Instead, the graphic card's default VGA font is used.
use vesafb ;-) or enter "kbd" into SUSPEND2DISK_RESTART_SERVICES in /etc/sysconfig/powersave/sleep. I don't believe we should mess around with graphics card registers if not absolutely necessary.
Do we want to put "kbd" there by default?
i don't think so. It does lots of stuff and directly accesses hardware (console font, keyboard) so it may well do some harm. This is the first time i heard of such a problem, so it can't be that common.
Jan, does adding kbd to "services to restart" help?
Waiting for #116379 - I don't like to stress my harddisk with two additional yoyos just to find out :(
116379 is 2.6.15 material at best.
The problem (font not restoring) is still present in 10.2 running 2.6.22.9. Adding kbd to SUSPEND2DISK_RESTART_SERVICES does not work - the font provided by the VGA card remains. This is a bit unfortunate especially if YaST chose a different font due to language settings - and it does so by default (lat9w-16).
I can bet it is in 10.3, too, no? I believe we should add kbd to the "restart services" for suse11... or, if that is too intrusive, split kbd into "font loading part" and "rest", and just add that...
On 10.3, `grep -r SUSPEND2DISK /etc/sysconfig` does not yield any results, so where would I add it now?
http://en.opensuse.org/Pm-utils helps all your powermanagement troubles. BTW: just using the default configuration (vesafb) will solve this bug ;-) I'll see what i can do for the next release, just reload the font if we are not on a fb console.
The keyboard layout is already restored, so I suppose doing the same for the font is a no-brainer. Is this done on the kernel level?
the keyboard layout is stored in the kernel, the VGA font is stored in the graphics card. Basically, the vgacon driver should have a suspend method and take care of saving / restoring the font by itself. Reloading from userspace is a hack (and a potentially dangerous one, since setfont & co sometimes interact badly with running X). I'm sure that Pavel would happily review your patch ;-)
since the default setup is to use vesafb, i'll close this one as wontfix, since i will only fix this if it is implemented in an upstream kernel. If you need help / information on how to implement suspend methods in vgacon, the suspend-devel mailinglist (or simply LKML) are appropriate places to ask.