On 16/2/26 06:40, Nicolas George wrote:
Eyal Lebedinsky (HE12026-02-14):
However, how do you launch it if the screen goes blank while being
used, like unplug/plug the monitor?
That is not the kind of script one launches manually, it is meant to be
started automatically, as I said:
to be called from the greeter-wrapper.
Understood, but as I see the problem
- it is not related to a login
- it started a few months ago, probably due to some update (but I use fedora so
YMMV). So not a BIOS issue.
It will be good to understand the core issue. Maybe a udev rule stopped working?
$ xrandr --listmonitors
says, after the monitor is reconnected,
Monitors: 0
Who/what should add the monitor to the list when it is detected?
But there are multiple ways of running commands in these circumstances,
starting with the obvious ones: switching to a text console or
connecting from the network.
"switching to a text console" works, but requires a login...
I did not try "connecting from the network", but again it requires more setup.
Don't know if xrandr will work.
I leave one xterm window in focus before switching the monitor away (KVM) then,
when reconnected, run (blind) my script (called 'x').
Regards,
--
Eyal at Home ([email protected])