Jump to content

Asus P5N7A-VM


DiaboliK
 Share

1,296 posts in this topic

Recommended Posts

Did you try using the flag arch=i386 instead of -x32?

 

I'm not sure if these two flag differs in anyway but just for the hack of trying.

 

And you see, that just deepens my curiosity, we are all installing the same vanilla SL, and we have almost identical hardware(if you don't have any add on PCI cards or graphics card, then 100% identical), how can our SL install result be so much different?

 

Also thanks for the pointer about an ATA device, I don't have any ATA hard drive but what I do have is an ATA optical drive, I'm just not too comfortable with SATA optical drive. Well, I guess I'd have to put a SATA optical drive on my next upgrade list....(along with a dedicated graphics card because the one onboard keeps overheating and ASUS completely ignores my technical support inquery....)

 

WTF!!! With arch=i386 it boots fine into 32 bit kernel!!!!!!! With Leopard I was doing it with -x32, so I supposed that SL was the same.

Perfect!! Booting into 32 bit kernel lets me install VMWare Fusion.

One thing less in which our installations are different.

 

Thanks!!

Link to comment
Share on other sites

which graphic card driver is everyone using here for SL?

 

I've tried installing NVkush and it works under 32bit kernal, but last night I was gonna test if I can boot 64bit. It booted, but no desktop, just a command line cursor on the top left corner, every once in a while I will see the default blue desktop background color flashing out and then again back to all black.

 

So I rebooted back into 32 bit mode, same thing, but this time I'm not looking at the command line cursor, the default blue desktop background showed up but it keeps showing the loading animation, screen flicks every few seconds.

 

Tried -f and -x at boot, doesn't help.... I had to reinstall my SL overnight last night...

Link to comment
Share on other sites

which graphic card driver is everyone using here for SL?

 

I've tried installing NVkush and it works under 32bit kernal, but last night I was gonna test if I can boot 64bit. It booted, but no desktop, just a command line cursor on the top left corner, every once in a while I will see the default blue desktop background color flashing out and then again back to all black.

 

So I rebooted back into 32 bit mode, same thing, but this time I'm not looking at the command line cursor, the default blue desktop background showed up but it keeps showing the loading animation, screen flicks every few seconds.

 

Tried -f and -x at boot, doesn't help.... I had to reinstall my SL overnight last night...

 

I haven't had any need for a graphics driver; the dsdt.aml from #660 works incredibly well

Link to comment
Share on other sites

Okay so here's where my situation stands in case in can help anyone - the DSDT from FrodoKenny, that works in Leopard (and also has the RTC fix) is working MUCH better (video wise) for me in Snow Leopard that the one from post #660. I can switch HDMI inputs and when I come back to the hackintosh, it again picks it up (just as it does in Leopard - so it's not a SwitchResX issue - using SwitchResX 4.0 in Leopard without any issues )

 

The *only* problem I have now is, I can't get audio to work again!!! It's in System Profiler, the ALC1200.kext (that worked previously with the post #660 DSDT) is in S/L/E but I've got no audio device in the pref pane. Also, and this may be a contributing factor, both DSDT's have ALC1200 as the ID of the audio yet in System Profiler, it shows up as ALC888 (which I'm aware is the same as the ALC1200). Kind of lost here so I thought I'd post both DSDT's and see if anyone can make sense of this. Thanks.

dsdt.aml_FRODOKENNY.zip

dsdt.aml_anitanium.zip

Link to comment
Share on other sites

Savestheday...does shutdown/sleep/restart work for you? If so, what BIOS settings are you using?

 

sleep works in Snow Leopard but not in Leopard. I do however have SleepEnabler.kext in on my Snow Leopard Chameleon USB stick.

 

A little more info for anyone interested. It seems there are some differences in the two DSDT files I posted (as expected) in the audio section. When trying to copy from Aniantium's to FrodoKenny's, I get the video switching bug (I think).

 

Also, I've found out that ALC1200.kext is NOT getting loaded with FrodoKenny's DSDT and I cannot load it manually. Kextload errors out...still investigating.

Link to comment
Share on other sites

I have an e6600 and I used the p-states calculator to get:

 

Name (_PSS, Package ()
Package (0x06) { 2394, 64320, 10, 10, 0x928, 0x928 },
Package (0x06) { 2128, 55808, 10, 10, 0x826, 0x826 },
Package (0x06) { 1862, 46442, 10, 10, 0x722, 0x722 },
Package (0x06) { 1596, 38272, 10, 10, 0x61F, 0x61F }
})

 

