Comments (8)
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.
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.
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.
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.
Do I get that right, b-menu generates autorandr profiles?
from autorandr.
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.
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 ofxrandr --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.
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)
- /home/thinker/./autorandr:49: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion as Version HOT 1
- 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 2
- 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 6
- please support appimage , or binary file HOT 1
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.