BlissRoms-x86 / support

Public repo for Bliss OS bug reports, feature requests etc.
https://blissos.org
GNU General Public License v3.0
16 stars 2 forks source link

💡 [REQUEST] - Include fix on G-Sensor on Asus Transformer T300CHI for future releases of BlissOS #46

Open RobertCyprus opened 7 months ago

RobertCyprus commented 7 months ago

Start Date

27/02/2024

Implementation PR

No response

Reference Issues

Similar for issue #44 (Gravity sensor), for Asus T300CHI, includes fix

Summary

This only affects those who have an Asus Transformer Tablet PC, but may include the rest of the Asus Transformer family.

cat /sys/class/dmi/id/uevent

MODALIAS=dmi:bvnAmericanMegatrendsInc.:bvrT300CHI.207:bd08/06/2015:br5.6:svnASUSTeKCOMPUTERINC.:pnT300CHI:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnT300CHI:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:skuASUS-NotebookSKU:

Please include the following 3 lines in init.sh for future releases of BlissOS:

Within the function init_hal_sensors() , approximately line 595.

T300CHI) set_property ro.iio.accel.order 102 set_property ro.iio.accel.y.opt_scale -1

Basic Example

This fixes the faulty orientation, picked up from the G-sensor of the Asus Transformer T300CHI tablet PC. As far as i can see is this the only device that needs both the order and y scale to be adjusted, so they cannot be covered by an existing entry.

Drawbacks

Maybe the T300CHI can be made broader to TCHI* as I assume this is the same for the rest of the transformer (CHI) library, unfortunately cannot test this as i have only the T300CHI

Unresolved questions

No response

RobertCyprus commented 7 months ago

Github seems to interpret stars differently as expected, the mask for the T300CHI must be *T300CHI* , and the generic Transformer mask *T*CHI* .

hmtheboy154 commented 7 months ago

Can you make a Pull Requests to https://github.com/BlissRoms-x86/device_generic_common ?