Friday, March 20, 2015

Solved: Windows 8.1 Screen Brightness Adjustment Issue

I use to work late nights on my laptop and my kid won't allow me to leave the bedroom. The bright light would be a disturbance for my wife and kid. So, today I decided to resolve the screen brightness issue on my laptop at any cost. 

The automatic brightness adjustment feature was working very good when I got my laptop serviced which includes reload of the Operating System. Recently I noticed that neither the auto brightness work nor I was able to adjust the screen brightness manually.

I discovered that the issue was on a Monitor Driver installed by TeamViewer GmbH. TeamViewer is a remote desktop control software which assumed to be one of the most popular in its category of software. I resolved the issue by rolling back the Monitor driver to default Generic PnP Monitor driver.

Following are the below steps to Roll back the monitor driver:
My OS: Windows 8.1 64bit (Should be the same procedure for other versions of Windows)

  1. Open Windows Device Manager (Open Windows Run Command (Windows Key + R); Type devmgmt.msc and hit ENTER)
  2. Find Monitors in the device list and expand if there are more than one Monitors listed
  3. Right-click on the Standard Monitor item and select Properties
  4. On the Properties panel, navigate to Driver tab and select Roll Back Driver (Alt + R)
  5. When prompted to confirm, hit Yes. That's it!

The screen may flicker for a few times. As soon as the driver is rolled back, the brightness control will be back! Hope night owls and their families will be happy again!

DISCLAIMER: The below procedures are based on my personal experience and comes without any guarantee. You may use it at your own risk.

Sunday, January 04, 2015

Solved: Facebook App throws error: HTTP verb used to access this page is not allowed

Problem:
"HTTP verb used to access this page is not allowed"

Solution:
If you are getting the above error message on your Facebook App page, probably you are trying to access a static html page on your server. Rename the html page to server side extension (aspx / php).

How to force redirect all HTTP requests to HTTPS in IIS through Web.Config setting?

Web.config configuration setting to force redirect all http requests to https with all query string parameters in IIS 7.5 / 8.0 on Windows Servers.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <clear />
                <rule name="Redirect to https" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                    </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Notes:

  1. The above solution will work well with all hosts including shared hosting servers
  2. Ensure your https URL is functioning properly