Jump to content











Photo
* * - - - 1 votes

[Solved!] Audio in LiveXP - [No] Problem!


  • Please log in to reply
36 replies to this topic

#1 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 19 May 2008 - 02:08 AM

I've been trying to get working audio in a LiveXP build and have been successful! BUT, all attempts end with same problem, hwpnp.exe apparently does something which causes my two main host partitions (C & D) to be seen as 'removable drives' and therefore inaccessible. This is a serious problem and really doesn't make sense, even if I use cmd parameters to isolate its function to my Creative Audigy sound card, it still affects almost every hardware listing in device mgr - why? Is there another way to get hardware recognised or is there some trick to it? I've tried every configuration of hwpnp.exe by itself; in xpe-pnp-aio and HWPnp scripts; are there any others to try? Again, the audio works great, just need to find a way around this annoying side effect. Thanks!

Creative Audigy working in LiveXP:
dmgraudjoy.jpg

Drive errors:
drverror.jpg

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 19 May 2008 - 07:35 AM

Definitely NOT what you asked, but what if you try using a filter driver like the Hitachi Microdrive cfadisk.sys or Anton Bassov's dummydisk.sys? ;)

They are both used to make a drive detected by windows as "removable" appear as "fixed".

jaclaz

#3 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 May 2008 - 10:09 AM

Drive errors:
drverror.jpg

Cool effect amalux!
Have never seen anything like it.
If you find out what exactly causes this, it would a very valuable information. As it would allow us to set the drive type to our liking.

Are you still using your 'extended' MPlayer script to get sound working?

;)

#4 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 19 May 2008 - 11:00 AM

Definitely NOT what you asked, but what if you try using a filter driver like the Hitachi Microdrive cfadisk.sys or Anton Bassov's dummydisk.sys? ;)

They are both used to make a drive detected by windows as "removable" appear as "fixed".

jaclaz

Interesting idea, I'll see if I can figure out how to apply it in this case. Thanks Jaclaz :thumbup:

#5 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 19 May 2008 - 11:20 AM

Cool effect amalux!
Have never seen anything like it.
If you find out what exactly causes this, it would a very valuable information. As it would allow us to set the drive type to our liking.
...

You mean, my biggest headache could be a useful tool to others? cool...

Are you still using your 'extended' MPlayer script to get sound working?

Yes but only until I work out the bugs in this, hopefully, 'universal' solution ;)

#6 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 May 2008 - 11:36 AM

You mean, my biggest headache could be a useful tool to others? cool...

Yep, nobody is useless! One can alwys still serve as a bad example! ;)

Yes but only until I work out the bugs in this, hopefully, 'universal' solution :thumbup:

The reason i ask is, you don't set any registry entries in it, while the AIO script does. Maybe the problem is related to this.


:thumbup:

#7 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 19 May 2008 - 11:47 AM

If it's useful a BartPE plugin for cfadisk.sys by cdob is here:
http://www.911cd.net...showtopic=21113

and here is the original .inf by Dietmar (for full XP):
http://www.pcreview....ead-2213125.php

dummydisk.sys should be similar.

Links:
http://xpefiles.com/...e/entry616.aspx
http://www.codeproje...ct_hooking.aspx

A reverse-dummydisk (to make "removable" a "fixed" drive) is part of the USB multiboot:
http://www.911cd.net...showtopic=20089

jaclaz

#8 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 19 May 2008 - 11:56 AM

Yep, nobody is useless! One can alwys still serve as a bad example! :thumbup:

Always nice to hear your not 'useless' ;)

The reason i ask is, you don't set any registry entries in it, while the AIO script does. Maybe the problem is related to this.

Problem occurs with or without MPlayer script included. I am getting a new error with the MPlayer script, 'dsound.dll not found', it's there. I'll look into that once this current issue is resolved. :thumbup:

#9 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 19 May 2008 - 12:05 PM

If it's useful a BartPE plugin for cfadisk.sys by cdob is here:
http://www.911cd.net...showtopic=21113

and here is the original .inf by Dietmar (for full XP):
http://www.pcreview....ead-2213125.php

dummydisk.sys should be similar.

Links:
http://xpefiles.com/...e/entry616.aspx
http://www.codeproje...ct_hooking.aspx

