Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Doesn't restore laptop display when switching TTYs+undocking #67

Open
ainola opened this issue Feb 3, 2020 · 1 comment
Open

Doesn't restore laptop display when switching TTYs+undocking #67

ainola opened this issue Feb 3, 2020 · 1 comment

Comments

@ainola
Copy link

ainola commented Feb 3, 2020

I have two accounts on my machine (both using sway) and I switch between them using control+alt+f{1,2}. Kanshi remembers the state of the TTY when I switch but doesn't detect any changes when I switch back. My kanshi config is:

{
    output "Unknown 0x109D 0x00000000" enable  # Laptop
}

{
    output "Unknown 0x109D 0x00000000" disable  # Laptop
    output "ViewSonic Corporation VP2768 Series UY5182100007" enable  # external monitor
}

To illustrate the issue, here's a scenario:

  • Work in TTY1 undocked
  • dock laptop (external monitor)
  • Switch to TTY2 and work
  • Undock laptop while in TTY2
  • Switch to TTY1 and notice a dead screen

At this point, Kanshi hasn't returned the display back to the laptop. TTY1 is also unresponsive, i.e. I'm unable to blindly type commands to save the situation - something's blocking (perhaps not a Kanshi bug, then?).

The situation then gets more awkward because, while I can rescue the session by docking the laptop and undocking again, Kanshi somehow does detect the dock on TTY2 and then activates the external monitor/disables the laptop display in the background.

@ainola
Copy link
Author

ainola commented Jun 24, 2021

This seems to have not been an issue for me for some weeks now - I'm guessing this was a kernel issue after all? Can anyone confirm?

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

No branches or pull requests

1 participant