repo icon indicating copy to clipboard operation
repo copied to clipboard

No CPU detection at summary

Open techsolo12 opened this issue 3 years ago • 2 comments

Hello,

in summary of a node where the cpu as 4 x unknown declared. Is it possible for pimox to detect the BCM2711 from Pi4?

With best regards, techsolo12

techsolo12 avatar Jul 13 '21 14:07 techsolo12

You can patch the proxmoxlib.js to dont show unknown

@@ -897,6 +896,9 @@
 
     render_cpu_model: function(cpu) {
 	let socketText = cpu.sockets > 1 ? gettext('Sockets') : gettext('Socket');
+	if (cpu.model === "unknown") {
+	   return `${cpu.cpus} x Cortex-A72 (ARM v8) 64-bit SoC @ 2.00GHz (${cpu.sockets.toString()} ${socketText})`;
+	}
 	return `${cpu.cpus} x ${cpu.model} (${cpu.sockets.toString()} ${socketText})`;
     },

semool avatar Jul 18 '21 07:07 semool

Thank you for your help. Its a workaround till the port detect the cpu from it self.

techsolo12 avatar Aug 09 '21 05:08 techsolo12