Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 17 Sep 2014, 16:00
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
udev-configure-printer
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
disciple

Joined: 20 May 2006
Posts: 6433
Location: Auckland, New Zealand

PostPosted: Sun 29 Jan 2012, 05:41    Post subject:  udev-configure-printer
Subject description: automatically re-enable printer when it is turned on.
 

If you forget to turn your printer on before hitting "print", do you need to go to the CUPS administration to re-enable the printer?
Is this the only time you use the CUPS administration?
Does this annoy you?

If you answered yes to those three questions (and your Puppy uses udev), then your Puppy needs udev-configure-printer and its 70-printers.rules udev rule, which automatically re-enable the printer when you plug it in or turn it on.
It is part of system-config-printer, but you don't actually need all that gnome/kde stuff.
The only trouble is, even Debian (who split it up into a package separate from the python utilities) list the python utilities as a dependency... but I think (hope) that might be a mistake, as it seems to work for me if I temporarily remove my Python.

N.B. I have not tested in Puppy, and don't know if it would require any other changes to Puppy's udev system.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Sun 06 May 2012, 15:26    Post subject:  

What do you want ?

The package from source installs these files :

/usr/local/bin
/usr/local/bin/scp-dbus-service
/usr/local/bin/system-config-printer
/usr/local/bin/system-config-printer-applet
/usr/local/etc/cupshelpers
/usr/local/etc/cupshelpers/preferreddrivers.xml
/usr/local/etc/dbus-1/system.d
/usr/local/etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
/usr/local/etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf
/usr/local/lib/python2.5/site-packages
/usr/local/lib/python2.5/site-packages/cupshelpers-1.0-py2.5.egg-info
/usr/local/share
/usr/local/share/dbus-1/interfaces
/usr/local/share/dbus-1/interfaces/org.fedoraproject.Config.Printing.xml
/usr/local/share/dbus-1/services
/usr/local/share/dbus-1/services/org.fedoraproject.Config.Printing.service
/usr/local/share/locale/ar/LC_MESSAGES
/usr/local/share/locale/ar/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/as/LC_MESSAGES
/usr/local/share/locale/as/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/bg/LC_MESSAGES
/usr/local/share/locale/bg/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/bn_IN/LC_MESSAGES
/usr/local/share/locale/bn_IN/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/bn/LC_MESSAGES
/usr/local/share/locale/bn/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/br/LC_MESSAGES
/usr/local/share/locale/br/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/bs/LC_MESSAGES
/usr/local/share/locale/bs/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ca/LC_MESSAGES
/usr/local/share/locale/ca/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/cs/LC_MESSAGES
/usr/local/share/locale/cs/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/cy/LC_MESSAGES
/usr/local/share/locale/cy/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/da/LC_MESSAGES
/usr/local/share/locale/da/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/de/LC_MESSAGES
/usr/local/share/locale/de/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/el/LC_MESSAGES
/usr/local/share/locale/el/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/en_GB/LC_MESSAGES
/usr/local/share/locale/en_GB/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/es/LC_MESSAGES
/usr/local/share/locale/es/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/et/LC_MESSAGES
/usr/local/share/locale/et/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/fa/LC_MESSAGES
/usr/local/share/locale/fa/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/fi/LC_MESSAGES
/usr/local/share/locale/fi/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/fr/LC_MESSAGES
/usr/local/share/locale/fr/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/gu/LC_MESSAGES
/usr/local/share/locale/gu/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/he/LC_MESSAGES
/usr/local/share/locale/he/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/hi/LC_MESSAGES
/usr/local/share/locale/hi/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/hr/LC_MESSAGES
/usr/local/share/locale/hr/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/hu/LC_MESSAGES
/usr/local/share/locale/hu/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/hy/LC_MESSAGES
/usr/local/share/locale/hy/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/id/LC_MESSAGES
/usr/local/share/locale/id/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/is/LC_MESSAGES
/usr/local/share/locale/is/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/it/LC_MESSAGES
/usr/local/share/locale/it/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ja/LC_MESSAGES
/usr/local/share/locale/ja/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ka/LC_MESSAGES
/usr/local/share/locale/ka/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/kn/LC_MESSAGES
/usr/local/share/locale/kn/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ko/LC_MESSAGES
/usr/local/share/locale/ko/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/lo/LC_MESSAGES
/usr/local/share/locale/lo/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/lv/LC_MESSAGES
/usr/local/share/locale/lv/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/mai/LC_MESSAGES
/usr/local/share/locale/mai/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/mk/LC_MESSAGES
/usr/local/share/locale/mk/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ml/LC_MESSAGES
/usr/local/share/locale/ml/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/mr/LC_MESSAGES
/usr/local/share/locale/mr/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ms/LC_MESSAGES
/usr/local/share/locale/ms/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/my/LC_MESSAGES
/usr/local/share/locale/my/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/nb/LC_MESSAGES
/usr/local/share/locale/nb/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/nds/LC_MESSAGES
/usr/local/share/locale/nds/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/nl/LC_MESSAGES
/usr/local/share/locale/nl/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/nn/LC_MESSAGES
/usr/local/share/locale/nn/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/or/LC_MESSAGES
/usr/local/share/locale/or/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/pa/LC_MESSAGES
/usr/local/share/locale/pa/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/pl/LC_MESSAGES
/usr/local/share/locale/pl/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES
/usr/local/share/locale/pt_BR/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/pt/LC_MESSAGES
/usr/local/share/locale/pt/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ro/LC_MESSAGES
/usr/local/share/locale/ro/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ru/LC_MESSAGES
/usr/local/share/locale/ru/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/si/LC_MESSAGES
/usr/local/share/locale/si/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/sk/LC_MESSAGES
/usr/local/share/locale/sk/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/sl/LC_MESSAGES
/usr/local/share/locale/sl/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/sr@latin/LC_MESSAGES
/usr/local/share/locale/sr@latin/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/sr/LC_MESSAGES
/usr/local/share/locale/sr/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/sv/LC_MESSAGES
/usr/local/share/locale/sv/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/ta/LC_MESSAGES
/usr/local/share/locale/ta/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/te/LC_MESSAGES
/usr/local/share/locale/te/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/th/LC_MESSAGES
/usr/local/share/locale/th/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/tr/LC_MESSAGES
/usr/local/share/locale/tr/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/uk/LC_MESSAGES
/usr/local/share/locale/uk/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/vi/LC_MESSAGES
/usr/local/share/locale/vi/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/zh_CN/LC_MESSAGES
/usr/local/share/locale/zh_CN/LC_MESSAGES/system-config-printer.mo
/usr/local/share/locale/zh_TW/LC_MESSAGES
/usr/local/share/locale/zh_TW/LC_MESSAGES/system-config-printer.mo
/usr/local/share/man/man1
/usr/local/share/man/man1/system-config-printer.1
/usr/local/share/man/man1/system-config-printer-applet.1
/usr/local/share/system-config-printer
/usr/local/share/system-config-printer/applet.py
/usr/local/share/system-config-printer/asyncconn.py
/usr/local/share/system-config-printer/asyncipp.py
/usr/local/share/system-config-printer/asyncpk1.py
/usr/local/share/system-config-printer/authconn.py
/usr/local/share/system-config-printer/check-device-ids.py
/usr/local/share/system-config-printer/config.py
/usr/local/share/system-config-printer/cupspk.py
/usr/local/share/system-config-printer/debug.py
/usr/local/share/system-config-printer/dnssdresolve.py
/usr/local/share/system-config-printer/errordialogs.py
/usr/local/share/system-config-printer/firewall.py
/usr/local/share/system-config-printer/gtkinklevel.py
/usr/local/share/system-config-printer/gtk_label_autowrap.py
/usr/local/share/system-config-printer/gtkspinner.py
/usr/local/share/system-config-printer/gui.py
/usr/local/share/system-config-printer/HIG.py
/usr/local/share/system-config-printer/icons
/usr/local/share/system-config-printer/icons/i-network-printer.png
/usr/local/share/system-config-printer/installpackage.py
/usr/local/share/system-config-printer/jobviewer.py
/usr/local/share/system-config-printer/monitor.py
/usr/local/share/system-config-printer/newprinter.py
/usr/local/share/system-config-printer/options.py
/usr/local/share/system-config-printer/optionwidgets.py
/usr/local/share/system-config-printer/PhysicalDevice.py
/usr/local/share/system-config-printer/ppdcache.py
/usr/local/share/system-config-printer/ppdippstr.py
/usr/local/share/system-config-printer/ppdsloader.py
/usr/local/share/system-config-printer/printerproperties.py
/usr/local/share/system-config-printer/probe_printer.py
/usr/local/share/system-config-printer/pysmb.py
/usr/local/share/system-config-printer/scp-dbus-service.py
/usr/local/share/system-config-printer/SearchCriterion.py
/usr/local/share/system-config-printer/serversettings.py
/usr/local/share/system-config-printer/smburi.py
/usr/local/share/system-config-printer/statereason.py
/usr/local/share/system-config-printer/system-config-printer.py
/usr/local/share/system-config-printer/timedops.py
/usr/local/share/system-config-printer/ToolbarSearchEntry.py
/usr/local/share/system-config-printer/troubleshoot
/usr/local/share/system-config-printer/troubleshoot/base.py
/usr/local/share/system-config-printer/troubleshoot/CheckLocalServerPublishing.py
/usr/local/share/system-config-printer/troubleshoot/CheckNetworkServerSanity.py
/usr/local/share/system-config-printer/troubleshoot/CheckPPDSanity.py
/usr/local/share/system-config-printer/troubleshoot/CheckPrinterSanity.py
/usr/local/share/system-config-printer/troubleshoot/CheckSELinux.py
/usr/local/share/system-config-printer/troubleshoot/CheckUSBPermissions.py
/usr/local/share/system-config-printer/troubleshoot/ChooseNetworkPrinter.py
/usr/local/share/system-config-printer/troubleshoot/ChoosePrinter.py
/usr/local/share/system-config-printer/troubleshoot/DeviceListed.py
/usr/local/share/system-config-printer/troubleshoot/ErrorLogCheckpoint.py
/usr/local/share/system-config-printer/troubleshoot/ErrorLogFetch.py
/usr/local/share/system-config-printer/troubleshoot/ErrorLogParse.py
/usr/local/share/system-config-printer/troubleshoot/__init__.py
/usr/local/share/system-config-printer/troubleshoot/Locale.py
/usr/local/share/system-config-printer/troubleshoot/LocalOrRemote.py
/usr/local/share/system-config-printer/troubleshoot/NetworkCUPSPrinterShared.py
/usr/local/share/system-config-printer/troubleshoot/PrinterStateReasons.py
/usr/local/share/system-config-printer/troubleshoot/PrintTestPage.py
/usr/local/share/system-config-printer/troubleshoot/QueueNotEnabled.py
/usr/local/share/system-config-printer/troubleshoot/QueueRejectingJobs.py
/usr/local/share/system-config-printer/troubleshoot/RemoteAddress.py
/usr/local/share/system-config-printer/troubleshoot/SchedulerNotRunning.py
/usr/local/share/system-config-printer/troubleshoot/ServerFirewalled.py
/usr/local/share/system-config-printer/troubleshoot/Shrug.py
/usr/local/share/system-config-printer/troubleshoot/VerifyPackages.py
/usr/local/share/system-config-printer/troubleshoot/Welcome.py
/usr/local/share/system-config-printer/ui
/usr/local/share/system-config-printer/ui/AboutDialog.ui
/usr/local/share/system-config-printer/ui/ConnectDialog.ui
/usr/local/share/system-config-printer/ui/ConnectingDialog.ui
/usr/local/share/system-config-printer/ui/InstallDialog.ui
/usr/local/share/system-config-printer/ui/JobsWindow.ui
/usr/local/share/system-config-printer/ui/NewPrinterName.ui
/usr/local/share/system-config-printer/ui/NewPrinterWindow.ui
/usr/local/share/system-config-printer/ui/PrinterPropertiesDialog.ui
/usr/local/share/system-config-printer/ui/PrintersWindow.ui
/usr/local/share/system-config-printer/ui/ServerSettingsDialog.ui
/usr/local/share/system-config-printer/ui/SMBBrowseDialog.ui
/usr/local/share/system-config-printer/ui/statusicon_popupmenu.ui
/usr/local/share/system-config-printer/ui/WaitWindow.ui
/usr/local/share/system-config-printer/userdefault.py
/usr/local/share/system-config-printer/xml
/usr/local/share/system-config-printer/xml/preferreddrivers.rng
/usr/local/share/system-config-printer/xml/validate.py


