Agfa Snapscan e20 scanner fails to open in BionicPup

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
mgs1234
Posts: 10
Joined: Mon Aug 05, 2024 12:53 pm
Location: N E Scotland

Agfa Snapscan e20 scanner fails to open in BionicPup

Post by mgs1234 »

Using Bionic Pup 64 8 0
xsane correctly identifies an old Agfa Snapscan e20 flatbed scanner but then fails to connect to it with the following error -
snapscan:libusb:005:002:error during device I/O

I have had this scanner working on an older Puppy version on a now scapped HP2133 notebook which required firmware snapscan e20.bin but trying this just gives the same error message as above.

Any advice welcome.

User avatar
jp734
Posts: 250
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 112 times
Been thanked: 102 times

Re: scanner failed to open

Post by jp734 »

Curious how you are going to solve this. I'm about to do a similar setup since I gave my brother printer/scanner to my daughter. I still use scanner from time to time and I need to look for my flatbed scanner. I have an old firmware file backed up and thinking about searching for a newer version. Are you using an old version or newer firmware?

The Art of Magic and The Magic of Art

mgs1234
Posts: 10
Joined: Mon Aug 05, 2024 12:53 pm
Location: N E Scotland

Re: scanner failed to open

Post by mgs1234 »

As far as I know the snapscane20.bin is the correct firmware.

See -

https://snapscan.sourceforge.net/

xsane clearly recognises the scanner and the scanner motor and light activates as connection is attempted.

User avatar
jp734
Posts: 250
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 112 times
Been thanked: 102 times

Re: Agfa Snapscan e20 scanner fails to open in BionicPup

Post by jp734 »

Finally able to give some time setting up my scanner and very happy to say, after sitting for so many years in the attic, my flatbed scanner still works.

All I had to do was edit /etc/sane.d/snapscan.conf and copy my backed up firmware to the folder specified below. Worked the first try.

Code: Select all

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/u96v121.bin

When I ran "xsane image scanner", a window opened to let me choose what type of scanner I'm using (USB, Parallel or SCSI) - see Screenshot(22).jpg. I clicked USB then another window open letting me chose my scanner which in this case is the Acer - FlatbedScanner13 (see Screenshot(23).jpg)

I'm trying it on EasyOS but I'm sure it will work on other Puppy Linux

Hope you were able to get yours going. :thumbup:

Attachments
Screenshot(23).jpg
Screenshot(23).jpg (49.29 KiB) Viewed 642 times
Screenshot(22).jpg
Screenshot(22).jpg (96.34 KiB) Viewed 642 times

The Art of Magic and The Magic of Art

User avatar
jp734
Posts: 250
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 112 times
Been thanked: 102 times

Re: Agfa Snapscan e20 scanner fails to open in BionicPup

Post by jp734 »

Good morning ALL

Sad to say, my Acer Prisa 620U flatbed scanner also stopped working on both Bionic and Bookworm pups. Not sure what I installed to cause this. Now, when I try to scan, I get an error. I also have Lubuntu installed and the scanner works there using the same usb port so definitely it is not a hardware issue. Time to have some troubleshooting fun :P. Maybe I'll try restoring an old Bionic savefile. As far as BookWorm, I used to have ver 10.0.6 which was recently upgraded to 10.0.9.

Attachments
Screenshot(7).jpg
Screenshot(7).jpg (11.89 KiB) Viewed 273 times

The Art of Magic and The Magic of Art

robertstein
Posts: 10
Joined: Thu Jun 13, 2024 5:23 pm

Re: Agfa Snapscan e20 scanner fails to open in BionicPup

Post by robertstein »

Sounds like you're close, but that error suggests a communication issue. Since you had it working on an older Puppy version, it might be worth checking if the right permissions are set for USB access or if an older SANE version worked better. Also, make sure the firmware file is in the correct location and has the right permissions. Sometimes running dmesg | grep usb can give more clues.

Cheers!

User avatar
jp734
Posts: 250
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 112 times
Been thanked: 102 times

Re: Agfa Snapscan e20 scanner fails to open in BionicPup

Post by jp734 »

Hey @robertstein - Good day to you and thanks for the reply.

I tried dmesg command and lsusb and both detected the scanner. Path to my firmware is correct. Haven't changed anything since the last time it worked honestly.

[edit]
dll.conf and snapscan.conf under /etc/sane.d are set with 644 file permission
The firmware under /usr/share/sane/snapscan is set with 755 file permission

Attachments
Screenshot(7).jpg
Screenshot(7).jpg (100.67 KiB) Viewed 229 times
Last edited by jp734 on Fri Feb 28, 2025 8:45 pm, edited 1 time in total.

The Art of Magic and The Magic of Art

User avatar
jp734
Posts: 250
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 112 times
Been thanked: 102 times

Re: Agfa Snapscan e20 scanner fails to open in BionicPup

Post by jp734 »

Maybe this started when I disconnected my Brother printer/scanner, that's why I'm getting the error "failed to open device 'brother4:net1'.

I tried removing it by running the command ./brsaneconfig4 -r MFC-J4420DW but when I ran brsaneconfig4 - q to query available network scanners, it lists it as if it's still connected and available for use. Like it did not remove it at all.

The Art of Magic and The Magic of Art

User avatar
jp734
Posts: 250
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 112 times
Been thanked: 102 times

Re: Agfa Snapscan e20 scanner fails to open in BionicPup

Post by jp734 »

Well, executing the command "scanimage --format=png > /root/image.png" worked. Guess I'm good with scanning from terminal for now.

[EDIT]

I think I will consider XSane not working as a blessing. I learned how to play with bash scripting, configure config files and now I can scan faster and easier with just one click. No more need to open a GUI interface

How I made it faster:

  • /etc/sane.d/dll.conf - commented out every line except for snapscan. This eliminated the process of checking every single scanner to see which one on the list is mine

  • /etc/sane.d/snapscan.conf - also commented out every single line except for two. The firmware and usb lines for my scanner. In my case, it was the BenQ/Acer/Vuego 640U usb 0x04a5 0x2060. Confirmed using commands lsusb and scanimage -L

  • my script: scanimage --resolution 300 --format=png > /root/scanned/scanned-image_$(date +%H:%M:%S).png. Added the time stamp so I can keep on scanning without overwriting previously scanned images

#!/bin/sh ROCKS!

The Art of Magic and The Magic of Art

Post Reply

Return to “Beginners Help”