Article 4SWRJ Help running script on startup

Help running script on startup

by
Corrupt-Liberty
from LinuxQuestions.org on (#4SWRJ)
I have a sound issue with my Dell laptop running Kubuntu that I was able to fix by installing alsa-tools and running the following...
Code:hda-verb /dev/snd/hwC0D0 0x1 set_gpio_data 5
hda-verb /dev/snd/hwC0D0 0x1 set_gpio_dir 5
hda-verb /dev/snd/hwC0D0 0x1 set_gpio_mask 5I created a file /usr/bin/sound_fix.sh
Code:#!/bin/sh
hda-verb /dev/snd/hwC0D0 0x1 set_gpio_data 5
hda-verb /dev/snd/hwC0D0 0x1 set_gpio_dir 5
hda-verb /dev/snd/hwC0D0 0x1 set_gpio_mask 5I changed ownership to root and made executable
Code:sudo chown root /usr/bin/sound_fix.sh
sudo chgrp root /usr/bin/sound_fix.sh
sudo chmod 744 /usr/bin/sound_fix.shThen a made the file /etc/systemd/system/sound_fix.service with the following...
Code:[Unit]
Description=Fix Sound on Huge-ass Laptop
After=sound.target

[Service]
ExecStart=/usr/bin/sound_fix.sh

[Install]
WantedBy=multi-user.targetI changed ownership and made it executable.
Code:sudo chown root /etc/systemd/system/sound_fix.service
sudo chgrp root /etc/systemd/system/sound_fix.service
sudo chmod 664 /etc/systemd/system/sound_fix.serviceThen I ran this because reasons? Google made me do it.
Code:systemctl enable sound_fix.serviceAccording to the internets this should now run the script at startup. No dice. I can run the script manually and it works fine. But I still have no sound unless I do that. Any help as to where I went wrong would be appreciated.latest?d=yIl2AUoC8zA latest?i=rtuwU2mVwx8:x7lpuOthM2w:F7zBnMy latest?i=rtuwU2mVwx8:x7lpuOthM2w:V_sGLiP latest?d=qj6IDK7rITs latest?i=rtuwU2mVwx8:x7lpuOthM2w:gIN9vFwrtuwU2mVwx8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments