Xsane not connecting to my network scanner

I installed xsane from the software store. The installation seems straight forward enough. But the software doesn’t work properly. It fails to connect to my Samsung printer/scanner. This is a new Rocky 9 linux installation: VERSION=“9.7 (Blue Onyx)”. Because it’s a new installation, I think I’m missing some drivers for the scanner.

The old xsane is running fine on my current Rocky 8 system. I don’t think I have any hardware issue. I can’t remember what I did before. The xsane is working fine my old Rocky 8 but not on the new Rocky 9. Can anyone tell me what’s missing?

Compare the list of installed rpms from your working system to the new one. If there’s a missing driver it’ll probably show up there.

  1. rpm -qa --qf “%{NAME}\n” > list
  2. do the same thing on the other computer
  3. combine the two lists and use the uniq command to show you the differences as shown in step 4, or you can use something like meld or vimdiff to do the comparison, whichever you’re most comfortable with.
  4. cat list1 list 2 | sort | uniq -u

Another question, installing from software gui app will either install it from rpm repositories, or from flatpak.

Easier would be to do:

rpm -qa | grep -i sane

and then we can see which was installed.

I’m not sure if this is the same with Rocky, I’m currently using a Debian based Distro. But on this I Had to edit a file in /etc/sane.d/xerox_mfp.conf & change the IP address of the “Samsung sxc4500W” to that of the printer & also the Port it listens on. It will probably be similar in Rocky, but the config file may be located elsewhere or have a different name.

@FrankCox

I did what you’ve suggested. There’re huge difference between the two systems. The fact the trouble computer is a freshly installed system, compare to the working one that I’ve been using for a long while. One would expect a big difference. I can’t isolate the rpm differences concerning the xsane app. I just to many to go through.

That is not ideal. For RL9, best to do clean install using the rpm only. Uninstall and start again. Then do:

rpm -q xsane

There’s not much difference between xsane on RL8 and RL9, but remember xsane is only the GUI, there’s a lot more to it.

Check also the exact network configuration used on RL8, so you can copy it to RL9, e.g ethernet, IP address etc

I remove the installation using the software gui and installed xsane through dnf. No luck! Same situation.

Can I force xsane to connect to the scanner? I know the ip address of my device.

This is crazy!!

The solution is to install the app VLC.

================================================================================
Package                  Arch   Version                        Repo       Size

