Sound through speakers sometimes work and sometimes doesn't


I’m having a weird issue, for instance the sound that’s coming out of the speakers sometimes work and sometimes doesn’t.

Precisely, what happens is that sometimes the sound works fine, but when I shutdown the computer and reboot, the sound might or might not work, isn’t happening when the computer is on.

Bottom line, if there’s sound it works nicely, but then if I close the session/reboot the sound sometimes goes off, but if I use a different interface then the sound works fine on that interface, i.e.: USB headphones.

Hardware is a Laptop.