From owner-freebsd-questions@FreeBSD.ORG Sun Jun 7 18:03:04 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60405106566B for ; Sun, 7 Jun 2009 18:03:04 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com [207.106.133.19]) by mx1.freebsd.org (Postfix) with ESMTP id 30A758FC13 for ; Sun, 7 Jun 2009 18:03:03 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id D78B0B9E90; Sun, 7 Jun 2009 14:03:02 -0400 (EDT) Received: from lukas.is-a-geek.org (unknown [71.112.210.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id D2B4FB9E8D; Sun, 7 Jun 2009 14:03:00 -0400 (EDT) Date: Sun, 7 Jun 2009 11:02:56 -0700 (PDT) From: Luke Dean X-X-Sender: lukas@border.lukas.is-a-geek.org To: Manolis Kiagias In-Reply-To: <4A2BEA9F.2040009@otenet.gr> Message-ID: References: <4A2A1A30.30000@otenet.gr> <4A2BEA9F.2040009@otenet.gr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: 719059DE-538D-11DE-BE75-97731A10BFE7-96347044!a-sasl-fastnet.pobox.com Cc: freebsd-questions@freebsd.org Subject: Re: Shutting down X with control+alt+backspace X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Luke Dean List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 18:03:04 -0000 On Sun, 7 Jun 2009, Manolis Kiagias wrote: > Manolis Kiagias wrote: >> Luke Dean wrote: >> >>> This is an answer to a question I started to post, but then decided to >>> research instead. I know many readers of this list use the feature I'm >>> describing. >>> >>> When Xorg was upgraded to version 7.4, the historic ability to shut >>> down X >>> with Control+Alt+Backspace became a non-default option. The solution to >>> re-enabling this behavior was to add >>> Option "DontZap" "off" >>> to the ServerLayout or ServerFlags section of xorg.conf as documented in >>> a note in the Handbook >>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html >>> >>> A few days ago, x11/xkeyboard-config was upgraded to 1.6 and the solution >>> in the Handbook is no longer sufficient. >>> >>> The new solution that gets Control+Alt+Backspace working for me >>> again is to add >>> Option "XKbOptions" "terminate:ctrl_alt_bksp" >>> to the "InputDevice" section of xorg.conf. >>> >>> >> >> Thanks for mentioning this. I have not yet upgraded to the new version >> of xkeyboard-config, but will try this and update the Handbook accordingly. >> >> > > This gets even more complicated - the setting in xorg.conf will only be > effective when "AutoAddDevices" is false (or "AllowEmptyInput" is > false). On systems that totally rely on HAL for device detection, the > setting has to be moved to an XML file like this: > > > > > > kbd > pc105 > us > xorg > type="string">terminate:ctrl_alt_bksp > > > > > which should be named i.e. keyboard.fdi and placed in > /usr/local/etc/hal/fdi/policy > > In light of the above, I feel we probably need to add a section on > "Configuring Additional Options Using HAL" to the Handbook. Oh, okay. I'm not running HAL and I do have "AllowEmptyInput" and "AutoAddDevices" off, so just modifying the xorg.conf was enough for me. So far I've avoided HAL because it seems complicated and scary, and I don't know what the benefits of using it would be aside from some automounting tricks that I can live without. It does seem to be the wave of the future however, so any documentation that might help ease me into that transition would be appreciated.