小虾米资讯

AD1
当前位置:网站首页 / android / 正文

android:修复X98 air 3G 在android x86下的重力和触摸反向问题

2020-11-25 00:54:52 / 我要吐槽 查看是否已被百度收录 查看是否已被谷歌收录 查看是否已被搜狗收录 查看是否已被360收录
AD2
得到go ogle group 的大神帮忙,修复了2个问题。特意把回复贴在这里。有问题可以提问Finally got both auto rotation and inverted touch screen work. For inverted touch screen, I run some code in terminal before run the calibration app.sumkdir -p /data/misc/tscal touch /data/misc/tscal/pointercal chown 1000.1000 /data/misc/tscal /data/misc/tscal/* chmod 775 /data/misc/tscal chmod 664 /data/misc/tscal/pointercal Then run calibration app, touch the five points and restart. for auto rotation, edit /etc/init.shtry going into init.sh and scroll down to init_hal_sensors function and after the last "fi" statement insert the following:has_sensors=truehal_sensors=iioset_property ro.iio.accel.quirks no-trig #insert this line if screen is 90 degree rotation instead of 180, it exchanges Y and X axisset_property ro.iio.accel.x.opt_scale -1 #Use one or more of them, depends on which axes are inverted. set_property ro.iio.accel.y.opt_scale -1 set_property ro.iio.accel.z.opt_scale -1

感谢大神和楼主!希望我的x98 pro也有用!

surface pro 5可以吗???

我的联想d330旋转总是差90度,怎么解?上面的方法试过了,已经可以旋转了,但是总是差90度

补充一下,触摸没问题

帖子中有句注释写错了,偏向90度要改的不是那行。那行仍然是让重力起作用的一行。偏向90度应该是set_property ro.iio.accel.order 102

机佬你好,surface pro4下的bliss os 11ipst2 专版,说是适配surface的,但是我装了就是无触摸,折腾好几天好多遍了,就是不行。请问用什么方法可以解决?

Powered By © 小虾米资讯 2015

(本站部分文章来源于网络或网友爆料,不代表本站观点,如有侵权请联系及时删除 )