Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner not automatically detected by airsaned.service on on-off-on cycle #122

Open
SerJoG opened this issue Apr 19, 2024 · 4 comments
Open

Comments

@SerJoG
Copy link

SerJoG commented Apr 19, 2024

Hello @SimulPiscator,
my Samsung SCX-3400 is not automatically detected by airsaned.service (systemctl) when I turn it off and then on. scanimage can detect it normally (sometimes after few seconds), but I have to restart at least one time airsaned service to make it work.

@SimulPiscator
Copy link
Owner

Hi,
airsaned uses the same SANE library function to enumerate scanners as scanimage does. It is thus difficult for me to understand how this difference in behavior arises.

You can do the following to see some debug output from airsaned when enumerating scanners:
sudo systemctl stop airsaned
sudo -u saned airsaned --debug=true

Otherwise, in /etc/systemd/system/airsaned.service there is a line
ExecStartPre=/bin/sleep 15
You could try setting the sleep argument to 25 or 30 and see whether that helps.

@SerJoG
Copy link
Author

SerJoG commented Apr 20, 2024

Hi @SimulPiscator, it doesn't help but I noticed that the avahi-daemon seems weird 'cause it says there's no service file in /etc/avahi/services (folder is empty) and appears 'Failed to parse address 'inet6%wlan0', ignoring'. I think this prevent the scanner to be served on airsane. I also tries to disable mdns on airsane service and allow_ipv6 on avahi service.

@SimulPiscator
Copy link
Owner

SimulPiscator commented Apr 20, 2024

there's no service file in /etc/avahi/services (folder is empty).

This is just an avahi warning that indicates that no static services are defined.

Failed to parse address 'inet6%wlan0', ignoring'

That looks like an avahi configuration error but it's relatively unspecific. Did you enable ipv6 on your system?

To check whether airsaned is detecting your scanner, you can look at the HTML page at http://localhost:8090. As you probably know, if you disable mdns for airsaned you will disable publishing of detected scanners to client programs.

@SerJoG
Copy link
Author

SerJoG commented Apr 21, 2024

I don't know if ipv6 is enabled by default, if not I didn't turn it on. Well as I said it seems that then I connect the scanner scanimage is able to detect it but airsaned executed by systemctl not. So I have to restart airsaned multiple times to make it work and this broke the usefulness of this service. Trying to analyze it a bit I thought that avahi is the problem, but it turns out it's not. My analysis is not deep, when I have time I'll try something more accurate. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants