Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#54786 - [sane] unable to share network scanner

Attached to Project: Arch Linux
Opened by bobpaul (bobpaul) - Thursday, 13 July 2017, 03:27 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 26 July 2017, 14:29 GMT
Task Type Feature Request
Category Upstream Bugs
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Description: Saned is unable to share network scanner.

There's a patch to fix on the Ubuntu bug list at:

Additional info:
* package version(s) 1.0.27-1
* config and/or log files etc.

Steps to reproduce:
1. Add network scanner
2. Verify with scanimage -L that the scanner is usable
3. On the server, follow instructions on Arch wiki to share scanner over the network using saned (add local subnet to saned.conf, start saned.socket service, load nf_conntrack_sane)
4. On another Arch machine, follow instructions on Arch wiki to connect to saned from a remote client (add the IP of the server to net.conf)
5. On the client machine, use scanimage -L to see the scanner does not show

Expected results:
The client machine should be able to see the scanner. Example:
$ scanimage -L
device `net:' is a Hewlett-Packard HP_LaserJet_3052 all-in-one

I've taken the patch from the Ubuntu wiki and updated src tarball.

Now, I'm not sure what the ramifications of this patch are. I'm not sure if this is necessary for all network scanners or just hpaio based network scanners. I don't know if this causes problems. It certainly seems like a weird patch. But this patch lets me use a 10 yr old scanner with Windows 7+ (wia-sane -> saned on arch -> scanner)
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 26 July 2017, 14:29 GMT
Reason for closing:  Upstream
Additional comments about closing:  Upstream decision to not share network devices.
Comment by Jan de Groot (JGC) - Thursday, 13 July 2017, 11:37 GMT
The patch changes the "local" flag for sane_get_devices(). As your device is a "net" device, Sane doesn't treat it as local, so you cannot share it without patching sane.

Please take this upstream, there's a reason why sane doesn't implement sharing network devices.
Comment by bobpaul (bobpaul) - Thursday, 13 July 2017, 13:43 GMT
Thanks, I will. I thought it might be something like that (2 saned on might reshare each other's scanners, etc), and with your explanation I've found more info.

I'll go upstream and put in a request to have this configurable at runtime if that hasn't been requested yet.. If possible, can you fix the title of this issue? Thanks!