I noticed that I have less entries than the other p-states posted here for the e5200 etc... So I would just replace all of the entries in the dsdt with the ones I have correct, after converting the decimal numbers to hex?

 

EDIT: I attempted what I said and it resulted in a kernel panic... I'm not sure what I did wrong.

Link to comment
Share on other sites

Okay so here's where my situation stands in case in can help anyone - the DSDT from FrodoKenny, that works in Leopard (and also has the RTC fix) is working MUCH better (video wise) for me in Snow Leopard that the one from post #660. I can switch HDMI inputs and when I come back to the hackintosh, it again picks it up (just as it does in Leopard - so it's not a SwitchResX issue - using SwitchResX 4.0 in Leopard without any issues )

 

The *only* problem I have now is, I can't get audio to work again!!! It's in System Profiler, the ALC1200.kext (that worked previously with the post #660 DSDT) is in S/L/E but I've got no audio device in the pref pane. Also, and this may be a contributing factor, both DSDT's have ALC1200 as the ID of the audio yet in System Profiler, it shows up as ALC888 (which I'm aware is the same as the ALC1200). Kind of lost here so I thought I'd post both DSDT's and see if anyone can make sense of this. Thanks.

 

It's because I use layout-id 888 and anitanium uses 12. So you can change the layout-id in the ALC1200.kext to 888, the layout-id in the DSDT to 0x78, 0x03, 0x00, 0x00 0x0c, 0x00, 0x00, 0x00 for ALC1200.kext of course, or use the attached LegacyAppleHDA.kext.

n.b.

DSDT's PinConfiguration determines what's shown in System Profiles, no matter if audio is working.

My dsdt is based on bios 0407, I'll make one for 0514 someday soon.

 

Btw, I don't understand why everybody is adding their P-states to the DSDT. This info is already correct in the SSDT tables (for me at least) which the bios generates for you. The only thing is that you can't change the CPU names. So processor names should be P001 to P004 to match the SSDT.

LegacyAppleHDA.kext.zip

Link to comment
Share on other sites

It's because I use layout-id 888 and anitanium uses 12. So you can change the layout-id in the ALC1200.kext to 888, the layout-id in the DSDT to 0x78, 0x03, 0x00, 0x00, or use the attached LegacyAppleHDA.kext.

n.b.

DSDT's PinConfiguration determines what's shown in System Profiles, no matter if audio is working.

My dsdt is based on bios 0407, I'll make one for 0514 someday soon.

 

Btw, I don't understand why everybody is adding their P-states to the DSDT. This info is already correct in the SSDT tables (for me at least) which the bios generates for you. The only thing is that you can't change the CPU names. So processor names should be P001 to P004 to match the SSDT.

 

Frodo, you rule as always...I'll check this out later. I worked it out by copying the audio section of anitanium's into your DSDT. Now I've been attempting the opposite - it's clear that your DSDT is better for video (for me at least - dunno what you did different!), but anitanium's provides me sleep - so I'm copying your video into anitanium's DSDT to see if I can get the best of both worlds.

 

Thanks for taking the time to help me out bro!

Link to comment
Share on other sites

Okay guys,

Here's what I've done, what's working, and what's not....

 

1.) I've taken Anitanium's DSDT from post #660 and used the video section from FrodoKenny's DSDT.aml and brought it into Anitanium's.

2.) Video switching (between HDMI ports for those not following) is WORKING!

3.) Audio, with ALC1200.kext installed to /S/L/E, is WORKING incl. optical out and DTS. I did read dsdga said you had to hexedit the AppleHDA binary to get it working properly. What values should I be looking for in HexEdit?

4.) Sleep works, however, it won't wake from bluetooth devices. The option to wake from bluetooth is greyed out. Also, when it wakes, my CMOS gets reset even though, as you can see from the attached DSDT.aml, I have the CMOS fix in there.

 

So as long as you're not using sleep, this is the DSDT that may work for you. Let me know.

DSDT.aml.zip

Link to comment
Share on other sites

Frodo, you rule as always...I'll check this out later. I worked it out by copying the audio section of anitanium's into your DSDT. Now I've been attempting the opposite - it's clear that your DSDT is better for video (for me at least - dunno what you did different!), but anitanium's provides me sleep - so I'm copying your video into anitanium's DSDT to see if I can get the best of both worlds.

 

Thanks for taking the time to help me out bro!

 

Sleep problem is probably because the bios version don't match (0407 that I used is quite old by now).

Difference in video is probably in NVCAP, second guess would be @0,fboffset that is needed sometimes.

 

 

