Comments (10)
What's the output of autorandr --debug --dry-run -c
before the first run?
If you reorder the activation order in the output, does one work right away?
from autorandr.
Sorry for the delay, didn't have time before to test this.
This is the output of first changing to 'mobile' (only laptop screen), then trying to activate the 3-monitor output. Changing to mobile is no problem. Then, on the first go, you can see 'configure crtc 1 failed'. On the second go, it's working.
hb@ishikawa ~ % autorandr -l mobile
hb@ishikawa ~ % autorandr --debug --dry-run -c
work (detected)
mobile (current)
Loading profile 'work'
| Differences between the two profiles:
| [Output DP1-2] The output is disabled currently, but active in the new configuration
| [Output DP1-1] The output is disabled currently, but active in the new configuration
| [Output DP1-3] The output is disabled currently, but active in the new configuration
| [Output eDP1] The output is currently enabled, but inactive in the new configuration
\-
xrandr --output eDP1 --off --output DP1-1 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 0x0 --rate 60.00 --reflect normal --rotate normal
xrandr --output DP1-2 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 1920x0 --rate 60.00 --reflect normal --rotate normal --output DP1-3 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 3840x0 --rate 60.00 --reflect normal --rotate normal
hb@ishikawa ~ % autorandr -c
work (detected)
mobile (current)
xrandr: Configure crtc 1 failed
Failed to apply profile 'work' (line 610):
Command failed: xrandr --output DP1-2 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 1920x0 --rate 60.00 --reflect normal --rotate normal --output DP1-3 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 3840x0 --rate 60.00 --reflect normal --rotate normal (line 610)
This appears to be a bug. Please help improving autorandr by reporting it upstream.
Please attach the output of `xrandr --verbose` to your bug report if appropriate.
1 hb@ishikawa ~ % autorandr --debug --dry-run -c :(
work (detected)
| Differences between the two profiles:
| [Output DP1-2] The output is disabled currently, but active in the new configuration
| [Output DP1-3] The output is disabled currently, but active in the new configuration
\-
mobile
Loading profile 'work'
| Differences between the two profiles:
| [Output DP1-2] The output is disabled currently, but active in the new configuration
| [Output DP1-3] The output is disabled currently, but active in the new configuration
\-
xrandr --output DP1-1 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 0x0 --rate 60.00 --reflect normal --rotate normal --output DP1-2 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 1920x0 --rate 60.00 --reflect normal --rotate normal
xrandr --output DP1-3 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 3840x0 --rate 60.00 --reflect normal --rotate normal
hb@ishikawa ~ % autorandr -c
work (detected)
mobile
I'll try and reorder the outputs in the profile and give feedback.
from autorandr.
Okay, so I managed to make it work by rearranging the config:
This works:
output eDP1
off
output DP1
off
output HDMI1
off
output HDMI2
off
output VIRTUAL1
off
output DP1-1
mode 1920x1080
pos 0x0
rate 60.00
output DP1-2
mode 1920x1080
pos 1920x0
rate 60.00
output DP1-3
mode 1920x1080
pos 3840x0
rate 60.00
And this works as well:
output DP1
off
output HDMI1
off
output HDMI2
off
output VIRTUAL1
off
output eDP1
off
output DP1-2
mode 1920x1080
pos 1920x0
rate 60.00
output DP1-1
mode 1920x1080
pos 0x0
rate 60.00
output DP1-3
mode 1920x1080
pos 3840x0
rate 60.00
eDP1 is my laptop's display by the way. Seems like a timing related issue. Moving the turning off of the laptop display to the top seems to fix it some how. Despite the command working, it is actually still giving an error:
xrandr: Configure crtc 0 failed
Failed to apply profile 'work' (line 610):
Command failed: xrandr --output DP1-2 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 1920x0 --rate 60.00 --reflect normal --rotate normal --output DP1-3 --gamma 1.0:1.0:1.0 --mode 1920x1080 --panning 0x0 --pos 3840x0 --rate 60.00 --reflect normal --rotate normal (line 610)
This appears to be a bug. Please help improving autorandr by reporting it upstream.
Please attach the output of `xrandr --verbose` to your bug report if appropriate.
from autorandr.
Maybe it suffices to retry the failed command after waiting some time? I just pushed the retry_commands branch, please give it a try..
from autorandr.
Awesome! Will try it tomorrow when I have access to the 3-screen setup. Feedback soon!
from autorandr.
FYI, @telefax reports in #48 that the branch works for him.
from autorandr.
Thx for the update, Phillip. I've tried the new branch, but for some reason it wasn't working just yet when docking my laptop. By not working I mean the behaviour was similar to before. I need a bit more time to do some debugging. I will try to come to work early some time to try out some things.
from autorandr.
Alright, take your time. I'll leave this open/unmerged until then. (Maybe it suffices to increase the sleep time, or add a second retry?)
from autorandr.
Yeah, I did that, but it didn't seem to have any positive effect.
Unfortunately it's a week ago, and I didn't document my findings properly
:) Gotta try all that stuff again in a organised manner.
On Mon, May 9, 2016 at 2:03 PM, Phillip Berndt [email protected]
wrote:
Alright, take your time. I'll leave this open/unmerged until then. (Maybe
it suffices to increase the sleep time, or add a second retry?)—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#47 (comment)
from autorandr.
Hey Philip,
I'm incapable of continuing debugging this at the moment, I'm gonna go ahead and close it at the moment. Anyway, @telefax was helped by this report and bugfix so that's a good thing :) Thanks for your effort.
from autorandr.
Related Issues (20)
- Question: should autorandr systemd service change profile when external monitor is unplugged? HOT 2
- Use of --skip-options breaks --current HOT 1
- Parsing XRandR output failed HOT 1
- Detected Wayland session 'wayland-0'. Exiting.
- Failed to apply profile because xrandr cannot find mode
- postscript loses authentication for systemctl commands after suspending HOT 1
- Unhandled exception (local variable 'output' referenced before assignment) HOT 1
- Broken regexes due to missing `r` string literal HOT 6
- Unable to save lid state when using NVIDIA GPU (no eDP / LVDS output)
- Total system crash + soundloop could be caused by autorandr
- Total system crash + soundloop could be caused by autorandr
- No XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE events HOT 2
- Prevent profile change with screen lock HOT 1
- Additional Documentation HOT 7
- autorandr.service "Failed to load profile: 'xxx' : Profile not found" althoug profile exists HOT 1
- Failed to apply profile due to `--crtc` option HOT 3
- Incorrect profile settings HOT 1
- autorandr /usr/bin/autorandr:210: SyntaxWarning: invalid escape sequence '\s' XRANDR_OUTPUT_REGEXP = """(?x) /usr/bin/autorandr:236: SyntaxWarning: invalid escape sequence '\s' """ + XRANDR_PROPERTIES_REGEXP + """ | # Properties to include in the profile /usr/bin/autorandr:248: SyntaxWarning: invalid escape sequence '\S' XRANDR_OUTPUT_MODES_REGEXP = """(?x) /usr/bin/autorandr:592: SyntaxWarning: invalid escape sequence '\s' version = re.search("xrandr program version\s+([0-9\.]+)", version_string).group(1) /usr/bin/autorandr:888: SyntaxWarning: invalid escape sequence '\+' match = re.match("(?P<w>[0-9]+)x(?P<h>[0-9]+)(?:\+(?P<x>[0-9]+))?(?:\+(?P<y>[0-9]+))?.*", output.options["panning"]) HOT 7
- please support appimage , or binary file HOT 1
- Enabling udev rule / systemd service on a per-user basis? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autorandr.