Coder Social home page Coder Social logo

Comments (8)

wasinski avatar wasinski commented on June 4, 2024 1

I had the same error on Manjaro with i3 and I believe it might have something to do how Manjaro's b-menu is handling autorandr profile saving.

What helped me was setting up the config using b-menu but saving the profile actually using
autorandr --save xxx
now it works like a charm

from autorandr.

phillipberndt avatar phillipberndt commented on June 4, 2024

Could you post the config file of the xxxx profile, please? (Or, alternatively, add a print(self.options) before line 233 and post what it prints, in particular for the pos key.)

from autorandr.

 avatar commented on June 4, 2024

This is the config:

output eDP1
mode primary
pos x
output DP1
off
output DP2
off
output HDMI1
mode 1920x1080
pos 0x0
primary
output HDMI2
off
output HDMI3
off
output VGA1
off
output VIRTUAL1
off

Thanks!

from autorandr.

phillipberndt avatar phillipberndt commented on June 4, 2024

Hm, with your xrandr output, I get the configuration

output eDP1
mode 1600x900
pos 0x0
primary
rate 60.00

Note the different mode and pos lines. Obviously something went quite wrong there.. do you remember which setup you've actually had when you created the configuration? autorandr --config shows what is currently being detected. It'd be insightful to see the xrandr --verbose output that led to the defective configuration.

from autorandr.

phillipberndt avatar phillipberndt commented on June 4, 2024

Do I get that right, b-menu generates autorandr profiles?

from autorandr.

wasinski avatar wasinski commented on June 4, 2024

TBH I have no idea how this works internally but b-menu has display option where you can configure the screens using xrandr and after that save the configuration. I tried it several times every time failing with error given above. Using autorandr directly fixed it.

AFAIR autorandr isn't preinstalled with Manjaro so maybe it's using some other way of saving it and that's what causes the error

from autorandr.

x0zzz avatar x0zzz commented on June 4, 2024

Hi, I ran into same problem it seems:

~ ❯❯❯ autorandr --version
autorandr 1.8.1
~ ❯❯❯ autorandr
docked (detected)
mobile
~ ❯❯❯ autorandr -l mobile
Failed to apply profile 'mobile' (line 253):
could not convert string to float:
This appears to be a bug. Please help improving autorandr by reporting it upstream:
https://github.com/phillipberndt/autorandr/issues
Please attach the output of xrandr --verbose to your bug report if appropriate.

Here's the xrandr's output: xrandr_verbose.txt

Here's my --config:

~ ❯❯❯ autorandr --config
output HDMI-1
off
output DP-2
off
output HDMI-2
off
output DP-3
off
output HDMI-3
off
output VGA-1
crtc 2
gamma 1.389:1.0:0.714
mode 1920x1200
pos 1600x0
rate 59.95
rotate left
output DP-1
crtc 1
gamma 1.389:1.0:0.714
mode 1920x1200
pos 2800x576
rate 59.95
output eDP-1
crtc 0
gamma 1.389:1.0:0.714
mode 1600x900
pos 0x920
primary
rate 60.00

Can you please help me out?

from autorandr.

nolyn avatar nolyn commented on June 4, 2024

I ran into the same problem, I got
could not convert string to float
after a fresh install, calling autorandr without any options. However I was running it under wayland, which is not supported by autorandr as I just read.
However I then switched to using xorg and there autorandr works as expected.

On a side note I was able to run xrandr in wayland and it seemed to report correctly, though the format looks different than in xorg.

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.