Re: FreeBSD do dbus & hal work?

2008-10-15 Thread Jeremy Chadwick
On Wed, Oct 15, 2008 at 09:03:00AM +0200, Aniruddha wrote:
> On Tue, 2008-10-14 at 23:43 -0700, Jeremy Chadwick wrote:
> > > Thanks, I followed the faq to the letter and it show a dialog when I
> > > insert a USB stick. Unfortunately when I insert an sdcard still nothing
> > > happens.
> > 
> > Can anyone confirm that dbus and/or hald have anything to do with this?
> > (I thought those were specific to X...)
> > 
> > When attaching a USB device to a USB port, the kernel will notice the
> > device has been added and will do the proper enumeration.  For example,
> > when adding a USB hard disk or a USB pen drive, a umass device will be
> > found, then a daX device should be created (which is what you use to
> > access the disk; USB storage devices appear as SCSI disks).
> > 
> > But in the case of a USB device that's already attached to the bus, e.g.
> > one of those 7-in-1 card readers, I cannot see how adding a SD/MMC card
> > would cause the hard disk to suddenly show up.
> > 
> > You would need to run "camcontrol rescan 0", to cause the device to be
> > re-scanned for any media which was inserted.
> 
> Thanks for the quick and extensive answer. I'll check the exact behavior of  
> the 7-in-1 card reader somewhat more.

The card reader is already attached to the USB bus once the kernel
loads.  To find actual inserted/removed media, you will need to
do the camcontrol command I listed off.

Also: ALWAYS be sure to use "umount" to unmount the filesystems *BEFORE*
removing the media.  Not doing so will result in a kernel panic.
Consider yourself warned.

Supposedly this has been fixed in CURRENT/HEAD.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD do dbus & hal work?

2008-10-15 Thread Aniruddha
On Tue, 2008-10-14 at 23:43 -0700, Jeremy Chadwick wrote:
> > Thanks, I followed the faq to the letter and it show a dialog when I
> > insert a USB stick. Unfortunately when I insert an sdcard still nothing
> > happens.
> 
> Can anyone confirm that dbus and/or hald have anything to do with this?
> (I thought those were specific to X...)
> 
> When attaching a USB device to a USB port, the kernel will notice the
> device has been added and will do the proper enumeration.  For example,
> when adding a USB hard disk or a USB pen drive, a umass device will be
> found, then a daX device should be created (which is what you use to
> access the disk; USB storage devices appear as SCSI disks).
> 
> But in the case of a USB device that's already attached to the bus, e.g.
> one of those 7-in-1 card readers, I cannot see how adding a SD/MMC card
> would cause the hard disk to suddenly show up.
> 
> You would need to run "camcontrol rescan 0", to cause the device to be
> re-scanned for any media which was inserted.

Thanks for the quick and extensive answer. I'll check the exact behavior of  
the 7-in-1 card reader somewhat more.


-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD do dbus & hal work?

2008-10-14 Thread Jeremy Chadwick
On Wed, Oct 15, 2008 at 08:36:39AM +0200, Aniruddha wrote:
> On Tue, 2008-10-14 at 12:14 +0200, Dominique Goncalves wrote:
> > Hi,
> > 
> > On Tue, Oct 14, 2008 at 12:03 AM, Aniruddha <[EMAIL PROTECTED]> wrote:
> > > I'm trying to mount (USB) devices in KDE/Gnome automagically through
> > > dbus and hal. I added the following lines to /etc/rc.conf:
> > >
> > > dbus_enable="YES"
> > > hald_enable="YES"
> > >
> > > Unfortunately when I insert an USB (NTFS formatted) nothing happens.
> > > When I insert a (fat) sdcard  in my cardreader still nothing happens.
> > > I do think I'm missing something obvious, who know what it is?
> > 
> > Do a 'tail -f /var/log/messages' then insert your sd card and see
> > what's going on.
> > 
> > The HAL faq may be useful http://www.freebsd.org/gnome/docs/halfaq.html.
> > 
> 
> Thanks, I followed the faq to the letter and it show a dialog when I
> insert a USB stick. Unfortunately when I insert an sdcard still nothing
> happens.

Can anyone confirm that dbus and/or hald have anything to do with this?
(I thought those were specific to X...)

When attaching a USB device to a USB port, the kernel will notice the
device has been added and will do the proper enumeration.  For example,
when adding a USB hard disk or a USB pen drive, a umass device will be
found, then a daX device should be created (which is what you use to
access the disk; USB storage devices appear as SCSI disks).

But in the case of a USB device that's already attached to the bus, e.g.
one of those 7-in-1 card readers, I cannot see how adding a SD/MMC card
would cause the hard disk to suddenly show up.

You would need to run "camcontrol rescan 0", to cause the device to be
re-scanned for any media which was inserted.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD do dbus & hal work?

2008-10-14 Thread Aniruddha
On Tue, 2008-10-14 at 12:14 +0200, Dominique Goncalves wrote:
> Hi,
> 
> On Tue, Oct 14, 2008 at 12:03 AM, Aniruddha <[EMAIL PROTECTED]> wrote:
> > I'm trying to mount (USB) devices in KDE/Gnome automagically through
> > dbus and hal. I added the following lines to /etc/rc.conf:
> >
> > dbus_enable="YES"
> > hald_enable="YES"
> >
> > Unfortunately when I insert an USB (NTFS formatted) nothing happens.
> > When I insert a (fat) sdcard  in my cardreader still nothing happens.
> > I do think I'm missing something obvious, who know what it is?
> 
> Do a 'tail -f /var/log/messages' then insert your sd card and see
> what's going on.
> 
> The HAL faq may be useful http://www.freebsd.org/gnome/docs/halfaq.html.
> 

Thanks, I followed the faq to the letter and it show a dialog when I
insert a USB stick. Unfortunately when I insert an sdcard still nothing
happens.

-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD do dbus & hal work?

2008-10-14 Thread Dominique Goncalves
Hi,

On Tue, Oct 14, 2008 at 12:03 AM, Aniruddha <[EMAIL PROTECTED]> wrote:
> I'm trying to mount (USB) devices in KDE/Gnome automagically through
> dbus and hal. I added the following lines to /etc/rc.conf:
>
> dbus_enable="YES"
> hald_enable="YES"
>
> Unfortunately when I insert an USB (NTFS formatted) nothing happens.
> When I insert a (fat) sdcard  in my cardreader still nothing happens.
> I do think I'm missing something obvious, who know what it is?

Do a 'tail -f /var/log/messages' then insert your sd card and see
what's going on.

The HAL faq may be useful http://www.freebsd.org/gnome/docs/halfaq.html.

> --
> Regards,
>
> Aniruddha
>
>
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

Regards.

-- 
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"