[gelöst] Debian 9 - Scanner über Netzwerk - Einstellungen - Scanner funktioniert über Netzwerk

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

[gelöst] Debian 9 - Scanner über Netzwerk - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 15.12.2020 15:28:34

Das konnte ich bisher nicht lösen:

viewtopic.php?f=30&t=176958

Hallo, hier meine Einstellungen bei Debian 9, da funktioniert der Netzwerkscanner ohne Probleme.

Hier werde ich Einstellungen posten die ich evtl. zur Problemlösung verwenden kann.

Code: Alles auswählen

 cat /etc/systemd/system/saned.socket
cat: /etc/systemd/system/saned.socket: Datei oder Verzeichnis nicht gefunden

Code: Alles auswählen

root@debian:~# ls -l /dev/sg3
ls: Zugriff auf '/dev/sg3' nicht möglich: Datei oder Verzeichnis nicht gefunden
root@debian:~# 
Zuletzt geändert von AxelMD am 25.12.2020 11:08:28, insgesamt 7-mal geändert.

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: Debian 9 - Netzwerkscanner - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 16.12.2020 08:20:34

16. Dez. 2020

Gestern war wohl etwas falsch.

Code: Alles auswählen

su -
Passwort: 
root@debian:~# scanimage -L
device `snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner
root@debian:~# ls -l /dev/sg3
crw-rw----+ 1 root root 21, 3 Dez 16 07:15 /dev/sg3
root@debian:~# 

su axel -c "scanimage -L"
Passwort: 
device `snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner

Mit Debian 9 liegt bei " su axel -c "scanimage -L" " kein Problem vor.
Der Scanner wird mit dem Befehl erkannt.
Erklärung su: su erlaubt, Befehle als anderer User auszuführen.

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [] Debian 9 - Netzwerkscanner - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 20.12.2020 17:57:56

scsi-Scanner

die Konfiguration funktioniert mit Debian 9

Code: Alles auswählen

cat /etc/sane.d/snapscan.conf 
#------------------------------ General -----------------------------------

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/your-firmwarefile.bin

# If not automatically found you may manually specify a device name.

# For USB scanners also specify bus=usb, e.g.
# /dev/usb/scanner0 bus=usb

# For SCSI scanners specify the generic device, e.g. /dev/sg0 on Linux.
# /dev/sg0

#---------------------------------------------------------------------------
# No changes should be necessary below this line
#---------------------------------------------------------------------------

#-------------------------- SCSI scanners ----------------------------------
# These SCSI devices will be probed automatically
scsi AGFA * Scanner
scsi COLOR * Scanner
scsi Color * Scanner
scsi ACERPERI * Scanner

#--------------------------- USB scanners -----------------------------------
# These USB devices will be probed automatically
# (This will currently work only on Linux)

# Benq/Acer/Vuego 310U
usb 0x04a5 0x1a20
usb 0x04a5 0x1a26

# Benq/Acer/Vuego 320U
usb 0x04a5 0x2022

# Benq/Acer/Vuego 620U / 620UT
usb 0x04a5 0x1a2a
usb 0x04a5 0x2040

# Benq/Acer/Vuego 640U
usb 0x04a5 0x2060

# Benq/Acer/Vuego 640BU
usb 0x04a5 0x207e

# Benq/Acer/Vuego 640BT
usb 0x04a5 0x20be

# Benq/Acer/Vuego 1240U
usb 0x04a5 0x20c0

# Benq/Acer/Vuego 3300 / 4300
usb 0x04a5 0x20b0

# Benq/Acer/Vuego 4300
usb 0x04a5 0x20de

# Benq 5000E / 5000U
usb 0x04a5 0x20f8

# Benq 5000
usb 0x04a5 0x20fc

# Benq/Acer 5300
usb 0x04a5 0x20fe

# Benq 5250C
usb 0x04a5 0x2137

# Agfa 1236U
usb 0x06bd 0x0002

# Agfa 1212U
usb 0x06bd 0x0001
usb 0x06bd 0x2061

# Agfa Snapscan e10
usb 0x06bd 0x2093

# Agfa Snapscan e20
usb 0x06bd 0x2091

