XSane doesn´t scan; Scanner not working

I have a Pantum M6500W Printer/Scanner which I have been unsing under Solus Linux for years.

On AlmaLinux 9:

The printer functionality works fine.

I can´t get the scanner working with XSane - I created a log file when starting XSane which shows numerous potential causes but what`s the root cause of the problem? gkt module, wrong permissions, failed (libjpeg.so.8: not found…

log:

Gtk-Message: 20:26:40.176: to load module “pk-gtk-module”
[20:26:40.177805] [sanei_debug] Setting debug level of dll to 255.
[20:26:40.177819] [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.32
[20:26:40.177826] [dll] sane_init/read_dlld: attempting to open directory ./dll.d' [20:26:40.177832] [dll] sane_init/read_dlld: attempting to open directory /etc/sane.d/dll.d’
[20:26:40.177841] [dll] sane_init/read_dlld: using config directory /etc/sane.d/dll.d' [20:26:40.177849] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/airscan [20:26:40.177858] [dll] sane_init/read_config: reading dll.d/airscan [20:26:40.177865] [dll] add_backend: adding backend airscan’
[20:26:40.177872] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hpaio
[20:26:40.177884] [dll] sane_init/read_config: reading dll.d/hpaio
[20:26:40.177891] [dll] add_backend: adding backend hpaio' [20:26:40.177898] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/pantum_mfp [20:26:40.177911] [dll] sane_init/read_config: reading dll.d/pantum_mfp [20:26:40.177920] [dll] add_backend: adding backend pantum_mfp’
[20:26:40.177929] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/pantum6500.conf
[20:26:40.177940] [dll] sane_init/read_config: reading dll.d/pantum6500.conf
[20:26:40.177948] [dll] add_backend: adding backend pantum6500' [20:26:40.177959] [dll] sane_init/read_dlld: done. [20:26:40.177971] [dll] sane_init/read_config: reading dll.conf [20:26:40.177982] [dll] add_backend: adding backend net’
[20:26:40.177991] [dll] add_backend: adding backend abaton' [20:26:40.177999] [dll] add_backend: adding backend agfafocus’
[20:26:40.178008] [dll] add_backend: adding backend apple' [20:26:40.178016] [dll] add_backend: adding backend artec’
[20:26:40.178025] [dll] add_backend: adding backend artec_eplus48u' [20:26:40.178033] [dll] add_backend: adding backend as6e’
[20:26:40.178041] [dll] add_backend: adding backend avision' [20:26:40.178049] [dll] add_backend: adding backend bh’
[20:26:40.178056] [dll] add_backend: adding backend canon' [20:26:40.178066] [dll] add_backend: adding backend canon630u’
[20:26:40.178075] [dll] add_backend: adding backend canon_dr' [20:26:40.178083] [dll] add_backend: adding backend canon_lide70’
[20:26:40.178091] [dll] add_backend: adding backend cardscan' [20:26:40.178100] [dll] add_backend: adding backend coolscan’
[20:26:40.178109] [dll] add_backend: adding backend coolscan3' [20:26:40.178118] [dll] add_backend: adding backend dell1600n_net’
[20:26:40.178127] [dll] add_backend: adding backend dmc' [20:26:40.178136] [dll] add_backend: adding backend epjitsu’
[20:26:40.178146] [dll] add_backend: adding backend epson2' [20:26:40.178154] [dll] add_backend: adding backend epsonds’
[20:26:40.178162] [dll] add_backend: adding backend escl' [20:26:40.178170] [dll] add_backend: adding backend fujitsu’
[20:26:40.178177] [dll] add_backend: adding backend genesys' [20:26:40.178186] [dll] add_backend: adding backend gt68xx’
[20:26:40.178194] [dll] add_backend: adding backend hp' [20:26:40.178202] [dll] add_backend: adding backend hp3500’
[20:26:40.178210] [dll] add_backend: adding backend hp3900' [20:26:40.178220] [dll] add_backend: adding backend hp4200’
[20:26:40.178229] [dll] add_backend: adding backend hp5400' [20:26:40.178238] [dll] add_backend: adding backend hp5590’
[20:26:40.178246] [dll] add_backend: adding backend hpljm1005' [20:26:40.178256] [dll] add_backend: adding backend hpsj5s’
[20:26:40.178265] [dll] add_backend: adding backend hs2p' [20:26:40.178275] [dll] add_backend: adding backend ibm’
[20:26:40.178284] [dll] add_backend: adding backend kodak' [20:26:40.178294] [dll] add_backend: adding backend kodakaio’
[20:26:40.178303] [dll] add_backend: adding backend kvs1025' [20:26:40.178313] [dll] add_backend: adding backend kvs20xx’
[20:26:40.178323] [dll] add_backend: adding backend kvs40xx' [20:26:40.178332] [dll] add_backend: adding backend leo’
[20:26:40.178342] [dll] add_backend: adding backend lexmark' [20:26:40.178351] [dll] add_backend: adding backend ma1509’
[20:26:40.178365] [dll] add_backend: adding backend magicolor' [20:26:40.178375] [dll] add_backend: adding backend matsushita’
[20:26:40.178385] [dll] add_backend: adding backend microtek' [20:26:40.178396] [dll] add_backend: adding backend microtek2’
[20:26:40.178405] [dll] add_backend: adding backend mustek' [20:26:40.178416] [dll] add_backend: adding backend mustek_usb’
[20:26:40.178425] [dll] add_backend: adding backend mustek_usb2' [20:26:40.178434] [dll] add_backend: adding backend nec’
[20:26:40.178444] [dll] add_backend: adding backend niash' [20:26:40.178453] [dll] add_backend: adding backend pie’
[20:26:40.178461] [dll] add_backend: adding backend pieusb' [20:26:40.178478] [dll] add_backend: adding backend pint’
[20:26:40.178491] [dll] add_backend: adding backend pixma' [20:26:40.178500] [dll] add_backend: adding backend plustek’
[20:26:40.178509] [dll] add_backend: adding backend qcam' [20:26:40.178517] [dll] add_backend: adding backend ricoh’
[20:26:40.178527] [dll] add_backend: adding backend ricoh2' [20:26:40.178536] [dll] add_backend: adding backend rts8891’
[20:26:40.178545] [dll] add_backend: adding backend s9036' [20:26:40.178556] [dll] add_backend: adding backend sceptre’
[20:26:40.178566] [dll] add_backend: adding backend sharp' [20:26:40.178577] [dll] add_backend: adding backend sm3600’
[20:26:40.178588] [dll] add_backend: adding backend sm3840' [20:26:40.178597] [dll] add_backend: adding backend snapscan’
[20:26:40.178606] [dll] add_backend: adding backend sp15c' [20:26:40.178617] [dll] add_backend: adding backend tamarack’
[20:26:40.178626] [dll] add_backend: adding backend teco1' [20:26:40.178637] [dll] add_backend: adding backend teco2’
[20:26:40.178647] [dll] add_backend: adding backend teco3' [20:26:40.178659] [dll] add_backend: adding backend u12’
[20:26:40.178670] [dll] add_backend: adding backend umax' [20:26:40.178681] [dll] add_backend: adding backend umax1220u’
[20:26:40.178691] [dll] add_backend: adding backend v4l' [20:26:40.178700] [dll] add_backend: adding backend xerox_mfp’
[20:26:40.178709] [dll] add_backend: adding backend pantum_mfp' [20:26:40.178717] [dll] add_backend: pantum_mfp’ is already there
[20:26:40.178726] [dll] add_backend: adding backend pantum6500' [20:26:40.178733] [dll] add_backend: pantum6500’ is already there
[20:26:40.390258] [dll] sane_get_devices
[20:26:40.390309] [dll] load: searching backend pantum6500' in /usr/lib64/sane’
[20:26:40.390320] [dll] load: trying to load /usr/lib64/sane/libsane-pantum6500.so.1' [20:26:40.390486] [dll] load: dlopen()ing /usr/lib64/sane/libsane-pantum6500.so.1’
[20:26:40.390687] [dll] load: dlopen() failed (libjpeg.so.8: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)
[20:26:40.390705] [dll] load: searching backend pantum_mfp' in /usr/lib64/sane’
[20:26:40.390722] [dll] load: trying to load /usr/lib64/sane/libsane-pantum_mfp.so.1' [20:26:40.390740] [dll] load: dlopen()ing /usr/lib64/sane/libsane-pantum_mfp.so.1’
[20:26:40.390849] [dll] init: initializing backend pantum_mfp' [20:26:40.390883] [sanei_debug] Setting debug level of sanei_usb to 255. [20:26:40.390896] [sanei_usb] sanei_usb_init: initializing libusb-1.0 [20:26:40.394092] [sanei_usb] sanei_usb_scan_devices: marking existing devices [20:26:40.394106] [sanei_usb] libusb_scan_devices: Looking for libusb-1.0 devices libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/004/001, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394124] [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0003 at 004:001: cannot open: Access denied (insufficient permissions) libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/003/003, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394135] [sanei_usb] libusb_scan_devices: skipping device 0x8087/0x0032 at 003:003: cannot open: Access denied (insufficient permissions) libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/003/002, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394149] [sanei_usb] libusb_scan_devices: skipping device 0x046d/0xc542 at 003:002: cannot open: Access denied (insufficient permissions) libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/003/001, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394159] [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0002 at 003:001: cannot open: Access denied (insufficient permissions) libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/001, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394168] [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0003 at 002:001: cannot open: Access denied (insufficient permissions) libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/004, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394178] [sanei_usb] libusb_scan_devices: skipping device 0x1462/0x1564 at 001:004: cannot open: Access denied (insufficient permissions) libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/003, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394187] [sanei_usb] libusb_scan_devices: skipping device 0x5986/0x211c at 001:003: cannot open: Access denied (insufficient permissions) [20:26:40.394229] [sanei_usb] libusb_scan_devices: device 0x232b/0x7e20, interface 0 doesn't look like a scanner (0/7) [20:26:40.394236] [sanei_usb] libusb_scan_devices: found libusb-1.0 device (0x232b/0x7e20) interface 1 at libusb:001:002 [20:26:40.394241] [sanei_usb] store_device: add dn 0 with libusb:001:002 libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/001, errno=13 libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes [20:26:40.394250] [sanei_usb] libusb_scan_devices: skipping device 0x1d6b/0x0002 at 001:001: cannot open: Access denied (insufficient permissions) [20:26:40.394256] [sanei_usb] sanei_usb_scan_devices: device 00 is libusb:001:002 [20:26:40.394261] [sanei_usb] sanei_usb_scan_devices: found 1 devices [20:26:40.394266] [dll] init: backend pantum_mfp’ is version 1.0.13
[20:26:40.394297] [sanei_usb] sanei_usb_find_devices: vendor=0x232b, product=0x0e20
[20:26:40.394304] [sanei_usb] sanei_usb_find_devices: vendor=0x232b, product=0x7e20
[20:26:40.394318] [sanei_usb] sanei_usb_open: trying to open device `libusb:001:002’
[20:26:40.394344] [sanei_usb] sanei_usb_open: configuration nr: 0
[20:26:40.394349] [sanei_usb] sanei_usb_open: interface nr: 0
[20:26:40.394353] [sanei_usb] sanei_usb_open: alt_setting nr: 0

The issue was the libjpeg version and a USB conflict resulting from two config files “competing” for the same USB device connection. The scanner driver has a dependency i.e. libjpeg.so.8, of which a precompiled version can be found on github. Deleting the device entry in one of the config files removed the USB conflict and XSane worked.

Running the following command to create a logfile was key to be able to identify the issues:

SANE_DEBUG_DLL=255 SANE_DEBUG_SANEI_USB=255 SANE_DEBUG_GENESYS=255 xsane &> V1_debug_log

1 Like