alsa-utils on FreeBSD don't seem to work

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have working sound. I can play a youtube video through chrome and sound works just fine. However, I'm using i3 as my window manager and I am trying to setup the fn+sound keys to raise and lower the volume. I've found a command using the alsa-utils to do that:



bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+ unmute
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%- unmute


However that doesn't seem to work. When I run the amixer command from a shell I get the following error:



ALSA lib control.c:1352:(snd_ctl_open_noupdate) Invalid CTL pulse
amixer: Mixer attach pulse error: No such file or directory


Digging into this further I tried:



$ aplay -l
aplay: device_list:273: no soundcards found...


However as I said, I have working sound. FreeBSD seems to be aware of my sound card:



$ cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC892 (Rear Analog 7.1/2.0)> (play/rec) default
pcm5: <Realtek ALC892 (Front Analog)> (play/rec)
pcm6: <Realtek ALC892 (Rear Digital)> (play)
pcm7: <Realtek ALC892 (Onboard Digital)> (play)
pcm8: <USB audio> (rec)
pcm9: <USB audio> (rec)
No devices installed from userspace.


Any idea whats going on with the alsa mixer or is there another way I can setup the fn+sound keys?







share|improve this question
















  • 1




    Honest question: Does FreeBSD actually use ALSA?
    – Ignacio Vazquez-Abrams
    Feb 9 at 14:29










  • Well, I'm not sure...I installed it using pkg install alsa-utils so maybe I incorrectly just assumed that it would work.
    – socketwiz
    Feb 9 at 16:08






  • 1




    alsa-utils is just client software. It has nothing to do with OS support for the Advanced Linux Sound Architecture.
    – Ignacio Vazquez-Abrams
    Feb 9 at 16:35










  • Right...I just didn't think they would include the utilities in the package manager if there were no support for it, but I don't know how it all works to be honest.
    – socketwiz
    Feb 9 at 19:45














up vote
1
down vote

favorite












I have working sound. I can play a youtube video through chrome and sound works just fine. However, I'm using i3 as my window manager and I am trying to setup the fn+sound keys to raise and lower the volume. I've found a command using the alsa-utils to do that:



bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+ unmute
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%- unmute


However that doesn't seem to work. When I run the amixer command from a shell I get the following error:



ALSA lib control.c:1352:(snd_ctl_open_noupdate) Invalid CTL pulse
amixer: Mixer attach pulse error: No such file or directory


Digging into this further I tried:



$ aplay -l
aplay: device_list:273: no soundcards found...


However as I said, I have working sound. FreeBSD seems to be aware of my sound card:



$ cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC892 (Rear Analog 7.1/2.0)> (play/rec) default
pcm5: <Realtek ALC892 (Front Analog)> (play/rec)
pcm6: <Realtek ALC892 (Rear Digital)> (play)
pcm7: <Realtek ALC892 (Onboard Digital)> (play)
pcm8: <USB audio> (rec)
pcm9: <USB audio> (rec)
No devices installed from userspace.


Any idea whats going on with the alsa mixer or is there another way I can setup the fn+sound keys?







share|improve this question
















  • 1




    Honest question: Does FreeBSD actually use ALSA?
    – Ignacio Vazquez-Abrams
    Feb 9 at 14:29










  • Well, I'm not sure...I installed it using pkg install alsa-utils so maybe I incorrectly just assumed that it would work.
    – socketwiz
    Feb 9 at 16:08






  • 1




    alsa-utils is just client software. It has nothing to do with OS support for the Advanced Linux Sound Architecture.
    – Ignacio Vazquez-Abrams
    Feb 9 at 16:35










  • Right...I just didn't think they would include the utilities in the package manager if there were no support for it, but I don't know how it all works to be honest.
    – socketwiz
    Feb 9 at 19:45












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have working sound. I can play a youtube video through chrome and sound works just fine. However, I'm using i3 as my window manager and I am trying to setup the fn+sound keys to raise and lower the volume. I've found a command using the alsa-utils to do that:



bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+ unmute
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%- unmute


However that doesn't seem to work. When I run the amixer command from a shell I get the following error:



ALSA lib control.c:1352:(snd_ctl_open_noupdate) Invalid CTL pulse
amixer: Mixer attach pulse error: No such file or directory


Digging into this further I tried:



$ aplay -l
aplay: device_list:273: no soundcards found...


However as I said, I have working sound. FreeBSD seems to be aware of my sound card:



$ cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC892 (Rear Analog 7.1/2.0)> (play/rec) default
pcm5: <Realtek ALC892 (Front Analog)> (play/rec)
pcm6: <Realtek ALC892 (Rear Digital)> (play)
pcm7: <Realtek ALC892 (Onboard Digital)> (play)
pcm8: <USB audio> (rec)
pcm9: <USB audio> (rec)
No devices installed from userspace.


Any idea whats going on with the alsa mixer or is there another way I can setup the fn+sound keys?







share|improve this question












I have working sound. I can play a youtube video through chrome and sound works just fine. However, I'm using i3 as my window manager and I am trying to setup the fn+sound keys to raise and lower the volume. I've found a command using the alsa-utils to do that:



bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+ unmute
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%- unmute


However that doesn't seem to work. When I run the amixer command from a shell I get the following error:



ALSA lib control.c:1352:(snd_ctl_open_noupdate) Invalid CTL pulse
amixer: Mixer attach pulse error: No such file or directory


Digging into this further I tried:



$ aplay -l
aplay: device_list:273: no soundcards found...


However as I said, I have working sound. FreeBSD seems to be aware of my sound card:



$ cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC892 (Rear Analog 7.1/2.0)> (play/rec) default
pcm5: <Realtek ALC892 (Front Analog)> (play/rec)
pcm6: <Realtek ALC892 (Rear Digital)> (play)
pcm7: <Realtek ALC892 (Onboard Digital)> (play)
pcm8: <USB audio> (rec)
pcm9: <USB audio> (rec)
No devices installed from userspace.


Any idea whats going on with the alsa mixer or is there another way I can setup the fn+sound keys?









share|improve this question











share|improve this question




share|improve this question










asked Feb 9 at 13:49









socketwiz

1265




1265







  • 1




    Honest question: Does FreeBSD actually use ALSA?
    – Ignacio Vazquez-Abrams
    Feb 9 at 14:29










  • Well, I'm not sure...I installed it using pkg install alsa-utils so maybe I incorrectly just assumed that it would work.
    – socketwiz
    Feb 9 at 16:08






  • 1




    alsa-utils is just client software. It has nothing to do with OS support for the Advanced Linux Sound Architecture.
    – Ignacio Vazquez-Abrams
    Feb 9 at 16:35










  • Right...I just didn't think they would include the utilities in the package manager if there were no support for it, but I don't know how it all works to be honest.
    – socketwiz
    Feb 9 at 19:45












  • 1




    Honest question: Does FreeBSD actually use ALSA?
    – Ignacio Vazquez-Abrams
    Feb 9 at 14:29










  • Well, I'm not sure...I installed it using pkg install alsa-utils so maybe I incorrectly just assumed that it would work.
    – socketwiz
    Feb 9 at 16:08






  • 1




    alsa-utils is just client software. It has nothing to do with OS support for the Advanced Linux Sound Architecture.
    – Ignacio Vazquez-Abrams
    Feb 9 at 16:35










  • Right...I just didn't think they would include the utilities in the package manager if there were no support for it, but I don't know how it all works to be honest.
    – socketwiz
    Feb 9 at 19:45







1




1




Honest question: Does FreeBSD actually use ALSA?
– Ignacio Vazquez-Abrams
Feb 9 at 14:29




Honest question: Does FreeBSD actually use ALSA?
– Ignacio Vazquez-Abrams
Feb 9 at 14:29












Well, I'm not sure...I installed it using pkg install alsa-utils so maybe I incorrectly just assumed that it would work.
– socketwiz
Feb 9 at 16:08




Well, I'm not sure...I installed it using pkg install alsa-utils so maybe I incorrectly just assumed that it would work.
– socketwiz
Feb 9 at 16:08




1




1




alsa-utils is just client software. It has nothing to do with OS support for the Advanced Linux Sound Architecture.
– Ignacio Vazquez-Abrams
Feb 9 at 16:35




alsa-utils is just client software. It has nothing to do with OS support for the Advanced Linux Sound Architecture.
– Ignacio Vazquez-Abrams
Feb 9 at 16:35












Right...I just didn't think they would include the utilities in the package manager if there were no support for it, but I don't know how it all works to be honest.
– socketwiz
Feb 9 at 19:45




Right...I just didn't think they would include the utilities in the package manager if there were no support for it, but I don't know how it all works to be honest.
– socketwiz
Feb 9 at 19:45










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Based on comments from Ignacio Vazquez-Abrams I searched for an alternative method to accomplish mapping my media keys and learned that the mixer command will do what I want and works just fine. Here is what I ended up with:



bindsym XF86AudioRaiseVolume exec mixer vol +2
bindsym XF86AudioLowerVolume exec mixer vol -2





share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423047%2falsa-utils-on-freebsd-dont-seem-to-work%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    Based on comments from Ignacio Vazquez-Abrams I searched for an alternative method to accomplish mapping my media keys and learned that the mixer command will do what I want and works just fine. Here is what I ended up with:



    bindsym XF86AudioRaiseVolume exec mixer vol +2
    bindsym XF86AudioLowerVolume exec mixer vol -2





    share|improve this answer


























      up vote
      2
      down vote



      accepted










      Based on comments from Ignacio Vazquez-Abrams I searched for an alternative method to accomplish mapping my media keys and learned that the mixer command will do what I want and works just fine. Here is what I ended up with:



      bindsym XF86AudioRaiseVolume exec mixer vol +2
      bindsym XF86AudioLowerVolume exec mixer vol -2





      share|improve this answer
























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        Based on comments from Ignacio Vazquez-Abrams I searched for an alternative method to accomplish mapping my media keys and learned that the mixer command will do what I want and works just fine. Here is what I ended up with:



        bindsym XF86AudioRaiseVolume exec mixer vol +2
        bindsym XF86AudioLowerVolume exec mixer vol -2





        share|improve this answer














        Based on comments from Ignacio Vazquez-Abrams I searched for an alternative method to accomplish mapping my media keys and learned that the mixer command will do what I want and works just fine. Here is what I ended up with:



        bindsym XF86AudioRaiseVolume exec mixer vol +2
        bindsym XF86AudioLowerVolume exec mixer vol -2






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 10 at 8:54









        GAD3R

        22.4k154894




        22.4k154894










        answered Feb 9 at 21:38









        socketwiz

        1265




        1265






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423047%2falsa-utils-on-freebsd-dont-seem-to-work%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)