Installing:
vlc                      x86_64 1:3.0.22-2.el9                 epel      188 k
Installing dependencies:
SDL2                     x86_64 2.26.0-1.el9                   appstream 683 k
SDL_image                x86_64 1.2.12-31.el9                  epel       44 k
aalib-libs               x86_64 1.4.0-0.42.rc5.el9             epel       68 k
aribb24                  x86_64 1.0.3^20160216git5e9be27-1.el9 epel       40 k
aribb25                  x86_64 0.2.7-4.el9                    epel       35 k
asdcplib                 x86_64 2.10.38-5.el9                  epel      491 k
cjson                    x86_64 1.7.18-1.el9                   epel       31 k
codec2                   x86_64 1.0.3-1.el9                    epel      637 k
daala-libs               x86_64 0-21.20200724git694d4ce.el9    epel      203 k
faad2-libs               x86_64 1:2.11.2-3.el9                 epel      208 k
fftw-libs-double         x86_64 3.3.8-12.el9.0.1               appstream 906 k
game-music-emu           x86_64 0.6.3-9.el9                    epel      154 k
gnu-free-fonts-common    noarch 20120503-25.el9                epel      122 k
gnu-free-sans-fonts      noarch 20120503-25.el9                epel      740 k
google-noto-sans-mono-fonts
noarch 20201206-5.el9                 appstream 3.4 M
google-noto-serif-fonts  noarch 20201206-5.el9                 appstream 8.5 M
highway                  x86_64 1.3.0-1.el9                    epel      553 k
ilbc                     x86_64 3.0.4-1.el9                    epel       51 k
intel-mediasdk           x86_64 21.3.5-1.el9                   epel      2.6 M
kf5-filesystem           x86_64 5.116.0-1.el9                  epel       11 k
libaom                   x86_64 3.13.1-1.el9                   epel      1.8 M
libass                   x86_64 0.17.1-1.el9                   epel      116 k
libavcodec-free          x86_64 5.1.4-3.el9                    epel      4.0 M
libavformat-free         x86_64 5.1.4-3.el9                    epel      1.1 M
libavutil-free           x86_64 5.1.4-3.el9                    epel      320 k
libbluray                x86_64 1.3.4-1.el9                    epel      171 k
libcaca                  x86_64 0.99-0.69.beta20.el9           epel      218 k
libcddb                  x86_64 1.3.2-35.el9                   epel       73 k
libchromaprint           x86_64 1.5.1-1.el9                    epel       39 k
libdav1d                 x86_64 1.5.2-1.el9                    epel      610 k
libdvbpsi                x86_64 1.3.3-5.el9                    epel      100 k
libebml                  x86_64 1.4.5-1.el9                    epel       72 k
libjxl                   x86_64 0.7.2-2.el9                    epel      982 k
libkate                  x86_64 0.4.1-24.el9                   epel       58 k
libmad                   x86_64 0.15.1b-33.el9                 appstream  82 k
libmatroska              x86_64 1.6.3-3.el9                    epel      163 k
libmicrodns              x86_64 0.2.0-4.el9                    epel       31 k
libmodplug               x86_64 1:0.8.9.0-13.el9               epel      171 k
libmpcdec                x86_64 1.2.6-28.el9                   epel       29 k
libnfs                   x86_64 5.0.2-2.el9                    epel      143 k
libopenmpt               x86_64 0.8.4-1.el9                    epel      748 k
libplacebo5              x86_64 5.264.1-1.el9                  epel      341 k
libpostproc-free         x86_64 5.1.4-3.el9                    epel       55 k
librabbitmq              x86_64 0.11.0-7.el9                   appstream  44 k
librist                  x86_64 0.2.7-1.el9                    epel       76 k
libshaderc               x86_64 2025.2-1.el9                   appstream 1.0 M
libsodium                x86_64 1.0.18-8.el9                   epel      161 k
libspatialaudio          x86_64 3.1-5.20200406gitd926a2e.el9   epel      919 k
libssh2                  x86_64 1.11.1-1.el9                   epel      144 k
libswresample-free       x86_64 5.1.4-3.el9                    epel       64 k
libswscale-free          x86_64 5.1.4-3.el9                    epel      185 k
libtiger                 x86_64 0.3.4-23.el9                   epel       40 k
libudfread               x86_64 1.1.2-2.el9                    epel       33 k
libunwind                x86_64 1.6.2-1.el9                    epel       67 k
libupnp                  x86_64 1.14.12-1.el9                  epel      111 k
libusb                   x86_64 1:0.1.7-5.el9                  appstream  29 k
libvdpau                 x86_64 1.5-1.el9                      appstream  16 k
libvmaf                  x86_64 2.3.0-2.el9                    epel      177 k
libvpl                   x86_64 1:2.16.0-1.el9                 epel      151 k
lirc-libs                x86_64 0.10.0-36.el9                  epel      126 k
live555                  x86_64 2023.06.20-2.el9               epel      436 k
lpcnetfreedv             x86_64 0.2-11.el9                     epel      7.3 M
mbedtls                  x86_64 2.28.8-1.el9                   epel      398 k
ocl-icd                  x86_64 2.2.13-4.el9                   appstream  51 k
opencore-amr             x86_64 0.1.6-3.el9                    epel      172 k
openpgm                  x86_64 5.2.122-28.el9                 epel      176 k
pcsc-lite-libs           x86_64 1.9.4-2.el9                    baseos     26 k
protobuf-lite            x86_64 3.14.0-16.el9                  appstream 231 k
qt5-qtsvg                x86_64 5.15.9-2.el9                   appstream 184 k
rav1e-libs               x86_64 0.7.1-5.el9                    epel      1.0 M
schroedinger             x86_64 1.0.11-26.el9                  epel      321 k
sdl12-compat             x86_64 1.2.60-1.el9                   appstream  90 k
soxr                     x86_64 0.1.3-11.el9                   epel       82 k
speexdsp                 x86_64 1.2.0-5.el9                    appstream 451 k
srt-libs                 x86_64 1.4.4-1.el9                    epel      291 k
svt-av1-libs             x86_64 0.9.0-1.el9                    epel      1.7 M
vapoursynth-libs         x86_64 57-4.el9                       epel      501 k
vlc-cli                  x86_64 1:3.0.22-2.el9                 epel       24 k
vlc-gui-qt               x86_64 1:3.0.22-2.el9                 epel      977 k
vlc-libs                 x86_64 1:3.0.22-2.el9                 epel      6.9 M
vlc-plugin-lua           x86_64 1:3.0.22-2.el9                 epel      308 k
vlc-plugin-pipewire      x86_64 3-1.el9                        epel       37 k
vlc-plugin-pulseaudio    x86_64 1:3.0.22-2.el9                 epel       36 k
vlc-plugins-base         x86_64 1:3.0.22-2.el9                 epel      2.0 M
vlc-plugins-video-out    x86_64 1:3.0.22-2.el9                 epel      186 k
vo-amrwbenc              x86_64 0.1.3-18.el9                   epel       75 k
xerces-c                 x86_64 3.2.5-1.el9                    epel      960 k
xvidcore                 x86_64 1.3.7-9.el9                    epel      252 k
zeromq                   x86_64 4.3.4-2.el9                    epel      431 k
zimg                     x86_64 3.0.6-2.el9                    epel      275 k
zvbi                     x86_64 0.2.35-15.el9                  epel      413 k
Installing weak dependencies:
intel-vpl-gpu-rt         x86_64 25.4.5-1.el9                   epel      3.8 M
jxl-pixbuf-loader        x86_64 0.7.2-2.el9                    epel       52 k
libproxy-bin             x86_64 0.4.15-35.el9                  appstream  14 k
openh264                 x86_64 2.3.1-1.el9                    epel-cisco-openh264
425 k
vlc-gui-skins2           x86_64 1:3.0.22-2.el9                 epel      421 k
vlc-plugin-ffmpeg        x86_64 1:3.0.22-2.el9                 epel       98 k
vlc-plugin-gnome         x86_64 1:3.0.22-2.el9                 epel       17 k
vlc-plugin-notify        x86_64 1:3.0.22-2.el9                 epel       17 k
vlc-plugin-visualization x86_64 1:3.0.22-2.el9                 epel       32 k
vlc-plugins-extra        x86_64 1:3.0.22-2.el9                 epel      690 k

