Oprávnění ke skeneru

crown

  • ****
  • 390
    • Zobrazit profil
Oprávnění ke skeneru
« kdy: 01. 11. 2023, 23:23:27 »
Bojuju se skenerem Mustek. Jedina aplikace, ktera je ochotna skenovat je hp-scan, ale jenom, kdyz bezi pod sudo.
To znamena, ze mam nekde spatne opravneni. Navedli byste me prosim spravnym smerem?

Dekuju

Kód: [Vybrat]
ilip@Malydell:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.22.10)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: No device selected/specified or that supports this functionality.
Kód: [Vybrat]
Filip@Malydell:~$ sudo hp-scan
warning: hp-scan should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.22.10)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: No destinations specified. Adding 'file' destination by default.
Using device gt68xx:libusb:001:006
Opening connection to device...
error: Inactive option: source
error: Unable to set option source to value Flatbed

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (217.000000mm, 299.000000mm)
  Width: 217.000000mm
  Height: 299.000000mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/filip/hpscan002.png'.

Warming up...
 

Scanning...
« Poslední změna: 02. 11. 2023, 09:34:13 od Petr Krčmář »


k3dAR

  • *****
  • 2 989
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:Opravneni ke scanneru
« Odpověď #1 kdy: 02. 11. 2023, 00:41:33 »
nestaci se pridat do skupiny "scanner" (a relogin nebo reboot) ?
Kód: [Vybrat]
sudo adduser crown scanner

crown

  • ****
  • 390
    • Zobrazit profil
Re:Oprávnění ke skeneru
« Odpověď #2 kdy: 04. 11. 2023, 12:26:55 »
Přidání uživatele do skupiny scanner pomohlo a program hp-scan už skenuje.

Nicméně ještě nejsem za vodou, Xsane ani scanimage nevidi zařízení jako běžný uživatel. Každopádně díky za nakopnutí a bádám dále.

Uživatel
Kód: [Vybrat]
sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x05e3/0x0626 at 002:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x03f0/0x1198 at 001:007: Access denied (insufficient permissions)
could not open USB device 0x03f0/0x042a at 001:006: Access denied (insufficient permissions)
could not open USB device 0x03f0/0x0324 at 001:004: Access denied (insufficient permissions)
could not open USB device 0x05e3/0x0610 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.


a se sudo
Kód: [Vybrat]
sudo sane-find-scanner
[sudo] heslo pro filip:         

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found possible USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x042a [HP LaserJet Professional M1132 MFP]) at libusb:001:006
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.


crown

  • ****
  • 390
    • Zobrazit profil
SOLVED Re:Oprávnění ke skeneru
« Odpověď #3 kdy: 04. 11. 2023, 12:34:04 »
Aha, tak jen restart, aby se nacetla nova udev pravidla. Díky

modnar

Re:SOLVED Re:Oprávnění ke skeneru
« Odpověď #4 kdy: 04. 11. 2023, 13:08:40 »
Aha, tak jen restart, aby se nacetla nova udev pravidla. Díky
Priste staci:
Kód: [Vybrat]
udevadm control --reload-rules && udevadm trigger