NewsCrawler.org

How Windows analyzes black screens after force power-offs, and a Windows 3.1 case

Holding a PC's power button for 12 seconds turns the machine off at the hardware level without notifying the operating system, a safety feature for cases where the "Shut down" command doesn't work. After eight seconds of holding, the Windows kernel recognizes a force-power-off attempt and quickly takes a kernel dump[1] that is uploaded to the Windows Error Reporting service the next time the system is turned on. Sometimes four seconds isn't enough to collect the information and the dump is incomplete; the author believes that on Windows Insider builds a message asks the user to let go of the power button so more information can be gathered before the machine turns off. These emergency dumps are internally classified as "long power button hold" (LPBH)[2] failures.

The dumps record whether the screen consists entirely of black pixels; such failures are sub-classified as "black screen LPBH" and go to a special virtual team for analysis, of which the author is a member. Possible causes include a broken video driver, a video driver that is doing fine but receives black pixels from the desktop compositor[3], and cases where nobody is drawing anything to the screen — subdivided into "there is nobody around to draw anything" and "the person who normally draws stuff is hung."

In the Windows 3.1 days, a customer support call would today have been classified as a black screen bug: the customer saw only a blank screen after the startup logo went away. It turned out the customer liked the color black and set every color available in the Colors control panel — wallpaper, title bar, buttons, window background, and window text — to black. Because nothing was visible, the situation was hard to undo; the author does not know how it was fixed but guesses the support engineer booted into MS-DOS, ran EDIT.COM, and deleted the [colors] section from win.ini[4], restoring the system colors to defaults.

Read the original devblogs.microsoft.comDiscussion

Sources

  • devblogs.microsoft.com

    The support case of a customer who said that all they could see was a black screen

    7 comments

Published: First seen: Читать по-русски

Open as a page