[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-06-02 Thread Bug Watch Updater
** Changed in: linux
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-05-25 Thread You-Sheng Yang
4.15 kernel is out of scope of s2idle support in Ubuntu.

** Changed in: linux (Ubuntu Bionic)
   Status: In Progress => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-05-25 Thread You-Sheng Yang
Ah, I need breakfast. It's CaCO3.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-05-25 Thread You-Sheng Yang
@CaCO3, like your id but it should be CaCO2 instead.

So the proposed patch was obsoleted because the i2c-hid maintainers
prefer to turn off i2c runtime suspend instead, and therefore this
should not be reproduced any more. This has been verified on Ubuntu OEM
projects, and should have been resolved along with the internal counter
part.

Should you have still issue around this, please run `apport-bug` after
reproduced that issue in a clean reboot to file a separate bug. Usually
I'll be notified with that new bug, but you can also subscribe me and
let's find out what can we do next.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-05-25 Thread You-Sheng Yang
The two commits were backported to generic kernel 5.0.0-38.41, on which
oem-osp1-5.0.0-1032 is based, is sufficient for fixing this on s2idle
configuration:

  1. [HID: i2c-hid: Remove runtime power 
management](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=67b18dfb8cfc6d6c2f45ba8c546088f5c14f5bd5)
  2. [HID: i2c-hid: Send power-on command after 
reset](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=43b7029f475e7497da1de1f4a1742241812bf266)

Nothing else to do, marking INVALID.

** Changed in: oem-priority
   Status: Confirmed => Fix Released

** Changed in: hwe-next
   Status: New => Fix Released

** Changed in: linux-oem-osp1 (Ubuntu Bionic)
   Status: In Progress => Fix Released

** Changed in: linux-oem-osp1 (Ubuntu Disco)
   Status: New => Fix Released

** Changed in: linux-oem-osp1 (Ubuntu Eoan)
   Status: New => Invalid

** Changed in: linux-oem-osp1 (Ubuntu Disco)
   Status: Fix Released => Invalid

** Changed in: linux (Ubuntu Disco)
   Status: In Progress => Fix Released

** Changed in: linux (Ubuntu Eoan)
   Status: In Progress => Fix Released

** Changed in: linux-oem-osp1 (Ubuntu)
   Status: New => Invalid

** Changed in: linux (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-05-25 Thread You-Sheng Yang
** Tags added: hwe-touchpad

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2020-05-25 Thread CaCO3
I seem to have the same bug, how ever on a Synaptics TM2668-002 (ThinkPad 
T440s).
Is there any progress on this bug? I experience this issue since several months 
(Kubuntu 19.04 and now still on 20.04).

My workaround is to run a `sudo modprobe -r psmouse; sudo modprobe
psmouse`

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-25 Thread You-Sheng Yang
** Changed in: linux (Ubuntu)
 Assignee: (unassigned) => You-Sheng Yang (vicamo)

** Also affects: linux-oem-osp1 (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Eoan)
   Importance: Undecided
 Assignee: You-Sheng Yang (vicamo)
   Status: Incomplete

** Also affects: linux-oem-osp1 (Ubuntu Eoan)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Disco)
   Importance: Undecided
   Status: New

** Also affects: linux-oem-osp1 (Ubuntu Disco)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Also affects: linux-oem-osp1 (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: linux-oem-osp1 (Ubuntu Bionic)
 Assignee: (unassigned) => You-Sheng Yang (vicamo)

** Changed in: linux-oem-osp1 (Ubuntu Bionic)
   Status: New => In Progress

** Changed in: linux (Ubuntu Bionic)
   Status: New => In Progress

** Changed in: linux (Ubuntu Bionic)
 Assignee: (unassigned) => You-Sheng Yang (vicamo)

** Changed in: linux (Ubuntu Disco)
   Status: New => In Progress

** Changed in: linux (Ubuntu Disco)
 Assignee: (unassigned) => You-Sheng Yang (vicamo)

** Changed in: linux (Ubuntu Eoan)
   Status: Incomplete => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-25 Thread Bug Watch Updater
Launchpad has imported 2 comments from the remote bug at
https://bugzilla.kernel.org/show_bug.cgi?id=204991.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2019-09-25T04:51:35+00:00 vicamo wrote:

Created attachment 285163
dmesg, v5.3.1, i2c-hid.debug=1 hid.debug=1

I2C traffic after resume:

[ 275.148083] i2c_hid i2c-CUST:00: i2c_hid_set_power
[ 275.148084] i2c_hid i2c-CUST:00: __i2c_hid_command: cmd=05 00 01 08
[ 275.312190] i2c_hid i2c-DELL096E:00: i2c_hid_set_power
[ 275.312191] i2c_hid i2c-DELL096E:00: __i2c_hid_command: cmd=05 00 01 08
[ 283.926905] i2c_hid i2c-DELL096E:00: i2c_hid_set_power
[ 283.926910] i2c_hid i2c-DELL096E:00: __i2c_hid_command: cmd=05 00 00 08
[ 283.927146] i2c_hid i2c-DELL096E:00: i2c_hid_set_or_send_report
[ 283.927149] i2c_hid i2c-DELL096E:00: __i2c_hid_command: cmd=05 00 37 03 06 00 
05 00 07 00 00
[ 283.927872] i2c_hid i2c-DELL096E:00: i2c_hid_set_or_send_report
[ 283.927874] i2c_hid i2c-DELL096E:00: __i2c_hid_command: cmd=05 00 33 03 06 00 
05 00 03 03 00
[ 283.929148] i2c_hid i2c-DELL096E:00: i2c_hid_set_or_send_report
[ 283.929151] i2c_hid i2c-DELL096E:00: __i2c_hid_command: cmd=05 00 35 03 06 00 
05 00 05 03 00
[ 284.077891] i2c_hid i2c-CUST:00: i2c_hid_set_power
[ 284.077892] i2c_hid i2c-CUST:00: __i2c_hid_command: cmd=05 00 00 08

# when touching touchpad:
[ 289.262675] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 00 00 00 00 00 00 00
[ 289.270314] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 fe 00 00 00 00 00 00
[ 289.276806] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 fd 00 00 00 00 00 00
[ 289.283863] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 fb 01 00 00 00 00 00
[ 289.291213] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 fa 02 00 00 00 00 00
[ 289.297932] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 f9 03 00 00 00 00 00
[ 289.304775] i2c_hid i2c-DELL096E:00: input: 0b 00 01 00 f9 03 00 00 00 00 00

On this device, both Precision Touchpad mode and a legacy Mouse mode are
supported. When I2C SET_POWER ON is issued, it would take as long as
60ms to complete state transition and is then able to receive and
execute further commands. On boot the device is running under Mouse mode
for legacy platform support, and will be put to PTP mode with a
SET_OR_SEND_REPORT command. If somehow the time gap between the first
SET_POWER ON and further SET_OR_SEND_REPORT commands is less than 60ms,
the device will still operating under Mouse mode and gives reports like
"0b 00 01 00 fe 00 00 00 00 00 00".

On Linux system boot, it may take 500ms from i2c probe (SET_POWER ON) to
hid initialization (SET_OR_SEND_REPORT), so it will always be put to PTP
mode successfully. But when the device is put under suspend and resumed,
the hid reset resume process will be right after i2c resume, so the
device won't have enough time to complete its state transition, which
fails following SET_OR_SEND_REPORT executing and therefore it operates
under Mouse mode instead.

Currently Linux has a at most 5ms sleep in i2c_hid_hwreset(), but
according to HID over I2C Specification[1] section 7.2.8 "SET_POWER":

> The DEVICE must ensure that it transitions to the HOST
> specified Power State in under 1 second.

it can take as long as 1 second.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1842532/comments/3


On 2019-09-25T04:55:43+00:00 vicamo wrote:

http://download.microsoft.com/download/7/d/d/7dd44bb7-2a7a-4505-ac1c-
7227d3d96d5b/hid-over-i2c-protocol-spec-v1-0.docx

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1842532/comments/4


** Changed in: linux
   Status: Unknown => Confirmed

** Changed in: linux
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-24 Thread You-Sheng Yang
** Bug watch added: Linux Kernel Bug Tracker #204991
   https://bugzilla.kernel.org/show_bug.cgi?id=204991

** Also affects: linux via
   https://bugzilla.kernel.org/show_bug.cgi?id=204991
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-16 Thread Yuan-Chen Cheng
** Changed in: oem-priority
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-06 Thread You-Sheng Yang
** Tags added: somerville

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-03 Thread Chih-Hsyuan Ho
Vendor(Goodix) suggests to add a (58ms) delay after SET_POWER_ON command
after resuming from s2idle.

And here is the cause analysis done by the vendor about this issue:
"
By following Microsoft spec, our IC supports two types of protocol, mouse mode 
and ptp mode.
When IC powers on, the default mode is mouse mode, host can send command to 
switch it to ptp mode.
ptp mode (Ubuntu OS only handle this protocol)

Switching to ptp mode fails in Ubuntu's case due to insufficient delay time 
after the SET_POWER_ON command and results in a loss in touchpad function as it 
weill be operating in mouse mode when resuming from s2idle.
"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-03 Thread Chih-Hsyuan Ho
** Changed in: oem-priority
 Assignee: Shih-Yuan Lee (fourdollars) => You-Sheng Yang (vicamo)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1842532] Re: Touchpad stops working after resuming from s2idle

2019-09-03 Thread Chih-Hsyuan Ho
** Tags added: originate-from-1841723

** Tags added: oem-priority

** Tags added: somerville-dla

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842532

Title:
  Touchpad stops working after resuming from s2idle

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1842532/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs