Tuesday, November 15, 2016

"Fix" Gigabyte Motherboards That Seem to Be Dead on Arrival

I like Gigabyte motherboards. I had just about all other brands of motherboards failing on me before, but never Gigabyte motherboards.

So naturally, the last few times when I decided to upgrade my desktop computers, I decided to go with Gigabyte motherboards.

Unfortunately, now the X99 chipset based Gigabyte motherboards appeared to be dead on arrival each time.

The first one was a GA-X99-UD3P. I bought it with an Intel i7 5820K CPU. After all the parts were put together, when the computer was powered up, the speaker connected to the motherboard would beep many times, and the machine would then power cycle itself. This would repeat over and over again. I checked the AT motherboard POST beep codes, and it seemed to indicate that the CPU was bad.

I talked to the nice folks at Microcenter, where I bought the motherboard and CPU from. They felt that it was extremely unlikely the CPU was bad, so they replaced the motherboard for me. I installed the replaced motherboard, but to my surprise, the problem was the same!

So now, it must be the CPU then. I went back to Microcenter, and had the CPU replaced.  I installed the replaced CPU, and the problem was still the same!

At this point, it was obvious that this was a compatibility issue, not faulty parts. I never expected compatibility would be a problem, since Microcenter sold the CPU and motherboard as a bundle. Why would they bundle them together if they were not compatible with each other?

I gave up, and sent my computer to Microcenter service department to take a look. Days and fifty dollars later, I got my computer back. They fixed the problem by updating the motherboard's BIOS to a later version.

I did not think anything of the solution at the time. Microcenter would have older CPUs that they could have booted the computer with, and then they could updated the BIOS.

After eleven months of use, yesterday, this computer would no longer boot. I really do not have time for a lengthy fix, so I decided to buy a new CPU and motherboard combo, and just replace both.

This time I bought an i7 6800K CPU, and an GA-X99-SLI motherboard. I thought this way, I could do a simple swap of parts, then just continue working.

Well, no such luck. After replacing the CPU and the motherboard, the computer would just keep rebooting itself. Even worse than the first upgrade, there were no AT POST beeping codes. The speaker was completely silent. I even tried using the old CPU on the new motherboard, thinking that a new 2011-v3 motherboard should be at least compatible with i7 5820K.

Well, the computer still kept rebooting itself. Although at times it seemed to be doing device scans, it never beeped or showed anything on the screen.

There must be an easier way than sending the computer to Microcenter. I googled for an answer. To my amazement, Gigabyte motherboards can be flashed even without a CPU or any RAM installed. It does not matter if there is nothing shown on the screen. Gigabyte calls it Q-Flash. Q-Flash has been around for many years, but usually you would still boot up the computer and go into the CMOS setup to use Q-Flash. I never knew that it was not really necessary to boot into the CMOS setup screen.

At the back of these Gigabyte motherboards, there is one USB port that is color coded differently than the standard blue color for USB 3. It is white-color coded. I placed the latest BIOS file on a USB drive with FAT file system, and plugged it into this port. One of the online videos I found on google said that you needed to rename the BIOS file to "Gigabyte.bin". For good measures I placed two copies of the BIOS file on the USB drive. One with its original name, and one renamed to  "Gigabyte.bin".

The LED light on the USB drive started to blink like crazy. At first the machine was still rebooting, and the LED light would go out while the computer was briefly powered off, and then continued to blink while the power came back on.

After a few cycles, the computer would then stay on, and the LED light on the USB drive would continue to blink. At the same time an LED light on the motherboard near the USB port started to blink as well. After several minutes, the LED lights then stayed on constantly. They seem to indicate that the BIOS finished updating.

After I power cycled the computer, it would still not boot up. Then I remembered that I still had the old i7 5820K in there. So I swapped it out with the new i7-6800K.

When I powered up the beast this time, it booted all the way up, and the CMOS setup screen showed on the monitor, finally.








Tuesday, May 24, 2016

Windows 10 Apps from Windows Store Will Not Start

So Microsoft has taken away the old calculator, and given us a new one that runs on the new WinRT side of the house. As a result, when applications from Windows Store would not run, I was out of a calculator.

In Windows event log, I saw this:


Then I followed the message here to "Microsoft-Windows-TWinUI/Operational". It really did not give anything more:


I tried uninstalling it. Nothing happened after I selected "Uninstall" from the popup menu.  Microsoft has a site that can perform diagnostics, so I tried it:

http://windows.microsoft.com/en-us/windows-10/run-the-troubleshooter-for-windows-apps

It did nothing.

So I am on my own. I started a power shell window in admin mode, and ran "Get-AppxPackage *calc*":

Now I know that the full package name for the calculator is "Microsoft.WindowsCalculator_10.1601.49020.0_x64__8wekyb3d8bbwe". I tried "Remove-AppxPackage Microsoft.WindowsCalculator_10.1601.49020.0_x64__8wekyb3d8bbwe". That gave me a bunch of errors and refused to proceed. So I tried to directly re-install it by running "Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1601.4902
0.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode". This is what I got:


Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered. (Exception from
HRESULT: 0x80073CF6)
NOTE: For additional information, look for [ActivityId] 5ef603bf-b483-0008-6b97-f65e83b4d101 in the Event Log or use
the command line Get-AppxLog -ActivityID 5ef603bf-b483-0008-6b97-f65e83b4d101
At line:1 char:1
+ Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.Win ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Program File...ppxManifest.xml:String) [Add-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand


I then ran "Get-AppxLog -ActivityID 5ef603bf-b483-0008-6b97-f65e83b4d101" as suggested in the error message. Finally I was getting some useful information:

Windows cannot find the resource package manifest in the bundle file:
C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1601.49020.0_neutral
_split.scale-150_8wekyb3d8bbwe\AppxManifest.xml.
Windows cannot find the resource package manifest in the bundle file:
C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1601.49020.0_neutral
_split.language-zh-hans_8wekyb3d8bbwe\AppxManifest.xml.
error 0x80070002: Reading manifest from location: C:\ProgramData\Microsoft\Windo
ws\AppRepository\Microsoft.WindowsCalculator_10.1601.49020.0_neutral_split.langu
age-zh-hans_8wekyb3d8bbwe.xml failed with error: The system cannot find the
file specified.


Apparently if you have your screen scaled above 100% because of a 4K display, or if you are using a different language add-on, this is what you could get sometimes: broken Windows Store applications.

So I temporarily changed owners of these folders to my user account to gain full access, and then put the "TrustedInstaller" back as the owner. To find the "TrustedInstaller" you need to enter "NT SERVICE\TrustedInstaller" while the location is set to your computer, not an Active Directory.

For the "scale 150" file, I just made a copy of the "scale 100" file and renamed it to what the installer was complaining about. There was another app that had a "zh-hans" file, so I made a copy of that and renamed it using the calculator's full package name.

Then I ran "Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1601.4902
0.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode". This time, it worked. Now I have my calculator back.

I also had the same problems with Microsoft Solitaire Collection. I used the same fix, and that is now working also.

Update: on a different laptop running Windows 10, I got the same error on the Windows 10 Store application itself. The Windows 10 Store app shows a blank icon on the task bar. It is as if there is no application icon in that spot. When I clicked on it, The Store windows comes up briefly and then just disappears. "Sfc /scannow" etc. did nothing. Troubleshooting tools did nothing. The same steps showed that it was missing a scale 125 file and one for the language "zh-hans" as well. So Again I copied the scale 100 files to 125, and copied the default language folder to the missing "zh-hans" folder name. Now the icon is back, and the Store application launches fine.

Apparently this is a problem that has been plaguing Microsoft for quite some time. Even in the Windows 8 days a couple of years ago it had the same problems: http://programount.blogspot.com/2014/08/fix-windows-81-cannot-launch-pc.html. Even with the causes known for so long, they still cannot manage to fix it.