Mailinglist Archive: opensuse-programming (52 mails)
| < Previous | Next > |
Re: [suse-programming-e] USB device access?
- From: Roger Oberholtzer <roger@xxxxxx>
- Date: Thu, 06 Apr 2006 20:56:24 +0200
- Message-id: <1144349784.10462.10.camel@xxxxxxxxxxxxx>
On Thu, 2006-04-06 at 19:28 +0200, Goran wrote:
> On Thursday 06 April 2006 18.31, Roger Oberholtzer wrote:
> > On Thursday 06 April 2006 18:24, Goran wrote:
>
> Hi Roger, thanks for quick reply.
>
> > I would think that udev would be the way. You would beed a rule that would
> > id the device and set the permissions accordingly.
>
> > > How do I change my SuSE 9.3 setup to allow a user or a group to talk with
> > > this device?
> > >
> > > Thanks,
> > > Göran
> >
> > --
> > Roger Oberholtzer
> > OPQ Systems AB
>
> Yes, that probably pointed me in the right direction. But I probably don't
> understand it...
>
> In /var/log/messages I get this line when I insert the device:
> Apr 6 19:12:31 ganymede kernel: hiddev96: USB HID v1.00 Device [Velleman USB
> K8055] on usb-0000:00:1d.2-1
>
> I tried to add:
> KERNEL="hiddev96", NAME="%k", GROUP="uucp", MODE="660"
>
> at the end of /etc/udev/rules.d/50-udev.rules without any success.
>
> Is this the right way to do it?
First, I would make a new file in the rules.d directory instead of
changing a supplied one. Something like 99-mystuff.rules. After editing
this file, you must type (as root) 'rchal restart' for it to be used.
Saves having to reboot.
I think suse 9.3 had the lshal command. That lists all the devices and
the various names they may have. These can be used in the rules. Also,
there is a hidden directory in /dev called .usbdev, which also contains
device names.
> Do I need to give any command to rebuild any database after modifying this
> file?
rchal restart
(I hope I got this right. There are number of coexisting systems that I have been known to mix up.)
--
Roger
> On Thursday 06 April 2006 18.31, Roger Oberholtzer wrote:
> > On Thursday 06 April 2006 18:24, Goran wrote:
>
> Hi Roger, thanks for quick reply.
>
> > I would think that udev would be the way. You would beed a rule that would
> > id the device and set the permissions accordingly.
>
> > > How do I change my SuSE 9.3 setup to allow a user or a group to talk with
> > > this device?
> > >
> > > Thanks,
> > > Göran
> >
> > --
> > Roger Oberholtzer
> > OPQ Systems AB
>
> Yes, that probably pointed me in the right direction. But I probably don't
> understand it...
>
> In /var/log/messages I get this line when I insert the device:
> Apr 6 19:12:31 ganymede kernel: hiddev96: USB HID v1.00 Device [Velleman USB
> K8055] on usb-0000:00:1d.2-1
>
> I tried to add:
> KERNEL="hiddev96", NAME="%k", GROUP="uucp", MODE="660"
>
> at the end of /etc/udev/rules.d/50-udev.rules without any success.
>
> Is this the right way to do it?
First, I would make a new file in the rules.d directory instead of
changing a supplied one. Something like 99-mystuff.rules. After editing
this file, you must type (as root) 'rchal restart' for it to be used.
Saves having to reboot.
I think suse 9.3 had the lshal command. That lists all the devices and
the various names they may have. These can be used in the rules. Also,
there is a hidden directory in /dev called .usbdev, which also contains
device names.
> Do I need to give any command to rebuild any database after modifying this
> file?
rchal restart
(I hope I got this right. There are number of coexisting systems that I have been known to mix up.)
--
Roger
| < Previous | Next > |