Disclosed herein are various methods of forming replacement gate structures on semiconductor devices and devices incorporating such gate structures. The security device includes a sensor, a bias magnet, and a processor. The lock is adapted to engage the notebook computer or other personal electronic device screen in the open position, leaving a front surface of the screen viewable.