LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Xsane Failed to open device (https://www.linuxquestions.org/questions/slackware-14/xsane-failed-to-open-device-4175414927/)

mlangdn 07-04-2012 05:23 PM

Xsane Failed to open device
 
I'm running -current along with Eric's latest kde. I don't scan that often, so I have no idea when this problem began, but xsane is failing with this error:

Code:

Failed to open device 'hpaio:/usb/Officejet_Pro_L7500?serial=MY8BS34011': End of file reached
scanimage -L returns:

Code:

scanimage -L
device `hpaio:/usb/Officejet_Pro_L7500?serial=MY8BS34011' is a Hewlett-Packard Officejet_Pro_L7500 all-in-one

Google has been no help. I can scan with a program called vuescan, and I haven't tied sane from a commandline. I don't know the proper syntax yet, but I am reading up on it.

I installed Slackware64-current on an empty partition, and ran hp-setup. The printer installed in seconds and works just fine. However, I get the same error when trying to scan with xsane.

Just wondering if anyone else is having this problem.

willysr 07-04-2012 05:27 PM

Have you added your username to lp group? It was changed in the last update

mlangdn 07-04-2012 05:51 PM

I should have mentioned that, but yes, I am in the group lp. Also scanner.

mlangdn 07-06-2012 02:29 PM

Its solved - sort of, anyway. I rebuilt the cups package and the hplip package from 13.37. When I click on xsane, it takes a while I reckon for it to find the device. Maybe 40 seconds or so. Then that window disappears and the start screen for xsane appears about 15 seconds later.

It used to be nearly instantaneous. Not sure why its like this, but at least I can scan now, and the printer still works just fine.

Well, poo. I don't need to scan anything at the moment. Now I'll forget and upgrade the darn thing again. :)

Then again, I probably only needed to change the hplip package. I'm thinking just now that the ppd file was probably the culprit - but I'm just guessing now. It works.

willysr 09-09-2012 09:38 PM

This should be fixed in hplip-3.12.9

mlangdn 09-10-2012 01:41 AM

Thanks for the update Willy. I had just forgot about it since I don't scan that often. I reckon I'll download this tonight and give it a shot. :)

mlangdn 09-10-2012 06:27 AM

hplip-3.12.9 works just fine for scanning now. Thanks to Patrick and Ken Zalewski. :)

Xeratul 11-04-2012 02:12 PM

******** HOW TO INSTALL ON A SERVER WITHOUT ANYTHING INSTALLED ON IT JUST SAMBA KERB AND HPLIP, and LDAP **************" no x11


you simply need to install hplip
to get cups


elinks http://localhost:631
then add teh printer over teh Network it will test hp...


then you can print after doing
lpstat -a
lpoptiosn <-- to add the printer


and for sane for scanning
probably scanimage -L will not see it

no matter... you do :
scanimage --device-name "hpaio:... <--- example: hpaio:/net/printer?ip=10.1.1.100" > test.pnm


here it is !

Enjoy







dependencies:
libsane
hplip
and nothing else
and hte backend for hp


Who need X11 !! me not. never installed it on any servers


All times are GMT -5. The time now is 11:08 AM.