<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: CUPS USB Drucker automatisch aktivieren/deaktivieren</title>
	<atom:link href="http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html</link>
	<description>Things that keep me busy...</description>
	<lastBuildDate>Tue, 03 Jan 2012 16:28:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Von: jpgorganizer</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-10785</link>
		<dc:creator>jpgorganizer</dc:creator>
		<pubDate>Wed, 08 Feb 2012 17:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-10785</guid>
		<description>habe das gleiche Problem unter CUPS 1.3.9 folgendermaßen gelöst. 

* Edit cupsd.conf. Please insert the following lines at the end of the file if your currenct version of the file doesn&#039;t have these values.

#
# JobRetryInterval in Sekunden
#
# The JobRetryInterval directive specifies the number of seconds
# to wait before retrying a job. This is typically used for fax queues
# but can also be used with normal print queues whose error policy
# is retry-job.
# The default is 30 seconds.

JobRetryInterval 15

#
# JobRetryLimit
#
# The JobRetryLimit directive specifies the maximum number of times
# the scheduler will try to print a job. This is typically used for
# fax queues but can also be used with normal print queues
# whose error policy is retry-job. The default is 5 times.
#
# 40 reicht aus, um Drucker in
# 10 min einzuschalten , damit die Jobs noch gedruckt werden

JobRetryLimit 120

* Edit printers.conf. Change the line ErrorPolicy to ErrorPolicy retry-job

# possible values for ErrorPoliy:
#    abort-job - Abort the job and proceed with the next job in the queue
#    retry-current-job - Retry the current job immediately
#    retry-job - Retry the job after waiting for N seconds; the cupsd.conf JobRetryInterval  directive controls the value of N
#    stop-printer - Stop the printer and keep the job for future printing; this is the default value


...
ErrorPolicy retry-job
....

#

