On 18.10.2011 21:50, ik wrote:
On Tue, Oct 18, 2011 at 21:44, Michael Van Canneyt
<mich...@freepascal.org <mailto:mich...@freepascal.org>> wrote:
On Tue, 18 Oct 2011, ik wrote:
Hello list,
I'm trying to figure out how to get hardware information about
the machine i'm running at in Linux OS.
For example: hard-drive size, manufacture etc...
BIOS information, screen information (regardless of X, that is
the hardware itself), cards that are assigned and the
whole information about such cards.
Disks of any kind etc... CPU Information (can use the /proc/cpuinfo)
Does anyone know or can point me on how to do it ?
use DBUS to query HAL. Normally you should get most of the info.
HAL is deprecated :(
You can then take a look at its successor, DeviceKit (see here:
http://en.wikipedia.org/wiki/DeviceKit ). According to the wiki entry
you might also try to take a look at "libudev". I've found a guide here:
http://www.signal11.us/oss/udev/ (I haven't read it and thus can't say
whether it's good or not).
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal