Me again.  The second half of my point 2) above was an error on my part:
I was reading the wrong register.  Querying the registers shows the
messed up mapping.

A little sleep and I realized what's going on in point 3): X saves the
state (with the screwed up palette registers) that it sees when GDM
starts, and restores it every time you go back to the console.  You can
fix it on the console, but it gets unfixed every time you go back to X.
Thus, as long as the problem is fixed by time X starts, everything is
fine.

So, the quick and dirty fix is to run the attached code right after
usplash exits (essentially restorepalette pared down to the bare
essentials to fix this problem).

Of course, the logical thing would be to put this code into usplash
itself; however, putting it in the obvious place (the atexit routine in
svgalib/src/vesa.c) didn't seem to do the trick.

This may be the problem with bug #139453 also...

** Attachment added: "Code that resets the VGA palette registers to their 
defaults."
   http://launchpadlibrarian.net/20079824/fixpal.c

-- 
usplash messes up colors on console
https://bugs.launchpad.net/bugs/60915
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to