View Single Post
Posts: 188 | Thanked: 308 times | Joined on Jan 2013 @ UK
#20
Originally Posted by vistaus View Post
Didn't work. I created the file, put it in the right place with the right name (the way you told me), enabled it via systemctl but after a reboot I still have to execute the command I found on TJC to get the volume higher.
Okay, I've just had a quick look. I don't have volume issues, so don't want to mess with it at the moment, so this will again be untested. Sorry.

There's at least one issue with what I suggested. Firstly, the pulseaudio is run under user, so you maybe need to move the unit to user and use the --user option in systemctl.

Secondly, I forgot that we need to make sure that the daemon is started first. So we need to add a dependency:

Code:
[Unit]
Description=Fix volume settings
After=pulseaudio.service
Requires=pulseaudio.service

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/pactl set-sink-volume 1 200%

[Install]
WantedBy=default.target

I did though, wonder if it was possible to configure pulseaudio to increase the volume at start-up itself, but I've not seen an obvious way to do that, yet.
 

The Following User Says Thank You to skanky For This Useful Post: