[BUGFIX] resolve x86 CPU Model Name Bug#1647
[BUGFIX] resolve x86 CPU Model Name Bug#1647microtechno9000 merged 3 commits intoautomatic-ripping-machine:mainfrom
Conversation
`re.IGNORECASE` also somehow ignores spaces. I'm not sure why, but on an x86 Intel CPU, the CPU ID is 94, not a CPU model string.
|
|
Update to "regex ignores spaces": It doesn't, it just matched "Model" case insensitively, meaning I got ths "model", not the "model name" of my CPU. Whoops! Error and fix is still valid as far as I can tell 😅 |
microtechno9000
left a comment
There was a problem hiding this comment.
confirmed works
microtechno9000
left a comment
There was a problem hiding this comment.
version bump required
microtechno9000
left a comment
There was a problem hiding this comment.
confirmed works, version bump added
|
Thanks for updating and fixing this. Confirmed tested locally and CPU information now correct [2026-01-20 12:47:49,406] DEBUG ARM: notifications.arm_nav_notify 1
[2026-01-20 12:47:54,875] DEBUG ARM: system_info.get_cpu_info ****** Getting CPU Info ******
[2026-01-20 12:47:54,878] DEBUG ARM: system_info.get_cpu_info Regex output: <re.Match object; span=(67, 126), match='model name\t: 11th Gen Intel(R) Core(TM) i5-1135G>
[2026-01-20 12:47:54,878] DEBUG ARM: system_info.get_cpu_info CPU Info: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
[2026-01-20 12:47:54,878] DEBUG ARM: system_info.get_cpu_info ****************************
[2026-01-20 12:47:54,878] DEBUG ARM: settings.update_sysinfo ****** System Information ******
[2026-01-20 12:47:54,879] DEBUG ARM: settings.update_sysinfo Name old [ARM Server] new [ARM Server]
[2026-01-20 12:47:54,879] DEBUG ARM: settings.update_sysinfo Name old [140] new [11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz]
[2026-01-20 12:47:54,879] DEBUG ARM: settings.update_sysinfo Name old [7.5] new [7.5]
[2026-01-20 12:47:54,879] DEBUG ARM: settings.update_sysinfo ****** End System Information ****** |
8216843
into
automatic-ripping-machine:main
|
|
Absolutely, thank you for the feedback! |



re.IGNORECASEcauses a hit on the CPU model number before the CPU name (this has been edited per my most recent comment on this PR). On a 6th-gen x86 Intel CPU, the CPU ID is 94, not a CPU model string.Description
I would like to update
arm/models/system_info.pyto fix a regex issue when ARM is running in Docker on x86 CPUs. Currently, the model number is displayed instead of the CPU name (not expected behavior).Context: I was wondering why the CPU was listed as 94 instead of as a 6th gen i5.
Motivation: I realized it was a bug.
Fixes #1646 (admittedly, I also created this issue a bit ago.)
Type of change
How Has This Been Tested?
I used a python shell with the relevant cpuinfo data dumped to a text file as well as a few different regex calculators online. As this is a relatively minor change, I didn't redeploy arm to validate. I am using Docker on Debian Trixie.
Checklist:
Changelog:
Include the details of changes made here
re.IGNORECASEfrom regex in line 47 ofarm/models/system_info.pyLogs
N/A, minor bugfix