3.) Audio, with ALC1200.kext installed to /S/L/E, is WORKING incl. optical out and DTS. I did read dsdga said you had to hexedit the AppleHDA binary to get it working properly. What values should I be looking for in HexEdit?

4.) Sleep works, however, it won't wake from bluetooth devices. The option to wake from bluetooth is greyed out. Also, when it wakes, my CMOS gets reset even though, as you can see from the attached DSDT.aml, I have the CMOS fix in there.

 

So as long as you're not using sleep, this is the DSDT that may work for you. Let me know.

 

You need to replace hex values 8508EC10 with 8808EC10 in order to match with our codec id. This enables AC3 and DTS pass-through. I think the SL binary has four instances.

 

Never had problems with sleep or CMOS resets, must be something of the newer bioses. No restart or shutdown problems either btw.

Link to comment
Share on other sites

Sleep problem is probably because the bios version don't match (0407 that I used is quite old by now).

Difference in video is probably in NVCAP, second guess would be @0,fboffset that is needed sometimes.

 

 

 

 

You need to replace hex values 8508EC10 with 8808EC10 in order to match with our codec id. This enables AC3 and DTS pass-through. I think the SL binary has four instances.

 

Never had problems with sleep or CMOS resets, must be something of the newer bioses. No restart or shutdown problems either btw.

 

What if my receiver is already reporting that DTS is being passed through? BTW, you're probably right, I'm using a newer BIOS (0514). Wondering if that's what aninatium used.

Link to comment
Share on other sites

nologic:

 

the dsdt.aml from Peluco should work fine for you. fakesmc.kext is a replacement kext for AppleDecrypt and Disabler, so remove them. also, any time you're changing kext, you need to repair permissions and rebuild kextcache. Use kextutility to do this (drag the folder onto the kextutility icon, enter your password, and you're done). once you repair permissions and rebuild kextcache your audio should be working.

 

Thanks for the help. Maybe you can help me with my new problem. The audio shows up correctly (according to the ALC1200 thread) in system profiler, but nothing shows up for input/output in system preferences. I'm still using the dsdt.aml that Peluco posted with 10.5.6. It doesn't seem to make a difference where I put the ALC1200.kext (/S/L/E or /E/E).

Link to comment
Share on other sites

i was using 407 rom

now i'm using 514

i did dsdtgui again

 

sleep doesn't work

shutdown and restart work

 

With the DSDT I'm using (.dsl in post #779, .aml in post #782, with p states for e5200) and ROM 514, in my system sleep works flawlessly, but for shutdown and restart I need to have installed OpenHaltRestart.kext.

For sleep to work I need to have the video memory at 256Mb. With 512Mb the system doesn't sleep.

Link to comment
Share on other sites

What if my receiver is already reporting that DTS is being passed through? BTW, you're probably right, I'm using a newer BIOS (0514). Wondering if that's what aninatium used.

 

I think that is only 2 channel. You can check if you have "Encoded digital audio" under digital output in the Audio/Midi configuration (in utilities).

 

Thanks for the help. Maybe you can help me with my new problem. The audio shows up correctly (according to the ALC1200 thread) in system profiler, but nothing shows up for input/output in system preferences. I'm still using the dsdt.aml that Peluco posted with 10.5.6. It doesn't seem to make a difference where I put the ALC1200.kext (/S/L/E or /E/E).

 

Audio info in system profiler indicates your dsdt.aml or efistrings are working (injecting PinConfigurations). Inputs and outputs in system preferences indicates ALC1200.kext is loading, which apparently is not. Put it in /S/L/E to start. Rebuilt your cache or boot with -f. It seems I have to reboot once more after that to get to work sometimes.

 

With the DSDT I'm using (.dsl in post #779, .aml in post #782, with p states for e5200) and ROM 514, in my system sleep works flawlessly, but for shutdown and restart I need to have installed OpenHaltRestart.kext.

For sleep to work I need to have the video memory at 256Mb. With 512Mb the system doesn't sleep.

 

Good point. I'm also at 256MB.

Link to comment
Share on other sites

I edited my dsdt a bit (still 0407) to add the device-id of the sata controller as shown many times before in this thread.

 

