systeminformation 5.25.7 → 5.25.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/graphics.js +3 -3
  2. package/package.json +1 -1
package/lib/graphics.js CHANGED
@@ -733,8 +733,8 @@ function graphics(callback) {
733
733
  }
734
734
  if (_linux) {
735
735
  // Raspberry: https://elinux.org/RPI_vcgencmd_usage
736
- if (util.isRaspberry() && util.isRaspbian()) {
737
- let cmd = 'fbset -s | grep \'mode "\'; vcgencmd get_mem gpu; tvservice -s; tvservice -n;';
736
+ if (util.isRaspberry()) {
737
+ let cmd = 'fbset -s 2> /dev/null | grep \'mode "\' ; vcgencmd get_mem gpu 2> /dev/null; tvservice -s 2> /dev/null; tvservice -n 2> /dev/null;';
738
738
  exec(cmd, function (error, stdout) {
739
739
  let lines = stdout.toString().split('\n');
740
740
  if (lines.length > 3 && lines[0].indexOf('mode "') >= -1 && lines[2].indexOf('0x12000a') > -1) {
@@ -759,7 +759,7 @@ function graphics(callback) {
759
759
  });
760
760
  }
761
761
  }
762
- if (lines.length > 1 && stdout.toString().indexOf('gpu=') >= -1) {
762
+ if (lines.length >= 1 && stdout.toString().indexOf('gpu=') >= -1) {
763
763
  result.controllers.push({
764
764
  vendor: 'Broadcom',
765
765
  model: util.getRpiGpu(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.25.7",
3
+ "version": "5.25.8",
4
4
  "description": "Advanced, lightweight system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",