• OpenBSD
  • How to detect computer form-factor on OpenBSD 6.6 w/o the dmidecode?

It's not possible to run dmidecode due to default security settings in OpenBSD 6.6. How to detect computer form-factor from the command line?

Thanks.

    aponomarenko your posts made me curious about whatever cross-bsd hardware info fetch utility you're working on πŸ™‚.

    That said, isn't sysctl hw enough for your needs?

      No form-factor or chassis type:

      hw.machine=i386
      hw.model=Intel(R) Pentium(R) M processor 1.60GHz ("GenuineIntel" 686-class)
      hw.ncpu=1
      hw.byteorder=1234
      hw.pagesize=4096
      hw.disknames=wd0:a5c6052d90ca33c0,cd0:
      hw.diskcount=2
      hw.sensors.acpitz0.temp0=49.00 degC (zone temperature)
      hw.sensors.acpiac0.indicator0=On (power supply)
      hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
      hw.sensors.acpibat0.volt1=unknown (current voltage), UNKNOWN
      hw.sensors.acpibat0.current0=unknown (rate), UNKNOWN
      hw.sensors.acpibat0.amphour0=6.00 Ah (last full capacity)
      hw.sensors.acpibat0.amphour1=0.60 Ah (warning capacity)
      hw.sensors.acpibat0.amphour2=0.30 Ah (low capacity)
      hw.sensors.acpibat0.amphour3=unknown (remaining capacity), UNKNOWN
      hw.sensors.acpibat0.amphour4=6.00 Ah (design capacity)
      hw.sensors.acpibat0.raw0=unknown (battery unknown), UNKNOWN
      hw.sensors.acpibtn1.indicator0=On (lid open)
      hw.sensors.it0.temp0=127.00 degC
      hw.sensors.it0.temp1=86.00 degC
      hw.sensors.it0.temp2=127.00 degC
      hw.sensors.it0.fan0=0 RPM
      hw.sensors.it0.fan1=0 RPM
      hw.sensors.it0.fan2=0 RPM
      hw.sensors.it0.volt0=0.00 VDC (VCORE_A)
      hw.sensors.it0.volt1=0.00 VDC (VCORE_B)
      hw.sensors.it0.volt2=0.00 VDC (+3.3V)
      hw.sensors.it0.volt3=0.00 VDC (+5V)
      hw.sensors.it0.volt4=0.00 VDC (+12V)
      hw.sensors.it0.volt5=-17.00 VDC (-12V)
      hw.sensors.it0.volt6=-8.60 VDC (-5V)
      hw.sensors.it0.volt7=0.00 VDC (+5VSB)
      hw.sensors.it0.volt8=3.06 VDC (VBAT)
      hw.cpuspeed=1601
      hw.setperf=100
      hw.vendor=ASUSTeK Computer Inc.
      hw.product=A3L
      hw.version=1.0
      hw.serialno=...
      hw.uuid=027CCF4A-3E12-A5A7-B283-497FC5623753
      hw.physmem=2112634880
      hw.usermem=2102108160
      hw.ncpufound=1
      hw.allowpowerdown=1
      hw.perfpolicy=manual
      hw.ncpuonline=1

      JuvenalUrbino your posts made me curious about whatever cross-bsd hardware info fetch utility you're working on πŸ™‚.

      It's hw-probe for BSD. I ask here some Linux-BSD porting questions that I could not find answers on the network.

      Probably I can guess the form-factor based on the devices list, but looking for a more effective way.

        5 days later

        Jay

        can i run this from a live USB boot to see if my hardware would be compatible?

        Only if it's not read-only. Because it requires to install several packages to run.

        One can try nomadbsd usb live image for example.

        • Jay likes this.
        9 days later

        aponomarenko

        The only solution I've found:

        If hw.sensors.acpibat0 exists then it's a laptop, else it's a desktop.