Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add systeminfo #3331

Merged
merged 9 commits into from
Jan 4, 2024
Merged

Conversation

KristjanESPERANTO
Copy link
Contributor

@KristjanESPERANTO KristjanESPERANTO commented Jan 3, 2024

This is a first attempt to bring additional system information into the console (see #3328). It's certainly not yet perfect, but with the PR we have a better basis for discussion.

I tried to keep the output small so that we get as much information as possible in screenshots.

This is how it looks on my development system.

[03.01.2024 00:50.19.226] [INFO] System information:
 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12
 ### VERSIONS: MagicMirror: 2.27.0-develop; electron: 27.2.0; kernel: 5.10.0-20-amd64; node: 21.1.0; npm: 10.2.4; pm2: 5.3.0; docker: 20.10.24+dfsg1

Why is it still a draft:

  • I have doubts that utils.js is the right place for the function. What do you think?
    => Update: As long as there is no better idea, it stays there.
  • Instead of working through all wishes you expressed in the issue Add additional infos into log #3328, I only implemented what was easy to achieve. And wanted to hear what you think about this approach.
    => Update: Some added. Of course, more information could be added later, as soon as experience has been gained in productive use.
  • I don't quite like the introductory line ("The following lines provide information..."). Should I perhaps simply replace it with "System information:"?
    => Update: Changed to "System information:"

Here you can see what information we could easily add with the systeminformation package.

It would be interesting how the raspberry field is filled on a raspi system and with docker there should be another line, but I can't easily test that now.

@KristjanESPERANTO KristjanESPERANTO marked this pull request as draft January 3, 2024 00:32
js/app.js Show resolved Hide resolved
js/utils.js Outdated Show resolved Hide resolved
@rejas
Copy link
Collaborator

rejas commented Jan 3, 2024

Thanks for whipping up this PR. Cant wait to see it moved from Draft into real.

@KristjanESPERANTO
Copy link
Contributor Author

Thanks for the feedback. I have changed the first line. With this I take back the draft state 🙂

@KristjanESPERANTO KristjanESPERANTO marked this pull request as ready for review January 3, 2024 11:46
@rejas
Copy link
Collaborator

rejas commented Jan 3, 2024

If nobody comes up with more wishes for the ouput in the next 24h I will merge it :-)

@bugsounet
Copy link
Contributor

why not using process.versions.electron instead of require(${__dirname}/../node_modules/electron/package.json).version; ?

many values are inside process object (and many other) just check it :)

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 3, 2024

also on armv6l, there is no electron, as its optional, and won't be installed..

AND we are seeing a lot of electron fail install on upgrade .. but work manually after,, don't know why
failures both manual and with my script.

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 3, 2024

virtual.. does this detect in a VM? (vmware, ...) , or macos

@bugsounet
Copy link
Contributor

systeminformation docs says mac is supported, VM... humm virtual box VMs only ?

@KristjanESPERANTO
Copy link
Contributor Author

KristjanESPERANTO commented Jan 3, 2024

why not using process.versions.electron instead of ...

I have tested it. At the point where I have set the function, electron is not yet initialized and therefore this variable is not yet available. At what point did you call the variable? I would like to output the system information before the modules.
Edited: Correction see later comment.

also on armv6l, there is no electron

I have modified it a bit, now no message is displayed if electron is not installed. It will only indicate in the list that it is not installed. Like this:

[03.01.2024 18:35.53.972] [INFO]  System information:
 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12
 ### VERSIONS: MagicMirror: 2.27.0-develop; electron: not installed; kernel: 5.10.0-20-amd64; node: 21.1.0; npm: 10.2.4; pm2: 5.3.0; docker: 20.10.24+dfsg1

virtual.. does this detect in a VM?

The documentation only says "is virtual machine". Maybe someone is running MM on a vm, then we'll probably see it there. The space was there, that's why I included it. But I can remove it if you don't see a point in it.

@khassel
Copy link
Collaborator

khassel commented Jan 3, 2024

LGTM!

Here the results on my windows machine using docker container with wsl2:

