El 26/3/26 a las 12:00, Ramiro Aceves escribió:
Hello Isac,
First script version works, second fails:
netbsd-raspa4$ ./vol1 get
91%%
netbsd-raspa4$ ./vol2 get
: not found
: not found
usage: vol up
vol down
vol get
: not found
: not found
: not found
does not exist outputs.master
(standard_in) 1: illegal character: ^M
(standard_in) 1: syntax error
%
: not found
: not found
" unexpected (expecting "in")d "in
netbsd-raspa4$
Regards.
Ramiro.
El 26/3/26 a las 10:12, Isac Monção escribió:
On Thu, 26 Mar 2026 08:28:42 +0000 (UTC)
RVP <[email protected]> wrote:
See mixerctl(1) for the `-n' flag.
Thank you! I didn't notice that while reading the manual.
The max value typically is 255; don't know why your HW presents 248?
Is the step increment 7 on your sound HW? (mixerctl -av)
The maximum value mine reaches is 248... But after running
"mixerctl -v" I I noticed that the delta value is 8, so I guess
that's the reason...
```sh
$ mixerctl -v outputs.master
outputs.master=248,248 volume delta=8
```
I'm sure you know this already: if increment is 1, then you can just
use:
mixerctl -w master.output++
mixerctl -w master.output--
Yes yes, I defined that variable in case someone wants to
increase/decrease the volume more quickly.
Thank you for your response, RVP.
Best regards,
Isac
Oh, I found the problem, I change inside Vim from fileformat=dos to
fileformat=unix:
netbsd-raspa4$ file vol*
vol1: Unicode text, UTF-8 text
vol2: POSIX shell script, Unicode text, UTF-8 text executable, with CRLF line
terminators
netbsd-raspa4$ vim ./vol2
netbsd-raspa4$ ./vol2
usage: vol up
vol down
vol get
netbsd-raspa4$ ./vol2 get
89%
netbsd-raspa4$ file vol*
vol1: Unicode text, UTF-8 text
vol2: POSIX shell script, Unicode text, UTF-8 text executable
netbsd-raspa4$