Bug#656248: HP LaserJet Professional P1102 not properly switched anymore (regression)

2012-01-19 Thread Josua Dietze

Odyx et al., upstream version 1.2.2 is available.

Only changes against 1.2.1 are the bug fix for #656248 and a more detailed 
log output in case of target parameter mismatch.


Cheers,
Josh



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#656248: HP LaserJet Professional P1102 not properly switched anymore (regression)

2012-01-18 Thread Ralf Jung
Hi Josh,

 The problem is right there.
 
 The change in the logic to support bus/device-focussed identification
 has introduced a bug.
 
 If you are able to change the source code (usb_modeswitch.c), try to
 edit line 1541 from
 
   if (mode == SEARCH_DEFAULT) {
 
 to
 
   if (mode == SEARCH_DEFAULT || mode == SEARCH_BUSDEV) {
 
 This should improve things.
I can test compiled binary packages (amd64), but during the semester I don't 
have the time (or experience) to mess with source packages myself, sorry.
I'm glad though that you spotted it so quickly.

Kind regards,
Ralf



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#656248: HP LaserJet Professional P1102 not properly switched anymore (regression)

2012-01-18 Thread Didier Raboud

tags 656248 +patch
thanks

Le 18.01.2012 09:19, Ralf Jung a écrit :


I can test compiled binary packages (amd64), but during the semester I don't
have the time (or experience) to mess with source packages myself, sorry.
I'm glad though that you spotted it so quickly.


Hi Ralf,

can you try the following package ?

http://alioth.debian.org/~odyx-guest/debian/unstable/usb-modeswitch_1.2.1+repack0-1+0fix656248~0_amd64.deb

(The source of it is : 
http://alioth.debian.org/~odyx-guest/debian/unstable/usb-modeswitch_1.2.1+repack0-1+0fix656248~0.dsc 
)


If this compiled usb-modeswitch package solves your issue, I'll release 
a patched version soon (I would like to get #656063 solved in the same 
upload too).


Cheers,

OdyX



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#656248: HP LaserJet Professional P1102 not properly switched anymore (regression)

2012-01-18 Thread Ralf Jung
Hi,

 can you try the following package ?
 
 http://alioth.debian.org/~odyx-guest/debian/unstable/usb-modeswitch_1.2.1+r
 epack0-1+0fix656248~0_amd64.deb
 
 (The source of it is :
 http://alioth.debian.org/~odyx-guest/debian/unstable/usb-modeswitch_1.2.1+r
 epack0-1+0fix656248~0.dsc )
 
 If this compiled usb-modeswitch package solves your issue, I'll release
 a patched version soon (I would like to get #656063 solved in the same
 upload too).
Yes, that seems to work here. I unplugged the printer, updated the package, 
and re-plugged it. Then, in the log, I saw the expected messages. Finally, I 
successfully printed a test page. I did not re-boot, but I assume that this 
already means everything is fixed.
Thanks a lot, that was quick :)

Kind regards,
Ralf



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#656248: HP LaserJet Professional P1102 not properly switched anymore (regression)

2012-01-17 Thread Ralf Jung
Package: usb-modeswitch
Version: 1.2.1+repack0-1+b1

After upgrading to usb-modeswitch 1.2.1+repack0-1+b1, my HP LaserJet 
Professional P1102 stopped working. After about an hour of fruitless trial-
and-error, I finally noticed that in the kernel log, it said

[ 3289.344052] usb 1-1: new high speed USB device number 10 using ehci_hcd
[ 3289.477653] usb 1-1: New USB device found, idVendor=03f0, idProduct=002a
[ 3289.477661] usb 1-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[ 3289.477667] usb 1-1: Product: HP LaserJet Professional P1102
[ 3289.477672] usb 1-1: Manufacturer: Hewlett-Packard
[ 3289.477677] usb 1-1: SerialNumber: 0Q82BV4ASI1c
[ 3289.478742] scsi7 : usb-storage 1-1:1.0
[ 3290.485813] scsi 7:0:0:0: CD-ROMHP   Smart Install1.0  
PQ: 0 ANSI: 2
[ 3290.515967] sr2: scsi3-mmc drive: 0x/0x caddy
[ 3290.516360] sr 7:0:0:0: Attached scsi CD-ROM sr2


and then nothing. I then enabled logging for usb_modeswitch (see the output 
below). Finally I downloaded an old version (1.2.0+repack0-1) from 
http://snapshot.debian.org/, and now the printer is working again.
The usb-modeswitch-data package was left unchanged.



= usb_modeswitch log from attaching the printer ===
USB_ModeSwitch log from Tue Jan  17 19:59:22 CET 2012

Raw args from udev: /1-1:1.0

Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-1

USB values from sysfs:
  manufacturer  Hewlett-Packard
  product   HP LaserJet Professional P1102
  serial0Q82BV4ASI1c

bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
SCSI attributes not needed, moving on
checking config: pack/03f0:002a
! matched. Reading config data
Extracting config 03f0:002a from collection 
/usr/share/usb_modeswitch/configPack.tar.gz
Driver module is option, ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 10 -v 03f0 -p 002a -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)


Reading long config from command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.2.1 (C) Josua Dietze 2011
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x03f0
DefaultProduct= 0x002a
TargetVendor=   not set
TargetProduct=  not set
TargetClass=0x07
TargetProductList=

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent=555342431234567806d000
NeedResponse=1
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Use given bus/device number: 001/010 ...
Looking for default devices ...
 bus/device number matched
  searching devices, found USB ID 03f0:002a
   found matching vendor ID
   found matching product ID
   target class 07 not matching
 No devices in default mode found. Nothing to do. Bye.

(end of usb_modeswitch output)

Now checking for newly created ports ...
 no new ports found
Found 03f0:002a in bind_list

All done, exiting



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#656248: HP LaserJet Professional P1102 not properly switched anymore (regression)

2012-01-17 Thread Josua Dietze

Am 17.01.2012 20:26, schrieb Ralf Jung:

Looking for default devices ...
  bus/device number matched
   searching devices, found USB ID 03f0:002a
found matching vendor ID
found matching product ID
target class 07 not matching
  No devices in default mode found. Nothing to do. Bye.


The problem is right there.

The change in the logic to support bus/device-focussed identification 
has introduced a bug.


If you are able to change the source code (usb_modeswitch.c), try to 
edit line 1541 from


if (mode == SEARCH_DEFAULT) {

to

if (mode == SEARCH_DEFAULT || mode == SEARCH_BUSDEV) {

This should improve things.

Thanks for the report!
Josh





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org