GithubHelp home page GithubHelp logo

Comments (10)

phillipberndt avatar phillipberndt commented on July 21, 2024

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.

siwyd avatar siwyd commented on July 21, 2024

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.

siwyd avatar siwyd commented on July 21, 2024

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.

phillipberndt avatar phillipberndt commented on July 21, 2024

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.

siwyd avatar siwyd commented on July 21, 2024

Awesome! Will try it tomorrow when I have access to the 3-screen setup. Feedback soon!

from autorandr.

phillipberndt avatar phillipberndt commented on July 21, 2024

FYI, @telefax reports in #48 that the branch works for him.

from autorandr.

siwyd avatar siwyd commented on July 21, 2024

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.

phillipberndt avatar phillipberndt commented on July 21, 2024

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.

siwyd avatar siwyd commented on July 21, 2024

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.

siwyd avatar siwyd commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.