Mustek 1200UB scanner does not work except as root

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Mustek 1200UB scanner does not work except as root

Postby edwinv on Fri Jun 12, 2009 6:40 am

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
edwinv
Level 2
Level 2
 
Posts: 64
Joined: Thu Jun 11, 2009 1:34 am

Linux Mint is funded by ads and donations.
 

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

Postby Husse on Sun Jun 14, 2009 6:31 am

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby edwinv on Sun Jun 14, 2009 3:41 pm

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
edwinv
Level 2
Level 2
 
Posts: 64
Joined: Thu Jun 11, 2009 1:34 am

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

Postby Husse on Sun Jun 14, 2009 4:57 pm

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby fabio on Fri Jun 19, 2009 6:07 pm

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
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

Postby RedGhost on Thu Jun 25, 2009 10:34 am

Thanks Husse, this worked for my Brother MFC420CN with XSane.

I had the same problem in LM6. In that release I was told to edit the '40-basic-permissions.rules' and I couldn't find that file in LM7 which lead me here. Could you please or anyone please explain why it change to having to edit the '50-udev-default.rules' this time? I just want to learn more. To understand what I am doing and why it changed.

Thanks
RedGhost
Level 1
Level 1
 
Posts: 1
Joined: Thu Jun 11, 2009 2:36 pm

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

Postby Husse on Thu Jun 25, 2009 11:13 am

The change in files is because the way it's handled has changed
It's done with (in?) udev now
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 18 guests