autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

/usr/bin/xrandr: failed to parse 'x' as a position

Open brozkeff opened this issue 9 years ago • 9 comments

I use Mint 17.2 with XFce, and connecting a Dell monitor via HDMI (with reduction to DisplayPort on my HP laptop) that is physically to the LEFT of my laptop screen. By default Xfce shows a pop-up on connecting allowing me only to "extend to the right" which is the opposite I need (and it cannot remember what I set in Advanced settings manually each time).

Trying to use autorandr after I set the correct positions (saved one profile "tierra"), after disconnecting the external screen (saved another profile "mobile"), and then trying to reload the tierra after re-connecting the external screen leads to the following error, not changing anything:

$ ./autorandr --save tierra
Saving current configuration as profile 'tierra'

(disconnecting external screen)

$ ./autorandr --save mobile
Saving current configuration as profile 'mobile'

(now reconnecting external screen, testing:)

$ ./autorandr
mobile
tierra (detected)

(trying to apply the profile:)

brozkeff@dorjelegpa ~/bin/autorandr $ ./autorandr --change
mobile
tierra (detected)
 -> loading profile tierra
/usr/bin/xrandr: failed to parse 'x' as a position
Try '/usr/bin/xrandr --help' for more information.

brozkeff avatar Jan 15 '16 11:01 brozkeff

See #33 and #36

phillipberndt avatar Jan 15 '16 12:01 phillipberndt

Hello, I'm still encountering this issue.

xrandr -v
xrandr program version       1.5.0
Server reports RandR version 1.5
 OS: Manjaro Linux x86_64
Host: HP EliteBook 850 G3
Kernel: 4.14.30-1-MANJARO

When trying to apply a saved configuration : /usr/bin/xrandr: failed to parse 'x' as a position

adeleglise avatar Mar 28 '18 13:03 adeleglise

See above.. have a look at #33 and #36..

phillipberndt avatar Mar 28 '18 13:03 phillipberndt

Thanks for the quick response. I did take a look a the related tickets, it just wasn't really obvious what to do.

I've installed the autorandr-git aur package.

adeleglise avatar Mar 28 '18 13:03 adeleglise

I've installed the autorandr-git aur package.

And that fixed it (great if it did :-)) or is that what you did to install autorandr originally and now you're facing this bug? If it's the latter, then autorandr-git is maintained here, please refile this bug over there & paste the "config" file of your profile please!

phillipberndt avatar Mar 28 '18 13:03 phillipberndt

Ok will do ! Right now I can't confirm that the profile changing bug is still here.

I'll give an update here, and confirm on the other repo if necessary.

adeleglise avatar Mar 28 '18 14:03 adeleglise

I have the same problem. I used autorandr on my desktop and it works great! Thank you! But I used it on my notebook with only the LCD display.

I've saved 2 profiles and neither one will load:

autorandr --save 1920x1080 
xfce4-display-settings  # rotate the display
autorandr --save 1080x1920
wwalker@plutonium:~$ autorandr --load 1920x1080
 -> loading profile 1920x1080
/usr/bin/xrandr: failed to parse 'x' as a position
Try '/usr/bin/xrandr --help' for more information.
wwalker@plutonium:~$ autorandr --load 1080x1920
 -> loading profile 1080x1920
/usr/bin/xrandr: failed to parse 'x' as a position
Try '/usr/bin/xrandr --help' for more information.
wwalker@plutonium:~$

autorandr--load.txt dot-autorandr.zip

I've attached a bash -x of autorandr load and a zip of my .autorandr directory

wwalker avatar Sep 14 '19 20:09 wwalker

I notice what seems to be a missing mode on my notebook.

On my notebook, which is "broken" load tries to run this:

/usr/bin/xrandr --output LVDS-1 --mode primary --pos x --rotate 1920x1080+0+0 --output VGA-1 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off

On my desktop that works, load runs this:

/usr/bin/xrandr --output DVI-I-1 --off --output DP-1 --mode 3840x2160 --pos 0x0 --primary --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode 3840x2160 --pos 3840x0

wwalker avatar Sep 14 '19 21:09 wwalker

Hi! If you are reading this, then you should know this repo is apparently no longer maintained.

https://github.com/phillipberndt/autorandr is being maintained, and fixed this problem for me.

wwalker avatar Sep 15 '19 21:09 wwalker