Modify

Opened 4 years ago

Closed 3 years ago

#16770 closed defect (fixed)

usblp removes lp0 device after SANE uses multifunctional printer

Reported by: luizluca@… Owned by: developers
Priority: high Milestone: Attitude Adjustment 12.09.1
Component: kernel Version: Attitude Adjustment 12.09
Keywords: usblp sane Cc:

Description

Hello,

I configured an HP multifunctional printer in OpenWRT using xinetd+sane and p910nd.

p910nd uses device /dev/usb/lp0 created by usblp. However, when I run a scanimage command, usblp modules removes the device and never returns it back.

root@router:~# ls /dev/usb/
lp0
root@router:~# scanimage >/dev/null 
root@router:~# ls /dev/usb/
root@router:~#

dmesg shows this message while scanimage is running:

[1120509.780000] usblp0: removed

There would be no problem if usblp created it back after scanimage finished.

This might be a kernel bug and maybe not specific to OpenWRT.

As a workaround, I created a script that calls saned and remove/add usblp after it. I used this script instead of direct saned in xinetd. Physically unplugging/plugging the USB cable also works.

Attachments (0)

Change History (3)

comment:2 Changed 3 years ago by luizluca@…

BB does not have this problem anymore.

Please, close this ticket

comment:3 Changed 3 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.