LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-17-2014, 03:02 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 438

Rep: Reputation: 43
CUPS doesn't detect USB printer anymore


I reinstalled CUPS because it was having problems, but really I just configured it incorrectly, and now it doesn't detect the USB printer connected to my computer that it used to detect! I've tried everything: removing the usblp module (which was never loaded in the first place anyways), changing permissions, etc., but it still doesn't detect it, even though lsusb shows the Samsung CLX-3185 printer is connected.

Is there some permissions issue preventing CUPS from automatically detected my Samsung CLX-3185 connected via USB?

I'm using CUPS 1.5.4.

(BTW, when will there be a Slack package for a more recent CUPS?)

thanks

Last edited by Geremia; 05-17-2014 at 09:12 PM.
 
Old 05-19-2014, 07:05 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,072

Rep: Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752
Cups is the one linux program I have found to respond positively to the established m$ technique for borky software: delete and reinstall.

I would open http://localhost:631 and delete the printer(s). Then check /etc/cups/printers.conf for a lack of printers, and /etc/cups/cups.conf for a lack of nonsense.

Then reinstall the printer.
 
Old 05-20-2014, 12:30 AM   #3
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 438

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by business_kid View Post
Cups is the one linux program I have found to respond positively to the established m$ technique for borky software: delete and reinstall.

I would open http://localhost:631 and delete the printer(s). Then check /etc/cups/printers.conf for a lack of printers, and /etc/cups/cups.conf for a lack of nonsense.

Then reinstall the printer.
I've done that. I've deleted everything in /etc/cups/ and reinstalled, but CUPS still doesn't detect my USB printer, even though lsusb shows it connected.
 
Old 05-20-2014, 09:30 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 10,066

Rep: Reputation: Disabled
Do you have the same issue as root?
 
Old 05-20-2014, 02:58 PM   #5
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Rep: Reputation: Disabled
1. Is cups running? /etc/rc.d/rc.cups status
2. Can you access the cups admin at 127.0.0.1:631?


I don't know if this will help but here is my printers.conf
# Printer configuration file for CUPS v1.5.4
# Written by cupsd on 2014-05-20 19:52
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter HP_Printer>
UUID urn:uuid:50526511-10fb-3c13-747c-3d25f932b742
Info HP Photosmart C4200 series
Location Office
MakeModel HP Photosmart c4200 Series hpijs, 3.13.10
DeviceURI hp:/usb/Photosmart_C4200_series?serial=CN81UR91VC04VP
State Idle
StateTime 1400633559
Reason marker-supply-low-warning
Type 8425500
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

and this is my cupsd.conf

LogLevel warn
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS
DefaultAuthType Basic
WebInterface Yes
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription
Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer A
ctivate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription
Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription
Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer A
ctivate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
 
Old 05-21-2014, 08:48 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,072

Rep: Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752
I have that sort of issue, and it's due to firmware not being installed.
I just have a half-assed way around it because I'm dead busy/lazy/disinterested.

How about something like this in /etc/modprobe.d/

postinstall <module> <command to install firmware>
e.g.
postinstall usblp0 /usr/bin/cat /path/to/whatever_file > /dev/Ásb/lp0

The "correct" way is usually to make udevd do it, but you're on your own there.
 
1 members found this post helpful.
Old 05-21-2014, 01:07 PM   #7
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 438

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by pettijohne View Post
1. Is cups running? /etc/rc.d/rc.cups status
Yes
Quote:
Originally Posted by pettijohne View Post
2. Can you access the cups admin at 127.0.0.1:631?
Yes
Quote:
Originally Posted by pettijohne View Post


I don't know if this will help but here is my printers.conf
Well, I don't have that yet because I haven't installed any printers because it can't detect it!
Quote:
Originally Posted by pettijohne View Post
and this is my cupsd.conf
Quote:
Originally Posted by pettijohne View Post
SystemGroup sys root
Mine's pretty much the same, except I added "lp":
"SystemGroup sys root"
 
Old 05-21-2014, 01:09 PM   #8
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 438

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by business_kid View Post
I have that sort of issue, and it's due to firmware not being installed.
I just have a half-assed way around it because I'm dead busy/lazy/disinterested.

How about something like this in /etc/modprobe.d/

postinstall <module> <command to install firmware>
e.g.
postinstall usblp0 /usr/bin/cat /path/to/whatever_file > /dev/Ásb/lp0

The "correct" way is usually to make udevd do it, but you're on your own there.
Yes, I think this is the issue. When I installed the March 11, 2014, Linux Samsung driver, I think the installer did have some issue with udevd. thanks
 
Old 05-22-2014, 04:07 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,072

Rep: Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752
my printer driver came with express instructions to remove the system-config-printer package which surprisingly is installed in slackware. It overwrites apparently useful udevd stuff, so an 'upgradepkg --reinstall' of udevd might help.
 
1 members found this post helpful.
Old 05-24-2014, 12:11 PM   #10
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 438

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by business_kid View Post
my printer driver came with express instructions to remove the system-config-printer package which surprisingly is installed in slackware. It overwrites apparently useful udevd stuff, so an 'upgradepkg --reinstall' of udevd might help.
Nope. I tried reinstalled and restarted it, but it still doesn't work. I really thought that might work, too. thanks, though
 
Old 05-24-2014, 01:26 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,072

Rep: Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752
Well there's a script installed here for firmware which does a bit of checking, and then runs

cat /path/to/firmware >/dev/usb/lp0

Have you verified that it is firmware. Is the fiirmware installed?
 
  


Reply

Tags
cups, usb


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
Continous printing with CUPS thermal printer (GeBE USB Printer N78) ThaRez Linux - Hardware 0 04-15-2014 03:44 PM
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 12:12 PM
YaST Printer detect...doesn't student1 Linux - Hardware 6 04-14-2008 04:49 PM
Mandrake 8.2 doesn't detect local printer. Edmond B Linux - Hardware 5 03-16-2006 01:06 AM
Mandrake 10 doesn't detect HP 920c printer kentri9 Mandriva 6 08-18-2004 12:22 PM

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

All times are GMT -5. The time now is 08:07 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