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

About.py: Fix zgemma h9 cpu and temp #1660

Closed
wants to merge 1 commit into from
Closed

About.py: Fix zgemma h9 cpu and temp #1660

wants to merge 1 commit into from

Conversation

persianpros
Copy link
Contributor

/proc/cpuinfo won't give us what we need for h9 instead /proc/stb/info/chipset give us hi3798mv200
After this you will see 1600 MHz (4 cores) +cpu temp instead of undefined.
It seems HiSilicon has this problem so you could use this for future models too.
Also for temp we need a new proc file which is /proc/stb/fp/temp_sensor
Related to: #1659

/proc/cpuinfo won't give us what we need for h9 instead /proc/stb/info/chipset give us hi3798mv200
After this you will see 1600 MHz (4 cores) +cpu temp instead of undefined.
It seems HiSilicon has this problem so you could use this for future models too.
Also for temp we need a new proc file which is /proc/stb/fp/temp_sensor
Related to: #1659
@littlesat
Copy link
Member

And if you do this....
-if line[0] in ("system type", "model name"):
+if line[0] in ("system type", "model name", "Processor"):
-elif line[0] == "cpu MHz":
+elif line[0] in ("cpu MHz", "cpu max MHz"):

@littlesat
Copy link
Member

The patch you offer is not good... because everyline that does not parse system type of model name will parse the cpuinfo file... I think the two changes I suggest make the stuff compatible again....

@littlesat
Copy link
Member

max CPU might not work... but Processor at least should work to get the type....

@persianpros
Copy link
Contributor Author

@littlesat
if line[0] in ("system type", "model name", "Processor"):

works without

elif line[0] in ("cpu MHz", "cpu max MHz"):

but it shows "ARMv7" for cpu which is not specific ...

@littlesat
Copy link
Member

littlesat commented Aug 2, 2018

First crazy that this box does it differently...

@littlesat
Copy link
Member

littlesat commented Aug 2, 2018

Do (all) other boxes also have the other proc? I have another idea read that proc and don’t parse model when we already have it + add the temp...

@persianpros
Copy link
Contributor Author

@littlesat
AFAIK most enigma2 STBs have /proc/stb/info/chipset but I think it's not a good idea to change everything for just one model ...

You can merge this for now: #1663 at least it solves the info problem without exact cpu model.

@persianpros persianpros closed this Aug 4, 2018
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

2 participants