To get an automatic startup for the LBP 2900 I added simply looked in
/etc/udev/rules.d/
and searched for a rule file containing "lp" to indicate there is already something about printers in it. In this case it was the file
/etc/udev/rules.d/85-hpjl10xx.rules
I simply added after the last line
KERNEL=="lp*", RUN+="/etc/init.d/ccpd restart"
and it works.
Output of /etc/udev/rules.d/85-hpjl10xx.rules
#Own udev rule for HP Laserjet 1000 KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="03f0", SYSFS{product}=="hp LaserJet 1000", SYMLINK+="hplj1000", RUN+="/usr/sbin/hplj1000" #Own udev rule for HP Laserjet 1005 KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="03f0", SYSFS{product}=="hp LaserJet 1005 series", SYMLINK+="hplj1005", RUN+="/usr/sbin/hplj1005" #Own udev rule for HP Laserjet 1018 KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="03f0", SYSFS{product}=="HP LaserJet 1018", SYMLINK+="hplj1018", RUN+="/usr/sbin/hplj1018" #Own udev rule for HP Laserjet 1020 KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="03f0", SYSFS{product}=="HP LaserJet 1020", SYMLINK+="hplj1020", RUN+="/usr/sbin/hplj1020" KERNEL=="lp*", RUN+="/etc/init.d/ccpd restart"
To get an automatic startup for the LBP 2900 I added simply looked in
/etc/udev/rules.d/
and searched for a rule file containing "lp" to indicate there is already something about printers in it.
In this case it was the file
/etc/udev/ rules.d/ 85-hpjl10xx. rules
I simply added after the last line
KERNEL=="lp*", RUN+="/ etc/init. d/ccpd restart"
and it works.
Output of /etc/udev/ rules.d/ 85-hpjl10xx. rules
#Own udev rule for HP Laserjet 1000 =="03f0" , SYSFS{product}=="hp LaserJet 1000", SYMLINK+ ="hplj1000" , RUN+="/ usr/sbin/ hplj1000" =="03f0" , SYSFS{product}=="hp LaserJet 1005 series", SYMLINK+ ="hplj1005" , RUN+="/ usr/sbin/ hplj1005" =="03f0" , SYSFS{product}=="HP LaserJet 1018", SYMLINK+ ="hplj1018" , RUN+="/ usr/sbin/ hplj1018" =="03f0" , SYSFS{product}=="HP LaserJet 1020", SYMLINK+ ="hplj1020" , RUN+="/ usr/sbin/ hplj1020" etc/init. d/ccpd restart"
KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}
#Own udev rule for HP Laserjet 1005
KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}
#Own udev rule for HP Laserjet 1018
KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}
#Own udev rule for HP Laserjet 1020
KERNEL=="lp*", SUBSYSTEMS=="usb", SYSFS{idVendor}
KERNEL=="lp*", RUN+="/