[Bug 1675824] Re: system-summary fails due to missing file /sys/.../scaling_available_frequencies

Alkis Georgopoulos 1675824 at bugs.launchpad.net
Mon Mar 27 07:31:50 UTC 2017


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".

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to friendly-recovery in Ubuntu.
https://bugs.launchpad.net/bugs/1675824

Title:
  system-summary fails due to missing file
  /sys/.../scaling_available_frequencies

Status in friendly-recovery package in Ubuntu:
  New

Bug description:
  The system-summary menu of friendly-recovery dies in many different
  CPUs:

  sh /lib/recovery-mode/options/system-summary 
  cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies: No such file or directory
  /lib/recovery-mode/options/system-summary: 29: /lib/recovery-mode/options/system-summary: arithmetic expression: expecting primary: " / 1000"

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/friendly-recovery/+bug/1675824/+subscriptions



More information about the foundations-bugs mailing list