Contribute
Register

VoodooHDA Permanent SSE2 Automation

Status
Not open for further replies.
Joined
Apr 3, 2011
Messages
73
Motherboard
Max OS X Lion
CPU
i7 2600k
Graphics
Ge Force GTX460
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Hey Guys,

I discovered while using VoodooHDA that sound was distorting until "Use SSE2" in the VoodooHDA Pref Pane was clicked. This is an easy fix except that every time you reboot you had to go in and enable that checkbox again.

EDIT: The "Vectorize" option in the VoodooHDA info.plist is supposed to toggle SSE2 however it doesn't do anything when I toggle it to <true/>. I've been reading and it turns out it's a bug.

I couldn't find a solution for the repetitiveness, so I wrote this little applet and wanted to share.

Basically, the applet navigates to the VoodooHDA pref pane, checks to see the status of "Use SSE2" and clicks it if necessary before exiting out of system preferences completely.

to use it:

1. Download and Unzip the attached required files
2. Install the VoodooHDA PrefPane if it isn't already installed by double clicking the file
3. Copy "VoodooHDA SSE2 Enabler" into your "Applications" Folder
4. Go to System Preferences > Users and Groups > Login Items
(Ensure your user is selected if multiple users on the machine)
5. Click the "Plus" icon at the bottom to add a login item
6. It will open up a window that should already be in the "Applications" folder, otherwise navigate to "Applications", navigate to the bottom and select "VoodooHDA SSE2 Enabler"
7. Enjoy stress free automation

That will do it. Every time you boot, you will see the System Preferences pane quickly flash up and tick the required box and then exit. This is normal.

EDIT: You will need to check "Enable access for assistive devices" under the Universal Access Pref Pane for this to work.

- jimmysticks
 

Attachments

  • VoodooHDA.prefPane.zip
    51.4 KB · Views: 667
  • VoodooHDA SSE2 Enabler.zip
    25.6 KB · Views: 992
For those interested, here is the source code for the applet. It is created in AppleScript Editor and saved as an application to be executable.

Code:
---------------------------------------------------------------------
-- This is an applet to automatically turn on the SSE2
-- option in the VoodooHDA Preference Pane for those
-- experiencing distortion on using the kext
---------------------------------------------------------------------
-- Concept by jimmysticks on the tonymacx86 forum
-- Code manipulated from various sources online
-- You are free to use and distribute
---------------------------------------------------------------------

-- call up system preferences and reveal voodoohda pref pane
tell application "System Preferences"
	activate
	reveal (pane id "org.voodoo.VoodooHDA")
end tell

tell application "System Events"
	tell process "System Preferences"
		-- check the current value of the checkbox and change it if needed
		tell checkbox "Use SSE2" of group 2 of window 1
			repeat until exists (* wait until the object is accessible *)
				delay 0.2
			end repeat
			if value is not 1 then click
		end tell
		
		-- quit system preferences
		tell application "System Preferences"
			quit
		end tell
	end tell
end tell
 
I'm using your script and wanted to say thanks! :headbang:

Happy Holidays

I added the "Enhance stereo" setting for myself, in case anyone wants it:

Code:
---------------------------------------------------------------
-- This is an applet to automatically turn on the SSE2
-- option in the VoodooHDA Preference Pane for those
-- experiencing distortion on using the kext
---------------------------------------------------------------------
-- Concept by jimmysticks on the tonymacx86 forum
-- Code manipulated from various sources online
-- You are free to use and distribute
---------------------------------------------------------------------

-- call up system preferences and reveal voodoohda pref pane
tell application "System Preferences"
	activate
	reveal (pane id "org.voodoo.VoodooHDA")
end tell

tell application "System Events"
	set visible of process "System Preferences" to false
	tell process "System Preferences"
		-- check the current value of the checkbox and change it if needed
		tell checkbox "Use SSE2" of group 2 of window 1
			repeat until exists (* wait until the object is accessible *)
				delay 0.2
			end repeat
			if value is not 1 then click
		end tell
		
		tell checkbox "Enhance stereo" of group 2 of window 1
			repeat until exists (* wait until the object is accessible *)
				delay 0.2
			end repeat
			if value is not 1 then click
		end tell
		-- quit system preferences
		tell application "System Preferences"
			quit
		end tell
	end tell
	
end tell
 
edit: deleted post

problem fixed, had to delete applehda.kext and fix/repair permissions, then installed voodoohda 2.7.2 from multibeast. Did it before, didn't work, did it again, works this time. My laptop is just went from 90% to 95% functional! :)

(ASUS K53E-BD4DT with ALC269)
 
Thanks heaps, this was really annoying before.
 
Hi. The script is great. I found a problem on my laptop though. It has various options of output, and it was applying the SSE2 settings on another device.

I added code for activating the Speaker (Analog) option and then selecting the SSE2 checkbox. You can change it if you require it. I don't know much about applescript, so my code can be greately improved.

Thanks for the original script.

Code:
---------------------------------------------------------------
-- This is an applet to automatically turn on the SSE2
-- option in the VoodooHDA Preference Pane for those
-- experiencing distortion on using the kext
---------------------------------------------------------------------
-- Concept by jimmysticks on the tonymacx86 forum
-- Code manipulated from various sources online
-- You are free to use and distribute
---------------------------------------------------------------------

-- call up system preferences and reveal voodoohda pref pane
tell application "System Preferences"
	activate
	reveal (pane id "org.voodoo.VoodooHDA")
end tell

tell application "System Events"
	set visible of process "System Preferences" to false
	tell process "System Preferences"
		
		
		tell pop up button 1 of window 1
			repeat until exists (* wait until the object is accessible *)
				delay 0.2
			end repeat
			click
			tell menu 1
				click menu item "2: Speaker (Analog)"
			end tell
		end tell
		
		-- check the current value of the checkbox and change it if needed
		tell checkbox "Use SSE2" of group 2 of window 1
			repeat until exists (* wait until the object is accessible *)
				delay 0.2
			end repeat
			if value is not 1 then click
		end tell
		
		tell checkbox "Enhance stereo" of group 2 of window 1
			repeat until exists (* wait until the object is accessible *)
				delay 0.2
			end repeat
			if value is not 1 then click
		end tell
		-- quit system preferences
		tell application "System Preferences"
			quit
		end tell
	end tell
	
end tell
 
Your script works great for me. I've tested it and it always applies the SSE2 fix. However...VoodooHDA has an official settings loader application. MultiBeast does not include this application, but the official installer does. It's called VoodooHdaSettingsLoader. All you have to do is add it to your login items, and it loads the settings from the VoodooHDA preference pane. All I need to do is enable SSE2, so I will keep using your script instead. I've attached the application.
 

Attachments

  • VoodooHdaSettingsLoader.zip
    11.6 KB · Views: 279
i did not managed to solve that problem please anybody help !!
 
Status
Not open for further replies.
Back
Top