From owner-freebsd-questions@FreeBSD.ORG Sat Dec 24 18:08:54 2011 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 A5FD4106564A for ; Sat, 24 Dec 2011 18:08:54 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from mailfilter31.ihug.co.nz (mailfilter31.ihug.co.nz [203.109.136.31]) by mx1.freebsd.org (Postfix) with ESMTP id 470B48FC08 for ; Sat, 24 Dec 2011 18:08:53 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=rLIBlA-vWZoA:10 a=8nJEP1OIZ-IA:10 a=w7OezyZoM4UgAbyPqUUjXw==:17 a=d6porMKmAAAA:8 a=dzR9gcC32ikYXEw47E4A:9 a=wPNLvfGTeEIA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAGoU9k52XBcp/2dsb2JhbABDFqwjgQaBcgEBBTgeIgEQCw4KCQ0BCA8JAwIBAgEnHgYNAQcBAYd+twWDfYR0AYMdBJUCjgCESg X-IronPort-AV: E=Sophos;i="4.71,404,1320577200"; d="scan'208";a="79173347" Received: from 118-92-23-41.dsl.dyn.ihug.co.nz (HELO spandex.luckie.org.nz) ([118.92.23.41]) by cust.filter2.content.vf.net.nz with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Dec 2011 07:08:52 +1300 Received: from mylar.luckie.org.nz ([192.168.1.24]) by spandex.luckie.org.nz with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1ReW1b-0000Xw-MR; Sun, 25 Dec 2011 07:08:51 +1300 Message-ID: <4EF61556.9000108@luckie.org.nz> Date: Sun, 25 Dec 2011 07:09:26 +1300 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111110 Thunderbird/8.0 MIME-Version: 1.0 To: Warren Block References: <4EF59C88.2010202@luckie.org.nz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: serial consoles 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: Sat, 24 Dec 2011 18:08:54 -0000 On 12/25/11 04:45, Warren Block wrote: > On Sat, 24 Dec 2011, Matthew Luckie wrote: > >> However, when I use cu on the laptop: >> >> sudo cu -l /dev/cuaU0 -s 9600 >> >> I never get a login prompt. If I press enter, the cursor scrolls down. >> Likewise other characters echo back. I'm reasonably sure that I'm >> connected to the appropriate com port on the server because if I plug >> it into the other com port and press enter, nothing happens. > > Might there be something else on the server using/trying to use that com > port at the same time, like apcupsd? > > Running cu on the server (after resetting the config) would allow > manually typing characters to see if they come out of the right port. Thanks for your reply, Warren. I do run apcupsd, though it uses a usb port for communications with the UPS and is configured to do so. I turned apcupsd off in rc.conf, as well as commented out the getty line for the port, and rebooted the system. Then, I used cu on the server and found characters were sent both ways over the serial cable. I then added the /etc/ttys entry back and rebooted. When I used cu on the laptop it behaved as before -- i.e. no login prompt. If I tried using cu on the server, it timed out after about 10 seconds and said "link down". Any further tips? I've put the server's apcupsd.conf, /etc/rc.conf, and dmesg.boot at http://www.wand.net.nz/~mluckie/apcupsd.conf http://www.wand.net.nz/~mluckie/rc.conf http://www.wand.net.nz/~mluckie/dmesg.boot Matthew