I'm using Linux Mint mate edition. I often connect an external monitor to my laptop by VGA. When the system boots up without VGA connected, I get login screen. After I type my password and continue, I get no display at all. I have to connect the external monitor to see what's happening. Ctrl +alt +f1 doesn't bring up any display. If I login with a different user, everything's fine. I tried deleting ~.config/monitors.xml and rebooting.

Now can anyone explain me how to get my laptop's main display back to work? It's really annoying. Without external monitor I'm completely blind.

I was following this post but couldn't find any solution. https://askubuntu.com/questions/148725/laptop-screen-blank-after-login-when-external-monitor-is-not-connected


The monitor settings might be in .xinitrc, try deleting/moving that file and see if it works, also you don't need to reboot running pkill X or systemctl restart lightdm will restart the X server.

If that does not work try running mv ~/.config/dconf ~/dconf.bak and mv ~/.config/mate ~/mate.bak, this should reset mate's configuration, I'm pretty sure this the only place left where the monitor configuration could be

  • Where can i find .xinitrc ? – Abinash Dash Aug 18 '17 at 14:13
  • It's in your home directory, you can just run mv .xinitrc .xinitrc.bak. – Matt Aug 18 '17 at 14:19
  • mv: cannot stat '.xinitrc': No such file or directory – Abinash Dash Aug 18 '17 at 14:26
  • Looks like you don't have a .xinitc so that isn't the problem, try connecting the external monitor and running xrandr -q to get a list of monitors and xrandr --output (the laptop's monitor) --auto, the internal monitor will probably be called LVDS1. – Matt Aug 18 '17 at 14:29
  • Tried it. No display on my laptop screen. My laptop display is called eDP. xrandr output shows 2 devices VGA-0 and eDP – Abinash Dash Aug 18 '17 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.