FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

Re: [linux-minidisc] implementing unix himd autodetection function

<-- thread -->
<-- date -->
  • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
  • To: Thomas Arp <manner.moe@gmx.de>
  • Date: Sun, 23 Dec 2012 23:40:29 +0100
  • Cc: linux-minidisc@lists.fu-berlin.de
  • Subject: Re: [linux-minidisc] implementing unix himd autodetection function

On Sun, Dec 23, 2012 at 09:20:44PM +0100, Thomas Arp wrote:
> I took a look at udev-discoverer gui application to see which
> information we can get from udev. Is there any way to get the
> mountpoint? I cannot find anything about that.

I don't think you can. The basic idea of udev is to trigger on
hardware events and changes and then set up devices files or call
external programs according to the rules files.

What I meant to say is that with udev, you can set a permanent name
for the HiMD device node and then have it mounted to a specific
location. This will also avoid having to rely on auto-mount mechanisms
which you don't have when using window managers like awesome or any
desktop environment which doesn't mount devices automatically (unlike
GNOME/MATE/KDE).

> If not maybe we can
> use dbus to get the device file and "DriveAdded"/"DriveRemoved"
> notification and use udev to get the device information for the
> specified device file.

Hmm, yes, maybe. But, as I said, I wouldn't rely on
auto-mounting. It's not present on any configuration.

> Also maybe we could make use of libudev to provide autodetection
> mechanism without the need to create/install any udev rules.

That might be possible as well, I haven't used libudev before. But
rules files aren't that much of a burden. They are actually quite easy
to use.

> I think netmd detection at application start is mostly platform
> independent using libusb, libusb provides it's own enumeration
> function as used in libnetmd. We just need device added/removed
> notification to reenumerate libusb devices.

True. I was realizing it the moment I wrote it. I actually dealt with
the code myself when porting libnetmd from the old libusb to libusb
1.0.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [linux-minidisc] implementing unix himd autodetection function
      • From: Thomas Arp <manner.moe@gmx.de>
  • References:
    • [linux-minidisc] implementing netmd support in the gui application
      • From: "Thomas Arp" <manner.moe@gmx.de>
    • Re: [linux-minidisc] implementing netmd support in the gui application
      • From: Thomas Arp <manner.moe@gmx.de>
    • [linux-minidisc] implementing unix himd autodetection function
      • From: Thomas Arp <manner.moe@gmx.de>
    • Re: [linux-minidisc] implementing unix himd autodetection function
      • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    • Re: [linux-minidisc] implementing unix himd autodetection function
      • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    • Re: [linux-minidisc] implementing unix himd autodetection function
      • From: Thomas Arp <manner.moe@gmx.de>
  • linux-minidisc - December 2012 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the linux-minidisc mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal