tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
RE: sysinfo crate
Hi Pin,
What about these ones, samples from two boxes.
machdep.dmi.system-vendor = LENOVO
machdep.dmi.system-product = 10VMS05C00
machdep.dmi.system-version = ThinkCentre M715q
machdep.dmi.system-serial = PC11EBKQ
machdep.dmi.system-uuid = 0437e380-1ebb-11e9-a8be-248f15af1200
machdep.dmi.bios-vendor = LENOVO
machdep.dmi.bios-version = M1XKT63A
machdep.dmi.bios-date = 20240411
machdep.dmi.board-vendor = LENOVO
machdep.dmi.board-product = 3130
machdep.dmi.board-version = NOK
machdep.dmi.board-serial =
machdep.dmi.board-asset-tag =
machdep.dmi.chassis-vendor = LENOVO
machdep.dmi.chassis-version = None
machdep.dmi.chassis-serial = PC11EBKQ
machdep.dmi.chassis-asset-tag =
machdep.dmi.processor-vendor = Advanced Micro Devices, Inc.
machdep.dmi.processor-version = AMD Ryzen 5 2400GE with Radeon Vega Graphics
machdep.dmi.processor-frequency = 3200 MHz
machdep.dmi.system-vendor = LENOVO
machdep.dmi.system-product = 10S2S04E00
machdep.dmi.system-version = ThinkCentre M920x
machdep.dmi.system-serial = PC136WNJ
machdep.dmi.system-uuid = a543c300-4b27-11e9-a55f-462b1bb52e00
machdep.dmi.bios-vendor = LENOVO
machdep.dmi.bios-version = M1UKT77A
machdep.dmi.bios-date = 20240410
machdep.dmi.board-vendor = LENOVO
machdep.dmi.board-product = 3135
machdep.dmi.board-version = SDK0J40697 WIN 3305182384329
machdep.dmi.board-serial =
machdep.dmi.board-asset-tag =
machdep.dmi.chassis-vendor = LENOVO
machdep.dmi.chassis-version = None
machdep.dmi.chassis-serial = PC136WNJ
machdep.dmi.chassis-asset-tag =
machdep.dmi.processor-vendor = Intel(R) Corporation
machdep.dmi.processor-version = Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
machdep.dmi.processor-frequency = 3200 MHz
--
Marcin Gondek / Drixter
http://fido.e-utp.net/
AS56662
-----Original Message-----
From: tech-pkg-owner%NetBSD.org@localhost <tech-pkg-owner%NetBSD.org@localhost> On Behalf Of pin
Sent: Tuesday, November 18, 2025 2:54 PM
To: pin <voidpin%protonmail.com@localhost>
Cc: tech-pkg\\@netbsd.org <tech-pkg%netbsd.org@localhost>
Subject: Re: sysinfo crate
Now with text ...
Hi,
The sysinfo crate just added support for NetBSD, got this from the main dev about one hour ago.
https://github.com/GuillaumeGomez/sysinfo/issues/631#issuecomment-3546953354
Any comments on his questions?
Not done in this PR:
- Product/Motherboard information seems to not work and is incomplete
- Temperature information is not retrieved
- Process::open_files
For 3, I belive we need xdg-open from the xdg-utils package. At least that's what I usually use.
For 2, I got the suggestion from @wiz to point him at https://github.com/0-wiz-0/rust-envsys/blob/main/README.md
For 1, I'm aware of:
~> sysctl hw.machine_arch hw.model hw.ncpu hw.usermem64 hw.machine_arch = x86_64 hw.model = Intel 686-class hw.ncpu = 4
hw.usermem64 = 9703772160
But that doesn't give product/motherboard.
Any other suggestions/ideas?
Thank you!
Sent with Proton Mail secure email.
On Tuesday, November 18th, 2025 at 2:53 PM, pin <voidpin%protonmail.com@localhost> wrote:
>
>
>
> Sent with Proton Mail secure email.
Home |
Main Index |
Thread Index |
Old Index