What happens to heat waste produced by energy generation on earth that must be there according to the laws of thermodynamics? So, it never dissipates and remains on earth?
Take for example a conventional coal fired power plant as used widely in most countries.
About 40% of the energy from burning the coal is converted to electricity, and the remaining 60% is lost as heat to the environment.
The 40% of the energy that gets converted to heat is used by us consumers and eventually gets converted to heat and is lost as heat to the environment.
So all the energy used by burning coal (or gas, or from nuclear energy) eventually ends up in the environment, where it heats up the air/rivers/seas/whatever. However the amount of heat lost to the environment is small compared to the amount received from the Sun and generated inside the Earth.
The energy does not necessarily remain on earth. Earth maintains an energy balance with its surroundings. The sum of the energy reaching earth through radiation and the energy produced on earth must match the energy leaving earth through radiation. If the latter is too low, earth will warm up, thereby increasing its blackbody radiation and restoring the balance.
However, the energy production on earth (including the production in the core) is generally an extremely small term in this equation.