Try this Code: cat /sys/devices/platform/gpio-switch/slide/state
cat /sys/devices/platform/gpio-switch/slide/state