I have a Lenovo Ideapad y510 with 5.1 sound and worked perfectly on Windows.
I read a guide to get 5.1 sound on Ubuntu which proposes to do the following.
Edit /etc/pulse/daemon.conf and change the default-sample-channels from 2 to 6.
Then edit /etc/modprobe.d/alsa-base and add the line
options snd-hda-intel model=3stack-6ch-dig
and restart the system.
After the first reboot the sound works perfectly, but when I power off or restart the machine the sound does not work.
How can I make those changes permanent?