Marif,
Carpet or no carpet, any work to stop squeaking has to be from underneath.
The sketch shows a closed string stair, and yours is probably a cut string, but the principle is the same.
If you have an old stair that squeaks you may be able to fix it by replacing the glue blocks or by...