Torch: Switch to sysfs interface

Change-Id: I81f5aacda1fd3237a0dfe8d7bd65090730c04a83