cups doesn't get the right ppd file

2009-06-20 Thread Martín Marqués
I have a USB Lexmark E120 laser printer which used to work with F10
and after upgrade to F11 didn't work anymore.

I started investigating what changed, and after some time, I saw this
in the /var/log/cups/error.log file:

E [20/Jun/2009:19:44:46 -0300] [cups-driverd] Bad driver information
file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [20/Jun/2009:19:44:46 -0300] [cups-driverd] Bad driver information
file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/kyocera_ppd_8.2.txt"!
E [20/Jun/2009:19:44:46 -0300] [cups-driverd] Bad driver information
file "/usr/share/cups/drv/sample.drv"!

Now, the driver is the correct one, but for some reason cuips is
getting the kyocera driver. Why is this happening?

-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-20 Thread Tom Horsley
On Sat, 20 Jun 2009 19:49:06 -0300
Martín Marqués wrote:

> Now, the driver is the correct one, but for some reason cuips is
> getting the kyocera driver. Why is this happening?

I think those are just messages from cups scanning directories
for ppd files and discovering readme files mixed in. The real
question is what does /etc/cups/ppd/ have in it for the printer,
that's the one it actually selected.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-20 Thread Martín Marqués
2009/6/20 Tom Horsley 
>
> On Sat, 20 Jun 2009 19:49:06 -0300
> Martín Marqués wrote:
>
> > Now, the driver is the correct one, but for some reason cuips is
> > getting the kyocera driver. Why is this happening?
>
> I think those are just messages from cups scanning directories
> for ppd files and discovering readme files mixed in. The real
> question is what does /etc/cups/ppd/ have in it for the printer,
> that's the one it actually selected.

Updated cups to the version in updates-testing and now I don't get
does messages, but neither do I get anything printed.

How can I get my printer working again?

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-20 Thread Craig White
On Sun, 2009-06-21 at 00:03 -0300, Martín Marqués wrote:
> 2009/6/20 Tom Horsley 
> >
> > On Sat, 20 Jun 2009 19:49:06 -0300
> > Martín Marqués wrote:
> >
> > > Now, the driver is the correct one, but for some reason cuips is
> > > getting the kyocera driver. Why is this happening?
> >
> > I think those are just messages from cups scanning directories
> > for ppd files and discovering readme files mixed in. The real
> > question is what does /etc/cups/ppd/ have in it for the printer,
> > that's the one it actually selected.
> 
> Updated cups to the version in updates-testing and now I don't get
> does messages, but neither do I get anything printed.
> 
> How can I get my printer working again?

