Make set_touchpad_state() work as documented