Earphone control volume?

You would need to switch that manually (or use an add-on to do that.
If you connect Bluetooth Headset (as explained below) it will switch automatically.

You need to install a2dp package, see

and also depending if it is a proper headphone or a headset set the sink respectively, see