{"action":"created","issue":{"url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin/issues/51","repository_url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin","labels_url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin/issues/51/comments","events_url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin/issues/51/events","html_url":"https://github.com/stockmind/gpd-pocket-ubuntu-respin/issues/51","id":254841190,"number":51,"title":"Touchscreen coordinates are rotated 90 degrees counter-clockwise from landscape user orientation","user":{"login":"ThuggishNuggets","id":1154229,"avatar_url":"https://avatars3.githubusercontent.com/u/1154229?v=4","gravatar_id":"","url":"https://api.github.com/users/ThuggishNuggets","html_url":"https://github.com/ThuggishNuggets","followers_url":"https://api.github.com/users/ThuggishNuggets/followers","following_url":"https://api.github.com/users/ThuggishNuggets/following{/other_user}","gists_url":"https://api.github.com/users/ThuggishNuggets/gists{/gist_id}","starred_url":"https://api.github.com/users/ThuggishNuggets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThuggishNuggets/subscriptions","organizations_url":"https://api.github.com/users/ThuggishNuggets/orgs","repos_url":"https://api.github.com/users/ThuggishNuggets/repos","events_url":"https://api.github.com/users/ThuggishNuggets/events{/privacy}","received_events_url":"https://api.github.com/users/ThuggishNuggets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-02T23:05:19Z","updated_at":"2017-09-03T00:01:47Z","closed_at":null,"author_association":"NONE","body":"This is a continuation of a thread started on the GPD Pocket Owners Group on Facebook and is being recorded for posterity:\r\nhttps://www.facebook.com/groups/144602682766328/permalink/171022066791056/?comment_id=171028816790381&reply_comment_id=171277686765494\r\n\r\nThe touchscreen issue occurred after upgrading the kernel:\r\n``` \r\nStart: 4.12.0-rc2+ #261 // note: this is base GPD\r\n  End: 4.13.0-rc5-custom #3 SMP Fri Aug 25 07:14:08 CEST 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\nThe kernel update fixes fast charging so that it no longer takes upwards of 12 hours to charge to full.\r\n\r\nThe kernel was updated using the following:\r\n```\r\nwget https://raw.githubusercontent.com/stockmind/gpd-pocket-ubuntu-respin/dev/update-kernel.sh\r\nchmod +x update-kernel.sh\r\nsudo ./update-kernel.sh\r\n```\r\nAfter updating the kernel, I ran the latest update script:\r\nhttps://github.com/stockmind/gpd-pocket-ubuntu-respin/blob/master/update.sh\r\n\r\nSo now we're trying to resolve the rotated/unrotated touchscreen.\r\n\r\nHere is the property list for the the `Goodix Capacitive TouchScreen id=11`:\r\n```\r\n$ xinput\r\n⎡ Virtual core pointer                    \tid=2\t[master pointer  (3)]\r\n⎜   ↳ Virtual core XTEST pointer              \tid=4\t[slave  pointer  (2)]\r\n⎜   ↳ SINO WEALTH Gaming Keyboard             \tid=10\t[slave  pointer  (2)]\r\n⎜   ↳ Goodix Capacitive TouchScreen           \tid=11\t[slave  pointer  (2)]\r\n⎣ Virtual core keyboard                   \tid=3\t[master keyboard (2)]\r\n    ↳ Virtual core XTEST keyboard             \tid=5\t[slave  keyboard (3)]\r\n    ↳ Power Button                            \tid=6\t[slave  keyboard (3)]\r\n    ↳ Video Bus                               \tid=7\t[slave  keyboard (3)]\r\n    ↳ Power Button                            \tid=8\t[slave  keyboard (3)]\r\n    ↳ SINO WEALTH Gaming Keyboard             \tid=9\t[slave  keyboard (3)]\r\n    ↳ Intel HID events                        \tid=12\t[slave  keyboard (3)]\r\n    ↳ gpio-keys                               \tid=13\t[slave  keyboard (3)]\r\n    ↳ gpio-keys                               \tid=14\t[slave  keyboard (3)]\r\n$ xinput list-props 11\r\nDevice 'Goodix Capacitive TouchScreen':\r\n\tDevice Enabled (140):\t1\r\n\tCoordinate Transformation Matrix (142):\t0.000000, 1.000000, 0.000000, -1.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000\r\n\tDevice Accel Profile (265):\t0\r\n\tDevice Accel Constant Deceleration (266):\t1.000000\r\n\tDevice Accel Adaptive Deceleration (267):\t1.000000\r\n\tDevice Accel Velocity Scaling (268):\t10.000000\r\n\tDevice Product ID (258):\t1046, 911\r\n\tDevice Node (259):\t\"/dev/input/event6\"\r\n\tEvdev Axis Inversion (269):\t1, 0\r\n\tEvdev Axis Calibration (270):\t<no items>\r\n\tEvdev Axes Swap (271):\t1\r\n\tAxis Labels (272):\t\"Abs MT Position X\" (291), \"Abs MT Position Y\" (292), \"Abs MT Touch Major\" (289), \"Abs MT Width Major\" (290), \"None\" (0), \"None\" (0)\r\n\tButton Labels (273):\t\"Button Unknown\" (261), \"Button Unknown\" (261), \"Button Unknown\" (261), \"Button Wheel Up\" (146), \"Button Wheel Down\" (147)\r\n\tEvdev Scrolling Distance (274):\t0, 0, 0\r\n\tEvdev Middle Button Emulation (275):\t0\r\n\tEvdev Middle Button Timeout (276):\t50\r\n\tEvdev Third Button Emulation (277):\t0\r\n\tEvdev Third Button Emulation Timeout (278):\t1000\r\n\tEvdev Third Button Emulation Button (279):\t3\r\n\tEvdev Third Button Emulation Threshold (280):\t20\r\n\tEvdev Wheel Emulation (281):\t0\r\n\tEvdev Wheel Emulation Axes (282):\t0, 0, 4, 5\r\n\tEvdev Wheel Emulation Inertia (283):\t10\r\n\tEvdev Wheel Emulation Timeout (284):\t200\r\n\tEvdev Wheel Emulation Button (285):\t4\r\n\tEvdev Drag Lock Buttons (286):\t0\r\n```\r\nFrom what I can tell, still being very new to Linux myself, the problem is that the `Coordinate Transformation Matrix` property is set incorrectly relative to the user orientation of landscape.\r\n\r\nI think that means this will fix the issue:\r\n```\r\nxinput set-prop 11 --type=float \"Coordinate Transformation Matrix\" 0 0 0 0 0 0 0 0 0\r\n```\r\n([Source](https://askubuntu.com/questions/368317/rotate-touch-input-with-touchscreen-and-or-touchpad))"},"comment":{"url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin/issues/comments/326775840","html_url":"https://github.com/stockmind/gpd-pocket-ubuntu-respin/issues/51#issuecomment-326775840","issue_url":"https://api.github.com/repos/stockmind/gpd-pocket-ubuntu-respin/issues/51","id":326775840,"user":{"login":"ThuggishNuggets","id":1154229,"avatar_url":"https://avatars3.githubusercontent.com/u/1154229?v=4","gravatar_id":"","url":"https://api.github.com/users/ThuggishNuggets","html_url":"https://github.com/ThuggishNuggets","followers_url":"https://api.github.com/users/ThuggishNuggets/followers","following_url":"https://api.github.com/users/ThuggishNuggets/following{/other_user}","gists_url":"https://api.github.com/users/ThuggishNuggets/gists{/gist_id}","starred_url":"https://api.github.com/users/ThuggishNuggets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThuggishNuggets/subscriptions","organizations_url":"https://api.github.com/users/ThuggishNuggets/orgs","repos_url":"https://api.github.com/users/ThuggishNuggets/repos","events_url":"https://api.github.com/users/ThuggishNuggets/events{/privacy}","received_events_url":"https://api.github.com/users/ThuggishNuggets/received_events","type":"User","site_admin":false},"created_at":"2017-09-03T00:01:47Z","updated_at":"2017-09-03T00:01:47Z","author_association":"NONE","body":"@stockmind [wrote]():\r\n> Also, do you mind to burn `gpdpocket-20170819-ubuntu-17.04-desktop-amd64.iso` ... on a USB and test if on live environment your touch is ok?\r\n> \r\n> You can download it from here:\r\n> https://mega.nz/#F!8WpQRZrD!0XHgajeG-QVZTp1Jbjndgw\r\n\r\nYeah, I'll start the burn now and check it out when I get back on later tonight. "}}
{"actor":{"display_login":"ThuggishNuggets"}}