From what I know you can use the softvol plugin for ALSA and set the max_dB
value. Something in direction of:
pcm.!default {
type plug
slave.pcm "softvol"
}
pcm.softvol {
type softvol
slave {
pcm "hw:0,0"
# pcm "dmix" or this or the like.
}
control {
name "PreAmp"
card 0
}
min_dB -5.0
max_dB 30.0 # 50.0 is max
resolution 16
}
Perhaps some hints here as well. Then reload alsa, play e.g. speaker-test -c2 -twav
to get it loaded and then adjust amp in alsamixer.
If one want to shut down PulseAudio, remember to deactivate autospawn
.
echo autospawn=no >> ~/.pulse/client.conf
or uncomment it in the global client.conf
(in /etc/pulse/
or the like). (Have also seen some replace daemon-binary
with /bin/true
.)
However using pactl etc. would perhaps be more preferable.
From commandline say:
pactl set-sink-volume 0 65536 # 100%
pactl set-sink-volume 0 98304 # 150%
pactl set-sink-volume 0 131072 # 200%
| |
| +----- Based on volume steps
+------- Sink number
To list and identify sinks say:
pactl list sinks
pacmd list-sinks # a bit more verbose, and list "volume steps"
As always man
and pacmd -h
, pactl -h
.
To set default volume to e.g. 150% edit ./pulse/default.pa
and add the line:
set-sink-volume 0 98304
|
+-- (Use full name if one e.g. have multiple USB-soundcards.)
For convenience add an alias or a short script to set this value when ever you want.
To restart PA say pulseaudio -k
, and pulseaudio --start
.
Another option would be to look into plugins e.g. LADSPA and shw in ALSA or PulseAudio.
EDIT:
OK. Came to think about it. This might be suitable. (Don't know how it escaped me first time around.)
- In
default.pa
add a Pulse Audio module from Device Drivers.
- Restart Pulse Audio.
- Open Sound settings and set volume for original sink to e.g. 150%. (Or do this by commandline or pre-set it in
default.pa
as described above.)
- Select the new module/sink as device for sound output.
This will give you 150% as 100% when using the normal volume meter.
Example – using module-remap-sink
:
Do not uncomment as the doc say.
In default.pa
:
.ifexists module-remap-sink.so
# Using remap-sink as dummy, not doing any re-mapping.
load-module module-remap-sink sink_name=VolDummy master=0 sink_properties=device.description=CrankThaVolume
.fail
.endif
# Set it as default:
set-default-sink VolDummy
Then restart Pulse Audio to get the new module registered.
Issuing:
$ pactl list modules # Should show "Usage counter: 1" for the module in question.
$ pactl list sinks
should show a new sink. You can still crank the volume for master by using command-line and/or adding lines to default.pa
.
gnome-control-center sound
and maxing out the volume-bar at the bottom?