npm run server
 ### SYSTEM:   manufacturer: Microsoft; model: Docker Container; raspberry: undefined; virtual: true
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12
 ### VERSIONS: MagicMirror: 2.27.0-develop; electron: 27.2.0; kernel: 5.15.133.1-microsoft-standard-WSL2; node: 21.5.0; npm: 10.2.4; pm2: ; docker:

npm run start
 ### SYSTEM:   manufacturer: Microsoft; model: Docker Container; raspberry: undefined; virtual: true
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12
 ### VERSIONS: MagicMirror: 2.27.0-develop; electron: 27.2.0; kernel: 5.15.133.1-microsoft-standard-WSL2; node: 18.17.1; npm: 10.2.4; pm2: ; docker:

The difference between the two start variants is the node version, under electron the node version of electron is used, so everything works as expected :)

One cosmetic thing: The magicmirror version is already shown twice in the logs, e.g.

> magicmirror@2.27.0-develop start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[03.01.2024 19:15.41.671] [LOG]   Starting MagicMirror: v2.27.0-develop

so I think we don't need this information again.

Will do some tests later using a raspberry pi.

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 3, 2024

is there CPU architecture info
armv6l/armv7l/aarch64, ......

@khassel
Copy link
Collaborator

khassel commented Jan 3, 2024

So here my test on a raspi4 but - as always - with docker container:

 ### SYSTEM:   manufacturer: ; model: Docker Container; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12
 ### VERSIONS: MagicMirror: 2.27.0-develop; electron: 27.2.0; kernel: 6.1.19-v8+; node: 18.17.1; npm: 10.2.4; pm2: ; docker:

is there CPU architecture info

I was searching for this too and it is available:

  "os": {
    "platform": "linux",
    "distro": "Debian GNU/Linux",
    "release": "12",
    "codename": "bookworm",
    "kernel": "6.1.19-v8+",
    "arch": "arm",
    "hostname": "raspberrypi",
    "fqdn": "raspberrypi",
    "codepage": "UTF-8",
    "logofile": "debian",
    "serial": "85b5a61dd83b459d884a321797727254",
    "build": "",
    "servicepack": "",
    "uefi": false
  },

@khassel
Copy link
Collaborator

khassel commented Jan 3, 2024

armv6l/armv7l/aarch64, ......

tested now 64-bit on raspi so we are getting only the values arm, arm64 and x64 for architecture, but should be added anyway.

@khassel
Copy link
Collaborator

khassel commented Jan 3, 2024

found one additional info I'm interested in: timezoneName

@KristjanESPERANTO
Copy link
Contributor Author

KristjanESPERANTO commented Jan 4, 2024

why not using process.versions.electron instead of ...

I have tested it. At the point where I have set the function, electron is not yet initialized ...

I made a mistake. The variable works! I've changed it accordingly, it's much better now. Thanks for the hint!

Here the results on my windows machine using docker container with wsl2:

Strange. Actually, I would have expected an extra line with docker info.

if (typeof staticData["dockerInfo"] !== "undefined") systemDataString += `\n ### DOCKER:   containers: ${staticData["dockerInfo"]["containers"]}; operatingSystem: ${staticData["dockerInfo"]["operatingSystem"]}; osType: ${staticData["versions"]["osType"]}; architecture: ${staticData["versions"]["architecture"]}; serverVersion: ${staticData["versions"]["serverVersion"]}`;

So this line seems to have no effect at all.

The magicmirror version is already shown twice

I've just removed it.

is there CPU architecture info

I've just added it.

found one additional info I'm interested in: timezoneName

I've just added it.

Current status on my system:

 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
 ### VERSIONS: electron: 27.2.0; node: 18.17.1; npm: 10.2.4; pm2: 5.3.0; docker: 20.10.24+dfsg1
 ### OTHER:    timeZone: Europe/Berlin

@khassel
Copy link
Collaborator

khassel commented Jan 4, 2024

Strange. Actually, I would have expected an extra line with docker info.

