Hi,

I just bought a brand new LG Gram. For the 2 minutes that I used Windows, the speakers worked fine. Since I installed pop OS the speakers don’t work at all. I even tried reinstalling the whole entire OS and they still aren’t working.

Thanks in advance!

https://linux-hardware.org/?probe=e9f8c192f1

  • pnutzh4x0rA
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    To test out the script, you can do sudo /usr/local/sbin/necessary-verbs.sh. See if that works.

    If it does, then I can explain about the Systemd unit.

      • pnutzh4x0rA
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        You probably need to install the package with the hda-verb command:

        sudo apt install alsa-tools 
        

        After you do that, try to run the script again and see if it works.

        • AmYisraelChai@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          The script worked ran this time but there’s still no sound. :-( Thank you so so so much though, I really appreciate your help! Let me know if you’ve got any other tricks up your sleeve ;-)

          • pnutzh4x0rA
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Hmm. Unfortunately, if the script doesn’t work then you probably need a different set of verbs for your particular laptop model. I’m not really sure how to determine which verbs to use. Sorry :|

            Actually, after a quick look, I found an entry on the Arch Linux Wiki:

            https://wiki.archlinux.org/title/LG_Gram_16_2-in-1_2023

            This says there might be a workaround here:

            https://bugzilla.kernel.org/show_bug.cgi?id=212041#c14

            It would be the same idea: download a script with a bunch of verbs, run the script, and see if the speakers work.

            Perhaps one of the scripts in that comment will work for your laptop.

              • pnutzh4x0rA
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                1 year ago

                Great, I’m glad you now have sound :)

                To have the script run at boot, you need to create a service file:

                sudo gedit /etc/systemd/system/necessary-verbs.service
                

                That should open a text editor that you can write into. You can replace gedit with vim or nano if you prefer those.

                In that file, you want to put the following contents:

                [Unit]
                Description=Run internal speaker fix script at startup
                After=getty.target
                
                [Service]
                Type=simple
                ExecStart=/usr/local/sbin/necessary-verbs.sh
                TimeoutStartSec=0
                
                [Install]
                WantedBy=default.target 
                

                Once you save that file, you can enable it as follows:

                sudo systemctl daemon-reload
                sudo systemctl enable necessary-verbs.service
                

                Now, when you boot, this service will run that script and thus setup your audio.

                See if you can get that to work.

                • AmYisraelChai@lemmy.worldOP
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 year ago

                  Thank you so so so much for taking the time to write that! But before I read you message I actually had to restart my laptop for a different reason and the sound still works. This is very weird because it said in the link to the script that it wouldn’t still work after a reboot, but it is. Thanks again so much!!!