Comment 60 for bug 478761

Revision history for this message
Bob Littlefield (bobl0619) wrote :

I have a networked Canon pixma mg6320. Printing was no problem. Using xsane I receive 'invalid argument' although the scanner is listed twice in the opening dialog. I am able to scan using gimp. Re the SaneDaemon tutorial I added /etc/systemd/system/saned.socket and saned@.service. then systemctl status saned.socket displayed bad. Removed these two additions and saned.socket was OK.

bob@bob-ubuntu-64:~$ sudo systemctl enable saned.socket
[sudo] password for bob:
bob@bob-ubuntu-64:~$ sudo systemctl start saned.socket
bob@bob-ubuntu-64:~$ systemctl status saned.socket
● saned.socket - saned incoming socket
   Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor preset: enabled)
   Active: active (listening) since Tue 2016-11-15 15:08:13 PST; 24h ago
   Listen: [::]:6566 (Stream)
 Accepted: 4; Connected: 0

Nov 15 15:08:13 bob-ubuntu-64 systemd[1]: Listening on saned incoming socket.
Nov 15 15:18:24 bob-ubuntu-64 systemd[1]: saned.socket: Too many incoming connections (1), refusing connection
Nov 15 15:18:39 bob-ubuntu-64 systemd[1]: saned.socket: Too many incoming connections (1), refusing connection
Nov 15 15:31:14 bob-ubuntu-64 systemd[1]: saned.socket: Too many incoming connections (1), refusing connection
Nov 15 15:37:49 bob-ubuntu-64 systemd[1]: saned.socket: Too many incoming connections (1), refusing connection
Nov 16 15:43:09 bob-ubuntu-64 systemd[1]: Listening on saned incoming socket.

bob@bob-ubuntu-64:~$ sudo service saned status
[sudo] password for bob:
● saned.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)
bob@bob-ubuntu-64:~$ sudo usermod -a -G lp saned
bob@bob-ubuntu-64:~$

How do I unmask saned.service. I am running 16.04. Although I can scan using gimp would much rather like to use xsane for its features. So far I have seen several recommendations but none has helped here.