after I've reinstalled Ubuntu, I've been unable to play sound from my (internal) speakers since. There are only headphones available, even when there are no headphones plugged in. In Settings > Sound simply isn't the speakers. I dual boot with Windows 10, which play sound from speakers without problems.
I've tried a lot of things, including reinstalling various packages. The solution that almost worked is here: No sound from speakers, but headphones work
I've edited the file /etc/modprobe.d/alsa-base.conf and added line options snd-hda-intel model=generic. This added display port to options > sound menu. I've tried to play sound with my display port, but it obviously didn't work.
I think the issue may be in the file because I'm missing the speakers' option from settings > sound menu.
Latest Ubuntu (18), everything updated. Ask for additional information if you need any, I'll edit my post and add them here.
lspci -nnk | awk -v n='[0403]' 'p&&/^\S/{p=0}!p{p=index($0,n)}p'
pactl list short sinks:
0 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
Edit: After I reinstalled my system, the solutiom from @OpenSage started working. Thanks OpenSage!