Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

HP laserjet P1006 usblp problem #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect and start the printer.
2. The printer doesn't get recognized neither in dmesg or in the status window.
3. the printer's fw doesn't get uploaded

What is the expected output? What do you see instead?
I expect in dmesg to see something about the printer.
There is a usb device mentioned but it is not claimed by any active drivers.
There is nothing in dmesg that concerns the usblp and the printer.

DMESG after I rmmod and insmod printer:
usb.c: deregistering driver usblp
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver

What version of the product are you using?
WL500-gP with 1.9.7.-d-r2624
WL500-gP with 1.9.7.-rtn-r3121

Please provide any additional information below.
Last working module was from 1.9.7.-10. The printer was working.

Original issue reported on code.google.com by 4e6...@gmail.com on 3 Aug 2011 at 9:57

GoogleCodeExporter commented 9 years ago
We have many positive reports of successful P1006 work from wl500.info forum. 
Probably, you are doing something wrong - old module (at least, 2.6 produce 
different messages), any other errors in syslog.log, etc. See 
/proc/bus/usb/devices to check proper device detection.

Unfortunately, none of us has HP LJ P1006 for problem reproduction.

Original comment by lly.dev on 4 Aug 2011 at 6:30

GoogleCodeExporter commented 9 years ago
I must first apologise for being stupid enough not to check if the printer is 
indeed connected to the router.

It's working. 
The problem is that I don't know how to get hotplug to work and I manually cat 
sihpP1006.dl > /dev/lp0 (all the scripts and tutorials use /dev/usb/lp0 but it 
changed to /dev/lp0).

I tried to make a file in /etc/hotplug.d/usb/hotplug and there use the "cat 
....>/dev/lp0" script.

SO, the question is:
How do I call the script for the hotplug? Where do I put it?

when I echo the script to /proc/sys/kernel/hotplug (after the Oleg fw 
tutorials) the hdd doesn't get mounted.

Thank you for your patience, and I'm really sorry for not paying enough 
attention.
now I'm on r3121.

Original comment by 4e6...@gmail.com on 4 Aug 2011 at 8:36

GoogleCodeExporter commented 9 years ago
You have to call original hotplug handler (/sbin/hotplug) after your custom 
actions to allow default actions(hdd mount, etc.). Seek wl500g.info forum for 
detailed articles.

Also, you can try to read documentation on hotplug/hotplug2 handlers in linux 
kernel 2.6.

Original comment by lly.dev on 4 Aug 2011 at 11:19