Github messages for voidlinux
 help / color / mirror / Atom feed
From: LinArcX <LinArcX@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: `alsactl kill rescan` not working.
Date: Sat, 11 Mar 2023 10:04:47 +0100	[thread overview]
Message-ID: <20230311090447._6zYFS8-_SWqzjvZ7RaQFxJsTIgptMLfbmszLXlacbY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42698@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

New comment by LinArcX on void-packages repository

https://github.com/void-linux/void-packages/issues/42698#issuecomment-1464866423

Comment:
It wasn't a bug. I should just run `sudo alsactl init` before restarting the Alsa service.

For anyone interested I wrote these two functions that make life more easier:

```
internal_speaker () {
  sd "#defaults.pcm.device 0;" "defaults.pcm.device 0;" ~/.asoundrc
  sd "defaults.pcm.device 3;" "#defaults.pcm.device 3;" ~/.asoundrc

  sudo alsactl init
  sudo sv restart alsa
}

external_speaker () {
  sd "defaults.pcm.device 0;" "#defaults.pcm.device 0;" ~/.asoundrc
  sd "#defaults.pcm.device 3;" "defaults.pcm.device 3;" ~/.asoundrc

  sudo alsactl init
  sudo sv restart alsa
}

```

  reply	other threads:[~2023-03-11  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-11  8:20 [ISSUE] " LinArcX
2023-03-11  9:04 ` LinArcX [this message]
2023-03-11  9:04 ` [ISSUE] [CLOSED] " LinArcX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230311090447._6zYFS8-_SWqzjvZ7RaQFxJsTIgptMLfbmszLXlacbY@z \
    --to=linarcx@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).