this switches the video output, but doesn't change resolution, frequencies etc. so far.
need to figure out how nvidia-settings does that (and how "auto" resolution works there).
converted the tool to a patch and send it to the nvidia-settings developers and asked
for help there.
also DISPLAY and XAUTHORITY needs to be set so acpid can start some process accessing
X. e.g. "XAUTHORITY=`ls /var/run/xauth/*` DISPLAY=:0 /root/bin/switch-video" might work.
this switches the video output, but doesn't change resolution, frequencies etc. so far.
need to figure out how nvidia-settings does that (and how "auto" resolution works there).
converted the tool to a patch and send it to the nvidia-settings developers and asked
for help there.
also DISPLAY and XAUTHORITY needs to be set so acpid can start some process accessing switch- video" might work.
X. e.g. "XAUTHORITY=`ls /var/run/xauth/*` DISPLAY=:0 /root/bin/