# Agfa Snapscan e25
usb 0x06bd 0x2095

# Agfa Snapscan e26
usb 0x06bd 0x2097

# Agfa Snapscan e40
usb 0x06bd 0x208d

# Agfa Snapscan e42
usb 0x06bd 0x20ff

# Agfa Snapscan e50
usb 0x06bd 0x208f

# Agfa Snapscan e52
usb 0x06bd 0x20fd

# Epson Perfection 660
usb 0x04b8 0x0114

# Epson Perfection 1670
usb 0x04b8 0x011f

# Epson Perfection 2480
usb 0x04b8 0x0121

# Epson Perfection 3490
usb 0x04b8 0x0122

# Epson Stylus CX-1500
usb 0x04b8 0x080c
auch folgendes funktioniert so:

Code: Alles auswählen

ls -la | grep sg
insgesamt 4
drwxr-xr-x   2 root root         100 Dez 20 16:54 bsg
crw-r--r--   1 root root      1,  11 Dez 20 16:54 kmsg
crw-rw----   1 root disk     21,   0 Dez 20 16:54 sg0
crw-rw----   1 root cdrom    21,   1 Dez 20 16:54 sg1
crw-rw----+  1 root root     21,   3 Dez 20 16:54 sg3
auch das

Code: Alles auswählen

ls -l /dev/sg*
crw-rw----  1 root disk  21, 0 Dez 20 16:54 /dev/sg0
crw-rw----  1 root cdrom 21, 1 Dez 20 16:54 /dev/sg1
crw-rw----+ 1 root root  21, 3 Dez 20 16:54 /dev/sg3
auch das, groups

Code: Alles auswählen

 groups
axel cdrom floppy audio dip video plugdev netdev lpadmin scanner

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [] Debian 9 - Netzwerkscanner - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 20.12.2020 19:07:59

udev Regeln

Code: Alles auswählen