Before:

			Device (SATA)
		{
			Name (_ADR, 0x000B0000)
			Device (PRT0)
			{
...

After:

			Device (SATA)
		{
			Name (_ADR, 0x000B0000)
			Method (_DSM, 4, NotSerialized)
			{
				Store (Package (0x03)
					{
						"device-id",
						Buffer (0x04)
						{
							0xB9, 0x0A, 0x00, 0x00
						},
						Buffer (0x01)
						{
							0x00
						}
					}, Local0)
				DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
				Return (Local0)
			}
			Device (PRT0)
			{
...

 

Note that I also added the Buffer (0x01) part to each _DSM method as is done in real mac dsdts.

 

Furthermore, I added the AFGLowPowerState, CodecAddressMask, platformFamily to get rid of some sound assertions. Note that this hides the NVidia HDMI audio output, which isn't working (yet) anyway.

							"AFGLowPowerState",
						Buffer (0x04)
						{
							0x03, 0x00, 0x00, 0x00
						},
						"CodecAddressMask",
						Buffer (0x01)
						{
							0x01,
						},
						"platformFamily",
						Buffer (0x01)
						{
							0x00,
						},

 

Because LPC is now supported natively and AHCIport is added to the dsdt, I only need the dsdt.aml, LegacyAppleHDA.kext and LegacyIOBlockStorage.kext besides FakeSMC and Chameleon RC3. Both 10.5.8 and 10.6 are working flawless with these (with only FakeSMC different between Leopard and Snow).

 

LegacyAppleHDA also works from /Extra/Extensions if I make an Extensions.mkext, but sometimes I need to reboot twice to get it to work after a new cache is build. Note that I use layout-id 888 instead of 12!

 

I also use a smbios.plist for a Macmini3,1 for this board as it is an almost exact match.

 

So everything needed for this board (except FakeSMC) for either Leopard 10.5.8 or Snow Leopard 10.6 is attached! Couldn't be more simple... (well, maybe a zip of /Extra or a dmg of a working system or a guide or ...)

Asus_P5N7A_VM.v2.dsl.zip

dsdt.aml.zip

LegacyAppleHDA.kext.zip

LegacyIOAHCIBlockStorage.kext.zip

smbios.plist.zip

Link to comment
Share on other sites

I edited my dsdt a bit (still 0407) to add the device-id of the sata controller as shown many times before in this thread.

 

Before:

			Device (SATA)
		 {
			 Name (_ADR, 0x000B0000)
			 Device (PRT0)
			 {
...

After:

			Device (SATA)
		 {
			 Name (_ADR, 0x000B0000)
			 Method (_DSM, 4, NotSerialized)
			 {
				 Store (Package (0x03)
					 {
						 "device-id",
						 Buffer (0x04)
						 {
							 0xB9, 0x0A, 0x00, 0x00
						 },
						 Buffer (0x01)
						 {
							 0x00
						 }
					 }, Local0)
				 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
				 Return (Local0)
			 }
			 Device (PRT0)
			 {
...

 

Note that I also added the Buffer (0x01) part to each _DSM method as is done in real mac dsdts.

 

Furthermore, I added the AFGLowPowerState, CodecAddressMask, platformFamily to get rid of some sound assertions. Note that this hides the NVidia HDMI audio output, which isn't working (yet) anyway.

							"AFGLowPowerState",
						 Buffer (0x04)
						 {
							 0x03, 0x00, 0x00, 0x00
						 },
						 "CodecAddressMask",
						 Buffer (0x01)
						 {
							 0x01,
						 },
						 "platformFamily",
						 Buffer (0x01)
						 {
							 0x00,
						 },

 

Because LPC is now supported natively and AHCIport is added to the dsdt, I only need the dsdt.aml, LegacyAppleHDA.kext and LegacyIOBlockStorage.kext besides FakeSMC and Chameleon RC3. Both 10.5.8 and 10.6 are working flawless with these (with only FakeSMC different between Leopard and Snow).

 

LegacyAppleHDA also works from /Extra/Extensions if I make an Extensions.mkext, but sometimes I need to reboot twice to get it to work after a new cache is build. Note that I use layout-id 888 instead of 12!

 

I also use a smbios.plist for a Macmini3,1 for this board as it is an almost exact match.

 

So everything needed for this board (except FakeSMC) for either Leopard 10.5.8 or Snow Leopard 10.6 is attached! Couldn't be more simple... (well, maybe a zip of /Extra or a dmg of a working system or a guide or ...)

 

As usual, you're brilliant with this stuff....sound is working with LegacyAppleHDA in /Extra/Extension.mkext The extensions I'm using are:

 

fakesmc.kext

LegacyAppleHDA.kext

LegacyIOAHCIBlockStorage.kext

OpenHaltRestart.kext

Sleepenabler.kext

 

Are you able to restart without OpenHaltRestart.kext in 10.6? Also, is sleep working without Sleepenabler.kext?

 

BTW, you were right...I hexedited my AppleHDA.kext and sure enough, I now have Encoded Digtal Output. If I choose that in the Audio Midi Utility, then quit the Audio Midi Utility, next time I start it 2ch is still chosen....this doesn't matter, right?

 

Any chance of getting a DSDT based on 0514? Thank you again for all of your help!!!

Link to comment
Share on other sites

I was reading this guide form this forum and it talks about must have a working version of Leapord installed on the first partition. I can't get a version working at all.

I have the files Universal OSx86 Installer but what do i do with it? burn it? put it on a USB stick?

Sorry to ask stupid questions but i am very new to this and the terms involved.

Can someone help me out here?

 

 

 

Here's my meager attempt at a step by step walkthrough. When finished you should have a stable, functional, vanilla install. I followed these steps twice and it worked great both times. (After 30+ hours of trial end ERROR!) I've attached or linked to all the files needed throughout the post. That being said, lets get started:

 

1) From a working Mac, use Disk Utility to format the hard drive you will use for your hack. Make sure to format in Mac OS Extended (Journaled) and select GUID under options when repartitioning. The drive can be connected any which way, external, internal, USB, SATA, IDE...

th_1Format.jpg

 

2) Install OSx 10.5.5 (NoPE version) on the freshly formatted drive using the Universal OSx86 Installer. Before this step is performed, the 10.5.5 disk or image must be mounted.

th_2OpenInstaller.jpg

Make sure to select the right drive:

th_3ChooseDestination.jpg

 

3) Install the Apple - Leopard 10.5.6 update to the drive:

th_41056.jpg

 

4) Using the Universal OSx86 Installer, install the essentials kext package, boot delay > 0sec, monitors native resolution (not necessary), EFI Chameleon V 1.0.12, and the two audio kext's. Audio_Kext_s.zip (props go to frodokenny for the audio fix).

th_5UniversalOSx86Installer.jpg

 

5) Copy the DSDT.aml file to the root folder of the new drive. (Props to DiaboliK)

New DiaboliK DSDT (2/16/09)

th_6DSDT.jpg

 

6) Delete the AppleIntelCPUPowerManagement.kext file located in: System/Library/Extensions/

th_7ApplIntelCPUPwrMgmt.jpg

 

7) Close all open apps and shutdown the computer with the drive still mounted. When I did this it said that it was building the necessary cache files for boot for a couple seconds before shutting down. I'm not sure that it's mandatory but I know that it worked for me.

 

8) Attach the fresh drive to the P5N7A-VM via IDE or SATA. I can confirm that both methods work. USB may even work when set to FullSpeed (USB1) but will be extremely slow and is NOT recommended. When set to HighSpeed the OS randomly locks up at different stages of the boot. Note: Some have claimed that only the two black SATA ports support AHCI so you may want to use one of those if using SATA.

 

