LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-13-2007, 04:46 AM   #16
zeekoe
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0

For the project I'm doing now, yesterday I came across this; I had to add

# Altera USB-Blaster
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666", SYMLINK+="usbblaster"


to /etc/udev/rules.d/40-permissions.rules

I think something like this could solve your problem too. But I don't know enough of it to write down the complete solution; perhaps this rings a bell for someone else to ring further?
 
Old 11-13-2007, 04:53 AM   #17
yvesvanbelle
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: Debian, Ubuntu, Mandriva
Posts: 67

Rep: Reputation: 15
Hello camiguin,

What you are doing with chmod a+rwx is give everyone full access to the USB port. Verify in the directory /etc/udev/rules.d if the file 40-permissions.rules start like this, if not change it:

# This file establishes permissions and ownership of devices according
# to Ubuntu policy. See udev(7) for syntax.
#
# The names of the devices must not be set here, but in 20-names.rules;
# user-friendly symlinks (which need no permissions or ownership) should
# be set in 60-symlinks.rules.

# Block devices
SUBSYSTEM!="block", GOTO="block_end"
ATTRS{removable}!="1", GROUP="disk"
ATTRS{removable}=="1", GROUP="floppy"
SUBSYSTEMS=="usb", GROUP="plugdev"
SUBSYSTEMS=="ieee1394", GROUP="plugdev"
SUBSYSTEMS=="mmc", GROUP="plugdev"
SUBSYSTEMS=="pcmcia", GROUP="plugdev"
LABEL="block_end"

Also verify if you are member of the group plugdev, you can verify this by executing the command groups from the command line. If you are not a member, add your user account to this group (System -> Administration -> Users and Groups)

Best regards,

Yves

Last edited by yvesvanbelle; 11-13-2007 at 04:59 AM.
 
Old 11-14-2007, 12:16 PM   #18
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks, Zeekoe, it seems that Yves' answer below goes in the same direction, but likewise I don't know enough to be able to apply your formula to my case.
Yves, my rules.d file looks exactly like yours. I don't know what do you mean by "executing the command groups from the command line", can you clarify? Nevertheless, it seems that in System - User - Administration, my account (fdp, UID 1000) is attached to the plugdev group (GID 46)
Warm regards
Camiguin
 
Old 11-14-2007, 12:31 PM   #19
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Sorry to come back. I committed a minor mistake: where I said file "rules.d" I obviously meant file "40-permissions.rules". In this same file I found further down this:

# Printers and Parallel devices
SUBSYSTEM=="printer", GROUP="lp"
SUBSYSTEM=="ppdev", GROUP="lp"
SUBSYSTEM=="usb", KERNEL=="lp[0-9]*", GROUP="lp"
KERNEL=="pt[0-9]*", GROUP="tape"
KERNEL=="pht[0-9]*", GROUP="tape"

Maybe this adds elements for you to understand the problem.
Many thanks.
Camiguin
 
Old 11-14-2007, 01:27 PM   #20
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Even if I don't quite follow everything, your suggestions have opened a line of investigation. I found that usb's permissions in /dev are -rw-rw--, which corresponds to 0660. Now, in the 40-permissions.rules file, usb devices were given 0664, which should be -rw-rw-r. I changed it to 0666, expecting on bootup to find the usb devices in /dev to appear as -rw-rw-rw. Well, no way, they are stuck in -rw-rw--. What do you make of this?
Regards
Camiguin
 
Old 11-15-2007, 03:50 AM   #21
yvesvanbelle
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: Debian, Ubuntu, Mandriva
Posts: 67

Rep: Reputation: 15
It is very simple. When you boot your linux box, udev will create the found devices in the directory /dev. When udev finds your usb it will create /dev/usb with the permissions that are configured in the file /etc/udev/rules.d/40-permissions.rules. You can now change the permissions, as you did, but at the next boot the /dev/usb is newly created by udev with again the permissions set in 40-permissions.rules.

As you can see in the previous replies to have access to the usb you need to be member of the groups plugdev and lp.

