In this paper, we report an active Q-switching of an erbium-doped fiber laser with special modulation functions and novel laser geometry. We experimentally demonstrate that using such a smart Q-switch approach, Q-switch ripple-free pulses with Gaussian-like shape and 17.3 ns width can be easily obtained. The idea behind the smart Q-switch is to suppress one of two laser waves contra-propagating along the fiber cavity, which arises after Q-cell opening, and to eliminate the minor sub-pulses.