* [ISSUE] `alsactl kill rescan` not working.
@ 2023-03-11 8:20 LinArcX
2023-03-11 9:04 ` [ISSUE] [CLOSED] " LinArcX
2023-03-11 9:04 ` LinArcX
0 siblings, 2 replies; 3+ messages in thread
From: LinArcX @ 2023-03-11 8:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
New issue by LinArcX on void-packages repository
https://github.com/void-linux/void-packages/issues/42698
Description:
### Is this a new report?
Yes
### System Info
Void 6.1.15_1 x86_64 GenuineIntel uptodate hold rFF
### Package(s) Affected
alsa-utils
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
I am using Alsa for sound/audio management on my void machine and i have two monitors:
1. one from my laptop
2. one is external
I can switch between them by changing the device number in `~/.asoundrc` like this:
```
defaults.ctl.card 0;
defaults.pcm.card 0;
defaults.pcm.device 0;
#defaults.pcm.device 3;
```
And every time i came here and uncomment the last line and comment the third line, if i want to use external speaker.
For affecting the change, there is a command:
`alsactl kill rescan`
But it doesn't work for me. any idea?
### Actual behaviour
when I run this command:
`alsactl kill rescan`
It should read `~/.asoundrc` file and affect the changes.
### Steps to reproduce
1. Just install `alsa-utils`
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `alsactl kill rescan` not working.
2023-03-11 8:20 [ISSUE] `alsactl kill rescan` not working LinArcX
2023-03-11 9:04 ` [ISSUE] [CLOSED] " LinArcX
@ 2023-03-11 9:04 ` LinArcX
1 sibling, 0 replies; 3+ messages in thread
From: LinArcX @ 2023-03-11 9:04 UTC (permalink / raw)
To: ml
[-- 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
}
```
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ISSUE] [CLOSED] `alsactl kill rescan` not working.
2023-03-11 8:20 [ISSUE] `alsactl kill rescan` not working LinArcX
@ 2023-03-11 9:04 ` LinArcX
2023-03-11 9:04 ` LinArcX
1 sibling, 0 replies; 3+ messages in thread
From: LinArcX @ 2023-03-11 9:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
Closed issue by LinArcX on void-packages repository
https://github.com/void-linux/void-packages/issues/42698
Description:
### Is this a new report?
Yes
### System Info
Void 6.1.15_1 x86_64 GenuineIntel uptodate hold rFF
### Package(s) Affected
alsa-utils
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
I am using Alsa for sound/audio management on my void machine and I have two speakers:
1. one from my laptop
2. one is external
I can switch between them by changing the device number in `~/.asoundrc` like this:
```
defaults.ctl.card 0;
defaults.pcm.card 0;
defaults.pcm.device 0;
#defaults.pcm.device 3;
```
And every time i came here and uncomment the last line and comment the third line, if i want to use external speaker.
For affecting the change, there is a command:
`alsactl kill rescan`
But it doesn't work for me. any idea?
### Actual behaviour
when I run this command:
`alsactl kill rescan`
It should read `~/.asoundrc` file and affect the changes.
### Steps to reproduce
1. Just install `alsa-utils`
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-11 9:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 8:20 [ISSUE] `alsactl kill rescan` not working LinArcX
2023-03-11 9:04 ` [ISSUE] [CLOSED] " LinArcX
2023-03-11 9:04 ` LinArcX
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).