# Transaction Summary

Install  102 Packages

What’s in the VLC dependency are also used by xsane? Can some one enlight me?

I don’t know, but I do know that at one point with any RH clone, I had to edit firewalld to allow mdns through. This was if using airscan Maybe installing VLC does something to allow mdns, but that sounds unlikely to me.

I can say for fact this issue wasn’t in the firewall. I’ve set my firewall to the active zone=trusted before the VLC installation. Whole bunch of libraries dependency were added to the system at the VLC installation. I think that made the different to the xane.

Then it appears that a dependency was missed/not listed when the el9 xsane rpm was created.

Have you already checked & edited that file I mentioned? Xsane doesn’t automatically support networking, you usually have to edit the sane file of the respective Printer to get it to connect. The file I mentioned probably isn’t specific to your printer, & also the section to edit probably isn’t the same Printer model, but it is the one where you can set the IP address & port. I’ve used that for several different MFP printers, & it worked.

Yes, I did. It didn’t change the respond. Xsane connected to my usb webcam. If I disconnect the webcam, it didn’t even run. I’m convinced a library was missing until the VLC was installed.

For those who’s still struggling for a solution. Try installing the Samsung Linux Print and Scan Driver. You can find the download page here:https://support.hp.com/us-en/drivers/samsung-scx-4623-laser-multifunction-printer-series/17157060