touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #72259
[Bug 1446027] Re: SNA acceleration causes sudden shutdowns and corrupts CMOS data on the the Asus UX21E ultrabook on a wide variety of kernels since at least Ubuntu 14.04
Here is what I get when I execute "apport-collect 1446027" in terminal
with xdiagnose installed: ERROR: Could not import module, is a package
upgrade in progress? Error: No module named PyQt4.QtCore
I'm currently running Kubuntu 14.10 Plasma Next technical preview. I've
got a working Kubuntu 14.04.2 disk image, so if there's no way to
circumvent this in 14.10 Plasma Next, I could quickly restore the image
and try the trick again. Or should I better try the same command in a
14.04 LiveCD environment? The bug can be reproduced on any Ubuntu flavor
and kernel version.
(Un)fortunately, it turns out this is not an X.org bug. Somehow I had a
sudden shutdown while on UXA acceleration and low battery -- in fact,
just a single shutdown in two days and a half though I'm intentionally
running the battery as low as possible and watching lots of online
videos -- but it's clearly not X.org itself. Switching back to SNA,
however, immediately resulted in multiple shutdowns.
I was able to dump and tear down the BIOS portion of the netbook's UEFI
BIOS and edit it to enable access to lots of hidden power management
options. I also updated the CPU microcode and I'm currently struggling
to inject a newer VBIOS OROM based off a generic Sandy Bridge VBIOS. The
latest official BIOS seems to contain some really dated OROMs. I'm
almost sure we have to blame BIOS, not Linux.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/1446027
Title:
SNA acceleration causes sudden shutdowns and corrupts CMOS data on the
the Asus UX21E ultrabook on a wide variety of kernels since at least
Ubuntu 14.04
Status in xorg package in Ubuntu:
Incomplete
Bug description:
SUMMARY: On the ASUS UX21E ultrabook, enabling SNA graphics
acceleration leads to spontaneous shutdowns while watching Flash video
in full screen AND using the battery as the power source, the problem
starts surfacing once the battery charge level drops below 33%. The
issue affects both x86 and x64 platforms, affects at least the 14.04
and 14.10 Ubuntu versions, affects at least the regular Ubuntu and its
Kubuntu and Lubuntu flavors, affects at least kernels 3.13, 3.14,
3.15, 3.16, 3.17, 3.18, 3.19 and 4.0. The issue can't be fixed by
changing the various i915 driver options like rc6 and semaphores,
neither does PCIE_ASPM play a role. Repetitive triggering of the bug
runs the machine into an even weirder state where it would chaotically
reboot every time a higher-than-moderate strain is put on the GPU, and
the only way to fix this is to detach both battery connectors from the
motherboard for a while (CMOS battery and the main power source
battery) The issue surprisingly disappears after a hard CMOS reset AND
setting the acceleration method to UXA. The BIOS version of my UX21E
is 214. I've also taken my UX21 to the official ASUS service center
and after running the tests they replied that the unit has no hardware
issues, so it is a Linux issue. A vaguely similar issue is reported to
affect UX21E running Windows 8, so it may be a crippled DSDT after
all.
THE LONG STORY:
=========================================================================================
IMPORTANT UPDATE! As of 14.04 and 14.10 using the default SNA graphics
acceleration instead of UXA leads to unexpected shutdowns and/or CMOS
settings corruption. To activate the bug, one must be:
-- Using the battery as the power source
-- Having the battery charge below 33%
-- Watching a FULLSCREEN video in Flash Player (e.g. youtube)
-- Both Pepper Flash in Chrome/Chromium and the regular Adobe Flash in
Firefox/Chromium are affected
This is the most typical scenario for triggering an unexpected
shutdown, but other variants do exist. Certain Flash-heavy sites like
speedtest.net can trigger this, as well as KDE's KWin window
compositor with certain GLX-accelerated eye candy options turned on.
The bug also affects at least Kubuntu and Lubuntu, but that's just
what I was able to confirm. Most likely it affects all other Ubuntu
flavors and even other distributions that use the latest Intel video
drivers AND employ SNA as the default acceleration method.
The issue persists with various Ubuntu versions (at least 14.04 &
14.10), various kernel versions (I tried almost every kernel from 3.13
to 4.0) and even using the cutting-edge drivers from the xorg-edgers
PPA does nothing to fix this. Both x86 and x64 platforms are affected.
Flash Player version plays no role, either. The bug apparently happens
because the ultrabook's ACPI-based power management mechanisms just
can't get on terms with the latest implementation of SNA. Something
happens when the battery charge drops below 1/3 -- and once SNA draws
too much power from the GPU, a shutdown happens. The various i915.*
driver options like rc6 and semaphores do nothing to fix this!
The worst thing is that after you get several unexpected shutdowns,
your UX21E may start rebooting chaotically whenever any program tries
to use graphics acceleration, be it Chromium's accelerated canvas
rendering or simply the window manager using transparency. This
further leads to file system corruption up to the point when you can
no longer boot into your user profile. You can still create another
user profile via the terminal, but this does not get rid of the reboot
glitch.
If you happen to run into this, you must perform a hard CMOS reset. To
do this, one must unscrew the twelve torx screws and remove the bottom
part of the casing, then detach *BOTH* the main battery connector and
the CMOS battery connector from the motherboard, then wait for a few
minutes and attach them back. Flushing CMOS programmatically with a
command-line utility like CmosPwd does not fix this issue! If you are
unsure how to open your UX21E or detach the battery connectors, search
youtube for an UX21E disassemby guide -- detaching the battery on this
model used to be a popular trick a few years ago when a certain
Windows glitch caused similar behavior and required hard CMOS reset as
well, so there are a number of videos and forum threads on this issue
across the web.
Once you have made sure your CMOS is okay (that is, you don't get
frequent shutdowns shortly after logging into the system while working
on battery with a charge below 33%) you can proceed to fix the
ultimate cause of this issue. If it exists, delete the
/usr/share/X11/xorg.conf.d/20-intel.conf file then create a new one
containing the following lines:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
EndSection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reboot and the issue is fixed!
I also recommend using the following kernel boot arguments with this
model to provide maximum power saving and stability in 14.04 and
14.10:
intel_pstate=enable pcie_aspm=force pcie_aspm.policy=default
ath9k.ps_enable=1 i915.semaphores=1 i915.enable_rc6=7 i915.powersave=1
i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.enable_fbc=1
Enabling 'i915.enable_fbc' and 'i915.lvds_downclock' can lead to minor
graphical glitches with SNA acceleration, but since SNA is a no go due
to the above mentioned bug, you can safely turn them on with UXA.
'pcie_aspm' absolutely needs being set to 'force' and
'pcie_aspm.policy' to 'default' -- the UX21E is very picky about this
as of the latest official kernels in 14.04 and 14.10.
'ath9k.ps_enable' is required to enable wireless power saving in power
managing software like TLP
I hope someone re-formats my remarks to fit into the article in a more
befitting manner and/or files a bug on the Ubuntu bug tracker because
I'm almost exhausted and broken while typing this. Tracking this
sucker down cost me almost two months of my life because once you run
into the chaotic reboot issue, you can't fix anything without hard
resetting the CMOS, and it took me too long to realize.
Thanks for understanding.
P.S. This may also affect other Asus ultrabooks with integrated Intel
graphics like UX31E. A Windows bug with very similar symptoms is known
to affect the whole model line, especially with Windows 8.1
=========================================================================================
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1446027/+subscriptions