Using Hal to detect automatic hardware devices

Martin Owens doctormo at gmail.com
Tue Nov 13 07:03:01 PST 2007


Ah one of the better questions, you can either look into the pci
device and look at the class which should say "Multimedia Device" for
usb it will have sound end points. It can be done.

Since your using hal/dbus and python I put forward
http://dohickey-project.com/client/ since dohickey also uses hal/dbus
and python.

Best Regards, Martin Owens

On 13/11/2007, Maíra Nascimento <mairanascimento at gmail.com> wrote:
> Hi,
>
> first sorry for my English, i hope you can understand.
>
> I'm new at the list and also new on using hal. I am a developer and we
> are doing a program in python that detects and test if the hardware a
> functioning correctly. For the detection we used programs like 'lshw'
> and 'hwinfo' but we are trying to change it for using only Hal/dbus,
> but we are having problems in finding the devices. For example, we
> really don't know how to detect a sound card. First i thought in
> looking for devices that use alsa. That works in my computer, but if
> you don't configured the sound card or are not using alsa that
> wouldn't work.
> Anyone have any idea how to search for 'sound card' in any kind of
> system. I really don't know what property to query.
> Sorry if this kind of message is not in the scope of the list.
>
> thanks,
> Maíra
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
>


More information about the hal mailing list