And when i call
Code:
system-config-printer

Traceback (most recent call last):
File "/usr/local/share/system-config-printer/system-config-printer.py", line 29, in <module>
import dbus
ImportError: No module named dbus
Code:
system-config-printer-applet

Traceback (most recent call last):
File "/usr/local/share/system-config-printer/applet.py", line 20, in <module>
import cups
ImportError: No module named cups

The udev rule is this :
Code:
# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", RUN+="udev-configure-printer add %p"
# usblp device add trigger (needed when usblp is already loaded)
ACTION=="add", KERNEL=="lp*", RUN+="udev-configure-printer add %p"

# Low-level USB device remove trigger
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p"

and is not present in version 1.0
or
in actual Debian 1.3.7
Quote:
# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", TAG+="udev-configure-printer", RUN+="udev-configure-printer add %p"
# usblp device add trigger (needed when usblp is already loaded)
ACTION=="add", KERNEL=="lp*", TAG+="udev-configure-printer", RUN+="udev-configure-printer add %p"

# Low-level USB device remove trigger
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p"

with udev-configure-printer being a #!/usr/bin/python script of 242 lines ...

I would have had to ./configure --with-udev-rules Enable automatic USB print queue configuration [default=no]
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6433
Location: Auckland, New Zealand

PostPosted: Mon 07 May 2012, 02:39    Post subject:  

Quote:
What do you want ?

Nothing - I don't run Puppy anymore. I was just posting a solution to a problem I'd asked about here before, since I thought someone else might find it helpful.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0867s ][ Queries: 11 (0.0041s) ][ GZIP on ]