Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting screen folding degree and deactivating keyboard/touchpad if it passes 180 degree #38

Open
Faham opened this issue May 13, 2015 · 3 comments

Comments

@Faham
Copy link

Faham commented May 13, 2015

Everything is great about the rotation the only thing missing is detecting whether the screen degree has passed 180 to disable keyboard and touchpad and going to the tablet mode.

@pfps
Copy link
Owner

pfps commented May 13, 2015

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Agreed.

I don't know where this information is being reported. It may be a
computation based on the two accelerators, but the other one is non-standard
so processing it would be a pain.

I did find out that the all-the-way-open determination is done using the
magnetic sensor, just like the all-the-way-shut is done. (I found this out
by putting two yogas on top of each other.) However, I also don't know how
that is reported.

peter

On 05/12/2015 07:03 PM, Faham Negini wrote:

Everything is great about the rotation the only thing missing is
detecting whether the screen degree has passed 180 to disable keyboard
and touchpad and going to the tablet mode.

— Reply to this email directly or view it on GitHub
#38.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVUrXpAAoJECjN6+QThfjzuDoH/0QuEH4oM58aL4mhKM43wsJK
eIXXWErbF7HQ8Mew+I9UNSzUWHG1FDhmjwIweusiRS7qs33UxB7nv7Kc1+IBy5qP
g8xXyktAl0NjYL2JDL7SptuNV2gmoUeonKsAi+y6RI8AJ4QeF1+xBEnibeWxjIsP
2+9NppuB467nkGAggDL3GmFn+ys8sNa9SBJu/w798dAgNH2OQ/AX43pLWg/vlqrc
gzHHpm3e8dfqE74GRHNLXd+50BlKQ+bLnbqnfSelVrdQLpwyu5/qiOqGS5Mha01P
UN51S7sZzlM/0KT4EXIwIL9NqBHyOP8RuDfxZMO2ZGDFbMEvQ+djkO81egvJQNU=
=Mlcv
-----END PGP SIGNATURE-----

@krolaw
Copy link

krolaw commented Oct 11, 2015

As an interim, could we have a flag that disables the touchpad and keyboard if the screen is rotated 90,180 or 270? That said I have attached /bin/orientation --count=1 to the rotate button on the side (SUPER+Y), which I would still like to function. :-) Or maybe a flag that runs a script with rotation. Anyway, just some ideas. Thanks for the work thus far :-)

@pfps
Copy link
Owner

pfps commented Oct 16, 2015

That's not on my plans for implementation, but feel free to code it up
yourself and submit it as a patch.

peter

On 10/10/2015 08:11 PM, Richard Warburton wrote:

As an interim, could we have a flag that disables the touchpad and keyboard if
the screen is rotated 90,180 or 270? That said I have attached
/bin/orientation --count=1 to the rotate button on the side (SUPER+Y), which I
would still like to function. :-) Or maybe a flag that runs a script with
rotation. Anyway, just some ideas. Thanks for the work thus far :-)


Reply to this email directly or view it on GitHub
#38 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants