graphics() windows multiple display support

This commit is contained in:
Sebastian Hildebrandt 2019-06-14 16:13:21 +02:00
parent df6fc61694
commit 3616f1eb83
6 changed files with 27 additions and 20 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.10.0 | 2019-06-14 | `graphics()` windows multiple display support |
| 4.9.2 | 2019-06-12 | type definitions bug fix |
| 4.9.1 | 2019-06-11 | `networkStats()` bug fix windows |
| 4.9.0 | 2019-06-03 | `graphics()` added vendor, refresh rate, current res |

View File

@ -82,7 +82,8 @@ si.cpu()
(last 7 major and minor version releases)
- Version 4.9.0: added `graphics()` added vendor, refresh rate, current resolution
- Version 4.10.0: `graphics()` added windows multiple display support, added display size, connection, ...
- Version 4.9.0: `graphics()` added vendor, refresh rate, current resolution
- Version 4.8.0: added `vboxInfo()` detailed virtual box info
- Version 4.7.0: partial NetBSD support
- Version 4.6.0: added `dockerInfo()`
@ -253,13 +254,13 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (
| | ...[0].vram | X | | X | X | | VRAM size (in MB) |
| | ...[0].vramDynamic | X | | X | X | | true if dynamicly allocated ram |
| | displays[] | X | | X | X | | monitor/display array |
| | ...[0].vendor | | | X | | | monitor/display vendor |
| | ...[0].vendor | | | | X | | monitor/display vendor |
| | ...[0].model | X | | X | X | | monitor/display model |
| | ...[0].main | X | | X | | | true if main monitor |
| | ...[0].main | X | | X | X| | true if main monitor |
| | ...[0].builtin | X | | X | | | true if built in monitor |
| | ...[0].connection | X | | X | | | e.g. DisplayPort or HDMI |
| | ...[0].sizex | X | | X | | | size in mm horizontal |
| | ...[0].sizey | X | | X | | | size in mm vertical |
| | ...[0].connection | X | | X | X | | e.g. DisplayPort or HDMI |
| | ...[0].sizex | X | | X | X | | size in mm horizontal |
| | ...[0].sizey | X | | X | X | | size in mm vertical |
| | ...[0].pixeldepth | X | | X | X | | color depth in bits |
| | ...[0].resolutionx | X | | X | X | | pixel horizontal |
| | ...[0].resolutiony | X | | X | X | | pixel vertical |

View File

@ -150,8 +150,8 @@
<td>...[0].vendor</td>
<td></td>
<td></td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>monitor/display vendor</td>
</tr>
@ -171,7 +171,7 @@
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>true if main monitor</td>
</tr>
@ -191,7 +191,7 @@
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>e.g. DisplayPort, HDMI</td>
</tr>
@ -201,7 +201,7 @@
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>size in mm horizontal</td>
</tr>
@ -211,7 +211,7 @@
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>X</td>
<td></td>
<td>size in mm vertical</td>
</tr>

View File

@ -80,6 +80,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.10.0</th>
<td>2019-06-14</td>
<td><span class="code">graphics()</span> rewrite windows, added featues</td>
</tr>
<tr>
<th scope="row">4.9.2</th>
<td>2019-06-12</td>

View File

@ -168,7 +168,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.9.2</span></div>
<div class="version">Current Version: <span id="version">4.10.0</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
@ -191,7 +191,7 @@
</div>
<div class="row number-section">
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">8,733</div>
<div class="numbers">8,833</div>
<div class="title">Lines of code</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">

View File

@ -38,17 +38,17 @@ const videoTypes = {
'-1': 'OTHER',
'0': 'HD15',
'1': 'SVIDEO',
'2': 'COMPOSITE_VIDEO',
'3': 'COMPONENT_VIDEO',
'2': 'Composite video',
'3': 'Component video',
'4': 'DVI',
'5': 'HDMI',
'6': 'LVDS',
'8': 'D_JPN',
'9': 'SDI',
'10': 'DISPLAYPORT_EXTERNAL',
'11': 'DISPLAYPORT_EMBEDDED',
'12': 'UDI_EXTERNAL',
'13': 'UDI_EMBEDDED',
'10': 'DP',
'11': 'DP embedded',
'12': 'UDI',
'13': 'UDI embedded',
'14': 'SDTVDONGLE',
'15': 'MIRACAST',
'0x80000000': 'INTERNAL'
@ -702,7 +702,7 @@ function graphics(callback) {
sizey: sizey ? parseInt(sizey, 10) : -1,
pixeldepth: bitsPerPixel,
currentResX: util.toInt(util.getValue(bounds, 'Width', '=')),
currentResY: util.toInt(util.getValue(bounds, 'Width', '=')),
currentResY: util.toInt(util.getValue(bounds, 'Height', '=')),
});
}
}