CTRL_ALT_DEL and XFree 3.3.1

CTRL_ALT_DEL and XFree 3.3.1

Post by Thierry Dani » Sun, 30 Nov 1997 04:00:00



Hello,

We'd like to keep under X11 the 'usual' meaning of the CTRL_ALT_DEL
keys, ie., we'd like to wire that key event to a shutdown action.

Nothing in the XF86Config file seems to make it work the way we
want.

Any hint ?

Thanks in advance.

Thierry Danis,



Thanks again.

 
 
 

CTRL_ALT_DEL and XFree 3.3.1

Post by Chris Walto » Tue, 02 Dec 1997 04:00:00



> Hello,

> We'd like to keep under X11 the 'usual' meaning of the CTRL_ALT_DEL
> keys, ie., we'd like to wire that key event to a shutdown action.

> Nothing in the XF86Config file seems to make it work the way we
> want.

Thierry,
I have posted the solution to this several times before.
I don't know if it ever got into the FAQ because I havn't read it is a
few years.
But for the benefit of those who missed it previously.....:

If you run xdm, it can be configured so that pressing ctrl-alt-del at
the login screen causes X to die.
This means that in order to reboot the PC, a user must:
 o Exit his/her favorite window manager (fvwm).
 o Press ctrl-alt-del at the xdm login screen.
 o Watch X die a very quick death.
 o Press ctrl-alt-del at the VT.

This net effect is not much different than pressing ctrl-alt-F1 followed
by ctrl-alt-del. In either case the machine reboots.
But, two ctrl-alt-deletes back to back are easy for people who would
rather press the reset button than learn new key strokes.

If you want the ctrl-alt-del functionality at the xdm login screen,
modify the login translations in you're
/usr/X11R6/lib/X11/xdm/Xresources file to look something like this:
xlogin*login.translations: #override\
        Alt Ctrl<Key>KP_Decimal: abort-display()\n\
        Alt Ctrl<Key>Delete: abort-display()\n\
        <Key>F1: set-session-argument(failsafe) finish-field()\n\
        Ctrl<Key>Return: set-session-argument(failsafe)
finish-field()\n\
        <Key>Return: set-session-argument() finish-field()

If the users are having problems exiting fvwm, then the following line
in the system.fvwmrc file will cause the window manager to die:
Key Delete      A       CM      Quit
Personally, I prefer to use the exit button to quit fvwm.

If everything is set up correctly, a user could:
 o Kill fvwm by pressing ctrl-alt-del.
 o Kill the Xserver by pressing ctrl-alt-del.
 o Reboot the machine by pressing ctrl-alt-del.

-chris

--
Chris Walton                         ((            ))  _______ ((
http://www.interlog.com/~walton                         | [] |  ))

Toronto,Ontario,Canada    / 00    | | 10100 | | 10010 | | ** ---++-|
                         10_______|-|_______|-|_______|-|__________|\
              0  1 0  1 0  ()   ()   ()   ()   ()   ()   ()()   ()()\\
---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--