Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am looking for a way to disable my laptop's built in display before (or right at) the login screen on Ubuntu 14.04. I have a second monitor, and want to only use that. I already have changed the display settings in system settings, and tried disabling the monitor via ~/.xinitrc, but those only take affect after the login screen.
I have also tried disabling it via /etc/rc.local and /etc/init.d/rc.local, but those do not seem to be running (I added echo "test1" > ~/test1.txt to rc.local and echo "test2" > ~/test2.txt to /init.d/rc.local, and the files are not being created. Does anyone have any suggestions?

share|improve this question
    
My guess: you must probably make some edits to your 50-ubuntu.conf though I dunno what exactly those edits must be. I am making this guess because 50-ubuntu.conf is what manages your login(Its actually the 14.04 equivalent of lightdm.conf) and so making changes to it will surely affect your login. –  Venki Jun 25 at 15:44
    
sorry but if you close your laptop when booting it should not turn on, switch to the 2nd display without editing ANY file. what more do you need? –  Rinzwind Jun 25 at 15:50
    
Rinzwind - I had no idea it would behave that way. Thanks a lot! –  EvilBlob Jun 25 at 15:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.