View Single Post
Old 03-12-2019, 01:26 PM   #20
BloodRagg
Zealot
BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.BloodRagg ought to be getting tired of karma fortunes by now.
 
BloodRagg's Avatar
 
Posts: 128
Karma: 842196
Join Date: Feb 2019
Device: none
Quote:
Originally Posted by NiLuJe View Post
It's an ioctl, so, no idea if anyone ever tried to handle ioctls in shell .
Compiled it and it works more or less, not that great. Its missing something
ioctl is used in android toolbox, so i dl the source
https://gfiber.googlesource.com/vend...ource/toolbox/
Dumped everything out except ioctl and i can
enable the light with: ioctl /dev/ntx_io 241 0
and turn it off with: ioctl /dev/ntx_io 241
for some reason i cannot set the brightness.

My luck that id stumble on this thread after that whole escapade:
https://www.mobileread.com/forums/sh...d.php?t=200706

Quote:
Originally Posted by NiLuJe View Post
EDIT³: You might be able to go through sysfs though (at least on *some* devices, f.g, /sys/class/backlight/mxc_msp430.0/brightness on Mk.7).
AuraHD doesnt have any brightness that responds afai tested it.

Quote:
Originally Posted by NiLuJe View Post
EDIT²: Fun fact: on the Forma, while the gsensor is still accessible @ event2, you only get raw X/Y/Z coords from there. The computed "misc" rotation events have moved to the ntx events @ event0.
What would be the reason, except only having to read out event0 ?

Quote:
Originally Posted by Frenzie View Post
He did say "afaik". My H2O doesn't have an event2 in any case.
You'd think the HD was the prototype that later became the H20. Its not like they cut corners and changed the hardware ... at least from what i've seen.
Attached Files
File Type: zip ioctl.zip (11.0 KB, 206 views)

Last edited by BloodRagg; 03-12-2019 at 02:42 PM. Reason: Added ioctl.zip
BloodRagg is offline   Reply With Quote