You are not logged in.

#1 2010-11-27 00:28:26

Berticus
Member
Registered: 2008-06-11
Posts: 731

[SOLVED] Zapping/killing X doesn't drop to tty

This is on my brother's laptop, and his xorg.conf is loosely based on mine. The issue is when I kill X in twm by closing all windows or zap it, it doesn't drop to tty like it should. So instead, I have to do a hard reboot. I've never encountered this issue before. Here is his xorg.conf:

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection

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

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

Section "ServerFlags"
    Option "DontZap" "false"
    Option "Xinerama" "false"
    Option "AutoAddDevices" "false"
    Option "AllowEmptyInput" "false"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "us"
    Option "XkbOptions" "termiante:ctrl_alt_bksp"
EndSection

Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
EndSection

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

Section "Device"
    Identifier "Card0"
    Driver "radeon"
    VendorName "ATI Technologies Inc"
    BoardName "Redwood [Radeon HD 5600 Series]"
    Option "AccelMethod" "exa"
    Option "AGPMode" "4"
    Option "ColorTiling" "on"
    Option "Audio" "on"
    Option "HDMI" "all"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
        Viewport 0 0
        Depth 1
    EndSubSection
    SubSection "Display"
        Viewport 0 0
        Depth 4
    EndSubSection
    SubSection "Display"
        Viewport 0 0
        Depth 8
    SubSection "Display"
        Viewport 0 0
        Depth 15
    EndSubSecttion
    SubSection "Display"
        Viewport 0 0
        Depth 16
    EndSubSection
    SubSection "Display"
        Viewport 0 0
        Depth 24
    EndSubSection
    SubSection "Display"
        Viewport 0 0
        Depth 32
    EndSubSection
EndSection

Last edited by Berticus (2010-11-27 02:48:02)

Offline

#2 2010-11-27 00:35:46

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: [SOLVED] Zapping/killing X doesn't drop to tty

I have the same issue. I'm using an ATI 5450 (same driver) and when I exit X windows, my monitor goes to sleep and the keyboard is unresponsive. I have a home network and I can ssh in and reboot. My work around is to just reboot from X. Either shutdown -r now in an xterm or with one of the gui power buttons.

I would assume that this is a well known issue and I haven't done enough googling to fix it because it's not annoying enough yet. I just reboot while in X.

Offline

#3 2010-11-27 00:41:17

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] Zapping/killing X doesn't drop to tty

Get rid of these two lines in ServerLayout:

   InputDevice "Mouse0" "CorePointer"
   InputDevice "Keyboard0" "CoreKeyboard"

Get rid of all this obsolete stuff (you should let evdev handle input, etc.)

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

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

Section "ServerFlags"
    Option "DontZap" "false"
    Option "Xinerama" "false"
    Option "AutoAddDevices" "false"
    Option "AllowEmptyInput" "false"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "us"
    Option "XkbOptions" "termiante:ctrl_alt_bksp"
EndSection

Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
EndSection

And use this:

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard    "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

You can also uninstall the mouse/keyboard drivers, evdev will handle it all.

Full file with the changes (and some depth stuff cut out):

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
EndSection

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard    "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

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

Section "Device"
    Identifier "Card0"
    Driver "radeon"
    VendorName "ATI Technologies Inc"
    BoardName "Redwood [Radeon HD 5600 Series]"
    Option "AccelMethod" "exa"
    Option "AGPMode" "4"
    Option "ColorTiling" "on"
    Option "Audio" "on"
    Option "HDMI" "all"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
        Viewport 0 0
        Depth 24
    EndSubSection
    SubSection "Display"
        Viewport 0 0
        Depth 32
    EndSubSection
EndSection

Also, you can just switch ttys with ctrl-alt-F#.

This typo was (probably) the problem, but might as well use a modern config tongue.

"termiante:ctrl_alt_bksp"

Last edited by thestinger (2010-11-27 00:46:37)

Offline

#4 2010-11-27 01:04:43

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: [SOLVED] Zapping/killing X doesn't drop to tty

The typo was typing in links instead of copy+paste. It's not an issue with evdev and having "obsolete" things in my config. It happens when there is no xorg.conf as well. I suppose I'll just have him use a GUI of some sort to reboot and stuff then.

The only reason I have all the mouse/keyboard stuff in there is because evdev didn't work well when X.org just started using it. I've never taken it out, and since it's based on mine, I left it in there for him.

Offline

#5 2010-11-27 01:14:53

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: [SOLVED] Zapping/killing X doesn't drop to tty

Hmm, I also use same driver and have a hd5450, and i cannot reboot, shutdown or ctrl-alt-backspace from x, as it then just hangs, so i'll either have to go to VT1, press ctrl-c and then reboot/halt, or instead enter another VT, login and then reboot/halt...

Last edited by mhertz (2010-11-27 01:16:10)

Offline

#6 2010-11-27 01:22:16

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] Zapping/killing X doesn't drop to tty

Do you get the same problem with the vesa driver?

Offline

#7 2010-11-27 01:37:58

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: [SOLVED] Zapping/killing X doesn't drop to tty

I don't think so. I don't remember trying out the vesa drivers before moving on to radeon. Will also check out fglrx drivers.

---edit---
works fine with vesa driver... Guess it's a radeon thing. Having issues getting fglrx to work.

Last edited by Berticus (2010-11-27 02:09:21)

Offline

Board footer

Powered by FluxBB