Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xsane cannot find the scanner (network wifi)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Sep 14, 2014 2:31 pm    Post subject: xsane cannot find the scanner (network wifi) Reply with quote

Hi,

I could manage to install a Brother MFC-J5910DW multifonction following the guide at https://wiki.gentoo.org/wiki/Brother_networked_printer/ [/url].
I use a wireless connexion. The printer works correctly and the following command

Code:

localhost augustin # brsaneconfig4 -q | grep MFC-J5910DW
121 "MFC-J5910DW"
  0 MFC-J5910DW         "MFC-J5910DW"       I:192.168.1.28
localhost augustin #

seems to return something consistent.

When I launch xsane from the GUI, I get this message:
Quote:
No devices available.

Can somebody guides me finding out the reason. I tried to use the
sane-find-scanner tools but I probably don't use them as they should be.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Sun Sep 14, 2014 2:49 pm    Post subject: Re: xsane cannot find the scanner (network wifi) Reply with quote

Will it recognize the scanner when plugged directly?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3956
Location: Dallas area

PostPosted: Sun Sep 14, 2014 2:55 pm    Post subject: Reply with quote

what do you have set for sane-backends?


Edit to add: It looks like sane doesn't even know about that particular model, so I'm skeptical that it will work.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Sep 14, 2014 3:36 pm    Post subject: Reply with quote

Try this command:

Code:

$ for file in /usr/lib/sane/*brother*; do ls -l $file && ldd $file; done


If ldd reports something broken, then you will might have some luck if you emerge dev-libs/libusb-compat.

I was bitten by that some months ago.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Sep 14, 2014 5:58 pm    Post subject: Reply with quote

Anon-E-moose wrote:
what do you have set for sane-backends?


Edit to add: It looks like sane doesn't even know about that particular model, so I'm skeptical that it will work.


Thank you for answering me.
Xsane works with this scanner on my wife's pc (OpenSuse).


Last edited by augustin2 on Sun Sep 14, 2014 6:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Sep 14, 2014 6:01 pm    Post subject: Reply with quote

i92guboj wrote:
Try this command:

Code:

$ for file in /usr/lib/sane/*brother*; do ls -l $file && ldd $file; done


If ldd reports something broken, then you will might have some luck if you emerge dev-libs/libusb-compat.

I was bitten by that some months ago.


Thank you for helping me.
Quote:

augustin@localhost ~ $ for file in /usr/lib/sane/*brother*; do ls -l $file && ldd $file; done
lrwxrwxrwx 1 root root 37 Sep 14 15:28 /usr/lib/sane/libsane-brother4.so -> /usr/lib64/sane/libsane-brother4.so.1
linux-vdso.so.1 (0x00007fff7fbad000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f77455a9000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f7745391000)
libusb-0.1.so.4 => not found
libm.so.6 => /lib64/libm.so.6 (0x00007f774508e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7744e8a000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7744ae2000)
/lib64/ld-linux-x86-64.so.2 (0x00007f774590e000)
lrwxrwxrwx 1 root root 41 Sep 14 15:28 /usr/lib/sane/libsane-brother4.so.1 -> /usr/lib64/sane/libsane-brother4.so.1.0.7
linux-vdso.so.1 (0x00007fff18ad5000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc8ceb9d000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fc8ce985000)
libusb-0.1.so.4 => not found
libm.so.6 => /lib64/libm.so.6 (0x00007fc8ce682000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fc8ce47e000)
libc.so.6 => /lib64/libc.so.6 (0x00007fc8ce0d6000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc8cef02000)
-rwxr-xr-x 1 root root 158048 Sep 25 2013 /usr/lib/sane/libsane-brother4.so.1.0.7
linux-vdso.so.1 (0x00007fff5bfff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0fb58d9000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f0fb56c1000)
libusb-0.1.so.4 => not found
libm.so.6 => /lib64/libm.so.6 (0x00007f0fb53be000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f0fb51ba000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0fb4e12000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0fb5c3e000)
augustin@localhost ~ $
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3956
Location: Dallas area

PostPosted: Sun Sep 14, 2014 6:06 pm    Post subject: Reply with quote

Nevermind looks like you got it working...good.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon


Last edited by Anon-E-moose on Sun Sep 14, 2014 6:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Sep 14, 2014 6:06 pm    Post subject: Reply with quote

You are welcome.

This one drove me mad for quite some time.

I guess that we have become so accustomed to googling things that we often forget to check the basic stuff these days. It happens to me all the time at least.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Sep 14, 2014 6:11 pm    Post subject: Reply with quote

Anon-E-moose wrote:
augustin2 wrote:
Anon-E-moose wrote:
what do you have set for sane-backends?


Edit to add: It looks like sane doesn't even know about that particular model, so I'm skeptical that it will work.


Thank you for answering me.
Xsane works with this scanner on my wife's pc (OpenSuse).


Then find out what backend that it uses on suse.


The backend was properly configured. The output in the first post shows that.

The problem is hinted in the ldd output. The libusb version that we ship nowadays is "too new" for the brother supplied drivers. It doesn't matter you are using wifi since the missing lib prevents the driver from working at all.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Mon Sep 15, 2014 7:35 am    Post subject: Reply with quote

Thank you again.

Is there a mean to get the adequat libusb installed side-to-side with the new one.
It seems that the 1.0.18 version is installed at the moment

Edit:
I installed libusb-compat. It seems to solve the problem with libsud-o.1.so.4 but now I have a new error message:
Quote:

Failed to open device `brother4:net;dev0`: invalid argument.


It is the same after having reinstalled the drivers.

Edit2: the trouble is exactly the same with a second printer (DCP750CW)
Quote:

Failed to open device `brother2:net;dev0`: invalid argument.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Tue Sep 23, 2014 9:33 am    Post subject: Reply with quote

I would remove all the printers and scanners and set them up using static IP. For that you have to configure the ip in the printer control panel. After that try ping to these ips, then setup the thing using the brother command line tool.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Sep 25, 2014 6:36 am    Post subject: Reply with quote

Something new appeared that I cannot explain.
The MFC printer works now completely but I cannot scan on the DCP. Both printers are with static IP.

When I have time I will reinstall the DCP.
Thank you for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum