Mustek 1200UB scanner does not work except as root

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
edwinv

Mustek 1200UB scanner does not work except as root

Post by edwinv »

Mustek 1200UB usb scanner is only recognizer and works if i start xsane as root - which of course i have to avoid

how can i make it work without running xsane as root
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Mustek 1200UB scanner does not work except as root

Post by Husse »

The same as for Brother scanners :)
As I have a Brother scanner I came across the solution in their install guide
1. Open "/lib/udev/rules.d/50-udev-default.rules" file.

Code: Select all

gksu gedit /lib/udev/rules.d/50-udev-default.rules
2. Edit "0664" to "0666" in "libusb device nodes" section.

Before the edit---------------------------------

# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ... , MODE="0664"


After the edit----------------------------------

# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ... , MODE="0666"
It's just one digit to change - 4 to 6 This changes the permissions for some USB devices
The next time you reboot it works
And please report back if for some reason you still have to be root - then we have to do soemthing more
I'll be away some time so it may take a while before I can look at it
edwinv

Re: Mustek 1200UB scanner does not work except as root

Post by edwinv »

Husse wrote:The same as for Brother scanners :)
As I have a Brother scanner I came across the solution in their install guide
1. Open "/lib/udev/rules.d/50-udev-default.rules" file.

Code: Select all

gksu gedit /lib/udev/rules.d/50-udev-default.rules
2. Edit "0664" to "0666" in "libusb device nodes" section.

Before the edit---------------------------------

# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ... , MODE="0664"


After the edit----------------------------------

# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ... , MODE="0666"
It's just one digit to change - 4 to 6 This changes the permissions for some USB devices
The next time you reboot it works
And please report back if for some reason you still have to be root - then we have to do soemthing more
I'll be away some time so it may take a while before I can look at it
thank you for your help but now xsane says there is no scanner -- if i change it back to 0664 than i have to go root again

also the scanner utility of mint doesn't find any scanner
(funny thing is i tried the scanner on a xubuntu jaunty system and there it is recognized and i can use it (without root)

this is wat lsub shows
edwinv@edwinv-desktop ~ $ lsusb
Bus 002 Device 002: ID 050d:0234 Belkin Components F5U234 USB 2.0 4-Port Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 14b2:3c25 Atheros Communications Inc
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 05d8:4002 Ultima Electronics Corp. Artec Ultima 2000 (GT6801 based)/Lifetec LT9385/ScanMagic 1200 UB Plus Scanner
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

so the scanner is detected but xsane nor scanner utility find the scanner
Husse

Re: Mustek 1200UB scanner does not work except as root

Post by Husse »

the scanner utility
is called flegita and not all that good
Search the forum for scanner root (maybe best done with Google in Mint from the start page) I remember that it is no new problem
I'm away on vacation a week now
fabio
Level 1
Level 1
Posts: 7
Joined: Sun Oct 21, 2007 5:01 pm

Re: Mustek 1200UB scanner does not work except as root

Post by fabio »

I had a similar problem in Gloria with an old SCSI scanner HP 4C (C2520A) with ADF, that could be accessed only as root (Xsane, flegita and gscan2pdf found it only if started with a respective sudo command from terminal).
Following some advice from Ubuntu forums, I tried creating the user group "scanner" and including my username ("fabio"), but the situation didn't improve.
After some other attempts, I found the solution at

http://www.howtoforge.com/sane_xsane_scanner

where right the HP 4c was used as example. So, this is the terminal log:
fabio@fpe-desktop ~ $ sudo sane-find-scanner
[sudo] password for fabio:
# 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.
found SCSI processor "HP C2520A 3503" at /dev/sg5
# Your SCSI scanner was detected. It may or may not be supported by SANE. Try
# scanimage -L and read the backend's manpage.
# 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.
fabio@fpe-desktop ~ $ cd ..
fabio@fpe-desktop /home $ cd ..
fabio@fpe-desktop / $ cd dev
fabio@fpe-desktop /dev $ ls -al sg5
crw-rw---- 1 root root 21, 5 2009-06-19 23:28 sg5
fabio@fpe-desktop /dev $
which showed that the group to which the scanner belonged was "root".
Then I selected Menu>>Control center>>Users and groups, went to the settings of the group "root" and
defined the users "root" and "fabio" as belonging to the group.
After that, I could finally access the scanner when logged in as "fabio".

Hope it helps. Cheers :)

Fabio
Husse

Re: Mustek 1200UB scanner does not work except as root

Post by Husse »

The change in files is because the way it's handled has changed
It's done with (in?) udev now
Locked

Return to “Hardware Support”