this post was submitted on 01 Nov 2023
10 points (85.7% liked)

Pop!_OS (Linux)

5137 readers
1 users here now

Pop!_OS is an operating system developed by System76 for STEM and creative professionals who use their computer as a tool to discover and create. Unleash your potential on secure, reliable open source software. Based on your exceptional curiosity, we sense you have a lot of it.

Unleash your potential

Whether this is your first experience with Linux, or your latest adventure, all are welcome to discuss and ask questions about Pop!_OS and COSMIC. Keep the discussions friendly though, and remember to assume good intentions whenever you reply. We're all here because we have a shared love for Linux and open source software.

System76 Logo

Support us by buying System76 hardware for you or your company! Or by donating on the Pop!_OS website through the "Support Pop" button. Pop!_OS and COSMIC are fully funded by System76 hardware sales. All systems are assembled in the USA. With your support, we'll work to push the Linux desktop forward with COSMIC.

Links

Guides

Hardware

Recommended

Community Rules

Follow the Code of Conduct

All posts on pop_os must adhere to the Pop!_OS community Code of Conduct. https://github.com/pop-os/code-of-conduct

Be helpful

Posts to pop_os must be helpful. When responding to a user asking for help, do not provide tongue-in-cheek responses like "RTM" or links to LMGTFY. Linking to direct sources that answer the asker's question is fine, but it's advised to provide some explanation as to how you got to that source.

Critique should be constructive

We within the Pop!_OS community welcome helpful criticism or ideas on ways to improve. However, basic "It's bad" or other simple negative comments don't help anyone fix anything. When voicing a complaint about something, try to point out ways the complaint could be improved or worked around, so that we can make a better product for it.

This rule applies to both Pop!_OS and its projects as well as other products available from third-parties.

Don't post malicious "advice"

It can be funny to joke about malicious commands, however this is not the venue for it. Do not advise users to run commands which will lock up their systems, steal their data, or erase their drive. Examples of this include (but are not limited to) fork bombs, rm, etc.

Posts violating this rule will be removed, even if the post is clearly in jest. Repeated offences may lead to a ban. You may understand that the command isn't serious, but a new user might not.

No personal attacks

Posts making a personal attack on any user will not be tolerated.

No hate speech

Hate speech of any kind will not be tolerated. Any violations will be removed, and are grounds for a ban.

founded 1 year ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] pnutzh4x0r@lemmy.ndlug.org 3 points 1 year ago (11 children)

This appears to be a common issue with the LG Gram. I found the following thread on the Linux Mint forums:

https://forums.linuxmint.com/viewtopic.php?t=401957

This lead me to an upstream bug report in the sof project (audio firmware):

https://github.com/thesofproject/linux/issues/4363

In this bug report, a user reported running a script that used the hda-verb command to configure the firmware worked around their issue and produced sound. Details about this script can be found on the Fedora forums here:

https://forums.fedoraforum.org/showthread.php?331130-Fixing-ALC298-audio-(no-sound-from-speakers)

Anyway, YMMV with this, but I guess this shows why buying hardware that supports Linux out of the box can make life easier. Good luck!

[–] AmYisraelChai@lemmy.world 1 points 1 year ago (1 children)

Thank you so so so so much for all this research!!!!!!!!! But it's not letting me move the file to /usr/local/sbin and I also don't understand the step after that. Again, thank you so so much!!!!

[–] pnutzh4x0r@lemmy.ndlug.org 2 points 1 year ago (1 children)

You may need to use sudo to move the file there since it is a system directory.

Otherwise, if you could provide a screenshot or a paste of the error, we may be able to help you further.

[–] AmYisraelChai@lemmy.world 1 points 1 year ago (1 children)

Genius! I got it to move but I don't understand the next step, and also the sound still isn't working even though I pressed 'run as program'.

[–] pnutzh4x0r@lemmy.ndlug.org 2 points 1 year ago (1 children)

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.

[–] AmYisraelChai@lemmy.world 1 points 1 year ago (1 children)

This is what I get when I type that command https://paste.sh/LO5_DWqx#lF9KhOFkNlg4x8kiK1DiHKeu

Thanks again so so much!

[–] pnutzh4x0r@lemmy.ndlug.org 2 points 1 year ago (1 children)

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.world 1 points 1 year ago (1 children)

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 ;-)

[–] pnutzh4x0r@lemmy.ndlug.org 2 points 1 year ago (1 children)

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.

[–] AmYisraelChai@lemmy.world 2 points 1 year ago (1 children)

YOU'RE A GENIUS!!!!!!!!!!!!!!!!!!! THANK YOU SO SO SO SO MUCH!!!!!!!!!!!!! IT WORKS!!!!!!!!!!!!!!!! I used this https://gist.githubusercontent.com/eddy-geek/ef86267fbec87479aba905302909921a/raw/ script and it works!!!!!!!!!!!!!!! You're amazing!

Now... Can you please explain how to make it not go away after a reboot...? Thanks!

[–] pnutzh4x0r@lemmy.ndlug.org 2 points 1 year ago* (last edited 1 year ago) (1 children)

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.world 2 points 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!!!!

load more comments (9 replies)