autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

xrandr command not found

Open georghimself opened this issue 3 years ago • 4 comments
trafficstars

Cheers,

im on the latest Archcraft and my autorandr works great with --change. But somehow the hot plugging is not working. so i check the service (see below) im not sure if this is the reason hot plugging doesnt work but i guess so.

autorandr.service - autorandr execution hook Loaded: loaded (/usr/lib/systemd/system/autorandr.service; enabled; preset: disabled) Active: inactive (dead)

Sep 01 10:21:32 neuromancer autorandr[13985]: Running autorandr as jan for display :0 Sep 01 10:21:32 neuromancer systemd[1]: autorandr.service: Deactivated successfully. Sep 01 10:21:32 neuromancer systemd[1]: Finished autorandr execution hook. Sep 01 10:21:42 neuromancer systemd[1]: Starting autorandr execution hook... Sep 01 10:21:42 neuromancer autorandr[14055]: /bin/sh: line 1: xrandr: command not found Sep 01 10:21:42 neuromancer autorandr[14054]: Failed to run xrandr (line 548) Sep 01 10:21:42 neuromancer autorandr[14054]: autorandr running as user xxx (started from batch instance) Sep 01 10:21:42 neuromancer autorandr[14053]: Running autorandr as xxx for display :0 Sep 01 10:21:42 neuromancer systemd[1]: autorandr.service: Deactivated successfully. Sep 01 10:21:42 neuromancer systemd[1]: Finished autorandr execution hook.

georghimself avatar Sep 01 '22 11:09 georghimself

Sounds like PATH isn't set up correctly for whatever reasons. Try setting it to include /usr/bin wherever is most appropriate in your setup.

phillipberndt avatar Sep 01 '22 17:09 phillipberndt

echo $PATH /usr/share/archcraft/scripts:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/xxx/.config/bspwm/bin

Also i can run xrandr from the shell and autorandr --change does work so it uses the xrandr command right

Thanks for your help @phillipberndt

georghimself avatar Sep 02 '22 06:09 georghimself

PATH in your shell isn't necessarily the same as when systemd invokes the command.

phillipberndt avatar Sep 02 '22 06:09 phillipberndt

works again after reboot. didnt change anything. i think it could be the suspend

georghimself avatar Sep 02 '22 14:09 georghimself