From owner-freebsd-questions@freebsd.org Sun May 29 20:18:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C997B5422A for ; Sun, 29 May 2016 20:18:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1531D17F5 for ; Sun, 29 May 2016 20:18:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-137-84.dynamic.qsc.de [92.195.137.84]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id CB08527933; Sun, 29 May 2016 22:18:02 +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 u4TKI2HS002633; Sun, 29 May 2016 22:18:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 29 May 2016 22:18:02 +0200 From: Polytropon To: Marco Beishuizen Cc: freebsd-questions@freebsd.org Subject: Re: x11/xconsole not showing any output Message-Id: <20160529221802.6496c217.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon 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 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2016 20:18:12 -0000 On Sun, 29 May 2016 22:04:13 +0200 (CEST), Marco Beishuizen wrote: > I recently started to use x11/xdm. After logging in and when X starts, > xconsole is also started. I thought it would be nice to follow the console > messages in X instead of switching with Ctrl+Alt+F1 all the time. It's a very convenient way to check console messages, other than repeating "dmesg" in an X terminal and checking what's new. :-) > XConsole is executed in /usr/local/lib/X11/xdm/Xsetup_0 and afaik it > should display the messages from /dev/console. But I get the impression > that xconsole is linked to ttyv8 (where X is started), instead of ttyv0 > (where all the console messages go to). > > So how can I configure xconsole so that it shows the messages from > /dev/console? I've tried to edit Xsetup_0 with the -file option but this > does not make a difference. Are the console permissions set properly? Check if xdm-config does have the following (or applying) lines: DisplayManager._0.setup: /etc/X11/xdm/Xsetup_0 DisplayManager._0.startup: /etc/X11/xdm/GiveConsole DisplayManager._0.reset: /etc/X11/xdm/TakeConsole In your case, the paths will probably be different, but check the content of the GiveConsole and TakeConsole scripts: They make sure your user will actually be able to read from the console (as it's initially owned by root, and only has rw-/---/--- permissions). When you are then logged in, check "ls -l /dev/console", and you should see something similar to this: % ll /dev/console crw------- 1 poly wheel 0, 5 2016-05-29 18:38:20 /dev/console If this is _not_ the case, xconsole doesn't work as expected. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...