How to Fix Freezing of Linux Kernel on Intel’s Bay Trail SoCs ( Celeron )

A patch fixes the frequent freezing at the Bay Trail has become known low-cost processors, the Celeron series on Linux. The SoCs are installed in cheap notebooks and other cheap hardware.

Bay Trail SoCs are known to be critical in Linux. This ranges from installation problems to crashes every minute. Intel knows the problem. It stands in an errata under the abbreviation VLP52 and is classified as No Fix , so Intel does not fix it .

Affected by the freeze, which usually occurs a few minutes after booting the system, are SoCs such as J1900, Celeron N2840, Celeron N2940, Atom Z3736F and Pentium N3540. The error that caused the crash was initially suspected in the GPU, but then localized in the power management of the chip and is described in a Bugzilla bug report. The problems only occur with many users if a graphical user interface is used.

The problem occurs when the system enters sleep mode C-State 6 (C6) after an interrupt service routine (ISR) is started but before it is terminated and the program continues at the interrupted location. A previously used workaround was to set the processor to C state 1 by passing the intel_idle.max_cstate = 1 parameter to the kernel . However, this leads to increased energy consumption and thus to shorter battery life.

The patch from Wolfgang M. Reimer disables only the C-States 6 and activates the C7-Core-States at the same time . This preserves the energy-saving options. The workaround introduced in mid-July was tested by many users and showed almost all the convincing results. However, some users also report that the problems with kernel 4.7 no longer occur even without the patch on their hardware.

patch (


#description: Disables all C6 and enables all C7 core states for Baytrail CPUs
#author:      Wolfgang Reimer <linuxball (at)>
#date:        2016014
#version:     1.0    
#usage:       sudo <path>/
#notes:       Intended as test script to verify whether erratum VLP52 (see
#             [1]) is the root cause for kernel bug 109051 (see [2]). In order
#             for this to work you must _NOT_ use boot parameter
#             intel_idle.max_cstate=<number>.
# [1]
# [2]

# Disable ($1 == 1) or enable ($1 == 0) core state, if not yet done.
disable() {
	local action
	read disabled <disable
	test "$disabled" = $1 && return
	echo $1 >disable || return
	action=ENABLED; test "$1" = 0 || action=DISABLED
	printf "%-8s state %7s for %s.\n" $action "$name" $cpu  

# Iterate through each core state and for Baytrail (BYT) disable all C6
# and enable all C7 states.
cd /sys/devices/system/cpu
for cpu in cpu[0-9]*; do
	for dir in $cpu/cpuidle/state*; do
		cd "$dir"
		read name <name
		case $name in
			C6*-BYT) disable 1;;
			C7*-BYT) disable 0;;
		cd ../../..



2 thoughts on “How to Fix Freezing of Linux Kernel on Intel’s Bay Trail SoCs ( Celeron )

  1. After 4 months of distro hopping, I finally decided to try Ubuntu Mate 19.10 daily build on my T100ta. Kernal 5.3 has baytrail fixes. Had to add bootia32 file to the live usb EFI/boot folder and EVERYTHING works out of box! No c-state errors, no random freezing, backlight controls work, sound works, wifi, blutooth, EVERYTHING! No issues at all after 4 days of trying to break this install. Mate is very fast and aesthetically pleasing. If you want a completely functional Transformer, this is by far the best and simplest to install distro.

  2. I loved linux back then (mint to be specific) so I wanted to keep my desktop pc with Windows 10 and my laptop (with the pentium N3540) with Mint. But when I tried that or Ubuntu or Fedora, the damn thing just kept freezing after 5 minutes or so. Now after reading this I’ll give it a try once again, hopefully it runs with no problems.

Leave a Reply

Your email address will not be published. Required fields are marked *