From: Till Kamppeter <till.kamppeter@gmail.com>
To: Tim Waugh <twaugh@redhat.com>
Cc: printing-architecture@lists.linux-foundation.org,
printing-japan@lists.linux-foundation.org,
michael.vogt@ubuntu.com, Martin Pitt <martin.pitt@ubuntu.com>
Subject: Re: [Printing-architecture] [Printing-japan] Ubuntu Natty the first distribution which does automatic download of binary printer driver packages
Date: Fri, 11 Mar 2011 18:45:57 +0100 [thread overview]
Message-ID: <4D7A5FD5.2060006@gmail.com> (raw)
In-Reply-To: <1299862755.2770.25.camel@worm.elk>
Tim, thanks. I have updated the Ubuntu package now (0ubuntu5).
Can everyonne please test again (with fully updated Natty) whether
auto-download of drivers works in all cases:
1. Plug printer to USB and turn it on.
2. Leave the printer on USB plugged and turned on, remove the
auto-generated queue(s) and uninstall the auto-installed driver.
Then start system-config-printer, click "+ Add", select the USB from
the list of detected printers and go through the new printer wizard.
3. Right-click the icon of the printer installed from the last test,
click "Properties in the pop-up menu and in the Properties dialog
click the "Change" button for make and model. Change the driver to
any local one, like Gutenprint. Then uninstall the auto-downloaded
driver package. Now go intp the Properties dialog again and click
"Change" for make and model. Choose the original printer make and
model (the one which could automatically chosen in the first 2
tests). Does somewhere on the way an automatic driver download get
triggered?
4. Uninstall the auto-installed package from the previous tests and
remove the print queues. Disconnect the printer from the USB and
connect it to the network (wired or wireless does not matter, but
for wireless the printer needs to be configured to connect to the
router). Now start system-config-printer, click "+ Add" and in the
list open the section for network printers. Wait around 15 sec until
the spinning circle at the lower left disappears. Now choose the
printer under the network printers and follow the rest of the
wizard's steps.
5. Do the steps of test 3 with your network printer queue from test 4.
Does the automatic driver download happen in all these steps?
Till
On 03/11/2011 05:59 PM, Tim Waugh wrote:
> On Fri, 2011-03-11 at 17:15 +0100, Till Kamppeter wrote:
>> Tim, the patch to fix this (and which I have applied to the Ubuntu
>> package) is attached./ Please apply it also upstream. Thanks.
>
> Thanks. Actually some of these are incorrect, so I've applied a patch
> that fixes the correct part and have removed the incorrect code.
>
> diff --git a/newprinter.py b/newprinter.py
> index 0d58a40..fa113cc 100644
> --- a/newprinter.py
> +++ b/newprinter.py
> @@ -637,6 +637,8 @@ class NewPrinterGUI(GtkGUI):
>
> if self.dialog_mode == "ppd":
> devid = self.device.id
> + if not self.devid:
> + self.devid = devid
>
> if not devid:
> devid = None
>
> This entire block is stale code I think. If self.dialog_mode is "ppd",
> self.device.id is definitely unset (we only created self.device a few
> lines above).
>
> @@ -655,6 +657,8 @@ class NewPrinterGUI(GtkGUI):
> include_schemes=schemes,
> reply_handler=self.change_ppd_got_devs,
> error_handler=self.change_ppd_got_devs)
> + if self.devid:
> + devid = self.devid
>
> No, that's not right. The reason is that the getDevices() call
> immediately above these new lines is asynchronous. The reason we're
> calling getDevices() at all here is precisely in order to get the Device
> ID for the device we're changing the PPD of, because we don't already
> have it.
>
> Here's the patch that fixes the problem. Another patch is in master
> that removes the stale code.
>
> Tim.
> */
>
next prev parent reply other threads:[~2011-03-11 17:45 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <F30723B8678F584CB6A4269E911255CB03396379@m1a.epkowa.co.jp>
[not found] ` <4B8241D4.2040207@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB034CE4DE@m1a.epkowa.co.jp>
[not found] ` <4B8E4CEF.8040007@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB035D7CF6@m1a.epkowa.co.jp>
[not found] ` <4BBBA6A9.5050005@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB0392318F@m1a.epkowa.co.jp>
[not found] ` <4BD18655.8060000@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB03BF5E5C@m1a.epkowa.co.jp>
[not found] ` <4C091F92.7050102@gmail.com>
[not found] ` <4C1284F4.3000707@gmail.com>
[not found] ` <4C89CF0C.60003@avasys.jp>
2010-11-18 16:55 ` [Printing-architecture] Updates for auto-downloadable printer packages Till Kamppeter
2010-12-03 6:16 ` yuji.saito
2010-12-06 16:54 ` Till Kamppeter
2011-01-07 0:13 ` [Printing-architecture] Ubuntu Natty the first distribution which does automatic download of binary printer driver packages Till Kamppeter
2011-01-07 0:20 ` Till Kamppeter
2011-01-21 2:36 ` yuji.saito
2011-01-24 23:00 ` Till Kamppeter
[not found] ` <20110131104358.GC4406@piware.de>
2011-02-24 9:38 ` Till Kamppeter
2011-02-25 7:00 ` yuji.saito
2011-02-25 12:40 ` Till Kamppeter
2011-02-25 21:26 ` Tim Waugh
2011-02-25 21:31 ` Till Kamppeter
2011-02-25 21:37 ` Till Kamppeter
2011-03-01 21:06 ` Till Kamppeter
2011-03-01 22:03 ` Till Kamppeter
2011-03-04 9:29 ` Olaf Meeuwissen
2011-03-04 16:50 ` Till Kamppeter
[not found] ` <20110304172254.GF30872@piware.de>
2011-03-07 1:32 ` Olaf Meeuwissen
2011-03-11 3:03 ` [Printing-architecture] [Printing-japan] " Olaf Meeuwissen
[not found] ` <20110311080832.GB2541@piware.de>
2011-03-11 15:50 ` Till Kamppeter
2011-03-14 9:29 ` Olaf Meeuwissen
2011-03-11 16:15 ` Till Kamppeter
2011-03-11 16:59 ` Tim Waugh
2011-03-11 17:45 ` Till Kamppeter [this message]
2011-03-12 16:21 ` Till Kamppeter
2011-03-12 17:36 ` Till Kamppeter
2011-03-14 11:13 ` Tim Waugh
2011-03-14 9:39 ` Olaf Meeuwissen
2011-03-14 20:47 ` Till Kamppeter
2011-03-08 15:55 ` [Printing-architecture] " Tim Waugh
2011-02-25 13:03 ` Till Kamppeter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D7A5FD5.2060006@gmail.com \
--to=till.kamppeter@gmail.com \
--cc=martin.pitt@ubuntu.com \
--cc=michael.vogt@ubuntu.com \
--cc=printing-architecture@lists.linux-foundation.org \
--cc=printing-japan@lists.linux-foundation.org \
--cc=twaugh@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.