Hi! We're discussing a clarification of the content license; please look over to Current events if you're interested in editing.

Htc hw

From Htc-linux

Jump to: navigation, search

class nodes:

root@htcraphael:~# ls /sys/class/htc_hw -l
-r--r--r--    1 root     root         4096 May 27 21:28 battery
-r--r--r--    1 root     root         4096 May 27 21:28 machtype
-r--r--r--    1 root     root         4096 May 27 21:28 radio
--w--w--w-    1 root     root         4096 May 27 21:28 vibrate
root@htcraphael:~# cat /sys/class/htc_hw/radio 
CDMA
root@htcraphael:~# cat /sys/class/htc_hw/machtype 
2039
root@htcraphael:~# cat /sys/class/htc_hw/battery 
+0xfc0e0: 000004de
e01fc140: 00000206 00000ce8 00000c6b 000006b9 0000000d

Vibrate switch:

root@htcraphael:~# echo 1 > /sys/class/htc_hw/vibrate
root@htcraphael:~# echo 0 > /sys/class/htc_hw/vibrate