From owner-freebsd-questions@FreeBSD.ORG Tue Oct 2 13:49: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 C4BD4106564A for ; Tue, 2 Oct 2012 13:49:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 85C8A8FC14 for ; Tue, 2 Oct 2012 13:49:57 +0000 (UTC) Received: from r56.edvax.de (port-92-195-72-25.dynamic.qsc.de [92.195.72.25]) by mx02.qsc.de (Postfix) with ESMTP id 5F2AB27BAB; Tue, 2 Oct 2012 15:49:55 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q92DnsZa002270; Tue, 2 Oct 2012 15:49:54 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 2 Oct 2012 15:49:54 +0200 From: Polytropon To: Istvan Gabor Message-Id: <20121002154954.75800f3e.freebsd@edvax.de> In-Reply-To: <655c8927.6a890f36.506aed3e.ebec@lajt.hu> References: <655c8927.6a890f36.506aed3e.ebec@lajt.hu> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 13:49:57 -0000 On Tue, 02 Oct 2012 15:33:50 +0200, Istvan Gabor wrote: > Hello: > > I configured FreeBSD 9.0 RELEASE with X starting automatically at boot. > I use kdm3 login manager, and it works. > I would like to make changes to xorg.conf and test the effects. > How can I stop X in a terminal temporarily? > If I kill kdm it is restarted immediately. 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. If you are happy with your settings, re-enable KDE (kdm) by the corresponding /etc/rc.conf entry. > In openSUSE I could do this by switchiong runlevels but > I learned that FreeBSD has no runlevels. Yes, FreeBSD uses the rc.d mechanism (see "man 8 rc" for details). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...