Artix Linux Forum

Init systems => dinit => Topic started by: DAH on 26 April 2022, 01:30:53

Title: Really like the speed and simplicity of dinit. Only one small problem...
Post by: DAH on 26 April 2022, 01:30:53
I really like the speed and simplicity of dinit and have been using it with my Artix installation for a couple of months now. 

The only problem that I've encountered is that my networked HP Envy 5660  printer/scanner is only detected as a printer, not as a scanner.  With an OpenRC Artix installation, SimpleScan can be opened and the scanner is detected.  With a dinit Artix installation on the same computer, it says that no scanner is detected.  That's not a big deal; I hardly ever use the scanner.  Still, it bugs me that I can't get the scanner to work.

Any suggestions?
Title: Re: Really like the speed and simplicity of dinit. Only one small problem...
Post by: cat herders of linux on 26 April 2022, 01:37:29
I really like the speed and simplicity of dinit and have been using it with my Artix installation for a couple of months now. 

The only problem that I've encountered is that my networked HP Envy 5660  printer/scanner is only detected as a printer, not as a scanner.  With an OpenRC Artix installation, SimpleScan can be opened and the scanner is detected.  With a dinit Artix installation on the same computer, it says that no scanner is detected.  That's not a big deal; I hardly ever use the scanner.  Still, it bugs me that I can't get the scanner to work.

Any suggestions?


Hplip something or other.  Check the repos for HP software.  You probably just need to install the drivers.  I doubt an init has anything to do with scanning software.  Also don't give systemd devs any ideas....


Sane xsane gocr come to mind
Title: Re: Really like the speed and simplicity of dinit. Only one small problem...
Post by: strajder on 26 April 2022, 11:46:09
@OP: Make sure you have world/sane and world/sane-dinit installed and the service "saned" enabled and started. If you still have a problem after that, check out the SANE#Troubleshooting (https://wiki.archlinux.org/title/SANE#Troubleshooting) and SANE/Scanner-specific problems (https://wiki.archlinux.org/title/SANE/Scanner-specific_problems) articles.
Title: Re: Really like the speed and simplicity of dinit. Only one small problem...
Post by: DAH on 26 April 2022, 23:29:04
I found the problem.  For some reason, the saned service was not staying started.  I found out how to "pin" it in the started state:

dinitctl start --pin saned

and now the scanner is detected.
Title: Re: Really like the speed and simplicity of dinit. Only one small problem...
Post by: cat herders of linux on 27 April 2022, 02:47:09
Wow!  Thank you!  I will need to know this eventually as i also use dinit.
Title: Re: Really like the speed and simplicity of dinit. Only one small problem...
Post by: davmac on 27 April 2022, 14:17:58
I found the problem.  For some reason, the saned service was not staying started.  I found out how to "pin" it in the started state:

It really shouldn't be necessary to pin the service (though it's good you've got that workaround) - have a look and see what dependencies it has and if any of them are stopping unexpectedly. If a "depends-on" dependency stops, the service itself will also stop (pinning prevents this).