Solved Can't exit from Xorg - PC Locked

Hi all. I've a problem with Xorg on FreeBSD 10.1-RELEASE. I've installed X as well as is written in the handbook. When I start Xorg it works fine, but the problem is when I want to exit from it or shutdown the computer from it. If I'm on X (Xfce) and I want to exit if I click logout or Ctrl+Alt+Fn the display becomes black and the PC locks. Same thing if I want to shutdown the computer. Every time that I use Xorg, if I want to exit or shutdown I must use the power button. Practically Xorg doesn't switch back to console mode and freeze the computer. Can someone help me please?
 
I had such a problem with Xorg on a VirtualBox host. After a bit of research I found that AIGLX was causing the issue. I had to disable it to get Xorg to function. This was done by adding:

Code:
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "AIGLX" "false"
EndSection

to the /etc/X11/xorg.conf file.

I would suggest checking your /var/log.Xorg.0.log file first as this would provide you with more accurate information.
 
I've tried to disable AIGLX in xorg.conf as you say but the problem is the same. The /var/log/Xorg.0.log file is not complete because I can't close correctly Xorg so the closing log is not registered (I must upload it here?). If it can be helpful I've a S3 Twister-K VGA.
 
The computer probably isn't frozen. It just doesn't know how to switch the console back on. I'm not sure if this driver uses KVM but any driver that does needs vt(4) as the console. The vt(4) console does know how to deal with KVM mode switches.
 
OK, I had a similar torrid time once with some S3 cards.

I believe that x11/xorg may not install the driver by default. From what I can see from http://www.x.org/archive/current/doc/man/man4/savage.4.xhtml your Twister card is potentially supported by the Savage driver. I would try to install these by using pkg install x11-drivers/xf86-video-savage {or compile from ports). Then running X -configure and then your normal test routine of X -config /root/xorg.conf.new -retro (-retro is optional).

Further reading from http://www.freshports.org/x11-drivers/xorg-drivers/ shows that the default S3 and related drivers are not set to build automatically if you compile from ports.
 
Hi, just for others notice.

I have the exact same problem with Intel graphics on a Haswell system (Pentium G3220) on an Asus H81T board. Everything is fine until I leave Xorg. In that case the box is completely dead (yes, dead - not appearing as dead. Existing SSH connections are gone and serving web servers are gone as well. No networking counts as dead machine for me). Makes reboots impossible.

I have experienced this issue with 9.3, 10.0 and 10.1 with VT enabled. I have never tried 11-CURRENT though. I am sorry, but I can not provide more information (dmesg, logs) anymore because the box is running OpenBSD now. If somebody is interested I can give more info on the systems specifications. I am basically just waiting until FreeBSD announces official Haswell support so I can try this again.

Regards,
lvdd
 
Thank you guys the problem is solved finally :D The solution is as you say. First add
Code:
Option "AIGLX" "false"
under the ServerLayout section in xorg.conf. Second add
Code:
kern.vty=vt
to /boot/loader.conf. Third: I've installed the savage driver. And finally I've generated the Xorg file with X -configure, and tested it with X -config /root/xorg.conf.new -retro.

Now I'm capable to switch back to console mode from graphic mode. Hope that this thread can be helpful for other people

Thank you very much guys :D
 
Back
Top