So add these two groups to your user account and, after logout, login, you should be able to print.

Best regards,

Yves
 
Old 11-15-2007, 06:07 AM   #22
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Yves, but I have set the usb mode in 40-permissions.rules at 0666, and nevertheless on bootup the /dev/usb files appear again as -rw-rw--. From your explanation I understand it should be -rw-rw-rw. It seems the /dev/usb files obey a different master!
Also, I have made sure that I am a member of both plugdev and lp. Still, it does not print.
Regards
Camiguin
 
Old 11-16-2007, 03:40 AM   #23
yvesvanbelle
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: Debian, Ubuntu, Mandriva
Posts: 67

Rep: Reputation: 15
Hello Camiguin,

Can you give me the output of the command groups, i think you are not member of all the groups that are needed to print.

Best regards,
Yves
 
Old 11-16-2007, 04:17 AM   #24
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Here it is:
fdp@fdp-ordenata:~$ groups
adm lp mail dialout fax cdrom floppy sudo audio dip operator video plugdev lpadmin scanner admin saned lastfm fdp

As you see, I (fpd) appear to be member of both lp and plugdev, among others.
Camiguin
 
Old 11-19-2007, 09:10 AM   #25
yvesvanbelle
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: Debian, Ubuntu, Mandriva
Posts: 67

Rep: Reputation: 15
Hello Camiguin,

I don't know it anymore, you should be able to print. Everything looks fine, apparently there went something wrong with your update. If your /home directory is on a separate partition i would recommend to reinstall your system.

Best regards

Yves
 
Old 11-19-2007, 03:23 PM   #26
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you, Yves, for all your support. Even if the problem has not been solved, I have learnt a lot, and, who knows, maybe one day I will find the trick. I hate the idea of re-installing the system all over, because I have made so many things to it all this time. If at least there was an option to just correct errors, rather than full install, as it is often the case in Windows, I might try... Anyway, thank you very much again.
Warmest regards
Camiguin
 
Old 01-11-2008, 01:26 PM   #27
zeekoe
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Fixed.

Yay, fixed it! Today I tried just removing the printer from the gnome printer driver thingy and following this howto:
http://ubuntuforums.org/showthread.php?t=105703
and it works again
 
Old 01-14-2008, 04:13 AM   #28
yvesvanbelle
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: Debian, Ubuntu, Mandriva
Posts: 67

Rep: Reputation: 15
Hello camiguin,

Try to follow the explanation in the link below, it is great and well done:

http://ubuntuforums.org/showthread.php?t=105703

Best regards

Yves
 
Old 01-15-2008, 02:35 AM   #29
camiguin
LQ Newbie
 
Registered: Jul 2007
Location: Pontevedra, Spain
Distribution: kubuntu feisty
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you, Yves, for still remembering. In the end, given the lack of results previously, I re-installed Linux from scratch. It was painful, but it worked in solving the Brother printer problem. It also succeeded in fixing a number of minor problems, as well, including re-sizing of the partitions.
Again, thank you and kind regards.
Camiguin
 
Old 02-04-2008, 07:54 AM   #30
mikegr
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Hello,

I had the same problem with a Brother HL2030 after upgrade from Feisty to Gutsy. Didn't found any reported errors in log files. I did as poet_imp suggested. I removed printer, removed and purged packages and installed latest packages from Broter. Now it works again. Thanks.

Mike
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 06:13 AM
Brother DCP-110C Printer not working on Ubuntu Feisty Cheater Linux - Hardware 20 08-22-2007 05:08 AM
New brother DCP 110C printer not working CUPS babil Linux - Hardware 8 07-03-2005 07:24 AM
Brother laser printer not working with fc2 tzonga1 Linux - Hardware 0 12-12-2004 08:20 PM
Brother HL-1030 laser printer not working, RH8 to RH9 upgrade webhamster Linux - Hardware 1 04-16-2003 11:23 AM

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

All times are GMT -5. The time now is 04:40 PM.

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