[sane-devel] When to disable sane?
steve rinsler
stevesr0 at yahoo.com
Sun Feb 27 00:23:22 GMT 2022
Hi Ralph,
Thanks for your reply. Please see my "BIG QUESTION" below after my responses (or just answer that - if it works, the rest won't matter.)
The Brother device is attached by ethernet to my router, not directly connected to any computer.
The computer that DOESN'T launch sane scans fine across the network. So it seems that saned doesn't have to be running for scanning across the network to work. I don't understand that, but perhaps the daemon not running doesn't mean that sane software isn't...
On the one computer that scanning ISN'T working, I have configured the net.conf file with the ip address of the scanner twice without it do anything different. First, I just used the ip address (xxx.xxx.xxx.xxx) and then "brother3:net1:dev0 xxx.xxx.xxx.xxx." (without quotes). If another format is required, I would be grateful to have this described so I could try it.
On the two computers that saned runs on (despite the settings in /etc/default/saned and /etc/init.d/saned), I note that there are TWO saned processes listed in htop. When I kill one, both disappear.
(antiX doesn't use systemd by default and I use SysVinit. However, I can use sudo service start, restart and stop to enable and disable services - or /usr/sbin/saned to launch it.)
(Note that one of these computers successfully connects and scans, while the other doesn't.)
BIG QUESTION: How do I set up the init to listen on port 6566 and "pass the connection on to saned"? I haven't heard about that and if you can explain it, it would probably save me hours of figuring it out.
Steve
On Saturday, February 26, 2022, 02:44:03 PM EST, Ralph Little <skelband at gmail.com> wrote:
Hi,
On 2022-02-25 09:33, steve rinsler via sane-devel wrote:
> I have three computers each running antiX (different versions). In
> accord with routine instructions for scanning to my Brother MFC-7345N
> device connected by Ethernet to my router, I have edited the
> etc/default/saned and /etc init.d/saned files NOT to launch at boot
> (RUN=no).
>
> However on only one of the three computers does service saned status
> report saned is disabled.
>
> Scanning works fine both on that computer and on one of the other
> computers on which saned is reported as running. On the third
> computer, saned is running, but (so far) scanning isn’t working.
>
> While my main goal is to fix the scanning on the one computer, I am
> puzzled about what the correct status of saned should be. It seems
> that it isn’t necessary for scanning across the network to my Brother
> device.
>
You only need saned to be running on the one machine that is connected
to the Brother device. saned provides the server side of the connection.
the sane-net backend is the client side.
So on the other two machines, disable saned and configure sane-net
(/etc/sane.d/net.conf) with the IP address of the machine running saned.
I do find the situation regarding how saned is configure to run very
variable depending on the system.
You can either setup saned to run as a daemon in its own right, or
configure your init system to listen on the 6566 port for incoming
connections, and have it pass the connection on to saned. The latter is
a pretty common scenario.
> If so, how do I BLOCK saned from launching when I boot, since
> my editing of /etc/default/saned and /etc/init.d/saned doesn’t work on
> two of my computers.
Not sure how services are set up on antiX. If systemd is in use then you
can probably use:
sudo systemctl disable saned.socket
or
sudo systemctl stop saned.socket
to temporarily disable the socket listener.
>
> (I have spent many hours so far trying to figure out why the third
> computer isn’t working. I may give up and just try reinstalling the
> Brother software and the sane utilities, but I would prefer to
> understand what is “broken” in this third computer. It is running the
> latest Sid sane software (sane, libsane and libsane1, libsane-common,
> sane-utils, xsane and xsane-common), which is a little different than
> the other computers. The Brother scanner driver (backend) is the same
> version on all three computers.
> The brscan-sketch utility detects the scanner on all the computers, so
> it suggests some possible incompatibility with the newer sane software.)
>
Cheers,
Ralph
More information about the sane-devel
mailing list