Commands to run when Connecting HDMI
Posted
by
yurividal
on Ask Ubuntu
See other posts from Ask Ubuntu
or by yurividal
Published on 2014-05-30T15:10:58Z
Indexed on
2014/05/30
16:02 UTC
Read the original article
Hit count: 259
command-line
|hdmi
Everytime I connect my pc to my tv using my HDMI cable (to watch my movies), I have to manually go to:
1- Monitors, to select "mirror" screen to HDMI 2- Sound, to select the HDMI as default sound output 3- Screen Off an Lock, to avoid screen locking while watching a video.
Is there a way I can automate this? Or at least write a script with commands that will do this. (I could manually run a script every time I connect my HDMI, and then run annother one to undo the changes later)
How can I do these actions from a Command Line?
© Ask Ubuntu or respective owner