LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-20-2013, 12:25 PM   #46
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176

Thanks Allend
 
Old 01-20-2013, 12:32 PM   #47
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
DuskGlow:

Here's the section of Allend's post/thread's you can try that.
And try the other link as well that he posted and see if that helps.(post #45)

Just found a solution that worked for me after seeing this. https://wiki.archlinux.org/index.php...de_permissions
I created a custom udev rule in a file /etc/udev/rules.d/10-usbprinter.rules containing
Quote:
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0169", MODE:="0660", GROUP:="lp"
After rebooting, I now have printing and scanning working with my Brother DCP-110C.
To get the idVendor and idProduct values look at the output of 'lsusb'
It works whether usblp is blacklisted or not.

I'd call Brother like Allend advises.

Last edited by Ztcoracat; 01-20-2013 at 12:34 PM.
 
Old 01-21-2013, 03:50 AM   #48
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
@DuskGlow

Just an idea: I wonder if this could be related to your USB hardware? Are you using USB 2.0 or 3.0?

Here's one user who had a scanner issue arising from USB 3.0....

https://bugs.launchpad.net/ubuntu/+s...61/comments/43

FWIW, I have a DCP-7055 which uses the brother4 sane driver, openSUSE 12.2, sane 1.0.22, and a udev rule
Code:
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0248", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
Scanning works well.
 
1 members found this post helpful.
Old 01-21-2013, 09:12 AM   #49
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
@DuskGlow

Just an idea: I wonder if this could be related to your USB hardware? Are you using USB 2.0 or 3.0?

Here's one user who had a scanner issue arising from USB 3.0....

https://bugs.launchpad.net/ubuntu/+s...61/comments/43
ferrari, you're a genius. I haven't thought of that - I switched to a notebook with USB 3.0 and eSATA ports, and THAT may be the reason. My dmesg is still:
Code:
[ 1048.119556] usb 1-1.1: new full-speed USB device number 6 using ehci_hcd
[ 1048.215663] usb 1-1.1: New USB device found, idVendor=04f9, idProduct=01ea
[ 1048.215668] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=3
[ 1048.215670] usb 1-1.1: SerialNumber: 000M9N675233
[ 1048.217291] usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x01EA
But I think that may be the reason! Should I contact SANE or Brother first?
 
Old 01-21-2013, 06:25 PM   #50
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,383

Rep: Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762
Quote:
I remember scanner working flawlessly under Arch and Ubuntu some months ago, so it is possible, and I suspect some newer version of... sane? kernel? broke the compatibility.
Quote:
I switched to a notebook with USB 3.0 and eSATA ports, and THAT may be the reason.
If you had mentioned the hardware change earlier, it would have helped. I was labouring under the assumption that only software problems were involved.
 
Old 01-21-2013, 06:41 PM   #51
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
I was labouring under the assumption that only software problems were involved.
And I the same; among-est other general diagnostic troubleshooting skills/tasks. (a list I have that I go through all of the task's (run cmds) to help to confirm output and make either an educated guess or complete confirmation that something is either missing or non-funtional)
 
Old 01-21-2013, 06:49 PM   #52
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
This morning I've mailed sane-devel list. Maybe they have some ideas...
You successfully already completed that communication with them. No need to repeat it-

Quote:
Should I contact SANE or Brother first?
Brother

Have you determined that indeed it is/was the USB Hardware hindering things?

Last edited by Ztcoracat; 01-21-2013 at 06:52 PM.
 
Old 01-22-2013, 01:51 AM   #53
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
I'm really sorry for not having thought of this before - I wasn't expecting otherwise working USB 3.0 ports to be the cause.

I got absolutely no answer from SANE, and I'm currently waiting for Brother (this may take a couple of days).

I will have to borrow one of my flat-mates' notebooks and try liveDVD there. I can think of no other way to check if USB is the problem.
 
Old 01-22-2013, 02:41 AM   #54
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
I'm really sorry for not having thought of this before - I wasn't expecting otherwise working USB 3.0 ports to be the cause.
Let's not get ahead of ourselves. We don't know that this is the cause yet, until you can test with a USB 2.0 controller.

For reference, I get similar (expected) output to yours when my DCP-7055 is connected:

Code:
# dmesg|tail
[ 1246.087450] usb 2-1: new high-speed USB device number 3 using ehci_hcd
[ 1246.206916] usb 2-1: New USB device found, idVendor=04f9, idProduct=0248
[ 1246.206927] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=3
[ 1246.206933] usb 2-1: SerialNumber: E69893D1N337394
[ 1246.245917] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0248
[ 1246.245963] usbcore: registered new interface driver usblp
I have USB 2.0 and USB 1.0 ports using the ehci_hcd and uhci_hcd drivers respectively. (USB 3.0 is supported by the xhci_hcd kernel driver.) You can list your USB controller hardware with
Code:
# lspci -nnk |grep USB -A3
 
Old 01-22-2013, 03:16 AM   #55
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
This line surprises me
Code:
[ 1048.119556] usb 1-1.1: new full-speed USB device number 6 using ehci_hcd
because 'full speed' implies a USB 1.0 device connected to your host controller interface. Are you connected via a hub perhaps?

http://www.mjmwired.net/kernel/Docum...n/usb/ehci.txt

BTW:
USB 2.0 = high speed
USB 3.0 = super speed
 
Old 01-22-2013, 12:17 PM   #56
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by DuskGlow View Post
I'm really sorry for not having thought of this before - I wasn't expecting otherwise working USB 3.0 ports to be the cause.

I got absolutely no answer from SANE, and I'm currently waiting for Brother (this may take a couple of days).

I will have to borrow one of my flat-mates' notebooks and try liveDVD there. I can think of no other way to check if USB is the problem.
Hopefully Brother will answer you shortly so you'll know from there how to possibly move forward.

As far as Sane not answering; unfortunately since the new year a lot of folks have been laid off or lost their permanent positions.
 
Old 01-22-2013, 12:25 PM   #57
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
That's a good article Ferrari!

The article mentions that it involves more than a EHCI Controller and requires Linux-USB cor API's

Do you know what those requirements are?

And since 'full speed' implies a USB 1.0 could we rule out 3.0 USB with Dusk Glows output?

Last edited by Ztcoracat; 01-22-2013 at 12:28 PM.
 
Old 01-22-2013, 01:30 PM   #58
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
And since 'full speed' implies a USB 1.0 could we rule out 3.0 USB with Dusk Glows output?
This just reflects what the controller detects attached to it, not what it is capable of. For example, I have a USB keyboard dongle that gets reported like this

Code:
[ 2334.982071] usb 7-2: new full-speed USB device number 2 using uhci_hcd
[ 2335.154066] usb 7-2: New USB device found, idVendor=046d, idProduct=c52e
[ 2335.154070] usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2335.154073] usb 7-2: Product: USB Receiver
[ 2335.154075] usb 7-2: Manufacturer: Logitech
I was just surprised that the DCP-7030 USB interface appears as a 'full speed' type, rather than a 'high speed' type, since it has a USB 2.0 interface (as does my DCP-7055). That's why I wondered about how the printer is attached, or perhaps the cable is the issue. The other thing is that I'm not sure if a USB 3.0 host controller can cope with USB 1.0 peripheral devices or hubs, but as I say the printer interface should be detected as 'high speed'.

Without wanting to confuse the issue, and without knowing details about how the printer is attached, I note from here that

Quote:
But with USB 3.0, even though the plug and PC connections look the same at a casual glance, they're not as compatible as the older models. Instead of the earlier version’s four wires, the USB 3.0 cable has eight wires. One is power, one is for the ground, two are for USB 2.0 data, and the remaining four wires are for “SuperSpeed” data. If you take a closer look, you'll see that one edge of the plug is colored blue. The end that plugs into your USB 3.0 device — drive, scanner, printer, camera, whatever — is incompatible with a USB 2.0 device. So, while you can plug a USB 2.0 device with a USB 2.0 cable into a USB 3.0 port or a USB 3.0 device with a USB 3.0 cable into a USB 2.0 port, you can't use a USB 3.0 cable to connect a USB 2.0 device. Got that? The bottom line is you can't mindlessly switch USB cables the way you used to.

Last edited by ferrari; 01-22-2013 at 01:31 PM.
 
Old 01-22-2013, 01:39 PM   #59
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
you can't use a USB 3.0 cable to connect a USB 2.0 device
I see that only the 1.0 and 2.0 are interchangeable-

It is possible that the USB cable could be defective-

Quote:
I'm not sure if a USB 3.0 host controller can cope with USB 1.0 peripheral devices or hubs
Unfortunately, I don't know if it can or can't either-

Last edited by Ztcoracat; 01-22-2013 at 01:46 PM.
 
Old 01-22-2013, 06:27 PM   #60
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thank you for all your help!

I've checked it, and it's right. Scanner works perfectly with other laptops with USB 2.0 ports. I have only 3.0 and eSATA in mine, and don't use any hubs.

Code:
pawel@autumn:~$ lspci -nnk |grep USB -A3
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
	Subsystem: Dell Device [1028:04b0]
	Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
--
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
	Subsystem: Dell Device [1028:04b0]
	Kernel driver in use: ehci_hcd
00:1f.0 ISA bridge [0601]: Intel Corporation HM67 Express Chipset Family LPC Controller [8086:1c4b] (rev 05)
--
0b:00.0 USB controller [0c03]: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller [104c:8241] (rev 02)
	Subsystem: Dell Device [1028:04b0]
	Kernel driver in use: xhci_hcd
Code:
dmesg after plugging in:
[  298.621538] usb 2-2: USB disconnect, device number 2
[  307.641633] usb 2-2: new full-speed USB device number 3 using xhci_hcd
[  307.677268] usb 2-2: New USB device found, idVendor=04f9, idProduct=01ea
[  307.677273] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=3
[  307.677276] usb 2-2: SerialNumber: 000M9N675233
What's interesting it uses xhci_hcd and it still claims it's just a full-speed USB.

I've informed Brother, and will write a short letter to SANE-devel updating my status.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BROTHER DCP7030 does not work with UBUNTU 11.04 vadsca Linux - Newbie 10 09-02-2012 10:35 AM
[SOLVED] xsane networked scanner returns "invalid argument" wufo Linux - Hardware 2 04-22-2011 05:25 PM
[SOLVED] Failed to start scanner: Invalid argument HPc6380 theAdmiral Linux - Hardware 4 06-24-2010 11:37 PM
Invalid Argument for Scanner in Ubuntu ~zoey~ Linux - Newbie 5 03-10-2009 04:35 PM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration