The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    ASUS G71V LEDs

    Discussion in 'Asus' started by Arrows, Jun 19, 2010.

  1. Arrows

    Arrows Notebook Enthusiast

    Reputations:
    0
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    15
    Hi,
    I've searched the net now for a few hours and the only code to control the ACPI driver + the Mail LED was this one:

    Code:
    #include <windows.h>
    HANDLE ATKACPIhandle;
    
    int WINAPI WinMain (HINSTANCE hThisInstance,
                        HINSTANCE hPrevInstance,
                        LPSTR szCmdLine,
                        int nFunsterStil)
    
    {
        HWND hwnd;                       
        WNDCLASSEX wincl;        
        
        DWORD bytes = 0;
    	struct cmbuf {
    		short cmds[2];
    		long cm2;
    	} cbuf;
    	long outbuf[192];
    
    	cbuf.cmds[0] = 0;
    	cbuf.cmds[1] = 4;
        if (strcmp(szCmdLine,"0"))
    		cbuf.cm2=0;
        else if (strcmp(szCmdLine,"1"))
    		cbuf.cm2=1;
    	else return 0;
    
    	long inbuf[5]={2,0x44454c4d,1,8,(long)&cbuf};
    
    	ATKACPIhandle = CreateFile("\\\\.\\ATKACPI",
    			GENERIC_READ|GENERIC_WRITE,
    			FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
    			0, NULL);
    
    	if (ATKACPIhandle){ 
        DeviceIoControl(ATKACPIhandle, 0x222404, inbuf, sizeof(inbuf),
    		outbuf, sizeof(outbuf), &bytes, NULL);
    	CloseHandle(ATKACPIhandle);}
        return 0;
    }
    
    

    It works perfectly fine but I haven't found any other codes to control other LEDs of the G71v / G50s

    I've only found those, but they dont work with the G71V (only the MLED works):
    Code:
    #define MLED	0x44454c4d
    #define TLED	0x44454c54
    #define WLED	0x44454c57
    
    #define LED	0x44454c00
    Does anyone know where I can find the codes for the G71V?


    Thanks very much in advance, it would be really cool if any1 had them :D