Funktioniert bei mir perfekt auf einer NSLU2 mit unslung.</description>
		<content:encoded><![CDATA[<p>habe das gleiche Problem unter CUPS 1.3.9 folgendermaßen gelöst. </p>
<p>* Edit cupsd.conf. Please insert the following lines at the end of the file if your currenct version of the file doesn&#8217;t have these values.</p>
<p>#<br />
# JobRetryInterval in Sekunden<br />
#<br />
# The JobRetryInterval directive specifies the number of seconds<br />
# to wait before retrying a job. This is typically used for fax queues<br />
# but can also be used with normal print queues whose error policy<br />
# is retry-job.<br />
# The default is 30 seconds.</p>
<p>JobRetryInterval 15</p>
<p>#<br />
# JobRetryLimit<br />
#<br />
# The JobRetryLimit directive specifies the maximum number of times<br />
# the scheduler will try to print a job. This is typically used for<br />
# fax queues but can also be used with normal print queues<br />
# whose error policy is retry-job. The default is 5 times.<br />
#<br />
# 40 reicht aus, um Drucker in<br />
# 10 min einzuschalten , damit die Jobs noch gedruckt werden</p>
<p>JobRetryLimit 120</p>
<p>* Edit printers.conf. Change the line ErrorPolicy to ErrorPolicy retry-job</p>
<p># possible values for ErrorPoliy:<br />
#    abort-job &#8211; Abort the job and proceed with the next job in the queue<br />
#    retry-current-job &#8211; Retry the current job immediately<br />
#    retry-job &#8211; Retry the job after waiting for N seconds; the cupsd.conf JobRetryInterval  directive controls the value of N<br />
#    stop-printer &#8211; Stop the printer and keep the job for future printing; this is the default value</p>
<p>&#8230;<br />
ErrorPolicy retry-job<br />
&#8230;.</p>
<p>#</p>
<p>Funktioniert bei mir perfekt auf einer NSLU2 mit unslung.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: FW1704</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-10724</link>
		<dc:creator>FW1704</dc:creator>
		<pubDate>Wed, 08 Feb 2012 13:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-10724</guid>
		<description>Script mit opensuse 11.1 nicht mehr nötig.
Hab den HP Laserjet 6P nach der Deiner Anleitung
unter VISTA eingerichtet -&gt; läuft 
(anders, über IP Adr. wie üblich, ging&#039;s NICHT!)

Auch Ausschalten und wieder Einschalten geht ohne Script.

Danke</description>
		<content:encoded><![CDATA[<p>Script mit opensuse 11.1 nicht mehr nötig.<br />
Hab den HP Laserjet 6P nach der Deiner Anleitung<br />
unter VISTA eingerichtet -&gt; läuft<br />
(anders, über IP Adr. wie üblich, ging&#8217;s NICHT!)</p>
<p>Auch Ausschalten und wieder Einschalten geht ohne Script.</p>
<p>Danke</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: flo</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-2996</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Wed, 08 Feb 2012 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-2996</guid>
		<description>Cool ^^
Wusste doch, dass ich net drum rum komm mich damit mal zu beschäftigen. Weiß allerdings gar net, ob SuSE 9.0 schon udev hat. Das ist auf dem Rechner, auf dem das Skript läuft nämlich installiert :(
Muss wohl doch mal ne ordentliche Distribution her ;)</description>
		<content:encoded><![CDATA[<p>Cool ^^<br />
Wusste doch, dass ich net drum rum komm mich damit mal zu beschäftigen. Weiß allerdings gar net, ob SuSE 9.0 schon udev hat. Das ist auf dem Rechner, auf dem das Skript läuft nämlich installiert :(<br />
Muss wohl doch mal ne ordentliche Distribution her ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: harrix</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-2972</link>
		<dc:creator>harrix</dc:creator>
		<pubDate>Wed, 08 Feb 2012 22:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-2972</guid>
		<description>In z.B. /etc/udev/rules.d/49-printer.rules

SUBSYSTEM==&quot;usb&quot;, KERNEL==&quot;lp*&quot;, SYSFS{product}==&quot;i550&quot;, NAME=&quot;usb/%k&quot;, SYMLINK+=&quot;i550&quot;, GROUP=&quot;lp&quot; PROGRAM=&quot;/usr/sbin/cupsenable tp0&quot;

Dann macht udevd alles allein :-))</description>
		<content:encoded><![CDATA[<p>In z.B. /etc/udev/rules.d/49-printer.rules</p>
<p>SUBSYSTEM==&#8221;usb&#8221;, KERNEL==&#8221;lp*&#8221;, SYSFS{product}==&#8221;i550&#8243;, NAME=&#8221;usb/%k&#8221;, SYMLINK+=&#8221;i550&#8243;, GROUP=&#8221;lp&#8221; PROGRAM=&#8221;/usr/sbin/cupsenable tp0&#8243;</p>
<p>Dann macht udevd alles allein :-))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: flo</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-1528</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Wed, 08 Feb 2012 12:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-1528</guid>
		<description>Danke für die gute Idee und das Script foogy. Deine Lösung gefällt mir fast noch besser als meine. Ist jedenfalls ressourcensparender, da nicht immer das Syslog durchgeackert werden muss.
Meins ist dafür flexibler. Irgendwan sollte das mal so erweitert werden, dass man auf beliebige Meldungen im Syslog eine entsprechende Aktion definieren kann.
Irgendwann... ;)</description>
		<content:encoded><![CDATA[<p>Danke für die gute Idee und das Script foogy. Deine Lösung gefällt mir fast noch besser als meine. Ist jedenfalls ressourcensparender, da nicht immer das Syslog durchgeackert werden muss.<br />
Meins ist dafür flexibler. Irgendwan sollte das mal so erweitert werden, dass man auf beliebige Meldungen im Syslog eine entsprechende Aktion definieren kann.<br />
Irgendwann&#8230; ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: foogy</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-1522</link>
		<dc:creator>foogy</dc:creator>
		<pubDate>Wed, 08 Feb 2012 16:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-1522</guid>
		<description>Hi, habe ein ähnliches Script gebastelt, dass allerdings das Spool-Verzeichnis überwacht und bei neuen Spools prüft, ob der Drucker angeschlossen ist und diesen ggf. startet. Anderer Ansatz, funktioniert aber auch:

#! /bin/sh

while [ true ]
do
        # wait for some seconds to save CPU time
        sleep 10

        # check the cups spool dir for new jobs
        CHECKSPOOL=$(ls /var/spool/cups/d* &#124; grep such)

        if [ &quot;$CHECKSPOOL&quot; == &quot;&quot; ]; then
                echo &quot;Spool data found. Starting printer ...&quot;
                # Look for my Canon MP780. Find out your ID:VENDOR using lsusb
                CHECKPRINTER=$(lsusb -d 04a9:1707)
                if [ &quot;$CHECKPRINTER&quot; ]; then
                        cupsenable Canon_MP780_USB_1
                        sleep 60
                fi
        fi
done</description>
		<content:encoded><![CDATA[<p>Hi, habe ein ähnliches Script gebastelt, dass allerdings das Spool-Verzeichnis überwacht und bei neuen Spools prüft, ob der Drucker angeschlossen ist und diesen ggf. startet. Anderer Ansatz, funktioniert aber auch:</p>
<p>#! /bin/sh</p>
<p>while [ true ]<br />
do<br />
        # wait for some seconds to save CPU time<br />
        sleep 10</p>
<p>        # check the cups spool dir for new jobs<br />
        CHECKSPOOL=$(ls /var/spool/cups/d* | grep such)</p>
<p>        if [ "$CHECKSPOOL" == "" ]; then<br />
                echo &#8220;Spool data found. Starting printer &#8230;&#8221;<br />
                # Look for my Canon MP780. Find out your ID:VENDOR using lsusb<br />
                CHECKPRINTER=$(lsusb -d 04a9:1707)<br />
                if [ "$CHECKPRINTER" ]; then<br />
                        cupsenable Canon_MP780_USB_1<br />
                        sleep 60<br />
                fi<br />
        fi<br />
done</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: CUPS/IPP - Drucker unter Windows einbinden</title>
		<link>http://www.geek-blog.de/cups-usb-drucker-automatisch-aktivierendeaktivieren.html/comment-page-1#comment-1284</link>
		<dc:creator>CUPS/IPP - Drucker unter Windows einbinden</dc:creator>
		<pubDate>Wed, 08 Feb 2012 21:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-blog.de/2007/02/25/cups-usb-drucker-automatisch-aktivierendeaktivieren/#comment-1284</guid>
		<description>[...] Edit: Das Problem mit dem automatischen deakitiever der Druckerwarteschlange sobald man den Drucker ausschaltet habe ich mit einem Skript gelöst, dass die Warteschlange abhängig vom Drucker automatisch aktiviert bzw. deaktiviert. [...]</description>
		<content:encoded><![CDATA[<p>[...] Edit: Das Problem mit dem automatischen deakitiever der Druckerwarteschlange sobald man den Drucker ausschaltet habe ich mit einem Skript gelöst, dass die Warteschlange abhängig vom Drucker automatisch aktiviert bzw. deaktiviert. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

