Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input stops working after VT switch back to Sway #3612

Closed
jbeich opened this issue Feb 7, 2019 · 4 comments
Closed

Input stops working after VT switch back to Sway #3612

jbeich opened this issue Feb 7, 2019 · 4 comments
Labels
bug Not working as intended

Comments

@jbeich
Copy link
Contributor

jbeich commented Feb 7, 2019

Environment:

  • FreeBSD 13.0-CURRENT amd64, drm-current-kmod-4.20.g20190110
  • sway version 1.0-rc1-33-gec5da0ca (2019-02-07, branch master)
  • wlroots version 0.3-11-g20d404a0 (2019-02-06, branch master)
  • libevdev-1.5.9, libinput-1.12.6
  • kern.evdev.rcpt_mask=12 (EVDEV_RCPT_HW_MOUSE + EVDEV_RCPT_HW_KBD)
  • empty config (i.e., -c /dev/null)
  • debug log

Steps to reproduce:

  1. Start Sway on DRM (e.g., env -u DISPLAY sway)
  2. VT switch to console (e.g., Ctrl + Alt + F1)
  3. VT switch back to Sway (e.g., Ctrl + Alt + F2)

Expected result:

  • Sway resumes. Everything works like before VT switch.

Actual result:

  • Screen is restored, including ongoing animation from applications
  • Mouse pointer doesn't move
  • Keyboard input has no effect, including Ctrl + Alt + F1
  • VT can only be force-switched via vidcontrol -s 1 </dev/ttyv0 (remotely or timed via script)
@emersion
Copy link
Member

emersion commented Feb 8, 2019

Hmm, maybe an issue with the wlroots direct session.

@emersion emersion added the bug Not working as intended label Mar 10, 2019
@sghctoma
Copy link
Contributor

I've disappeared from here some time ago (life/work got in the way), but a @freebsd-x11 thread (https://lists.freebsd.org/pipermail/freebsd-x11/2019-October/024139.html) made me aware of this issue.
This is not an issue with wlroots/sway, but with libepoll-shim (See jiixyj/epoll-shim#7). VT switching works on my 13.0-CURRENT HardenedBSD system with the latest version from jiixyj's repo.

@emersion
Copy link
Member

Thanks for the heads-up. @jbeich can you confirm?

@jbeich
Copy link
Contributor Author

jbeich commented Oct 11, 2019

Yes. After upgrading epoll-shim (via freebsd/freebsd-ports@a7c3fd3d428e) switching to console and back works fine (tried more than once).

@jbeich jbeich closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

3 participants