9) Configure the P5N7A-VM BIOS. Critical thing here is enabling AHCI for the SATA ports and making sure that Legacy USB Support is either off or set to Full Speed. I'm not sure how much else really matters. Here are my settings:

th_IMG_0029.jpgth_IMG_0030.jpgth_IMG_0031.jpgth_IMG_0032.jpgth_IMG_0033.jpgth_IMG_0034.jpg

 

10) Boot into Leopard! Really, I just let it boot straight through with no command line switches and it worked beautifully.

 

11) Install nvkush from DiaboliK. Restart the computer then change your display color profile to the Adobe RGB. You should now have full hardware acceleration although the model number doesn't display correctly.

 

12) ENJOY! My hack has been running flawlessly for two weeks now just chugging along. The only problem I have is that sleep does not work. I've disabled it in the power settings. Otherwise everything is working beautifully.

Link to comment
Share on other sites

But do i need a copy of Leopard running on my system?

 

You need a copy of 10.5.6 or above, the 10.5.4 disc won't work. You'll still need to be able to boot from a Chameleon CD that will need to be built on OS X.

 

Basically, it's easier if you already have Mac OS X installed.

 

I'm feeling generous, so I made this boot disc for you. It's got snow leopard stuff, let me know if it works for Leopard

 

http://www.mediafire.com/file/lnnnmkz3wkl/p5n7a-vm.iso

 

Boot the Retail DVD:When the bootloader ask you for rescan, press ENTER.Go to boot options (f8), Swap disks, then press ESC to rescan drive. When the name of the DVD appears, press ENTER.

Link to comment
Share on other sites

 Share

×
×
  • Create New...