/lib/udev/rules.d# ls -la
insgesamt 360
drwxr-xr-x 2 root root   4096 Okt 24 14:41 .
drwxr-xr-x 4 root root   4096 Okt 24 14:31 ..
-rw-r--r-- 1 root root  40499 Jan 23  2017 40-usb_modeswitch.rules
-rw-r--r-- 1 root root    210 Jul 21  2019 50-firmware.rules
-rw-r--r-- 1 root root   3310 Jul 21  2019 50-udev-default.rules
-rw-r--r-- 1 root root   6919 Mär 17  2017 55-dm.rules
-rw-r--r-- 1 root root    921 Mai  4  2017 56-hpmud.rules
-rw-r--r-- 1 root root   2446 Mär 17  2017 56-lvm.rules
-rw-r--r-- 1 root root    612 Jul 21  2019 60-block.rules
-rw-r--r-- 1 root root    917 Jul 21  2019 60-cdrom_id.rules
-rw-r--r-- 1 root root    153 Jul 21  2019 60-drm.rules
-rw-r--r-- 1 root root    738 Jul 21  2019 60-evdev.rules
-rw-r--r-- 1 root root    368 Jul 26  2018 60-fuse.rules
-rw-r--r-- 1 root root   6104 Jan 11  2017 60-libgphoto2-6.rules
-rw-r--r-- 1 root root 100219 Okt  2 14:05 60-libsane.rules
-rw-r--r-- 1 root root    616 Jul 21  2019 60-persistent-alsa.rules
-rw-r--r-- 1 root root   2626 Jul 21  2019 60-persistent-input.rules
-rw-r--r-- 1 root root   1495 Mär 17  2017 60-persistent-storage-dm.rules
-rw-r--r-- 1 root root   5940 Jul 21  2019 60-persistent-storage.rules
-rw-r--r-- 1 root root   1509 Jul 21  2019 60-persistent-storage-tape.rules
-rw-r--r-- 1 root root    769 Jul 21  2019 60-persistent-v4l.rules
-rw-r--r-- 1 root root   1190 Jul 21  2019 60-serial.rules
-rw-r--r-- 1 root root   2130 Jul 28  2016 63-md-raid-arrays.rules
-rw-r--r-- 1 root root    387 Sep 22  2016 64-btrfs-dm.rules
-rw-r--r-- 1 root root    418 Jul 21  2019 64-btrfs.rules
-rw-r--r-- 1 root root   1366 Jul 28  2016 64-md-raid-assembly.rules
-rw-r--r-- 1 root root   5104 Sep  6  2016 69-cd-sensors.rules
-rw-r--r-- 1 root root   4250 Mär 17  2017 69-lvm-metad.rules
-rw-r--r-- 1 root root    955 Jul 21  2019 70-debian-uaccess.rules
-rw-r--r-- 1 root root    734 Jul 21  2019 70-mouse.rules
-rw-r--r-- 1 root root    942 Jul 21  2019 70-power-switch.rules
-rw-r--r-- 1 root root    473 Jul 21  2019 70-touchpad.rules
-rw-r--r-- 1 root root   2695 Jul 21  2019 70-uaccess.rules
-rw-r--r-- 1 root root   2710 Jul 21  2019 71-seat.rules
-rw-r--r-- 1 root root    596 Jul 21  2019 73-seat-late.rules
-rw-r--r-- 1 root root    961 Jul 21  2019 73-special-net-names.rules
-rw-r--r-- 1 root root    692 Jul 21  2019 73-usb-net-by-mac.rules
-rw-r--r-- 1 root root    452 Jul 21  2019 75-net-description.rules
-rw-r--r-- 1 root root    174 Jul 21  2019 75-probe_mtd.rules
-rw-r--r-- 1 root root   4505 Jul 21  2019 78-sound-card.rules
-rw-r--r-- 1 root root   1375 Jul 21  2019 80-debian-compat.rules
-rw-r--r-- 1 root root    618 Jul 21  2019 80-drivers.rules
-rw-r--r-- 1 root root    190 Apr 20  2016 80-ifupdown.rules
-rw-r--r-- 1 root root    292 Jul 21  2019 80-net-setup-link.rules
-rw-r--r-- 1 root root     82 Okt  1  2019 85-hdparm.rules
-rw-r--r-- 1 root root   1872 Okt  8  2016 85-hplj10xx.rules
-rw-r--r-- 1 root root    204 Mär  7  2018 85-hwclock.rules
-rw-r--r-- 1 root root    265 Mai 19  2016 90-console-setup.rules
-rw-r--r-- 1 root root    847 Sep  6  2016 95-cd-devices.rules
-rw-r--r-- 1 root root   4269 Jul 21  2019 99-systemd.rules

60-libsane.rules

https://pastebin.com/YZKspMM9

Auszug, aber warum ist mein Scanner nicht dabei? Antwort: Weil im scsi Abschnitt

Code: Alles auswählen


# AGFA SnapScan 1212U
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0001", ENV{libsane_matched}="yes"
# AGFA SnapScan 1236u
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0002", ENV{libsane_matched}="yes"
# Agfa Snapscan Touch
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0100", ENV{libsane_matched}="yes"
# AGFA SnapScan 1212U_2
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2061", ENV{libsane_matched}="yes"
# AGFA SnapScan e40
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="208d", ENV{libsane_matched}="yes"
# AGFA SnapScan e50
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="208f", ENV{libsane_matched}="yes"
# AGFA SnapScan e20
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2091", ENV{libsane_matched}="yes"
# AGFA SnapScan e10
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2093", ENV{libsane_matched}="yes"
# AGFA SnapScan e25
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2095", ENV{libsane_matched}="yes"
# AGFA SnapScan e26
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2097", ENV{libsane_matched}="yes"
# AGFA SnapScan e52
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="20fd", ENV{libsane_matched}="yes"
# AGFA SnapScan e42
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="20ff", ENV{libsane_matched}="yes"


Auszug scsi rules

Code: Alles auswählen

ABEL="libsane_usb_rules_end"
 
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
GOTO="libsane_scsi_rules_end"
 
LABEL="libsane_scsi_rules_begin"
# Generic: SCSI device type 6 indicates a scanner
KERNEL=="sg[0-9]*", ATTRS{type}=="6", ENV{libsane_matched}="yes"
# Some scanners advertise themselves as SCSI device type 3
# Wildcard: for some Epson SCSI scanners
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="SCANNER*", ENV{libsane_matched}="yes"
# Epson Expression 800 | Epson Expression 800
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Expression800", ENV{libsane_matched}="yes"
# Epson Perfection 2450 | Epson GT-9700F | Epson Perfection 2450 PHOTO
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9700", ENV{libsane_matched}="yes"
# Epson Perfection 3200 | Epson GT-9800F | Epson Perfection 3200 PHOTO
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9800", ENV{libsane_matched}="yes"
# Epson GT-X900 | Epson Perfection V700 Photo | Epson Perfection V750 Photo
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-X900", ENV{libsane_matched}="yes"
# Epson Perfection 636S | Epson Perfection 1200S | Epson Perfection 1200S
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection1200", ENV{libsane_matched}="yes"
# Epson Perfection 636 | Epson Perfection 636S
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection636", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 4p
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1130A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet IIc
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1750A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet IIp
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1790A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet IIcx
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C2500A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 4c
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C2520A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 5p
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C5110A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 6200C
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C6270A", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 6300C
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C7670A", ENV{libsane_matched}="yes"
LABEL="libsane_scsi_rules_end"
 
ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
 
LABEL="libsane_rules_end"

ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}" <---- viewtopic.php?f=30&t=176958&start=105#p1258665 Vorschlag Developer, für Debian 10
Zuletzt geändert von AxelMD am 20.12.2020 20:03:11, insgesamt 5-mal geändert.

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [] Debian 9 - Netzwerkscanner - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 20.12.2020 19:31:52

99-systemd-rule

Code: Alles auswählen

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

ACTION=="remove", GOTO="systemd_end"

SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*|ttysclp*|sclp_line*|3270/tty[0-9]*", TAG+="systemd"
KERNEL=="vport*", TAG+="systemd"

SUBSYSTEM=="block", TAG+="systemd"
SUBSYSTEM=="block", ACTION=="add", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"

# Ignore encrypted devices with no identified superblock on it, since
# we are probably still calling mke2fs or mkswap on it.
SUBSYSTEM=="block", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"

# add symlink to GPT root disk
SUBSYSTEM=="block", ENV{ID_PART_GPT_AUTO_ROOT}=="1", ENV{ID_FS_TYPE}!="crypto_LUKS", SYMLINK+="gpt-auto-root"
SUBSYSTEM=="block", ENV{ID_PART_GPT_AUTO_ROOT}=="1", ENV{ID_FS_TYPE}=="crypto_LUKS", SYMLINK+="gpt-auto-root-luks"
SUBSYSTEM=="block", ENV{DM_UUID}=="CRYPT-*", ENV{DM_NAME}=="root", SYMLINK+="gpt-auto-root"

# Ignore raid devices that are not yet assembled and started
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", KERNEL=="md*", TEST!="md/array_state", ENV{SYSTEMD_READY}="0"
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", KERNEL=="md*", ATTR{md/array_state}=="|clear|inactive", ENV{SYSTEMD_READY}="0"

# Ignore loop devices that don't have any file attached
SUBSYSTEM=="block", KERNEL=="loop[0-9]*", ENV{DEVTYPE}=="disk", TEST!="loop/backing_file", ENV{SYSTEMD_READY}="0"

# Ignore nbd devices until the PID file exists (which signals a connected device)
SUBSYSTEM=="block", KERNEL=="nbd*", ENV{DEVTYPE}=="disk", TEST!="pid", ENV{SYSTEMD_READY}="0"

# We need a hardware independent way to identify network devices. We
# use the /sys/subsystem/ path for this. Kernel "bus" and "class" names
# should be treated as one namespace, like udev handles it. This is mostly
# just an identification string for systemd, so whether the path actually is
# accessible or not does not matter as long as it is unique and in the
# filesystem namespace.
#
# http://cgit.freedesktop.org/systemd/systemd/tree/src/libudev/libudev-enumerate.c#n955

SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", ENV{SYSTEMD_ALIAS}+="/sys/subsystem/net/devices/$name"
SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}+="/sys/subsystem/bluetooth/devices/%k"

SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}+="bluetooth.target"
ENV{ID_SMARTCARD_READER}=="?*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="smartcard.target"
SUBSYSTEM=="sound", KERNEL=="card*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sound.target"

SUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target"
SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target"

# Apply sysctl variables to network devices (and only to those) as they appear.
ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", RUN+="/lib/systemd/systemd-sysctl --prefix=/net/ipv4/conf/$name --prefix=/net/ipv4/neigh/$name --prefix=/net/ipv6/conf/$name --prefix=/net/ipv6/neigh/$name"

# Pull in backlight save/restore for all backlight devices and
# keyboard backlights
SUBSYSTEM=="backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@backlight:$name.service"
SUBSYSTEM=="leds", KERNEL=="*kbd_backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@leds:$name.service"

# Pull in rfkill save/restore for all rfkill devices
SUBSYSTEM=="rfkill", ENV{SYSTEMD_RFKILL}="1", IMPORT{builtin}="path_id"
SUBSYSTEM=="misc", KERNEL=="rfkill", TAG+="systemd", ENV{SYSTEMD_WANTS}+="systemd-rfkill.socket"

# Asynchronously mount file systems implemented by these modules as soon as they are loaded.
SUBSYSTEM=="module", KERNEL=="fuse", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-fs-fuse-connections.mount"
SUBSYSTEM=="module", KERNEL=="configfs", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-kernel-config.mount"

LABEL="systemd_end"

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [] Debian 9 - Netzwerkscanner - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 21.12.2020 16:16:18

Code: Alles auswählen

root@debian:~# udevadm info --query=all --attribute-walk --name=/dev/sg3

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1e.0/0000:18:07.0/host0/target0:0:0/0:0:0:0/scsi_generic/sg3':
    KERNEL=="sg3"
    SUBSYSTEM=="scsi_generic"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:18:07.0/host0/target0:0:0/0:0:0:0':
    KERNELS=="0:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""
    ATTRS{blacklist}==""
    ATTRS{device_blocked}=="0"
    ATTRS{device_busy}=="0"
    ATTRS{dh_state}=="detached"
    ATTRS{eh_timeout}=="10"
    ATTRS{evt_capacity_change_reported}=="0"
    ATTRS{evt_inquiry_change_reported}=="0"
    ATTRS{evt_lun_change_reported}=="0"
    ATTRS{evt_media_change}=="0"
    ATTRS{evt_mode_parameter_change_reported}=="0"
    ATTRS{evt_soft_threshold_reached}=="0"
    ATTRS{iocounterbits}=="32"
    ATTRS{iodone_cnt}=="0x15"
    ATTRS{ioerr_cnt}=="0x0"
    ATTRS{iorequest_cnt}=="0x15"
    ATTRS{model}=="SNAPSCAN 310    "
    ATTRS{queue_depth}=="2"
    ATTRS{queue_type}=="none"
    ATTRS{rev}=="2.00"
    ATTRS{scsi_level}=="3"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{type}=="6"
    ATTRS{vendor}=="AGFA    "

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:18:07.0/host0/target0:0:0':
    KERNELS=="target0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:18:07.0/host0':
    KERNELS=="host0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:18:07.0':
    KERNELS=="0000:18:07.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="aic7xxx"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x010000"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x5078"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="21"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="3"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x03"
    ATTRS{subsystem_device}=="0x7850"
    ATTRS{subsystem_vendor}=="0x9004"
    ATTRS{vendor}=="0x9004"

  looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x060401"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{d3cold_allowed}=="0"
    ATTRS{device}=="0x244e"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="0"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="3"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0xf2"
    ATTRS{secondary_bus_number}=="24"
    ATTRS{subordinate_bus_number}=="24"
    ATTRS{subsystem_device}=="0x10b6"
    ATTRS{subsystem_vendor}=="0x1734"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

AxelMD
Beiträge: 1378
Registriert: 15.03.2009 08:02:11

Re: [gelöst] Debian 9 - Scanner über Netzwerk - Einstellungen - Scanner funktioniert über Netzwerk

Beitrag von AxelMD » 25.12.2020 11:10:27

Stand: 25. Dezember 2020
Grundsätzlich funktioniert der Scanner über Netzwerk auch mit Debian 10.

Antworten