[Bug 93338] Re: updating console-setup in X destroys screen

2007-04-01 Thread Colin Watson
console-setup (1.13ubuntu10) feisty; urgency=low * Source debconf confmodule earlier in postinst (it should always be sourced as early as possible, as it re-executes the calling script). * Fix horrible confusion if the locale has no supported default codeset (LP: #84401). * Fix conso

[Bug 93338] Re: updating console-setup in X destroys screen

2007-04-01 Thread Colin Watson
Thanks for the suggestions. As fgconsole doesn't always actually return a console number under X, I've taken a somewhat different approach involving just checking whether the output of fgconsole is in [1-6]. I know this isn't perfect, but since running setupcon is just a nice-to- have I think it's

[Bug 93338] Re: updating console-setup in X destroys screen

2007-03-30 Thread Martijn Koster
I have a feisty host that has X running. From an ssh session into that machine I run xen-tools's xen-create-image to creating a feisty domU. When that runs debootstrap (in the host, not the guest), and installs console-setup, that corrupts video ram on X. I image the same thing could happen if y

[Bug 93338] Re: updating console-setup in X destroys screen

2007-03-20 Thread Kurt J. Bosch
Ooops - I'm sorry but the above patch does not work as expected, since grep finds itself allways. Here a fixed version: Change if [ -z "$DISPLAY" ] && ! pidof usplash >/dev/null; then to if ! ps -Ao comm,command | grep -q "^X.* vt$(fgconsole) " && ! pidof usplash >/dev/nul

[Bug 93338] Re: updating console-setup in X destroys screen

2007-03-20 Thread Kurt J. Bosch
OK I changed if [ -z "$DISPLAY" ] && ! pidof usplash >/dev/null; then to if ! ps -Af | grep -q 'bin/X.* vt$(fgconsole) ' && ! pidof usplash >/dev/null; then in /etc/init.d/console-setup here. Now it works with su - too. ** Attachment added: "console-setup-detect-X-patch" http:

[Bug 93338] Re: updating console-setup in X destroys screen

2007-03-19 Thread Kurt J. Bosch
If you would use su without the '-' the environment should be left intact. -- updating console-setup in X destroys screen https://launchpad.net/bugs/93338 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 93338] Re: updating console-setup in X destroys screen

2007-03-19 Thread Simonics Zsolt
"Or not exported/empty DISPLAY ?" That was the problem! Thank you! I'm using rxvt and "su - " to get a root shell. I don't know if it's a proper way or not. How can I make that declare thing permanent? -- updating console-setup in X destroys screen https://launchpad.net/bugs/93338 -- ubuntu-b

[Bug 93338] Re: updating console-setup in X destroys screen

2007-03-19 Thread Kurt J. Bosch
Hi, I cant reproduce this here. /etc/init.d/console-setup contains here (on feisty) : start|force-reload|restart|reload) if [ -z "$DISPLAY" ] && ... elif ! run_by_init; then log_action_begin_msg "Saving console font and keymap for next boot"