wertarbyte / autorandr

Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper
648 stars 63 forks source link

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

Open brozkeff opened 8 years ago

brozkeff commented 8 years ago

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.
phillipberndt commented 8 years ago

See #33 and #36

adeleglise commented 6 years ago

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

phillipberndt commented 6 years ago

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

adeleglise commented 6 years ago

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.

phillipberndt commented 6 years ago

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!

adeleglise commented 6 years ago

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.

wwalker commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.