A method and an apparatus for controlling a sound function of a computer system
based on whether or not a headphone plug is inserted into a monitor is disclosed.
A switching section receives a sound signal from a main body of the computer system
and outputs the sound signal to a speaker or to an inserted headphone plug based
on whether or not the headphone plug is inserted by a user. A signal detecting
section detects an insertion voltage signal by monitoring an insertion of the headphone
plug from the switching section. A control section compares the insertion voltage
signal from the signal detecting section with a predetermined reference voltage
signal, and controls a speaker installed in the main body according to the compared
result. Accordingly, the user can enjoy sound, such as music, regardless of the time.