if (typeof staticData["dockerInfo"] !== "undefined") systemDataString += \n ### DOCKER: containers: ${staticData["dockerInfo"]["containers"]}; operatingSystem: ${staticData["dockerInfo"]["operatingSystem"]}; osType: ${staticData["versions"]["osType"]}; architecture: ${staticData["versions"]["architecture"]}; serverVersion: ${staticData["versions"]["serverVersion"]};

So this line seems to have no effect at all.

I think this line can be removed. For getting such infos you must have installed docker. With that you get such info's but I think this is useless here. I'm only interested if mm is running as docker container and this is displayed in the model section ### SYSTEM: manufacturer: Microsoft; model: Docker Container; raspberry: undefined; virtual: true

@khassel
Copy link
Collaborator

khassel commented Jan 5, 2024

@bugsounet
Copy link
Contributor

bugsounet commented Jan 5, 2024

but i think that node version is used in node_helper (I will check)

Edit: It's node of Electron used

Edit2: @khassel : but... we know that we must have +/- same node version for MM² running fine

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 5, 2024

but this is not true.

the node modules are loaded before electron is launched.

and the node_helpers fail because fetch is not there. if we upgrade the base then things are ok.

so node helpers run under platform node

@khassel
Copy link
Collaborator

khassel commented Jan 5, 2024

I added an additional line to js/node_helper.js

        start () {
                Log.log(`Starting module helper: ${this.name}`);
                Log.log(process.versions);
        },

and this is the result when starting with npm start:

[05.01.2024 23:17.31.742] [LOG]   Server started ...
[05.01.2024 23:17.31.742] [LOG]   Connecting socket for: updatenotification
[05.01.2024 23:17.31.742] [LOG]   Starting module helper: updatenotification
[05.01.2024 23:17.31.743] [LOG]   {
  node: '18.17.1',
  acorn: '8.8.2',
  ada: '2.5.0',
  ares: '1.19.1',
  brotli: '1.0.9',
  cldr: '43.0',
  icu: '73.1',
  llhttp: '6.0.11',
  modules: '118',
  napi: '9',
  nghttp2: '1.52.0',
  openssl: '1.1.1',
  simdutf: '3.2.12',
  tz: '2023c',
  undici: '5.22.1',
  unicode: '15.0',
  uv: '1.44.2',
  uvwasi: '0.0.18',
  v8: '11.8.172.18-electron.0',
  zlib: '1.2.13.1-motley',
  electron: '27.2.1',
  chrome: '118.0.5993.159'
}
[05.01.2024 23:17.31.743] [LOG]   Connecting socket for: calendar
[05.01.2024 23:17.31.743] [LOG]   Starting node helper for: calendar
[05.01.2024 23:17.31.743] [LOG]   Connecting socket for: newsfeed

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 5, 2024

makes no sense

@khassel
Copy link
Collaborator

khassel commented Jan 5, 2024

my test or the result?

@bugsounet
Copy link
Contributor

Like I says installed node version must be ~ to electron node version for have all functions
after Electron use his own version of node

I know... there is no sense
In other hand... dependencies use installed node version

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 5, 2024

. dependencies use installed node version

right, but they are loaded by mode_helper
so IT must using installed node version.

what is that junk from start then?

server mode just doesn't launch electron . it does all the rest using installed node.

@khassel
Copy link
Collaborator

khassel commented Jan 5, 2024

server mode just doesn't launch electron

yes, server mode always uses the installed node version, but not when running as electron (npm start).

If I put the line Log.log(process.versions); e.g. in the node_helper.js of the default calendar I get the same results as above.

@KristjanESPERANTO
Copy link
Contributor Author

I would not have expected anything like this. Even though it may not have any added value, that's just how I looked at it:

I added the following two lines to the new logSystemInformation function:

Log.info("systeminformation:     " + staticData["versions"]["node"]);
Log.info("process.versions.node: " + process.versions.node);

Running with electron:

[06.01.2024 00:21.07.909] [INFO]  systeminformation:     18.17.1
[06.01.2024 00:21.07.909] [INFO]  process.versions.node: 18.17.1

