#16770: usblp removes lp0 device after SANE uses multifunctional printer
------------------------+-----------------------------------------
Reporter: luizluca@… | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Attitude Adjustment 12.09.1
Component: kernel | Version: Attitude Adjustment 12.09
Keywords: usblp sane |
------------------------+-----------------------------------------
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.
--
Ticket URL: <https://dev.openwrt.org/ticket/16770>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets