Bug 114200

Summary: swsusp font issue
Product: [openSUSE] openSUSE 10.3 Reporter: Jan Engelhardt <jengelh>
Component: BasesystemAssignee: Forgotten User ZhJd0F0L3x <forgotten_ZhJd0F0L3x>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jan Engelhardt 2005-08-30 19:20:14 UTC
Upon restoring a swsusp image, the previously used VGA font is not restored.
Instead, the graphic card's default VGA font is used.
Comment 1 Forgotten User ZhJd0F0L3x 2005-08-31 15:38:13 UTC
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.
Comment 2 Pavel Machek 2005-08-31 19:59:51 UTC
Do we want to put "kbd" there by default?
Comment 3 Forgotten User ZhJd0F0L3x 2005-08-31 21:53:29 UTC
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.
Comment 4 Forgotten User ZhJd0F0L3x 2005-09-02 19:56:24 UTC
Jan, does adding kbd to "services to restart" help?
Comment 5 Jan Engelhardt 2005-09-12 19:53:51 UTC
Waiting for #116379 - I don't like to stress my harddisk with two additional
yoyos just to find out :(
Comment 6 Forgotten User ZhJd0F0L3x 2005-09-13 10:51:57 UTC
116379 is 2.6.15 material at best.
Comment 7 Jan Engelhardt 2007-10-28 10:05:56 UTC
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).
Comment 8 Pavel Machek 2007-10-28 10:14:14 UTC
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...
Comment 9 Jan Engelhardt 2007-10-28 10:56:57 UTC
On 10.3, `grep -r SUSPEND2DISK /etc/sysconfig` does not yield any results, so where would I add it now?
Comment 10 Forgotten User ZhJd0F0L3x 2007-11-02 12:52:19 UTC
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.
Comment 11 Jan Engelhardt 2007-11-02 13:05:07 UTC
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?
Comment 12 Forgotten User ZhJd0F0L3x 2007-11-02 15:30:24 UTC
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 ;-)
Comment 13 Forgotten User ZhJd0F0L3x 2007-11-27 16:52:12 UTC
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.