I think you probably have to use either system-config-printer or the
cups web interface (http://localhost:631) and if the one you choose
cannot print a test page, delete the printer and set the printer up
again. If you want to ask the list, you probably should post the
contents of /etc/cups/printers.conf and maybe the output of 'tail -n
12 /var/log/cups/error_log'

Craig



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Martín Marqués
2009/6/21 Craig White 
>
> I think you probably have to use either system-config-printer or the
> cups web interface (http://localhost:631) and if the one you choose
> cannot print a test page, delete the printer and set the printer up
> again. If you want to ask the list, you probably should post the
> contents of /etc/cups/printers.conf and maybe the output of 'tail -n
> 12 /var/log/cups/error_log'

I am using the usual configuration programs, and I have already tried
to delete the printer and create it again. I even removed cups and
reinstalled it. As I tried all these things, I was looking at
/var/log/cups/error.log (I'm not a Noob).

The thing is that each time I turn on the USB printer, the erased
printer appears again.

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Martín Marqués
2009/6/21 Craig White :
> I think you probably have to use either system-config-printer or the
> cups web interface (http://localhost:631) and if the one you choose
> cannot print a test page, delete the printer and set the printer up
> again. If you want to ask the list, you probably should post the
> contents of /etc/cups/printers.conf

# Printer configuration file for CUPS v1.4rc1
# Written by cupsd on 2009-06-21 09:56

Info Lexmark International Lexmark E120
Location endor.marques
MakeModel Lexmark E120 Foomatic/lj4dith
DeviceURI usb://Lexmark/E120
State Idle
StateTime 1245588984
Type 8400900
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip
Filter application/vnd.cups-pdf 0 foomatic-rip
Filter application/vnd.cups-command 0 commandtops
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer


-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Craig White
On Sun, 2009-06-21 at 09:46 -0300, Martín Marqués wrote:
> 2009/6/21 Craig White 
> >
> > I think you probably have to use either system-config-printer or the
> > cups web interface (http://localhost:631) and if the one you choose
> > cannot print a test page, delete the printer and set the printer up
> > again. If you want to ask the list, you probably should post the
> > contents of /etc/cups/printers.conf and maybe the output of 'tail -n
> > 12 /var/log/cups/error_log'
> 
> I am using the usual configuration programs, and I have already tried
> to delete the printer and create it again. I even removed cups and
> reinstalled it. As I tried all these things, I was looking at
> /var/log/cups/error.log (I'm not a Noob).
> 
> The thing is that each time I turn on the USB printer, the erased
> printer appears again.

I suppose that would be hal trying to make the printer usable...probably
not succeeding with getting the right ppd configured either.

I can tell you for sure that you should not switch back and forth
between cups web configuration and system-config-printer...choose one
and stay with it.

You may be having an SELinux issue...have you been checking the logs
(/var/log/messages and /var/log/audit/audit.log

I would probably use cups web configurator and edit whatever hal
installs because it sounds as if it gets the port correct and the PPD
wrong.

Logging is your friend, edit /etc/cups/cupsd.conf to log a lot more
details and you will know where things are breaking.

Craig



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Martín Marqués
2009/6/21 Craig White 
>
> I suppose that would be hal trying to make the printer usable...probably
> not succeeding with getting the right ppd configured either.

I've noticed that:

Jun 21 15:36:18 endor kernel: usb 3-2: new full speed USB device using
ohci_hcd and address 4
Jun 21 15:36:18 endor kernel: usb 3-2: New USB device found,
idVendor=043d, idProduct=00cd
Jun 21 15:36:18 endor kernel: usb 3-2: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
Jun 21 15:36:18 endor kernel: usb 3-2: Product: Lexmark E120
Jun 21 15:36:18 endor kernel: usb 3-2: Manufacturer: Lexmark International
Jun 21 15:36:18 endor kernel: usb 3-2: SerialNumber: 994W52L
Jun 21 15:36:18 endor kernel: usb 3-2: configuration #1 chosen from 1 choice
Jun 21 15:36:18 endor kernel: usblp0: USB Bidirectional printer dev 4
if 0 alt 0 proto 2 vid 0x043D pid 0x00CD
Jun 21 15:36:20 endor hal_lpadmin: Re-enabling printer Lexmark-E120

> I can tell you for sure that you should not switch back and forth
> between cups web configuration and system-config-printer...choose one
> and stay with it.

I'm not. I used to use system-config-printer, but now I'm working with
cups web interface.

> You may be having an SELinux issue...have you been checking the logs
> (/var/log/messages and /var/log/audit/audit.log

SELinux is disabled:

# grep -v "^#" /etc/selinux/config | grep -v "^$"
SELINUX=disabled
SELINUXTYPE=targeted

> I would probably use cups web configurator and edit whatever hal
> installs because it sounds as if it gets the port correct and the PPD
> wrong.

What happens if I stop the printer and delete /etc/cups/printer.conf?

> Logging is your friend, edit /etc/cups/cupsd.conf to log a lot more
> details and you will know where things are breaking.

Cups is logging alot. I changed the configuration option in the web
interface. The problem is that it logs so much that I can't
distinguish what I'm looking for from what is not important.

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Craig White
On Sun, 2009-06-21 at 15:41 -0300, Martín Marqués wrote:

> 
> What happens if I stop the printer and delete /etc/cups/printer.conf?
> 
> > Logging is your friend, edit /etc/cups/cupsd.conf to log a lot more
> > details and you will know where things are breaking.
> 
> Cups is logging alot. I changed the configuration option in the web
> interface. The problem is that it logs so much that I can't
> distinguish what I'm looking for from what is not important.

I think that /etc/cups/printer.conf.0 is the working copy and
printer.conf is what is loaded the next time cups is started. I would mv
printer.conf and restart cups for a clean configuration.

as for logging, the first letter of each line of /var/log/cups/error_log
indicates I (info), E (error), etc.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Martín Marqués
2009/6/21 Craig White 
>
> I think that /etc/cups/printer.conf.0 is the working copy and
> printer.conf is what is loaded the next time cups is started. I would mv
> printer.conf and restart cups for a clean configuration.
>
> as for logging, the first letter of each line of /var/log/cups/error_log
> indicates I (info), E (error), etc.

Found the problem.

Cups puts the printer at usb://Lexmark/E120 when it's really
usb://Lexmark/Lexmark%20E120 (the second one works, while the first
one doesn't).

Now my problem is that when I stop and start again the printer I only
get the configuration pointing to usb://Lexmark/E120.

Any ideas?

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Tim Waugh
On Sun, 2009-06-21 at 16:00 -0300, Martín Marqués wrote:
> Found the problem.
> 
> Cups puts the printer at usb://Lexmark/E120 when it's really
> usb://Lexmark/Lexmark%20E120 (the second one works, while the first
> one doesn't).

Please file a bug report against 'cups'.  It sounds like it might be a
problem with either the CUPS 'usb' backend or possibly with the
hal-cups-utils package.

If you could attach a troubleshoot.txt file to the bug report from the
printing troubleshooter (System->Administration->Printing, then
Help->Troubleshoot), making sure to first update system-config-printer
to the version from updates-testing, that would be really useful.

Thanks for helping to track down this problem.

Thanks,
Tim.
*/



signature.asc
Description: This is a digitally signed message part
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: cups doesn't get the right ppd file

2009-06-21 Thread Tom Horsley
On Sun, 21 Jun 2009 22:43:15 +0100
Tim Waugh wrote:

> > Found the problem.
> > 
> > Cups puts the printer at usb://Lexmark/E120 when it's really
> > usb://Lexmark/Lexmark%20E120 (the second one works, while the first
> > one doesn't).  
> 
> Please file a bug report against 'cups'.  It sounds like it might be a
> problem with either the CUPS 'usb' backend or possibly with the
> hal-cups-utils package.

Meanwhile, the hal mailing list is often a good place to go for
tips about smacking hal around. Maybe some sort of
file in /etc/hal/fdi/policy/ could be used to make it stop
auto configuring that printer, then you could just configure
it manually (they helped me figure out how to make hal
ignore a usb drive I didn't want automounted, so maybe
it can ignore printers too).

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Martín Marqués
2009/6/21 Tom Horsley 
>
> On Sun, 21 Jun 2009 22:43:15 +0100
> Tim Waugh wrote:
>
> > > Found the problem.
> > >
> > > Cups puts the printer at usb://Lexmark/E120 when it's really
> > > usb://Lexmark/Lexmark%20E120 (the second one works, while the first
> > > one doesn't).
> >
> > Please file a bug report against 'cups'.  It sounds like it might be a
> > problem with either the CUPS 'usb' backend or possibly with the
> > hal-cups-utils package.
>
> Meanwhile, the hal mailing list is often a good place to go for
> tips about smacking hal around. Maybe some sort of
> file in /etc/hal/fdi/policy/ could be used to make it stop
> auto configuring that printer, then you could just configure
> it manually (they helped me figure out how to make hal
> ignore a usb drive I didn't want automounted, so maybe
> it can ignore printers too).

The /etc/hal/fdi/*/ directories are all empty. :-(


--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Tim Waugh
On Sun, 2009-06-21 at 18:01 -0400, Tom Horsley wrote:
> Meanwhile, the hal mailing list is often a good place to go for
> tips about smacking hal around.

But hal is not misbehaving here as far as I can tell.  hal-cups-utils,
however, which is a different package providing glue between hal and
cups, may well be guessing the wrong device URI.

Once the bug report is filed and I can see the troubleshoot.txt file
I'll know more.

> (they helped me figure out how to make hal
> ignore a usb drive I didn't want automounted

Ooh, what's the secret for that?

Tim.
*/



signature.asc
Description: This is a digitally signed message part
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: cups doesn't get the right ppd file

2009-06-21 Thread Tom Horsley
On Sun, 21 Jun 2009 19:07:24 -0300
Martín Marqués wrote:

> The /etc/hal/fdi/*/ directories are all empty. :-(

Yep. I think they exist entirely for folks to use to
install custom files that override normal behavior.

Here, for instance, is my file that makes hal ignore
my USB backup drive:

cat /etc/hal/fdi/policy/10-stop-hal-stop.fdi



  

   true

  


The lshal program is useful for finding the names
of keys you can match against. I've never used the
files for anything but disk drives though.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Martín Marqués
2009/6/21 Tim Waugh 
>
> On Sun, 2009-06-21 at 18:01 -0400, Tom Horsley wrote:
> > Meanwhile, the hal mailing list is often a good place to go for
> > tips about smacking hal around.
>
> But hal is not misbehaving here as far as I can tell.  hal-cups-utils,
> however, which is a different package providing glue between hal and
> cups, may well be guessing the wrong device URI.
>
> Once the bug report is filed and I can see the troubleshoot.txt file
> I'll know more.

Bug report posted:

https://bugzilla.redhat.com/show_bug.cgi?id=507244

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: cups doesn't get the right ppd file

2009-06-21 Thread Tom Horsley
On Sun, 21 Jun 2009 23:16:02 +0100
Tim Waugh wrote:

> > (they helped me figure out how to make hal
> > ignore a usb drive I didn't want automounted  
> 
> Ooh, what's the secret for that?

See my previous post in this thread that crossed yours :-).

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines