On 11/13/11 07:01, Daniel Martí wrote:
I use amixer with sexex() and it works. Maybe you have pulseaudio installed?

Zsolt Udvari <[email protected]> wrote:

    Maybe 'amixer' hangs? I think you should try run these commands from
    commandline and check it first.

    Zsolt


    2011/11/13 Daniel Hilst Selli<[email protected]>:
    >  Anyone knows why awesome hangs when I put os.execute("amixer get 
Master") or
    >  os.execute("amixer -c0 -D default get Master") on rc.lua??
    >
    >  []'s
    >
    >  --
    >  To unsubscribe, send mail to [email protected].
    >

    --
    To unsubscribe, send mail to [email protected].

I have amixer and pulseaudio installed and the command works fine on shell. The problem seems to be between awesome and pulseaudio. If I put -c0 and not -D default, so I take the real card and not the pulse card, it works, resuming os.amixer("amixer -c0 get Master") works. More strange yet, if I put on awful.util.spawn("amixer get Master") it works too, but the same with os.execute() does not.

Another curious thing, os.execute("amixer get Master") did not work if executed while awesome is starting, but works after. So if I do
t = timer{timeout = 5}
t:add_signal("timeout", function () os.execute("amixer get Master") t:stop() end)
t:start()
it works.


The steps I do to repoduce this was:
Install awesome
Copy default /etc/xdg/awesome/rc.lua to ~/.config/awesome/rc.lua
put os.execute("amixer get Master") on rc.lua
start

I have pulseaudio and alsa installed and have pulse as my default pcm and control on asound.conf.

[]'s

--
To unsubscribe, send mail to [email protected].

Reply via email to