A reverse-dummydisk (to make "removable" a "fixed" drive) is part of the USB multiboot:
http://www.911cd.net...showtopic=20089

jaclaz

OK, I've got some reading to do, thanks Jaclaz ;)

#10 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 May 2008 - 11:36 PM

Always nice to hear your not 'useless' :thumbup:

Don't be so modest! :thumbup:

Problem occurs with or without MPlayer script included. I am getting a new error with the MPlayer script, 'dsound.dll not found', it's there. I'll look into that once this current issue is resolved. :thumbup:

So it's not a sound related problem but a general LiveXP error?

;)

#11 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 May 2008 - 06:34 AM

So it's not a sound related problem but a general LiveXP error?

It's 'sound related' in the sense that, the problem (hard drives showing up as removable drives in PE), only occurs when including audio support in livexp. The culprit seems to be hwpnp.exe which causes this result even if run as a stand alone startup item or if xpe-pnp multimedia script is included. The problem isn't loading the required drivers, it's getting the audio hardware recognized without causing this unwanted 'side effect'. Isolating hwpnp to the audio card [ +PCI\VEN_1102 -IDE -PCIIDE -@NET /r] still produces same error with the ide drives. Is there another way to accomplish this without calling hwpnp.exe?

#12 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 20 May 2008 - 12:36 PM

Amalux, have you tryed, what happens if you build LiveXP without sound support, but with HwPnP.exe?
Does this cause the same problem?
If not, it's not the fault of HwPnP.exe

btw. You could also try NaughtyPE, to see if you get the same weird behavior. ;)


:thumbup:

#13 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 May 2008 - 05:29 PM

Amalux, have you tryed, what happens if you build LiveXP without sound support, but with HwPnP.exe?
Does this cause the same problem?
If not, it's not the fault of HwPnP.exe

I'll test this and let you know...

btw. You could also try NaughtyPE, to see if you get the same weird behavior. ;)

If I download/run reccomended NaughtyPE and leave everything as it defaults I get errors and cannot complete the build to test :thumbup: I can post more details (if wanted); it looks like a great project and I was hoping to use it but when I ran into trouble I decided to focus on support in LiveXP.

#14 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 20 May 2008 - 07:16 PM

If I download/run reccomended NaughtyPE and leave everything as it defaults I get errors and cannot complete the build to test :thumbup:

;)

I can post more details

Yes, please!!!

:thumbup:

#15 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 20 May 2008 - 11:56 PM

:thumbup:


Yes, please!!!

:thumbup:

Just downloaded again and it's working! :thumbup:

Really nice package ;) and you've solved the two major problems I'm wrestling with! Audio supported and no drive errors, sweet. Now I just have to figure out how you did it :clap:

There are a few minor things, I get a bunch of (7-8) cmd window pop-ups during the build (xpe-pnp multimedia script) prompting to overwrite files, I'll see if there's a way to automate this (I got the same thing using that script in livexp). There's a few errors in the log, I patched MMC with CopyOrExpand,"%source_win%\URLMON.DLL","%target_sys%" to get rid of the one but I'm not sure what's going on with the 'ActiveShell'; I'll look at it later tonight when I have some time. Great job on the project! I love it, very naughty indeed :thumbup:

#16 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 21 May 2008 - 01:46 PM

Just downloaded again and it's working! :thumbup:

What were you thinking, scaring the bejesus out of an old man? That'll cost you, at least a round for the whole gang! ;)

:thumbup:

#17 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 May 2008 - 01:23 AM

...That'll cost you, at least a round for the whole gang! :thumbup:

;)

Anytime my friend :thumbup:

I am having a tough time, little things, like the annoying cmd prompts from XPE Multimedia and the ActiveShell errors, etc. were easy to resolve but I'm still struggling with a USB mouse that won't work (the USB_Support script should take care of this as it does in LiveXP) and I'm getting a number of 'unsigned driver' pop-ups which should be suppressed by the included DriverSigning script but aren't.

The real problem is trying to use BootSDI (a must for me); I'm getting log errors, like:
TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [[SetupData]]   

TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [BootDevice="ramdisk(0)"]   

TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [BootPath="\i386\System32\"]   

TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [OsLoadOptions="/noguiboot /fastdetect /minint /rdexportashd /rdpath=\i386\BootSDI.img"]
or pop-up errors, like: Error - TXTAddLine,"%TmpScript%","[dummy]","Place",2 which result in no image creation at all.

I'm not complaining or giving up, I'm just having a tougher time than I expected and I'm still no closer to audio support (without 'side effects') in LiveXP as well. A lot of these issues just don't make sense to me due to my lack of knowledge in this area and that's what is frustrating to me :thumbup:

I'm gonna keep trying and any suggestions or corrections are greatly appreciated as always! :thumbup:

#18 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 22 May 2008 - 01:09 PM

;) Are those all error/Problems you find in your patched LiveXP or are you talking about problems in NaughtyPE?

If i were you, i would first put myself a LiveXP core together and check that everything, i want, still works, else have a talk with Galapo to figure out where the error lies.
Only once you have a tested and proven reliable core, you can start adding and know that any problem is directly related to your newly added scripts.


:thumbup:

#19 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 May 2008 - 01:29 PM

Just downloaded again and it's working! ;)

Nice for you that it is working.

But I feel very uncomfortable with 'Suddenly it is working and nobody knows why'

Can you try to reproduce the old non-working status and then try to find out what happens to bring it to work?

Peter

#20 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 May 2008 - 01:35 PM

or pop-up errors, like: Error - TXTAddLine,"%TmpScript%","[dummy]","Place",2 which result in no image creation at all.

This error is caused by a problem with vdk /vdk_WB.

Maybe a reboot helps, maybe you must stop the vdk service by MMC.
I'm already thinking since a while to do something avoiding this 'feature' but until now I did not find a reasonable solution.

Peter

#21 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 May 2008 - 01:38 PM

The real problem is trying to use BootSDI (a must for me); I'm getting log errors, like:

TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [[SetupData]]   

 TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [BootDevice="ramdisk(0)"]   

 TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [BootPath="\i386\System32\"]   

 TxtAddLine - Failed to add line to file: [%BaseDir%\ISO\Ram\WINNT.SIF] line: [OsLoadOptions="/noguiboot /fastdetect /minint /rdexportashd /rdpath=\i386\BootSDI.img"]

As far as I remember, you are not a newbie :thumbup:

A newbie I would tell now: Read the forum's rules and post the log! ;)

Peter

#22 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 May 2008 - 03:45 PM

;) Are those all error/Problems you find in your patched LiveXP or are you talking about problems in NaughtyPE?

Sorry to confuse the issue, the NPE stuff should be kept for a differant topic. The issue of this topic is getting audio support in LiveXP without the side effect of hard drives being seen as removable in PE.

If i were you, i would first put myself a LiveXP core together and check that everything, i want, still works, else have a talk with Galapo to figure out where the error lies.
Only once you have a tested and proven reliable core, you can start adding and know that any problem is directly related to your newly added scripts.

Yes, I have a proven, reliable LiveXP core that I'm trying to add audio support for and have isolated the issue to adding any script that employs hwpnp.exe which causes fixed hard drives to be seen as removable in PE. BTW, this only affects how the drives are 'seen' in PE. The drives themselves are unaffected and 'go back to normal' when host is rebooted.

#23 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 May 2008 - 03:48 PM

Nice for you that it is working.

But I feel very uncomfortable with 'Suddenly it is working and nobody knows why'

Can you try to reproduce the old non-working status and then try to find out what happens to bring it to work?

Peter

My error, I forgot the variable of including BootSDI ;)

#24 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 May 2008 - 03:51 PM

Yes, I have a proven, reliable LiveXP core that I'm trying to add audio support for and have isolated the issue to adding any script that employs hwpnp.exe which causes fixed hard drives to be seen as removable in PE. BTW, this only affects how the drives are 'seen' in PE. The drives themselves are unaffected and 'go back to normal' when host is rebooted.

Amalux!
In spite that my previous post may be interpreted as kidding, I meant it seriously.

I think that there is something in the 'project build history' which causes that result.

And to look into the 'history' the log is needed.

Peter

#25 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 22 May 2008 - 03:51 PM

This error is caused by a problem with vdk /vdk_WB.

Maybe a reboot helps, maybe you must stop the vdk service by MMC.
I'm already thinking since a while to do something avoiding this 'feature' but until now I did not find a reasonable solution.

Peter

I thought I had stopped the service but I will keep a closer eye on this ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users