Meowth stuck in clamshell and can't enter tablet mode |
||
Issue descriptionChrome Version: 71.0.3543.0 OS: Chrome What steps will reproduce the problem? It happens occasionally. There is no reliable repro step. Omri showed me the device that was in bad state. According to Omri, he attached a normal USB keyboard and attached the default keyboard to Mowoth at some point, and disconnected them one by one later, and the device stuck in clamshell mode forever. Attaching a keyboard or reboot doesn't make it enter tablet mode. What is the expected result? It should be able to enter/exit tablet mode. I added some log to it and found it's because PowerManagerClient sent an incorrect TabletMode state to TabletModeController, see code here https://cs.chromium.org/chromium/src/ash/wm/tablet_mode/tablet_mode_controller.cc?rcl=1cd8b9f92fe68dd8cc064aac3270f86e0d890ee5&l=295. The |mode| variable that passed from PowerManagerClient equals to owerManagerClient::TabletMode::OFF after rebooting the device or restarting the user session. I then later attached/detached the default keyboard to it for several times and it suddenly can enter/exit tablet mode again. However, although the keyboard is attached, it still cannot be used. I attached all the logs here, the log contains the problematic reboot is the latest one, and happens around 12:08pm or 12:09pm Sep 14. derat@, since you're familiar with PowerManagerClient, do you have any thoughts about why it might happen?
,
Sep 14
Thanks derat@. Yes I can consistently repro this issue on the problematic device (just reboot the device, it's always there). But tried on other meowth device (same chrome version, different platform version though) and didn't repro it. Will install a newer image to the device and see if it goes away.
,
Sep 14
For the problematic device, yes, it always receives the incorrect tablet mode value.
,
Sep 14
Installed the latest image (with platform version: 11065.0.0) and now I can get the correct tablet mode value from PowerManagerClient, and attaching/detaching the default keyboard can exit/enter tablet mode. However, even the keyboard is attached, it's still can't be used. But I think that's a different issue, maybe just a device specific problem. And I also noticed that the problematic device that Omri gave to me contained a customized locally built image (platform: 11035.0 by afakhry@). So it seems to me either it regressed but got fixed later in the firmware, or it's the problem with the locally built image. Thus close this issue.
,
Sep 14
Some other interesting issues w/ tablet interactions here as well: b/73133611 and b/112537098 |
||
►
Sign in to add a comment |
||
Comment 1 by derat@chromium.org
, Sep 14Components: OS>Firmware>EC