This issue has been edited/recycled too much and lost purpose
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Spite | • ikey | T49 Scanning is a failure on Solus | ||
Resolved | • ikey | T375 sane-backends |
Event Timeline
Tracking current workarounds I'm using:
ikey@solus-bdw ~ sudo systemctl enable avahi-dnsconfd.service Password: Created symlink from /etc/systemd/system/multi-user.target.wants/avahi-dnsconfd.service to /usr/lib64/systemd/system/avahi-dnsconfd.service. Created symlink from /etc/systemd/system/sockets.target.wants/avahi-daemon.socket to /usr/lib64/systemd/system/avahi-daemon.socket. ikey@solus-bdw ~ sudo systemctl enable avahi-daemon.service Created symlink from /etc/systemd/system/dbus-org.freedesktop.Avahi.service to /usr/lib64/systemd/system/avahi-daemon.service. Created symlink from /etc/systemd/system/multi-user.target.wants/avahi-daemon.service to /usr/lib64/systemd/system/avahi-daemon.service. ikey@solus-bdw ~
When using simple-scan, avahi dumps:
simple-scan: strlst.c:426: avahi_string_list_get_pair: Assertion `l' failed. [1] 1467 abort (core dumped) simple-scan
ikey@solus-bdw ~ coredumpctl gdb 1467 PID: 1467 (simple-scan) UID: 1000 (ikey) GID: 1000 (ikey) Signal: 6 (ABRT) Timestamp: Fri 2016-08-05 20:38:48 IST (34s ago) Command Line: simple-scan Executable: /usr/bin/simple-scan Control Group: / Boot ID: e3b91ab6009d42e3a4fa170bb0a884d9 Machine ID: 33dabd62c6b4415dabde0061db7ff830 Hostname: solus-bdw Coredump: /var/lib/systemd/coredump/core.simple-scan.1000.e3b91ab6009d42e3a4fa170bb0a884d9.1467.1470425928000000.xz Message: Process 1467 (simple-scan) of user 1000 dumped core. GNU gdb (GDB) 7.8 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-solus-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/simple-scan...(no debugging symbols found)...done. [New LWP 1471] [New LWP 1468] [New LWP 1472] [New LWP 1470] [New LWP 1473] [New LWP 1467] [New LWP 1469] warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Core was generated by `simple-scan'. Program terminated with signal SIGABRT, Aborted. #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 58 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007feec89e57af in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 #1 0x00007feec89e73aa in __GI_abort () at abort.c:89 #2 0x00007feec89ddcc7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fee8fbdbb18 "l", file=file@entry=0x7fee8fbdb4c5 "strlst.c", line=line@entry=426, function=function@entry=0x7fee8fbdb580 "avahi_string_list_get_pair") at assert.c:92 #3 0x00007feec89ddd72 in __GI___assert_fail (assertion=0x7fee8fbdbb18 "l", file=0x7fee8fbdb4c5 "strlst.c", line=426, function=0x7fee8fbdb580 "avahi_string_list_get_pair") at assert.c:101 #4 0x00007fee8fbd77fc in () at /usr/lib64/libavahi-common.so.3 #5 0x00007fee8fdf00df in () at /usr/lib64/sane/libsane-kodakaio.so.1 #6 0x00007fee8f9cae27 in avahi_service_resolver_event () at /usr/lib64/libavahi-client.so.3 #7 0x00007fee8f9c66d8 in () at /usr/lib64/libavahi-client.so.3 #8 0x00007feec2d335b1 in dbus_connection_dispatch () at /usr/lib64/libdbus-1.so.3 #9 0x00007fee8f9ccf6e in () at /usr/lib64/libavahi-client.so.3 #10 0x00007fee8fbda188 in avahi_simple_poll_dispatch () at /usr/lib64/libavahi-common.so.3 #11 0x00007fee8fdef7e5 in () at /usr/lib64/sane/libsane-kodakaio.so.1 #12 0x00007feec9514fa6 in sanei_configure_attach () at /usr/lib64/libsane.so.1 #13 0x00007fee8fdf0377 in sane_kodakaio_get_devices () ---Type <return> to continue, or q <return> to quit--- at /usr/lib64/sane/libsane-kodakaio.so.1 #14 0x00007feec952a4c8 in sane_dll_get_devices () at /usr/lib64/libsane.so.1 #15 0x0000000000424669 in () #16 0x00007feec99d1d90 in () at /usr/lib64/libglib-2.0.so.0 #17 0x00007feec8d7d794 in start_thread (arg=0x7feea7fff700) at pthread_create.c:333 #18 0x00007feec8ab798f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 (gdb)
Part of the issue: https://git.solus-project.com/packages/avahi/commit/?h=avahi-0.6.32-7
The rest lies in sane, which isn't. Sane, that is.
Fixed the segfault by updating to 1.0.25
Still working on the other elements here (such as simple-scan thinking I'm not connected.)
@ikey I'm solved m'y scanner issue a month ago, it appeared that my was not a membre of the USB group and so I was unable to see my scanner.
ok - that's one part of the issue :) simple-scan was still broken for avahi printers (i.e. Bounjor protocol) - and currently I'm having issues accessing it :p
I was having issues with the simple-scan package in Solus as well. It would usually crash after scanning the second page from my EPSON scanner/printer combo.
However, I haven't run into any issues since compiling the latest version. It looks like Simple Scan's development has moved to Launchpad (https://launchpad.net/simple-scan), but Solus is still pulling from the GNOME sources (https://download.gnome.org/sources/simple-scan/).
The latest 3.20 version also looks much better than 3.3.92 ;)
No problem @ikey. Phabricator looks so nice that I actually wanna read up on all the bug reports/tasks :)
Hi guys,
While looking for a solution why my scanner did not work. I came across this page. Simple-scan would load but complain that additional software was required, I would click the install and would get a further error not being able to install.
I found a solution by doing the following:
edit /etc/sane.d/dll.conf
add/uncomment hpaio
read about it here:
https://forum.antergos.com/topic/3179/hpc4150-able-to-print-but-my-scanning-software-simple-scan-requires-additional-software/4
Did not have to restart at all. Fixed the scanner error and worked perfectly. I hope that helps in any way.
Thanks for all your hard work guys.
Hi,
I've juste reinstalled Solus on a clean partition and while I was setting up my OS I had once again an issue with my scanner.
Previously I managed to solve the scanner not being recognized by adding my user to the USB group but that time it's useless, not working.
And I only can access my scanner through root.
EDIT: Maybe it's because sane is v1.0.25 and sane-backends is v1.0.24 ....
could not open USB device 0x04b8/0x085c at 002:004: Access denied (insufficient permissions) could not open USB device 0x8087/0x0020 at 002:002: Access denied (insufficient permissions) could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions) could not open USB device 0x5986/0x0149 at 001:003: Access denied (insufficient permissions) could not open USB device 0x8087/0x0020 at 001:002: Access denied (insufficient permissions) could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
EDIT 2: Sounds I was correct it's a permission error that prevents simple-scan or sane to see scanners for users.
Like a lot of time, Arch Wiki has a fix for it Sane Permission problem fix
If anyone has found a way to get an hpaio scanner (HP Deskjet 1510) working, I'd love to hear it. Spent hours trying to find a workaround, all I got was a headache.
Printing works fine, but nothing will find it as a scanner. Tried "scanimage -L", hp-scan, and of course simple-scan. Going through /dev shows no scanner either. Tried all the recommendations entered here so far, still no love.
Open to suggestions as I really need this scanner working.
I have an HP Deskjet F2492. Printer part worked fine, but the scanner would not. I was finally able to find a solution by studying the Arch wiki and submitted a patch for sane-backends. See https://dev.solus-project.com/T375
It just needs to be applied and uploaded to the repos...
Hi @folcred
I have the exact same printer and the instructions I wrote above work for me. Due to some idiotic moves on my part I have had to format and re-install solus a few times and every time I edit that file and add the entry hpaio to the file my scanner works. and I do have the HP 1510. I have to install the HP Device manager just to install the printer otherwise it does not find the PPD.
I hope that helps
Thank you @selwynorren, it does work now. Apparently I really need to watch my spelling. I had added hpaio to the dll.conf file, but spelled it "hpaoi". Didn't notice it. After reading you had yours working, I decided to try again and went back over all my steps. Just caught it now.
Let's chalk it up to a senior moment, sounds like a good excuse. ;-)
Thanks again.
Ha ha ha, yup it's those senior moments that had me formatting and re-installing Solus a few times. Especially trying to get VMWare to work. and it seems I have just broken it again... sigh.
Glad the scanning is working for you.
Have a great week
Okay so I formatted my computer to install the new 1.2.1. This time around I did not try and install the printer first. hpaio was already there and the scanner did not work at all. Installing the printer works however its the wrong PPD file for the HP 1510 (select 1220 by default) and this does not allow printing.
This means I have to install hplip. I don't use it to install the printer, but without it I cannot get printing to work. Now here is the interesting part...
Without running hplip or anything, then the scanner work beautifully. I then install the printer and it even find the correct PPD driver and install that.
It seems hplip added hundreds of extra drivers to the system.
Yeah you don't run hplip itself, we went as far as disabling the autorun stuff. You just need the drivers from it for HP stuff to get up and running
Thanks Ikey, Well that confirms it. man your OS is working and looking really awesome. said to my wife yesterday that I could honestly never go back to another OS ever again!!
Don't know if it can help some folks having issues wit their scanner but I found a thing :
My scanner only worked with root so I did a little bit of ls -la and found that scanner was owned by root and lp groups.
My user was not in lp, I simply added it with sudo gpasswd -a user lp, logout and login...
And my scanner works now :)
Edit: I found that Arch for example packages sane with a udev rule file for sane with all scanners configured. I think it could be a way to enable scanners on Solus
Source: Sane - Archlinux git
-> Tested on my system and it works for my scanner (previously removed my user from lp group to clean the shit ^^)
On Fedora my scanner works out of the box too, I will try to understand what make it work in that case and not on Solus
Hello,
I have a wireless all in one printer (Canon Pixma MG3650). Solus recognizes it as a printer and it works flawlessly.
However, it doesn't work as a scanner. Simplescan doesn't see it and none of the solutions above helped.
EDIT: I fixed it by adding bjnp://192.168.1.103 (my scanner IP address) to /etc/sane.d/pixma.conf.
I have a Brother DCP scanner/printer. The printer works fine but the scanner doesn't. After doing $ export SANE_DEBUG_DLL=128 and $ scanimage -L in terminal, I found that libusb-0.1.so.4 and libusb-0.1.so.4.4.4 were needed. So i downloaded them from debian and pasted them in /usr/lib64. Now simple-scan recognizes the scanner. Hope this helps.
WORKS FOR ME - Cannon Scane Lide 100
Download atach and .....
sudo cp /Downloads/libusb-0.1.so.4 /usr/lib64/ sudo cp /Downloads/libusb-0.1.so.4.4.4 /usr/lib64/ sudo sane-find-scanner sudo scanimage -L sudo chgrp username /dev/bus/usb/002/003
OK people are now just randomly editing issues they dont own and destroying the original issue. This is absurd.