โ Back to DatabaseHow to Fix cpufreq: Error accessing /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
Topic: Linux Ubuntu Boot Errors | Status: Updated
What is this error?
The "cpufreq: Error accessing /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq" error indicates that the system is unable to access or read the current CPU frequency scaling information. This usually occurs due to a missing or misconfigured CPU frequency scaling driver, which is essential for managing CPU performance based on workload.
How to Fix It
- Check CPU Frequency Scaling Driver: Ensure that the CPU frequency scaling driver is loaded properly by running the command:
lsmod | grep cpufreq. If no output is shown, it indicates that the driver is not loaded.
- Load a Suitable Driver: Depending on your CPU architecture, load the appropriate driver. For Intel CPUs, use:
sudo modprobe acpi_cpufreq, and for AMD CPUs, try: sudo modprobe pcc_cpufreq.
- Check CPU Frequency Settings: Inspect your system's current configuration by running:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors. Ensure you see available governors and confirm youโre using a compatible one.
- Set Scaling Governor: To set a governor (e.g., 'ondemand'), execute:
echo 'ondemand' | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor. Adjust the governor based on your performance needs.
- Update Your System: If the issue persists, ensure your system is updated by running:
sudo apt update && sudo apt upgrade. This may resolve underlying compatibility issues with drivers.
- Reboot Your System: After applying the above changes, restart your computer to ensure they take effect.
Disclaimer: This is an educational guide. We are not responsible for data loss. Always backup your system.