Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: How to kill pulseaudio to play pSX in 9.10?

  1. #1
    Join Date
    May 2007
    Beans
    65

    How to kill pulseaudio to play pSX in 9.10?

    Hi, i'm trying to kill pulseaudio to play pSX emulator, but every time i kill pulseaudio, pulseaudio restarts by itself.
    I even use a script, but it doesn't work. This is what i use:

    #!/bin/bash
    # A script to disable pulseaudio, run pSX, then renable pulseaudio

    gksu /etc/init.d/pulseaudio stop
    sleep 1
    gksu killall pulseaudio # Forcefully ends pulseaudio if still running
    sleep 1
    exec ./pSX
    sleep 1
    gksu /etc/init.d/pulseaudio start
    I know, i know, i have to improve my english.

  2. #2
    Join Date
    Jan 2008
    Location
    Argentina
    Beans
    755
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to kill pulseaudio to play pSX in 9.10?

    Code:
    gksu /etc/init.d/pulseaudio start
    doesn't this mean that at the end of your script you restart pulseaudio?

    wouldn't it be easier if you just:

    ALT+F2

    Code:
    killall pulseaudio
    before starting PSX manually?
    AMD Phenom II X3 720 Black Edition 2,8 GHz - GIGABYTE GA-MA770T-UD3P - 6 GB RAM Mushkin DDR3 1333 - ZOTAC GeForce 9800 GT 1 GB DDR3

  3. #3
    Join Date
    May 2007
    Beans
    65

    Re: How to kill pulseaudio to play pSX in 9.10?

    Before trying that script, i tried to kill it manually, but it has the power of the resurrection.
    I know, i know, i have to improve my english.

  4. #4
    Join Date
    Sep 2005
    Location
    Dallas, Tx
    Beans
    266
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: How to kill pulseaudio to play pSX in 9.10?

    gconftool-2 -s -t bool /apps/gnome_settings_daemon/plugins/sound/active false

    pkill pulseaudio
    Desktop
    Antec 300 Illusion, Athlon II X4 640, 8GB DDR3 1333, EarthWatts430W, Radeon HD 6670 1GB
    Laptop
    Lenovo Thinkpad Z61T, T7200@2.00GHz, 2GB DDR2, 100gb HD, TPM Encryption

  5. #5
    Join Date
    Apr 2006
    Beans
    7

    Re: How to kill pulseaudio to play pSX in 9.10?

    I had to add this line:

    autospawn = no

    in ~/.pulse/client.conf
    and then
    killall pulseaudio
    to stop pulse-audio from restarting automatically. I can now play warzone2100 and glest with sound.

  6. #6
    Join Date
    May 2007
    Beans
    65

    Re: How to kill pulseaudio to play pSX in 9.10?

    Adding autospawn = no in ~/.pulse/client.conf(i had to create the file) has worked perfectly, thanks.
    I know, i know, i have to improve my english.

  7. #7
    Join Date
    Feb 2008
    Beans
    75

    Re: How to kill pulseaudio to play pSX in 9.10?

    Thanks! Fantastic!

    Creating the file and adding the line + doing
    Code:
    killall pulseaudio
    allowed me to use an OSS only application without stuttering.

    Does anyone know if there is a way to restart bloody pulseaudio again without having to reboot?

  8. #8
    Join Date
    Jul 2009
    Beans
    56

    Re: How to kill pulseaudio to play pSX in 9.10?

    Does pasuspender not work?

    pasuspender ./pSX

  9. #9
    Join Date
    Feb 2008
    Beans
    75

    Re: How to kill pulseaudio to play pSX in 9.10?

    Quote Originally Posted by ekilfoil View Post
    Does pasuspender not work?

    pasuspender ./pSX
    Hum, very interesting. Thank you. I will give it a try (not on a Linux system now, unfortunately).

    But shouldn't we add "--" before the name of the executable file?

    Like this:

    Code:
    pasuspender -- ./<executable file>

    At least, it is what this page says:

    http://linux.die.net/man/1/pasuspender
    Last edited by Yeti can't ski; November 3rd, 2009 at 11:12 AM. Reason: grammar correction

  10. #10
    Join Date
    Jul 2009
    Beans
    56

    Re: How to kill pulseaudio to play pSX in 9.10?

    Quote Originally Posted by Yeti can't ski View Post
    Code:
    pasuspender -- ./<executable file>
    That should work as well. "--" means it's the end of getopt style options like the "-al" in "ls -al". On a completely unrelated note, that's how you would delete a file named "-rf":

    Code:
    rm -- -rf
    Without that, rm treats -rf like options.
    Last edited by ekilfoil; November 4th, 2009 at 02:41 AM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •