system-summary fails due to missing file /sys/.../scaling_available_frequencies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
friendly-recovery (Ubuntu) |
Fix Released
|
Undecided
|
Dimitri John Ledkov |
Bug Description
The system-summary menu of friendly-recovery dies in many different CPUs:
sh /lib/recovery-
cat: /sys/devices/
/lib/recovery-
I tested in 16.04 and in 17.04, with many different CPUs:
Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz
AMD Phenom(tm) II X6 1090T Processor
Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
On the other hand, that file did exist on the following CPUs:
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
So the code needs to cope with that file possibly missing.
Related branches
Changed in friendly-recovery (Ubuntu): | |
status: | New → In Progress |
I'm attaching a patch that solves the issue by using the "cpuinfo_max_freq" virtual file which is much more frequently present than the "scaling_ available_ frequencies" file.
And even if that file isn't there, it doesn't choke like it used to, it just displays "0".