Jump to content
The Dark Mod Forums

(linux) dmargs.txt keeps getting blanked?


hobbes1069

Recommended Posts

I've run into a strange issue twice now. I setup my dmargs.txt with my sound card settings (now I get good audio!!!!) but twice now after a few successful runs I start the game and no audio.

 

I went and checked my dmargs.txt and it was blank! Thinking it was a fluke I discovered the right settings again and this time I made a copy called dmargs.txt.backup. Now it happened again and both files are blank!

 

This time I made a copy and put it in my home directory and also changed the permissions to read only. Hopefully it sticks this time.

 

Any idea what's going on?

 

Thanks,

Richard

Link to comment
Share on other sites

Not sure, but later I'll look at some things after I get home.

I kept having trouble with no audio lately. I use oss since alsa often gives me delayed audio, but lately (last few months) I have often had no audio due to no /dev/dps being found. Sometimes I would have a /dev/dps1 instead and have to change doom3's s_driver setting to that. Sometimes no /dev/dps* at all.

Yesterday I found a solution requiring module '

snd_pcm_oss'

being loaded at boot, or at least before playing TDM. Since pulseaudio's takeover, oss has been disabled by default during boot, with the necessary modules put in a blacklist so they don't auto-load. Doing 'modprobe snd-pcm-oss' worked for me in this situation. Not sure about your situation though.

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Have you tried using straight alsa with a dmargs.txt file? Other than the problem listed above it's been great. No delayed audio and the audio quality has been better too, but then again I upgraded from on-board sound to a real sound card recently (Asus Xonar DG)

 

Here's my dmargs.txt (with 5.1 surround sound sytem):

 

+set s_alsa_pcm surround51:CARD=DG,DEV=0

+set s_numberofspeakers 6

 

+set s_driver best

 

Dang it! When I went to look it up my dmargs.txt file was blank again! Had to use my backup from my home directory.

 

Richard

Link to comment
Share on other sites

Hmm... I use a real sound card too. HT Omega Claro Halo XT, which uses the C-Media CMI8788 driver (snd_oxygen).

What would I use for CARD= ? I see yours is DG for your card.

Also, all of those '+set' arguments can be added to the script or launcher application path, with no worry of ending up with a blank dmargs.txt file.

Edited by PranQster

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Dang it! When I went to look it up my dmargs.txt file was blank again! Had to use my backup from my home directory.

 

Richard

 

You may want to try doing 'chmod 644 dmargs.txt', or edit the file properties and set it to rw for user and only r for both group and others. That aught to prevent doom3 from overwriting it. Or go read-only all the way with 444 instead of 644.

 

By the way, I went back to alsa using the dmargs.txt file, but leaving out the CARD and DEV settings. Yes that seems to be working fine. I use headphones, so I set the number of speakers to 2

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

You may want to try doing 'chmod 644 dmargs.txt', or edit the file properties and set it to rw for user and only r for both group and others. That aught to prevent doom3 from overwriting it. Or go read-only all the way with 444 instead of 644.

 

By the way, I went back to alsa using the dmargs.txt file, but leaving out the CARD and DEV settings. Yes that seems to be working fine. I use headphones, so I set the number of speakers to 2

 

I already tried making the whole file read only but it didn't work. I'm not sure what's going on there. I already use a script from ~/bin to load darkmod so I may just make a fresh copy of dmargs.txt every time as well.

 

Yeah, the CARD and DEV settings probably are not needed. I looks like you already figured it out but the device just needs to be one listed from "aplay -L".

Link to comment
Share on other sites

Hmm... I use a real sound card too. HT Omega Claro Halo XT, which uses the C-Media CMI8788 driver (snd_oxygen).

What would I use for CARD= ? I see yours is DG for your card.

Also, all of those '+set' arguments can be added to the script or launcher application path, with no worry of ending up with a blank dmargs.txt file.

 

Yup, mine's CMI8786 based and it also uses the snd_oxygen driver. Sounds pretty good and even has a headphone amp, though I haven't tried it yet and only payed about $27 for it.

 

Richard

Link to comment
Share on other sites

Yup, mine's CMI8786 based and it also uses the snd_oxygen driver. Sounds pretty good and even has a headphone amp, though I haven't tried it yet and only payed about $27 for it.

 

Richard

 

That's awesome. LOL, you paid about 1/9 what I paid for my card and ended up with nearly the exact product... same quality in any case :)

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

I already tried making the whole file read only but it didn't work. I'm not sure what's going on there. I already use a script from ~/bin to load darkmod so I may just make a fresh copy of dmargs.txt every time as well.

 

Yeah, the CARD and DEV settings probably are not needed. I looks like you already figured it out but the device just needs to be one listed from "aplay -L".

 

Ahh, cool. For me it is CARD=halo,DEV=0. Nice to know.

 

My system also finds an nvidia audio adapter in the chipset, though the on-board audio hardware does not exist due to the presence of a copper heat-pipe cooling system for that very chipset, ROFL

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 5 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...