Running as server:

[06.01.2024 00:21.13.738] [INFO]  systeminformation:     21.1.0
[06.01.2024 00:21.13.738] [INFO]  process.versions.node: 21.1.0

Getting the information from 'node -v' or reading the package.json in the node_modules directory are definitely options. Of course we can also display both (the information we get from systeminformation and the installed version).

But to understand the whole system, it would be good if we could get to the bottom of it. Even if I think it's unlikely, but could it be that if we run with electron, everything runs with the node version of electron? That would be a very interesting discovery. And it would not only be relevant for what we want to display, but also for troubleshooting in general.

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 5, 2024

but it's not correct.

keep the current electron, install node 16 and the calendar node_helper will fail cause fetch isn't found

fetch is in electron. what node is being used by node helpers?

@KristjanESPERANTO
Copy link
Contributor Author

I just did that:

kristjan@debian:~/MagicMirror$ node -v
v16.20.0
kristjan@debian:~/MagicMirror$ npm run start

> magicmirror@2.27.0-develop start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[06.01.2024 00:46.04.220] [LOG]   Starting MagicMirror: v2.27.0-develop
[06.01.2024 00:46.04.224] [LOG]   Loading config ...
[06.01.2024 00:46.04.226] [DEBUG] config template file not exists, no envsubst
....
[06.01.2024 00:46.06.083] [INFO]  System information:
 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
 ### VERSIONS: electron: 27.2.0; node: 18.17.1; npm: 8.19.4; pm2: 5.3.0; docker: 20.10.24+dfsg1
 ### OTHER:    timeZone: Europe/Berlin
[06.01.2024 00:46.06.083] [INFO]  systeminformation:     18.17.1
[06.01.2024 00:46.06.084] [INFO]  process.versions.node: 18.17.1
...

And the calendar and other modules using fetch are working 🤯

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 5, 2024

yes, mind blown...

@bugsounet
Copy link
Contributor

really... I do not understand anything anymore

@KristjanESPERANTO
Copy link
Contributor Author

I give up trying to understand that today! 😴

@khassel
Copy link
Collaborator

khassel commented Jan 6, 2024

I managed to get mm running with electron but without even nodejs/npm installed ...

@KristjanESPERANTO
Copy link
Contributor Author

I managed to get mm running with electron but without even nodejs/npm installed ...

Crazy. Just to get it right: You have executed npm run start without having npm installed on the system?

@bugsounet
Copy link
Contributor

bugsounet commented Jan 6, 2024

and npm i works too??
because if there is no libraries in node_modules it can't start (normaly... or i'm crazy)

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 6, 2024

@bugsounet he probably had to do the install ., then remove node and npm and then launch the electron bin directly

i remember others having to do npm rebuild on onoff for server mode, or electron-rebuild for electron mode
but then fetch makes my head hurt

@khassel
Copy link
Collaborator

khassel commented Jan 6, 2024

then remove node and npm and then launch the electron bin directly

this was the first approach

Electron releases prebuilt binaries as described here.

So I did

  • a normal npm install with node an npm, I omitted devDependencies and optional dependencies (electron) and saved the mm folder
  • used a debian image (without node an npm) and installed the debian packages which electron needs
  • installed the electron prebuilt binaries
  • copied the mm folder
  • started mm with ./electron path-of-mm-folder

Here is the complete Dockerfile, tested this on x64-arch with debian-wsl2:

FROM node:21-alpine as builder

WORKDIR /opt/magic_mirror

RUN set -e; \
    apk add --no-cache git;

RUN set -e; \
    node -v; \
    git clone --depth 1 -b develop --single-branch "https://github.com/MagicMirrorOrg/MagicMirror.git" .; \
    git log -1; \
    npmargs="--no-audit --no-fund --no-update-notifier --arch=arm64 --omit=optional --omit=dev"; \
    rm -f package-lock.json; \
    echo "now executing: npm install ${npmargs}"; \
    npm install ${npmargs}; \
    cat package.json; \
    sed -i "s:address\: \"localhost\":address\: \"0.0.0.0\":" config/config.js.sample; \
    sed -i "s:ipWhitelist\: \[.*\],:ipWhitelist\: \[\],:" config/config.js.sample; \
    cp config/config.js.sample config/config.js;

FROM debian:bookworm
LABEL maintainer="Karsten Hassel"

RUN set -e; \
    apt-get update; \
    DEBIAN_FRONTEND=noninteractive apt-get -qy --no-install-recommends install git nano sudo wget ca-certificates libgtk-3-0 libx11-xcb-dev libnss3-dev \
      libxss1 libxtst6 libasound2 libdrm2 libgbm1 libxshmfence1 fonts-arphic-uming procps unzip; \
    apt-get clean; \
    rm -rf /var/lib/apt/lists/*; \
    useradd -u 1000 node; \
    usermod -a -G video node; \
    echo "node ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers; \
    groupadd --gid 997 gpio; \
    usermod -a -G gpio node;

ENV ELECTRON_DISABLE_SANDBOX=1 \
    DBUS_SESSION_BUS_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"

COPY --from=builder --chown=node:node /opt/magic_mirror /opt/magic_mirror

USER node

WORKDIR /home/node/electron

RUN set -e; \
    wget -O /tmp/electron.zip https://github.com/electron/electron/releases/download/v28.1.1/electron-v28.1.1-linux-x64.zip; \
    unzip /tmp/electron.zip -d /home/node/electron/; \
    rm -f /tmp/electron.zip;

ENTRYPOINT ["/home/node/electron/electron", "/opt/magic_mirror"]

Logs:

[06.01.2024 18:10.19.727] [LOG]   Starting MagicMirror: v2.27.0-develop
[06.01.2024 18:10.19.729] [LOG]   Loading config ...
[06.01.2024 18:10.19.730] [DEBUG] config template file not exists, no envsubst
[06.01.2024 18:10.19.732] [LOG]   Loading module helpers ...
[06.01.2024 18:10.19.732] [LOG]   No helper found for module: alert.
[06.01.2024 18:10.19.737] [LOG]   Initializing new module helper ...
[06.01.2024 18:10.19.737] [LOG]   Module helper loaded: updatenotification
[06.01.2024 18:10.19.738] [LOG]   No helper found for module: clock.
[06.01.2024 18:10.19.804] [LOG]   Initializing new module helper ...
[06.01.2024 18:10.19.804] [LOG]   Module helper loaded: calendar
[06.01.2024 18:10.19.805] [LOG]   No helper found for module: compliments.
[06.01.2024 18:10.19.806] [LOG]   No helper found for module: weather.
[06.01.2024 18:10.19.850] [LOG]   Initializing new module helper ...
[06.01.2024 18:10.19.851] [LOG]   Module helper loaded: newsfeed
[06.01.2024 18:10.19.851] [LOG]   All module helpers loaded.
[06.01.2024 18:10.19.854] [LOG]   Starting server on port 8080 ...
[06.01.2024 18:10.19.855] [WARN]  You're using a full whitelist configuration to allow for all IPs
[06.01.2024 18:10.20.246] [LOG]   Server started ...
[06.01.2024 18:10.20.247] [LOG]   Connecting socket for: updatenotification
[06.01.2024 18:10.20.247] [LOG]   Starting module helper: updatenotification
[06.01.2024 18:10.20.247] [LOG]   Connecting socket for: calendar
[06.01.2024 18:10.20.247] [LOG]   Starting node helper for: calendar
[06.01.2024 18:10.20.247] [LOG]   Connecting socket for: newsfeed
[06.01.2024 18:10.20.248] [LOG]   Starting node helper for: newsfeed
[06.01.2024 18:10.20.248] [LOG]   Sockets connected & modules started ...
[06.01.2024 18:10.20.483] [LOG]   Launching application.
[06.01.2024 18:10.20.849] [INFO]  System information:
 ### SYSTEM:   manufacturer: Microsoft; model: Docker Container; raspberry: undefined; virtual: true
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.15.133.1-microsoft-standard-WSL2
 ### VERSIONS: electron: 28.1.1; node: 18.18.2; npm: ; pm2: ; docker:
 ### OTHER:    timeZone: UTC
[06.01.2024 18:10.23.216] [LOG]   Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 604800000
[06.01.2024 18:10.23.264] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[06.01.2024 18:10.23.267] [INFO]  updatenotification: Updater Class Loaded!
[06.01.2024 18:10.23.267] [INFO]  updatenotification: Checking PM2 using...
[06.01.2024 18:10.23.268] [INFO]  Checking git for module: MagicMirror
[06.01.2024 18:10.23.292] [INFO]  updatenotification: You are not using pm2
[06.01.2024 18:10.23.559] [INFO]  Newsfeed-Fetcher: Broadcasting 27 items.
[06.01.2024 18:10.23.720] [INFO]  Calendar-Fetcher: Broadcasting 12 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.

@KristjanESPERANTO
Copy link
Contributor Author

KristjanESPERANTO commented Jan 6, 2024

So what do we learn from all this?

  1. When running with electron, we only need npm and the locally installed node version is irrelevant?
  2. The locally installed node version is only relevant for server mode?
  3. The new system information in the log shows always the relevant node version: In electron mode the node version of electron and in server mode the locally installed version. So we don't have to change anything?

@khassel
Copy link
Collaborator

khassel commented Jan 6, 2024

yes, I think so

  • to 1.: npm needs node to run, so for running npm start you need node. The command ./node_modules/.bin/electron (used when running npm start) also needs node because this is only a small nodejs program which calls the electron binary. You can take a look into node_modules/electron folder. But if I remove the node binary I can still start mm with node_modules/electron/dist/electron js/electron.js
  • to 2.: For running mm yes, but you need it e.g. for npm install (for mm and modules)
  • to 3.: I'm fine with current state, but if others want this information, no problem

@bugsounet
Copy link
Contributor

@KristjanESPERANTO: maybe add an Log if GPU accelerator is activated or not?
Because I just see that is disabled by default. I turn around "my MM² works slowly* since last release :/

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 6, 2024

yes we changed the default to disabled to stop the errors

export ELECTRON_ENABLE_GPU=1

To turn it on

@bugsounet
Copy link
Contributor

In my case: error/warn vs MM² running slowly ... ELECTRON_ENABLE_GPU=1 win :) :)

@KristjanESPERANTO
Copy link
Contributor Author

maybe add an Log if GPU accelerator is activated or not?

Sure. Like that?

Hardware acceleration enabled:

 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
 ### VERSIONS: electron: 27.2.0; node: 18.17.1; npm: 10.2.4; pm2: 5.3.0; docker: 20.10.24+dfsg1
 ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: 1

Hardware acceleration not enabled:

 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
 ### VERSIONS: electron: 27.2.0; node: 18.17.1; npm: 10.2.4; pm2: 5.3.0; docker: 20.10.24+dfsg1
 ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined

@khassel Is it even relevant to display the docker version? If mm is running in a container, there is no docker installed in it and then no version is displayed, right?

@KristjanESPERANTO
Copy link
Contributor Author

Before I do a PR tomorrow, you are welcome to give me feedback here.

Changes so far:

  • Add ELECTRON_ENABLE_GPU
  • Remove docker version (depending on response from @khassel)
  • Differentiation between installed and used node version
 ### SYSTEM:   manufacturer: Notebook; model: N650DU; raspberry: undefined; virtual: false
 ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.10.0-20-amd64
 ### VERSIONS: electron: 27.2.0; used node: 18.17.1; installed node: 21.1.0; npm: 10.2.4; pm2: 5.3.0
 ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: 1

@khassel
Copy link
Collaborator

khassel commented Jan 7, 2024

Thanks, I'm fine with these changes

@KristjanESPERANTO
Copy link
Contributor Author

Okay, thanks for the feedback!

Further discussion on the subject of system information in the new PR #3337.

@sdetweil
Copy link
Collaborator

sdetweil commented Jan 7, 2024

looks good to me..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants