[fpc-pascal] Getting Hardware information in Linux
pascaldragon at googlemail.com
Tue Oct 18 21:59:58 CEST 2011
On 18.10.2011 21:50, ik wrote:
> On Tue, Oct 18, 2011 at 21:44, Michael Van Canneyt
> <michael at freepascal.org <mailto:michael at 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).
More information about the fpc-pascal