si.system() does not return `raspberry` on Raspberry Pi 4
KristjanESPERANTO opened this issue · 3 comments
KristjanESPERANTO commented
Thanks for this great library! I have the following issue: si.system() does not return raspberry
on Raspberry Pi 4
Steps to reproduce the behavior
- used function:
si.system()
- code snippet
const si = require("systeminformation"); async function logSystemInformation () { try { const staticData = await si.system(); console.info(staticData); } catch (e) { console.error(e); } } logSystemInformation()
- start app / code:
node test.js
- See output/error
{ manufacturer: '', model: '', version: 'd03114', serial: '10000000XXXXXXXX', uuid: '', sku: '-', virtual: false }
Expected behavior
{
manufacturer: '',
model: '',
version: 'd03114',
serial: '10000000XXXXXXXX',
uuid: '',
raspberry: 'Raspberry Pi 4 Model B Rev 1.4',
sku: '-',
virtual: false
}
Environment
$ npx systeminformation info
┌─────────────────────────────────────────────────────────────────────────────────────────┐
│ SYSTEMINFORMATION Version: 5.21.22 │
└─────────────────────────────────────────────────────────────────────────────────────────┘
Operating System:
──────────────────────────────────────────────────────────────────────────────────────────
Platform : linux
Distro : Debian GNU/Linux
Release : 12
Codename : bookworm
Kernel : 6.1.0-rpi7-rpi-v8
Arch : arm64
Hostname : raspberrypi
Codepage : UTF-8
Build :
System:
──────────────────────────────────────────────────────────────────────────────────────────
Manufacturer :
Model :
Version : d03114
Virtual :
CPU:
──────────────────────────────────────────────────────────────────────────────────────────
Manufacturer : Sony UK
Brand : BCM2711
Family : Cortex-A72
Model : 3
Stepping : r0p3
Speed : 1.8
Cores : 4
PhysicalCores : 4
PerformanceCores : 4
EfficiencyCores :
Processors : 1
Socket : SOC
Additional context
When I run cat /proc/cpuinfo
, I get this:
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Revision : d03114
Serial : 10000000XXXXXXXX
Model : Raspberry Pi 4 Model B Rev 1.4
sebhildebrandt commented
@KristjanESPERANTO thank you! I will have a look at it. As I am currently not in my office, I can check it in apron 1 week the earliest. I am pretty sure to find the reason and to provide a fix. Once again, thank you for your report and all provided information.
markmiro commented
Having the same issue with a Raspberry Pi 5 with bookworm. It can't detect that it's a pi.
const { raspberry } = await systeminfo.system();
console.log(raspberry); // returns undefined
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
# ...
$ cat /proc/cpuinfo
# ...
CPU part : 0xd0b
CPU revision : 1
Revision : c04170
Serial : fd2263ad97a4f1e2
Model : Raspberry Pi 5 Model B Rev 1.0
Deleted user commented
Same issue here, additionnally, not sending anything too with Rpi5
pi@raspberrypi-5:~ $ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 1
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 1
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 1
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 1
Revision : d04170
Serial : 9c69a2344e20a994
Model : Raspberry Pi 5 Model B Rev 1.0
pi@raspberrypi-5:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
pi@raspberrypi:/opt/squirrelserversmanager $ cat /proc/cpuinfo
processor : 0
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Revision : a020d3
Serial : 0000000090f37455
Model : Raspberry Pi 3 Model B Plus Rev 1.3
pi@raspberrypi:/opt/squirrelserversmanager $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"