[fpc-pascal] Getting Hardware information in Linux
Michael Van Canneyt
michael at freepascal.org
Tue Oct 18 21:44:52 CEST 2011
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.
I wrote an article on how to do this in FPC. if you want, I can send it to you.
Michael.
More information about the fpc-pascal
mailing list