From owner-freebsd-questions@FreeBSD.ORG Mon Feb 13 09:18:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 399B816A420 for ; Mon, 13 Feb 2006 09:18:33 +0000 (GMT) (envelope-from freebsd.nospam@mekanix.dk) Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id A756043D55 for ; Mon, 13 Feb 2006 09:18:32 +0000 (GMT) (envelope-from freebsd.nospam@mekanix.dk) Received: from desktop.home (x1-6-00-50-7f-27-a4-fc.k432.webspeed.dk [83.89.17.231]) by pfepb.post.tele.dk (Postfix) with ESMTP id 44A2AA5003E for ; Mon, 13 Feb 2006 10:18:31 +0100 (CET) From: Bjarne Wichmann Petersen To: freebsd-questions@freebsd.org Date: Mon, 13 Feb 2006 10:20:28 +0100 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602131020.28753.freebsd.nospam@mekanix.dk> Subject: lprps: ioctl(TIOCFLUSH): Operation not permitted 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: Mon, 13 Feb 2006 09:18:33 -0000 Hi I did something stuppid and messed up my lpd-setup. I looked around in KDE's "Printer Manager" in administrator-mode, and even though I didn't apply any changes it activated cupsd (should it do that?) which in turn overwrote my /etc/printcap. Now I can't get back to the old and working setup. I've removed /usr/local/etc/rc.d/cups.sh, so /etc/printcap doesn't get overwritten any more. Though I don't have a copy of my /etc/printcap I found older copy (which might be identical) which have worked in the past: laserjet|lp|ps|PS|S|hp|HP LaserJet 1200:\ :sh:sd=/var/spool/lpd/laserjet:\ :lp=/dev/lpt0:\ :mx#0:\ :if=/usr/local/libexec/psif: The psif-filter is installed and at that location. lpd is up and running. Now, if I try to print anything I get this errormessage in console/syslog: eb 13 09:50:46 desktop lprps[842]: laserjet: ioctl(TIOCFLUSH): Operation not supported by device Feb 13 09:50:46 desktop lpd[836]: laserjet: job could not be printed (cfA010desktop.home) I've tried to fiddle around with lptcontrol and gets tiocflush-errors for all switches but -s. I have NO idea for where to look next. Google doesn't turn up anything useful on tiocflush and I have no idea what it means. Bjarne