LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2009, 09:39 PM   #1
rc nai
Member
 
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 88

Rep: Reputation: 21
Question Printing Issue(SW 12.2/XFCE 4.4.3)


I configured and added my new local printer + driver(HP PSC 1600 series Foomatic/hpijs, hpijs 2.8.10.33). In the printing system under xfce settings manager, I made it point to CUPS. What I found out was that the only way I could get my printer to work was:

1. connect printer to computer
2. start up rc.cups
3. restart computer
4. print a test copy from AbiWord
...and that works.

But if the computer and rc.cups was up and running and if I physically disconnect the printer from the computer and plug it back in and try to print a test page, it won't print. According to localhost:631 it says the printer is idle and print jobs are currently processing or in queue.

My question is, if I physically disconnect the printer from the computer and plug it back in, how do I make the printer print without having to restart the computer?

I thought if I restarted rc.cups as root it would fix the problem, but it didn't work. Any ideas?
 
Old 01-21-2009, 04:49 AM   #2
phys
Member
 
Registered: Jun 2006
Location: Istanbul, Turkey
Distribution: Slackware
Posts: 90

Rep: Reputation: 23
I have HP PSC 1410 and can print on XFCE after unplug-plug process without restarting computer.

Try to add CUPS service to start up services. You can use pkgtool as root.

Code:
su > pkgtool > setup > services > rc.cups
Then restart computer.

Last edited by phys; 01-21-2009 at 05:01 AM.
 
Old 01-21-2009, 09:00 PM   #3
rc nai
Member
 
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 88

Original Poster
Rep: Reputation: 21
To be more specific, this is all on my test machine running:
Code:
SW 12.2
XFCE 4.4.3
Kernel 2.6.27.7-SMP i686
Pentium 4
My usb printer device discription:
Code:
Description: HP PSC 1600 series
Location: Local Printer
Printer Driver: HP PSC 1600 series Foomatic/hpijs, hpijs 2.8.10.33
Printer State: idle, accepting jobs, published.
Device URI: usb://HP/PSC%201600%20series?serial=XXXXXXXXXXXX (I thought for security reasons, I edit out the serial# with XXX... :scratch:
Quote:
Originally Posted by phys View Post
I have HP PSC 1410 and can print on XFCE after unplug-plug process without restarting computer.

Try to add CUPS service to start up services. You can use pkgtool as root.

Code:
su > pkgtool > setup > services > rc.cups
Then restart computer.
Thanks for mentioning that. I did chmod +x rc.cups over at /etc/rc.d/ and rc.cups reboots at every startup. I think I narrowed it down and it's a bigger problem than I expected. When my computer boots up with the usb printer connected while rc.cups, rc.hald, and rc.udev is up and running, the system is able to detect the usb printer device and is able to print with cups. These are the outputs that I get:
Code:
lsusb

Bus 001 Device 002: ID 03f0:4811 Hewlett-Packard PSC 1600
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Code:
lsmod | grep usb

usblp                  15616  0
Code:
lsmod

Module                  Size  Used by
sg                     30516  0 
usblp                  15616  0 
snd_seq_dummy           6788  0 
snd_seq_oss            33408  0 
snd_seq_midi_event     10240  1 snd_seq_oss
snd_seq                50928  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         10380  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            40480  0 
snd_mixer_oss          17920  1 snd_pcm_oss
xt_limit                6148  2 
xt_pkttype              5760  1 
ipt_REJECT              7040  2 
xt_tcpudp               6912  19 
ipt_LOG                 9860  11 
xt_state                6016  6 
iptable_mangle          6784  0 
iptable_nat             9096  0 
iptable_filter          6784  1 
nf_conntrack_irc        9252  0 
nf_nat_ftp              6656  0 
nf_nat                 19480  2 iptable_nat,nf_nat_ftp
nf_conntrack_ftp       10916  1 nf_nat_ftp
nf_conntrack_ipv4      17036  9 iptable_nat,nf_nat
nf_conntrack           55504  7 xt_state,iptable_nat,nf_conntrack_irc,nf_nat_ftp,nf_nat,nf_conntrack_ftp,nf_conntrack
_ipv4
ip_tables              14608  3 iptable_mangle,iptable_nat,iptable_filter
x_tables               16644  8 xt_limit,xt_pkttype,ipt_REJECT,xt_tcpudp,ipt_LOG,xt_state,iptable_nat,ip_tables
lp                     13572  0 
fuse                   54684  3 
rt2500pci              19328  0 
nvidia               6903188  26 
rt2x00pci              10240  1 rt2500pci
ppdev                  11268  0 
rt2x00lib              29056  2 rt2500pci,rt2x00pci
parport_pc             28196  1 
rfkill                 12184  1 rt2x00lib
parport                34796  3 lp,ppdev,parport_pc
led_class               7684  1 rt2x00lib
i2c_sis96x              8324  0 
psmouse                40592  0 
button                 10128  0 
serio_raw               9220  0 
sis_agp                11136  1 
snd_intel8x0           32540  1 
fan                     8324  0 
shpchp                 33172  0 
snd_ac97_codec        101412  1 snd_intel8x0
ac97_bus                5632  1 snd_ac97_codec
agpgart                32584  2 nvidia,sis_agp
thermal                19484  2 
snd_pcm                70788  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
mac80211              158108  2 rt2x00pci,rt2x00lib
evdev                  13088  3 
processor              36648  1 thermal
snd_timer              23176  2 snd_seq,snd_pcm
cfg80211               27144  2 rt2x00lib,mac80211
eeprom_93cx6            5888  1 rt2500pci
snd                    51748  11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_c
odec,snd_pcm,snd_timer
soundcore              10080  1 snd
thermal_sys            15144  3 fan,thermal,processor
8139too                26624  0 
snd_page_alloc         11400  2 snd_intel8x0,snd_pcm
hwmon                   6300  1 thermal_sys
mii                     8448  1 8139too
Code:
rescan-scsi-bus -l

