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

Black screen when changing screen with xrandr #4906

Closed
2 tasks done
g-wizzy opened this issue Jul 2, 2024 · 3 comments
Closed
2 tasks done

Black screen when changing screen with xrandr #4906

g-wizzy opened this issue Jul 2, 2024 · 3 comments

Comments

@g-wizzy
Copy link

g-wizzy commented Jul 2, 2024

Issue description

I have a script to switch between my desktop monitor and my TV screen, which uses xrandr :

# ...
xrandr --output "$MONITOR" --off --output "$TV" --auto --primary
# ...
qtile cmd-obj -o root -f restart

I use it all the time, and it used to work with qtile. But after some update, I now get a black screen, with only my mouse cursor visible. Switching back to my desktop monitor does not solve the issue, and I have to close qtile and launch it again.

I have seen #4886, but adding a second screen to my config did not change anything.

Do you know what might cause this issue ?

Version

0.26.1.dev0 ge4b4bb8b.d20240523

Backend

X11 (default)

Config

No response

Logs

No response

Required

  • I have searched past issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@tych0
Copy link
Member

tych0 commented Jul 11, 2024

If qtile crashed, it probably logged something somewhere. Can you look in the logs and see?

@g-wizzy
Copy link
Author

g-wizzy commented Jul 16, 2024

Nothing in my qtile logs. Qtile doesn't crash, as my mouse cursor still moves. It even changes into a caret if I spawn a terminal using my qtile shortcut, indicating that qtile still works behind the black screen.

Interestingly, quitting qtile with the lazy.shutdown() shortcut removes the black screen for a very short moment before actually quitting.

@g-wizzy
Copy link
Author

g-wizzy commented Aug 2, 2024

Well, I'm dumb. I didn't know about the reconfigure_screens setting. Why it worked before and ceased working only a couple weeks ago, I don't know. But it works now, and I apologize for the waste of time.

@g-wizzy g-wizzy closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants