Announcement

Collapse
No announcement yet.

[SOLVED] Printer not visible in KDE apps

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Printer not visible in KDE apps

    Hi,

    I have a really strange problem with a printer (HP PSC 1355) not showing up in any KDE application. It works fine from other apps, like OpenOffice or Firefox, but not in any of the tested KDE apps like KMail, digiKam and KSnapshot.

    If I run the KDE printer manager (through System Settings>Printers), it's not visible either until I go into administrator mode. Then it shows up. Under Properties/Users it say "All users allowed".

    I have tried removing it and recreating it. I have tried creating it from CUPS directly in my browser (localhost:631), from gnome-cups-manager and in HPLIP Toolbox. The printer show up as before, working in all apps except in KDE apps.

    As far as I know I have done nothing strange with this machine. It's running standard KDE 3.5.10 and is fully updated.

    Can anyone crack this?

    Regards,
    Tobias

    #2
    Re: Printer not visible in KDE apps

    is there anything strange in /var/log/cups/*.log?

    Comment


      #3
      Re: Printer not visible in KDE apps

      Hi ntzim,

      Thanks for the good tip. I'd forgotten to check those logs.

      Yes, I found something strange. The error_log contain some suspicious lines. When doing an operation from the KDE printer manager, for example Stop/Start Printer, an error is logged but it seems to work anyway. If I do "stop" in the KDE printer manger and then check the CUPS web page, the printer has indeed been paused. Actually, the same error is logged if I do the same operations from the CUPS web page.
      Code:
      E [19/Sep/2009:14:30:14 +0200] Pause-Printer: Unauthorized
      E [19/Sep/2009:14:30:36 +0200] Resume-Printer: Unauthorized
      The access_log is OK. It's filled with a lot of "ok" and "successful":
      Code:
      localhost - - [19/Sep/2009:14:33:06 +0200] "GET /ppd/PSC1355.ppd HTTP/1.1" 200 20523 - -
      localhost - - [19/Sep/2009:14:33:06 +0200] "POST / HTTP/1.1" 200 376 Get-Jobs successful-ok
      localhost - - [19/Sep/2009:14:33:11 +0200] "POST /classes/ HTTP/1.1" 200 224 CUPS-Get-Classes successful-ok
      localhost - - [19/Sep/2009:14:33:11 +0200] "GET /ppd/PSC1355.ppd HTTP/1.1" 200 20523 - -
      localhost - - [19/Sep/2009:14:33:11 +0200] "POST / HTTP/1.1" 200 376 Get-Jobs successful-ok
      I also just discovered that actually none of the CUPS printers appear in KDE apps. There is a PDF "printer" setup in CUPS which does not show up either.

      Something strange with the CUPS setup after all maybe, even though printing works in other apps. Any more clues?

      This is my cupsd.conf:

      Code:
      LogLevel warning
      SystemGroup lpadmin
      # Only listen for connections from the local machine.
      Listen localhost:631
      Listen /var/run/cups/cups.sock
      # Disable printer sharing and shared printers.
      Browsing Off
      DefaultAuthType Basic
      <Location />
       # Restrict access to the server...
       Order allow,deny
      </Location>
      <Location /admin>
       # Restrict access to the admin pages...
       Order allow,deny
      </Location>
      <Location /admin/conf>
       AuthType Default
       Require user @SYSTEM
       # Restrict access to the configuration files...
       Order allow,deny
      </Location>
      <Policy default>
       <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 CUPS-Move-Job>
        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
            Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
       </Limit>
       <Limit CUPS-Authenticate-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
       </Limit>
       <Limit All>
        Order deny,allow
       </Limit>
      </Policy>
      and my printers.conf:

      Code:
      # Printer configuration file for CUPS v1.3.7
      # Written by cupsd on 2009-09-19 14:46
      <Printer PDF>
      Info PDF
      DeviceURI cups-pdf:/
      State Idle
      StateTime 1232960687
      Accepting Yes
      Shared No
      JobSheets none none
      QuotaPeriod 0
      PageLimit 0
      KLimit 0
      OpPolicy default
      ErrorPolicy retry-job
      </Printer>
      <DefaultPrinter PSC1355>
      Info HP PSC 1355
      Location Kontoret
      DeviceURI hp:/usb/psc_1300_series?serial=HU482DP1C4RV
      State Idle
      StateTime 1253364410
      Accepting Yes
      Shared Yes
      JobSheets none none
      QuotaPeriod 0
      PageLimit 0
      KLimit 0
      OpPolicy default
      ErrorPolicy retry-job
      </Printer>
      Regards,
      Tobias

      Comment


        #4
        Re: Printer not visible in KDE apps

        Problem solved!

        As most often is the case, it was a simple problem. The wrong printing system was selected. To fix this I went into "Printers" under "System Settings" and selected "CUPS" at the "Print system currently used" drop down box.

        Thanks for taking the time to answer!

        Regards,
        Tobias

        Comment


          #5
          Re: [SOLVED] Printer not visible in KDE apps

          Regards

          Comment

          Working...
          X