Host adapter 2 (usb-storage) found.
Scanning SCSI subsystem for new devices
Scanning host 2 channels 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, LUNs  0 1 2 3 4 5 6 7
Scanning for device 2 0 0 0 ...
OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
      Vendor: HP       Model: PSC 1610         Rev: 1.00
      Type:   Direct-Access                    ANSI SCSI revision: 02
0 new device(s) found.               
0 device(s) removed.
Code:
cat /proc/bus/usb/devices 

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.27.7-smp ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:02.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.27.7-smp ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=4811 Rev= 1.00
S:  Manufacturer=HP
S:  Product=PSC 1600 series
S:  SerialNumber=XXXXXXXXXXXX
C:* #Ifs= 4 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=cc Prot=00 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=84(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=86(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 2 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=d4 Prot=00 Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=86(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=07(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
Code:
cat /var/log/messages

Jan 21 15:39:56 tracert kernel: usb 1-1: new full speed USB device using ohci_hcd and address 2
Jan 21 15:39:56 tracert kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan 21 15:39:56 tracert kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jan 21 15:39:56 tracert kernel: usb 1-1: New USB device found, idVendor=03f0, idProduct=4811
Jan 21 15:39:56 tracert kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 21 15:39:56 tracert kernel: usb 1-1: Product: PSC 1600 series
Jan 21 15:39:56 tracert kernel: usb 1-1: Manufacturer: HP
Jan 21 15:39:56 tracert kernel: usb 1-1: SerialNumber: XXXXXXXXXXXX
Jan 21 15:39:56 tracert kernel: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4811
Jan 21 15:39:56 tracert kernel: usbcore: registered new interface driver usblp
Jan 21 15:40:01 tracert kernel: scsi 2:0:0:0: Direct-Access     HP       PSC 1610         1.00 PQ: 0 ANSI: 2
Jan 21 15:40:01 tracert kernel: sd 2:0:0:0: [sda] Attached SCSI removable disk
Jan 21 15:40:01 tracert kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
As you can see from the above, it detects my device and I'm able to print. But now if I disconnect and reconnect my usb printer, this is what I get:
Code:
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Code:
rescan-scsi-bus -l

No SCSI host adapters found in sysfs
Code:
lsmod

