problems with X->console switching

`VL vl.homutov at gmail.com
Mon Oct 3 12:24:07 PDT 2005


I have problems with switching from X to console using Ctrl-Alt-F(1-6).

I`ve spent a lot of time and here is summary for some cases:

using gdm/kdm/xdm in default runlevel.

When computer loads, it starts display manager. I`m unable to switch
to console with keys. When i login, i can`t switch to console. Next, i
do logout and i`m back in display manager. Now i can switch freely to
consoles.

chvt works as root fine in any case: i can always use it.

Next, i decided not to use display manager and removed it from default runlevel.

I boot the system, logged in console and ran 'startx'. I was unable to
switch back to console. I exited X, restarted it and still was unable
to use Ctrl-Alt-F(1-6).

Next, i decided to change my window manager (I used afterstep 1.8).
So, i changed my .xinitrc to exec gnome-session.

After running X, keys started to work. I tried kde 3.4 and it also
worked. I tried twm and found that keys does not work.
I created new system user, and made more experiments: gnome worked,
kde,afterstep,twm not.

So, what the hell is going on??!!

It seems that my xorg.conf is good (i read tons of man & tested lots
of variants - none of them helped). If it were bad,i`d never seen
working keys.

I ran xev to be sure that keyboard events are sent to X server. In
that situation,when i was unable to switch to console, xev showed me
'XF86_Switch_VT_3' key combination... so .... i don`t know...

So, what i have is:

gnome-session allows me to switch to console if ran by hand from startx.
i need to login once to X from gdm, exit and login 2nd time to X to be
able to switch to console.

This is a reproducable behavior.

Below is my xorg.conf
Code:


Section "Files"

    RgbPath   "/usr/lib/X11/rgb"

    FontPath  "/usr/share/fonts/truetype"
    FontPath  "/usr/share/fonts/TTF"
    FontPath  "/usr/share/fonts/terminus"
    FontPath  "/usr/share/fonts/cyrillic"
    FontPath  "/usr/share/fonts/100dpi"
    FontPath  "/usr/share/fonts/75dpi"
    FontPath  "/usr/share/fonts/misc"
    FontPath  "/usr/share/fonts/Type1"
#    FontPath  "/usr/share/fonts/local"
#    FontPath  "/usr/share/fonts/CID"
#    FontPath  "/usr/share/fonts/Speedo"
    FontPath  "/usr/share/fonts/arkpandora"
    FontPath  "/usr/share/fonts/default/ghostscript"
    FontPath  "/usr/share/fonts/freefont"
    FontPath  "/usr/share/fonts/terminus"
    FontPath  "/usr/share/fonts/ukr"
 #   FontPath  "/usr/share/fonts/util"

EndSection


Section "ServerFlags"
#    Option   AllowMouseOpenFail "true"
   Option "AllowDeactivateGrabs" "1"
   Option "DontVTSwitch"  "off"
#   Option "HandleSpecialKeys" "Always"
EndSection


Section "Extensions"
#   Option "Composite" "Enable"
   Option "RENDER" "Enable"
EndSection

Section "InputDevice"

    Identifier  "keyboard1"
    Driver      "kbd"
    Option      "AutoRepeat"  "250 30"
    Option      "XkbModel"    "pc101"
    Option      "XkbLayout"   "us,ru"
    Option      "XkbOptions"  "grp:ctrl_shift_toggle"
    Option      "XkbCompat"   "group_led"

EndSection


Section "InputDevice"

    Identifier  "Genius NetScroll"
    Driver      "mouse"
    Option      "Protocol"     "Auto"
    Option      "Device"       "/dev/psaux"
    Option      "Buttons"      "5"
    Option      "ZAxisMapping" "4 5"

EndSection


Section "Module"

    Load   "dbe"
    SubSection "extmod"
    #Option "omit xfree86-dga"
    EndSubSection
    Load   "type1"
    Load   "freetype"
    Load        "glx"
EndSection

Section "Monitor"
    Identifier  "MyMonitor"
    VendorName  "ViewSonic"
    ModelName   "PF775"
    HorizSync   30-97
    VertRefresh 50-180
    DisplaySize 325 240
    # 106 Hz : 152.64
    Modeline "1152x864"         145     1152 1216 1344 1600  864  865 
868  900  +hsync +vsync
    Modeline "1280x1024_90.00"  169.20  1280 1376 1512 1744  1024 1025
1028 1078 -HSync +Vsync
EndSection

Section "Device"
    Identifier "Generic VGA"
    Driver     "vga"
EndSection

Section "Device"
    Identifier  "RIVA TNT2"
    VendorName  "Diamond"
    BoardName   "Viper 770"
    Driver      "nvidia"
    Option    "IgnoreEDID" "false"
    Option      "UseEdidFreqs" "false"
    Option      "NoDDC"
    Option      "NvAGP"    "1"
    Option      "NoLogo"   "1"
    Option      "DPMS"
    Option "RenderAccel" "true"
#    Option      "HWCursor" "off"
#    Option      "SWCursor" "off"
EndSection

Section "Screen"
    Identifier "screen1"
    Device      "RIVA TNT2"
    Monitor     "MyMonitor"
    DefaultColorDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1152x864" "1024x768" "800x600" "640x400"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes       "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "NormalConfiguration"
    Screen      "screen1"
    InputDevice "Genius NetScroll"   "CorePointer"
    InputDevice "keyboard1" "CoreKeyboard"
    Option      "OffTime" "10"
EndSection


Distro is Gentoo.
Xorg is x11-base/xorg-x11-6.8.2-r4.

Anyone knows what changes when gdm is re-running X ?
I thought about udev and even compared file ownage & permissions, but
haven`t found any differences....

May this is related to x init scripts?

Please, help !



More information about the xorg mailing list