[alsa-devel] [PATCH/RFC] alsa-info: add DMI data to the alsa-info output

Lennart Poettering mznyfn at 0pointer.de
Mon Jun 1 14:28:12 CEST 2009


On Sun, 31.05.09 22:36, Ozan Çağlayan (ozan at pardus.org.tr) wrote:

> This is a working but not a clean/good patch for doing that because I'm
> not very good at shell scripting but I'm posting it just to give a
> possible idea.
> 
> dmidecode should be run as root because it reads /dev/mem. If alsa-info
> is run as root, providing at least the system-manufacturer and
> system-product-name in the output will be very useful for distro
> maintainers.

Please note that this information is exported in sysfs anyway, in
/sys/class/dmi/id/*.

It would be much better to read that data from sysfs since it doesn't
need a kernel with /dev/mem, or root root priviliges or any other
software installed.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the Alsa-devel mailing list