Jump to content

Howto disable and enable internal speakers on macbook with a click


4 posts in this topic

Recommended Posts

OK. it's possible with batch files and the original boot camp drivers.

 

First: get yourself devcon.exe from microsoft: http://support.microsoft.com/?kbid=311272

Second: get wait.exe: http://www.bjoernhenke.de/frame.htm?/wait/index.en.htm

 

Make a folder under c:\ called macbook

 

put wait.exe (from i386 folder) and devcon to c:\macbook

 

make a new text file and insert this:

____ snip ____

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0015\Settings\GPIO]

"00"=hex:85

"01"=hex:85

____ snip ____

rename this new textfile to on.reg

 

 

 

make a second text file and insert this:

____ snip ____

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0015\Settings\GPIO]

"00"=hex:05

"01"=hex:85

____ snip ____

rename this new textfile to off.reg

 

 

 

make a new text file and insert this:

____ snip ____

@echo off

regedit /S on.reg

devcon restart HD*

wait 2

____ snip ____

rename this file to on.bat

 

 

 

make a new text file and insert this:

____ snip ____

@echo off

regedit /S off.reg

devcon restart HD*

wait 2

____ snip ____

rename this file to off.bat

 

 

 

 

now create two links to the desktop to on.bat and off.bat, rename them and choose other icons.

 

Voila...

 

 

 

If sound is running when you klick on either of the batches, the dos-windows tells you have to reboot (thats why i wait 2 seconds). Just turn Itunes, windows mediaplayer or whatever off, click again, and you have changed the setting as you desired.

 

Have fun with your new "silence".

 

if you have an iMac, you have to change the registry keys, just search for them with regedit and change the .reg files.

 

Of course i recommend that you check the registry before you apply this hack, if the folders of the values are right.

 

Cupid

OK, I've tried this -- with the default MBP Boot Camp drivers -- to no avail. When I run the batch files, "on" works -- restarts successfully -- and "off" does not -- doesn't restart successfully. I opened regedit and watched the numbers change, so I think the reason is that the parameters set by your batch file are incompatible with my sound device. Anyone else having this problem or have any idea why the setting might be different?

×
×
  • Create New...