Commit Graph

26 Commits

Author SHA1 Message Date
Elf M. Sternberg 3fd0b12b60 Merge remote-tracking branch 'refs/remotes/origin/master'
* refs/remotes/origin/master:
  Adding the keyboard touchpad to devices remapped on rotation.
2018-02-12 18:36:23 -08:00
Elf M. Sternberg 6d67d72d2c STYLE Some feedback prompted me to add commentary.
Documented what the heck I meant by 'ptx', 'lsi', etc. etc.  Also where
the numbers came from, but the simplest answer is that you start a
simple dump of the registers to your console while holding the device
in your hand and you rotate it to the various positions, writing down
the numbers you see and then tuning as necessary.  Programming as an
empirical science, not a theoretical one.

Also: I have a really (REALLY) silly script that lets me see all the
projects currently underway in my ~/Projects directory, and it looks for
the DESCRIPTION.md file.  So that's what you're getting.
2018-02-12 18:34:01 -08:00
Elf M. Sternberg d626856fb9 Adding the keyboard touchpad to devices remapped on rotation. 2017-11-20 18:30:05 -08:00
Elf M. Sternberg ea81a9d141 Fix the style to be more compliant with Python 2.7's general style for executables.
This also enables the user to import autorotate.py as a library, although why
anyone would want to do that is beyond me.
2017-11-16 13:38:01 -08:00
Elf M. Sternberg 8e8162a76b Re-wrote README to reflect current usage and installation. 2017-11-12 16:14:40 -08:00
Elf M. Sternberg 27c06cdca3 Deleting the old scripts as they're no longer used. 2017-11-12 15:48:18 -08:00
Elf M. Sternberg c4799ed8b6 Fix rotate-detection rules to be less sensitive when unit is flat.
The rotation detection rules were too simple, and too general, and
caused the system to flicker madly if you weren't holding it upright
at more than a 40° angle.  This was mostly due to my misreading the
original algorithm.  This instance currently matches Poel's algorithm
and remembers to quit once a matching geometry has been found.  It's
much more stable and pleasant to use.
2017-11-12 15:40:02 -08:00
Elf M. Sternberg bf5a5f7342 Dynamically enable stylus and eraser remapping.
A bit of a cruftectomy; removed most of the reportage displays,
and enabled dynamic scanning of the device list so that the
stylus & eraser now remap automatically, even after they've
been added dynamically via modprobe.  Signficantly reduced
the number of shell-outs as well

As is my usual nature, I removed almost all the case handling and
replaced it with a table, which is DRY: Every piece of knowledge must
have a single, unambiguous, authoritative representation within a system.
The table has a name, number, transformation matrix, and x and y
orientation check functions.  Everything else is just checking on
that.
2017-11-03 15:18:01 -07:00
AykoPoel bd6eaf1fb0 MulitMonitor bug
Quick and dirty fix... Script now looks for an external display before trying to rotate the screen. If one is present it will automatically deactivate autorotation of the internal screen.
2015-02-20 12:09:47 +01:00
AykoPoel 01f4afddcf Update autorotate.py
Had some issue that touch is deactivated at start should be fixed...
2015-02-01 12:28:05 +01:00
AykoPoel a19b10523a Update README.md 2015-01-05 16:36:54 +01:00
AykoPoel ac8b86e347 Update README.md 2015-01-05 16:36:34 +01:00
AykoPoel 4564b4909f Update README.md 2015-01-05 16:34:02 +01:00
AykoPoel 901e055df1 Update README.md 2015-01-05 16:32:39 +01:00
AykoPoel e661d1fdff Create touch.txt 2015-01-05 16:12:09 +01:00
AykoPoel 10b8e5ad55 Create touch.py 2015-01-05 16:11:35 +01:00
AykoPoel 64b2cd3317 Update autorotate.py 2015-01-05 16:09:27 +01:00
AykoPoel 7901d8dbd9 Update autorotate.py 2015-01-01 14:55:26 +01:00
AykoPoel 700ef1c102 Update changeautorotatestatus.py 2015-01-01 14:24:55 +01:00
AykoPoel 9e9d59b5ff Update autorotate.py 2015-01-01 12:32:37 +01:00
AykoPoel 7ca0e12d24 Update changeautorotatestatus.py 2015-01-01 12:29:25 +01:00
AykoPoel 4638413245 Update autorotate.py 2015-01-01 12:17:17 +01:00
Marc Pannenbeckers 8d130781f2 autorotate 2015-01-01 12:15:35 +01:00
AykoPoel a566e8d4e4 Update README.md 2015-01-01 11:53:35 +01:00
AykoPoel 183bf1de52 Update README.md 2015-01-01 11:48:49 +01:00
Marc Pannenbeckers d4f9f2f7f7 first commit 2015-01-01 11:40:47 +01:00