public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] DontZap and Ctrl+Alt+Bs
Date: Fri, 24 Jul 2009 09:13:03 +0200 (CEST)	[thread overview]
Message-ID: <tkrat.9919c9c081779d08@igpm.rwth-aachen.de> (raw)
In-Reply-To: <alpine.LNX.2.00.0907230052010.30482@mail.trezor.by>

On 24 Jul, Igor Nemilentsev wrote:
> Hi, list
> I have emerged x11-base/xorg-server-1.6.2 with '+hal'.
> I have into xorg.conf
> Section "ServerFlags"
>    Option "DontZap" "false"
> EndSection
> 
> Nonetheless the Ctrl+Alt+Backspace combination
> doesn't work.
> Can someone give me advice?

AFAIK, the DontZap option applies to the key sequences
<Alt> <Fx> to switch to a different terminal.

I have the same problem here (same configuration), i.e.
<Ctrl><Alt><Del> doesn't work.

If you can't exit via your window manager anymore,
I think, Neil Bothwick has posted the following advice
some days ago:

If you find yourself without a keyboard or mouse and can't get back to a
console, press and hold alt + sysreq then hit R and E.  I did this the
other day and it took me back to a console.

You're thinking of the complete Alt-SysRq sequence to (relatively)
cleanly reboot. Alt-SysRq-R returns keyboard control after it has
been locked out by X. You should then be able to do Ctrl-Alt-F1 to get
back to your VC.

 I got some SysRq commands printed out tho.  Question, do I have to hit
> the Alt key each time or what? 

Hold down Atl, hold down SysRq, press each of the keys in turn. The usual
full sequence is R-E-I-S-U-B

Reboot
Even
If
System
Utterly
Broken

---------------------------------------------------------------------

Then for example on tty2 start "sleep 300 ; /etc/init.d/xdm stop ;
killall X" and on tty1 do "/etc/init.d/xdm start"

Another approach is to use acpid. I've read this tip here posted by
Volker Hemmann IIRC. If you use acpid, there should be a file called
"/etc/acpi/default.sh"

Modify it, substituting the lines:

19                 case "$action" in
20                         power)
21                                /sbin/init 0

with

19                 case "$action" in
20                         power)
21                                /usr/bin/chvt 1


then do /etc/init.d/acpid restart.

Now pressing the power button on your machine should switch to the
active TTY to tty1


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



  reply	other threads:[~2009-07-24  7:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24  7:01 [gentoo-user] DontZap and Ctrl+Alt+Bs Igor Nemilentsev
2009-07-24  7:13 ` Helmut Jarausch [this message]
2009-07-24  8:44   ` Igor Nemilentsev
2009-07-24 20:05     ` Skippy
2009-07-24 20:35       ` [gentoo-user] " ABCD
2009-07-24 20:56       ` [gentoo-user] " Igor Nemilentsev
2009-07-28 11:23         ` Skippy
2009-07-28 11:26           ` Alan McKinnon
2009-07-28 12:35             ` Skippy
2009-07-28 14:11           ` Helmut Jarausch
2009-07-24  7:44 ` Volker Armin Hemmann
2009-07-24  7:58   ` Dale
2009-07-24 11:16   ` Igor Nemilentsev
2009-07-24 11:28     ` Neil Bothwick
2009-07-24 11:45       ` Helmut Jarausch
2009-07-24 11:53       ` Volker Armin Hemmann
2009-07-24 12:32         ` Stroller
2009-07-24 17:00           ` [gentoo-user] " ABCD
2009-07-24 13:08       ` [gentoo-user] " Igor Nemilentsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tkrat.9919c9c081779d08@igpm.rwth-aachen.de \
    --to=jarausch@igpm.rwth-aachen.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox