Page 1 of 1

Bochs PANIC, cannot connect to X server.

Posted: Tue Dec 30, 2008 8:19 pm
by kindyroot
i am extremely sorry to bug you again with these stories, but i think tried EVERYTHING, i should mention this is not a fresh install, i used bochs everyday for a while and now suddenly it says it no more can connect to x server, this is the output message:

Event type: PANIC
Device: [XGUI ]
Message: bochs: cannot connect to X server :0.0

I had already ran to this problem before, I think i had solved it by installing bochs-x, this time bochs-x is already there (newsest version).

PS: QEMU stopped working today too! here are its errors:

(*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
--> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system' core!
--> Initialization error!
Could not initialize SDL - exiting

thanks in advance.

Re: Bochs PANIC, cannot connect to X server.

Posted: Tue Dec 30, 2008 9:18 pm
by gzaloprgm
You might try installing bochs-sdl and setting in bochsrc.txt to use sdl instead of x extension.

Did you try running qemu as root?

Cheers,
Gonzalo

Re: Bochs PANIC, cannot connect to X server.

Posted: Fri Jan 02, 2009 10:39 am
by kindyroot
I have now installed the bochs-sdl package but there doesn't seem to exist any documentation as to how to set bochs to use SDL instead of direct X connection.
For what concerns Qemu, i ran it several times as root before and now, no change, the problem persists,
I still believe the disfunctionning of the two programs (bochs and qemu) in the same day might have things to do with one another.
any ideas?

Re: Bochs PANIC, cannot connect to X server.

Posted: Fri Jan 02, 2009 10:54 am
by gzaloprgm
I have now installed the bochs-sdl package but there doesn't seem to exist any documentation as to how to set bochs to use SDL instead of direct X connection.
http://bochs.sourceforge.net/doc/docboo ... chsrc.html
4.2.13. display_library

The display library is the code that displays the Bochs VGA screen. Bochs has a selection of about 10 different display library implementations for different platforms. If you run configure with multiple --with-* options, the display_library option lets you choose which one you want to run with. If you do not use a display_library line, Bochs will choose a default for you.

Examples:
display_library: sdl
Cheers,
Gonzalo

Re: Bochs PANIC, cannot connect to X server.

Posted: Sat Jan 03, 2009 10:26 am
by kindyroot
Thank you Gonzalo so much, it works perfectly now :)

Re: Bochs PANIC, cannot connect to X server.

Posted: Thu Jan 08, 2009 6:12 pm
by kindyroot
I am sorry for the double post but a few weeks later, i am still having the same conf but both bochs and qemu broke again, same érror, complains about non existent framebuffer device and impossible sdl initialisation, i am clueless and all my work has stopped because of this, .. :s

Re: Bochs PANIC, cannot connect to X server.

Posted: Thu Jan 08, 2009 6:51 pm
by Combuster
I have the idea an update broke something. If its DirectFB that got updated then you need to update *all* dependencies as well. My distro has tools to check for that kind of breakage, but I don't know how your package manager does those things :(

Re: Bochs PANIC, cannot connect to X server.

Posted: Fri Jan 09, 2009 2:30 am
by eddyb
he solved it. the problem was running x as non-root and bochs/qemu as root.

Re: Bochs PANIC, cannot connect to X server.

Posted: Wed Jun 01, 2011 7:55 pm
by johntortugo
Many thanks gonzalo!

I'was with a similar problem and with you posts I managed to solve it changing the display_library to sdl!

=D>