Solved Frame buffer stuck when switching from X to console VT

Hello,

I'm trying to configure a FreeBSD 10.0 release (64) with an x11-wm/xfce4 windows manager for some basic applications.

I'm facing a graphics problem: everything is ok with Xorg - XDM - Xfce, but I lose console mode control as soon as X server is running (at boot with x11/xdm in /etc/ttys):

When switching from VT09 (used by the X server) to VT1-8 (console terminal), the X server screen is not cleared and I cannot see the console screen though I'm able to reboot (using reboot from console).

The board is a Radeon HD 2400 PRO/XT, I can use two drivers in Xorg: "vesa" or "radeon".

The issue occurs only with the "radeon" driver, but I don't want to use the "vesa" driver because the display is blurred.

This is my xorg.conf:

Code:
Section "ServerLayout"
   Identifier  "X.org Configured"
   Screen  0  "Screen1" 0 0
   InputDevice  "Keyboard0" "CoreKeyboard"
   option "AutoAddDevices" "off"
EndSection

Section "Files"
   ModulePath  "/usr/local/lib/xorg/modules"
   FontPath  "/usr/local/lib/X11/fonts/misc/"
   FontPath  "/usr/local/lib/X11/fonts/TTF/"
   FontPath  "/usr/local/lib/X11/fonts/OTF/"
   FontPath  "/usr/local/lib/X11/fonts/Type1/"
   FontPath  "/usr/local/lib/X11/fonts/100dpi/"
   FontPath  "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
   Load  "dbe"
   Load  "dri"
   Load  "dri2"
   Load  "extmod"
   Load  "record"
   Load  "glx"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver  "kbd"
   Option     "XkbLayout" "fr"
   Option     "XkbVariant" "latin9"
EndSection

Section "Monitor"
   Identifier  "Monitor0"
   VendorName  "Monitor Vendor"
   ModelName  "Monitor Model"
EndSection

Section "Monitor"
   Identifier  "Monitor1"
   VendorName  "Monitor Vendor"
   ModelName  "Monitor Model"
EndSection


Section "Device"
  ### Available Driver options are:-
  ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
  ### <percent>: "<f>%"
  ### [arg]: arg optional
  #Option  "ShadowFB"     # [<bool>]
  #Option  "DefaultRefresh"     # [<bool>]
  #Option  "ModeSetClearScreen"    # [<bool>]
   Identifier  "Card1"
   #Driver  "vesa"
   Driver  "radeon"
   BusID  "PCI:1:0:0"
EndSection

Section "Screen"
   Identifier "Screen1"
   Device  "Card1"
   Monitor  "Monitor1"
   SubSection "Display"
     Viewport  0 0
     Depth  1
   EndSubSection
   SubSection "Display"
     Viewport  0 0
     Depth  4
   EndSubSection
   SubSection "Display"
     Viewport  0 0
     Depth  8
   EndSubSection
   SubSection "Display"
     Viewport  0 0
     Depth  15
   EndSubSection
   SubSection "Display"
     Viewport  0 0
     Depth  16
   EndSubSection
   SubSection "Display"
     Viewport  0 0
     Depth  24
   EndSubSection
EndSection

I suppose there is something related to the frame buffer not used by console? Someone to help me?
Thanks!
 
You need to switch the console driver to vt(4) instead of sc(4). The old sc(4) driver isn't KMS aware and can therefor never switch it off when switching back to the console.
 
Back
Top