Module                  Size  Used by
snd_seq_dummy           6788  0 
snd_seq_oss            33408  0 
snd_seq_midi_event     10240  1 snd_seq_oss
snd_seq                50928  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         10380  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            40480  0 
snd_mixer_oss          17920  1 snd_pcm_oss
xt_limit                6148  2 
xt_pkttype              5760  1 
ipt_REJECT              7040  2 
xt_tcpudp               6912  19 
ipt_LOG                 9860  11 
xt_state                6016  6 
iptable_mangle          6784  0 
iptable_nat             9096  0 
iptable_filter          6784  1 
nf_conntrack_irc        9252  0 
nf_nat_ftp              6656  0 
nf_nat                 19480  2 iptable_nat,nf_nat_ftp
nf_conntrack_ftp       10916  1 nf_nat_ftp
nf_conntrack_ipv4      17036  9 iptable_nat,nf_nat
nf_conntrack           55504  7 xt_state,iptable_nat,nf_conntrack_irc,nf_nat_ftp,nf_nat,nf_conntrack_ftp,nf_conntrack
_ipv4
ip_tables              14608  3 iptable_mangle,iptable_nat,iptable_filter
x_tables               16644  8 xt_limit,xt_pkttype,ipt_REJECT,xt_tcpudp,ipt_LOG,xt_state,iptable_nat,ip_tables
lp                     13572  0 
fuse                   54684  3 
rt2500pci              19328  0 
nvidia               6903188  26 
rt2x00pci              10240  1 rt2500pci
rt2x00lib              29056  2 rt2500pci,rt2x00pci
rfkill                 12184  1 rt2x00lib
ppdev                  11268  0 
snd_intel8x0           32540  1 
i2c_sis96x              8324  0 
led_class               7684  1 rt2x00lib
parport_pc             28196  1 
snd_ac97_codec        101412  1 snd_intel8x0
parport                34796  3 lp,ppdev,parport_pc
ac97_bus                5632  1 snd_ac97_codec
sis_agp                11136  1 
shpchp                 33172  0 
agpgart                32584  2 nvidia,sis_agp
mac80211              158108  2 rt2x00pci,rt2x00lib
fan                     8324  0 
snd_pcm                70788  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
psmouse                40592  0 
serio_raw               9220  0 
thermal                19484  2 
cfg80211               27144  2 rt2x00lib,mac80211
eeprom_93cx6            5888  1 rt2500pci
snd_timer              23176  2 snd_seq,snd_pcm
evdev                  13088  3 
snd                    51748  11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_c
odec,snd_pcm,snd_timer
processor              36648  1 thermal
thermal_sys            15144  3 fan,thermal,processor
button                 10128  0 
8139too                26624  0 
mii                     8448  1 8139too
soundcore              10080  1 snd
snd_page_alloc         11400  2 snd_intel8x0,snd_pcm
hwmon                   6300  1 thermal_sys
Code:
cat /proc/bus/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.27.7-smp ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:02.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.27.7-smp ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
Code:
cat /var/log/messages

an 21 16:20:17 tracert kernel: usb 1-1: USB disconnect, address 2
Jan 21 16:20:17 tracert kernel: usblp0: removed
So my new question is, if I disconnect and reconnect my usb printer device, how do I make the system recognize and detect the usb device without rebooting the system? Any ideas?...

And another thing that I found out, there seems to be a conflict between the usb printer device and the ntfs flash drive and I don't know how to fix it. At the first run I have no issues when plugging and replugging my usb ntfs flash drive and external-HD, the system detects it just fine and I'm able to access the data--ONLY IF I don't mess around and reconnect my usb printer device. To be more specific, the usb flash drive fails to connect and no icon appears on the desktop. No error message is displayed in /var/log/messages, lsusb returns nothing, and rescan-scsi-bus -l says "No SCSI host adapters found in sysfs"...If I reboot the machine and try to plug in and access the flash drive, it'll work as long as I don't plug in my usb printer device. By the way, I'm in the audio, video, and plugdev group.

Edit--

I think I found the fix. I just can't believe it...but it is what it is. The reason why the system couldn't detect my usb printer device was because I was connecting with an addition usb extension chord. The chord originally came from Netgear WG111. Anyway after disconnecting the usb extension chord, I used and plugged in the stock usb chord that came with the printer, and that worked. lsusb was able bring up my printing device. So far this only affects my PC and I was surprised that my primary computer laptop was unaffected by this issue. My laptop was able to use the addition usb extension chord and the system was able to detect the devices. I guess I'll have to stop using the usb extension chord whenever I use the printer on my PC.

Last edited by rc nai; 01-22-2009 at 12:37 AM.
 
  


Reply

Tags
cups, hp, printing, psc, series, xfce4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Mint XFCE Wireless Issue manaburn Linux - Wireless Networking 5 02-21-2008 02:30 PM
XFCE mouse focus issue crazytigger Linux - Software 1 05-27-2006 08:27 PM
Firefox 1.5.0.2 and XFCE small issue DragonM15 Linux - Software 3 05-02-2006 02:46 PM
Issue trying to use xFCe as Default paulocr Slackware 13 04-27-2006 12:48 PM
XFce Security/Permissions issue HenchmenResourc Linux - Software 1 02-02-2005 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration