From owner-freebsd-questions@FreeBSD.ORG Tue Oct 2 15:32:57 2012 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 64ABC106564A for ; Tue, 2 Oct 2012 15:32:57 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) by mx1.freebsd.org (Postfix) with ESMTP id B4ACD8FC08 for ; Tue, 2 Oct 2012 15:32:55 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout07 with smtp id 6FVm1k002516WCc01FVnAg; Tue, 02 Oct 2012 16:29:47 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=XOyyuHdE c=1 sm=1 a=lfSX4pPLp9EkufIcToJk/A==:17 a=rLpCYgkgFLgA:10 a=BJ933lojHWkA:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=D7rCoLxHAAAA:8 a=tVA9uOST4-8A:10 a=KVpVidsd8uXdXXQWMNUA:9 a=wPNLvfGTeEIA:10 a=lfSX4pPLp9EkufIcToJk/A==:117 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.80) (envelope-from ) id 1TJ4Pp-0001bI-AV; Tue, 02 Oct 2012 16:29:45 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Tue, 2 Oct 2012 16:29:44 +0100 User-Agent: KMail/1.9.10 References: <655c8927.6a890f36.506aed3e.ebec@lajt.hu> <20121002154954.75800f3e.freebsd@edvax.de> In-Reply-To: <20121002154954.75800f3e.freebsd@edvax.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201210021629.44943.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,TW_KD autolearn=ham version=3.3.2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) Cc: Istvan Gabor Subject: Re: stop and start X server in FreeBSD 9.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 15:32:57 -0000 On Tuesday 02 October 2012 14:49:54 Polytropon wrote: > For the desired test scenario, I'd suggest to disable KDE > (kdm) startup in /etc/rc.conf, and finally stop the related > service (from /usr/local/etc/rc.d probably). Then you can > easily use the "startx" command to start an X session from > a user's VT, test your settings, terminate the session, > and you'll be back in text mode. The OP is using kdm3 which is normally managed through /etc/ttys instead of an rc script. To stop kdm3: * edit /etc/ttys, find the line 'ttyv8 "/usr/local/bin/kdm" xterm on secure' and changie "on" to "off" * kill -1 1 * killall kdm-bin To restart * edit /etc/ttys and change "off" back to "on" for kdm * kill -1 1 But it isn't necessary to do all this just to pick up changes in xorg.conf. Just make your desired changes to xorg.conf, then log out of kde and switch to a console as root and killall kdm-bin. This will stop and start X as well as kdm. You can do all this from a terminal window in your kde session but I prefer to logout cleanly instead of having the rug pulled from under my feet which has sometimes corruptedf my kdmrc file. -- Mike Clarke