You are not logged in.
I have a xrandr script which disables one of the monitors.
That script is working if I invoke it on the command line, or using a configuired shortcut.
But it is not working as intented if added to "Application Autostart" in "Sessions and Startup".
(I see 2nd monitor still turned on after the autostart).
What could be the underlying reason?
I'm using xfce4-about 4.12.1 (Xfce 4.12) (Manjaro - based on Arch linux).
Thanks
Offline
There may be a few reasons that this is happening:
1. The script is not executing properly
2. The script is executing quickly on startup and something in the xserver is changing it.
To fix #1, try the following in your autostart entry:
bash -c "/path/to/script"
For #2, try adding a sleep command:
bash -c "sleep 20; /path/to/script"
...if this one works, then adjust the sleep timeout lower to suit.
If you always want the second monitor to start disabled, look at configuring xorg to do so. See this post for more info on how to do so.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks,
bash -c "sleep 0.5s; /path/to/script"
seems to work without flickering, while sleep 2s brings one flicker.
Do you know, If I start xorg with disabled display, with xrandr I can reenable it?
Last edited by adamovic (2017-02-03 10:27:10)
Offline
Do you know, If I start xorg with disabled display, with xrandr I can reenable it?
Ignore won't do this for you, but there is another option:
Option "Enable" "bool"
This optional entry specifies whether the monitor should be turned on at startup. By default, the server will attempt to enable all connected monitors. (RandR 1.2-supporting drivers only)
From the "man xorg.conf" page.
Off-topic: this is a funny entry in that man page:
VIDEOADAPTOR SECTION
Nobody wants to say how this works. Maybe nobody knows ...
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 533.13 KiB (Peak: 533.98 KiB) ]