-
Notifications
You must be signed in to change notification settings - Fork 127
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
xrandr shows monitor connected but autorandr always switches back (ext. monitor screen stays black) #402
Comments
I'm facing the same problem myself, and for me, the reason is that the graphics driver and monitor don't play well together, especially if multiple screens are connected via daisy chaining. Upgrading to the latest OS (Ubuntu 20.04 -> 24.04 in my case) allegedly helps a lot. I haven't found a good workaround without upgrading, I so far just retry until it works. I haven't tried systematically sending dpms comments to the black screens. ( |
@phillipberndt I heard that graphics cards are always a bit of a problem on linux, but I'm happy to hear that this got better with the new Ubuntu (I'm currently using 22.04). So I'm going to try to update soon. What are dpms comments? |
This sounds like the problem I'm currently dealing with. Hardware and software I'm using:
I just installed Ubuntu and AwesomeWM last week, been wrestling with external and laptop monitor strangeness since then. I have 2 autorandr configurations setup: one for using an external monitor with the laptop shut (multi) and another for working with the laptop without an external monitor (mobile). My problem right now is when the laptop is in clamshell mode, charging, with the external monitor plugged in via HDMI. Things are fine until the laptop goes to sleep. When I attempt to wake it, the external monitor turns back on, though remains black, and seems like it's about to display the desktop. Then it will go back to sleep. I must open the laptop lid to interact with the machine at this point. If I run the |
@jh3 That sounds very similar. What happens if you create a profile that uses your external monitor with arandr and activate that? Will the monitor automatically be awoken from sleep or will it remain black until you fiddle around with the monitor buttons? In my case I have to somehow manually wake it up using the monitor buttons until I see something. |
@MartyMcFlyInTheSky So I just tried messing with the monitor power button and it saved me from needing to restart AwesomeWM/log out:
I see this sequence of logs a few times in
I'm not sure why |
@MartyMcFlyInTheSky Just noticed something new: after my laptop/monitor are 'sleeping', if I open the laptop and attempt to load the The first time I try loading it:
Now with the external monitor on and the laptop screen on, I can quickly run the |
@jh3 That's something I also thought about. There seems to be two states regarding the monitor (I haven't confirmed this with the source code...). But there seems to be a state "connected" in which autorandr and xrandr will detect the monitor. And something like "active" where the monitor actually consumes the signal and displays it. It seems like our monitors are a tad bit too slow in showcasing the "active" state to autorandr so that it will refrain from sending any signals and revert back to the previous configuration. In our case this active state can be enforced by fiddling with the power buttons. I'm wondering if this behaviour is fixed on wayland. |
Autorandr works great for my external monitor at home, but at work I have the following issue:
Without autorandr: If I come to work in the morning the screen stays black even after applying my settings (saved from arandr). xrandr does however pick up the screen as an output even if it's black. So it seems to be some kind of a standby-mode that will not react to HDMI output. To make it work I always have to manually press the some buttons on the monitor to "wake it up". The monitor is a Samsung LS32A800NMPXEN. Any idea what the problem is here?
With autorandr: Above issue also seems to influence the behavior of autorandr, because once I plug the monitor in it tries to apply the saved setting for the external Samsung monitor (which it detects), however then it immediately switches back for reasons I don't understand. I have hooked the postswitch with
to check that this is what is actually going on and it confirms above assumption.
I'm not an expert in monitors, but maybe someone could point me into the right direction. The optimal solution would be for the monitor to immediately start streaming once I plug in the HDMI cable ( which is the case for my home monitor (Alienware)). Are there known issues like this with some samsung screens or is this unrelated?
Furthermore I'd like to understand where this switching forth and back behavior is coming from. Does autorandr react on other triggers than just HDMI plugged in?
The text was updated successfully, but these errors were encountered: