ACPI Error: Method parse/execution failed [_GPE._L6F]

I recently built a PC based on Intel’s latest Skylake CPU (i5-6500) and Z170 chipset (AsRock Z170 Pro4), and installed Ubuntu 15.10 on it. After setting up, however, I found that the kernel message buffer was flooded with this error message. This is how I fixed it.

TL;DR

This is how to fix it: add this line to /etc/rc.local:

echo«disable» > /sys/firmware/acpi/interrupts/gpe6F

1

Then reboot your PC, the error message should be gone. If you want to learn more about how I came up with fix, keep reading.

The Symptoms

As described earlier, after the system booted up, this error message flooded the kernel ring

Attempts

It seems that adding acpi=off to kernel arguments could eliminate this error, but that will also disable all the ACPI functionality and the system would not be shut down properly (got stuck when do a sudo reboot).

I also updated to the latest BIOS (v2.80) from AsRock, that still does not fix the problem.

Finally, later on that thread, somebody mentioned that we could just disable the GPE.L6F function by echoing disable to a specific pseudo file in /sys directory, hence the solution mentioned earlier.