8

I am running Linux Mint 17 with KDE and display drivers from Nvidia. I've configured the display settings using nvidia-settings, and when I first start up everything appears to work correctly.

However, when I log in and KDE is loaded, it does something to my display setup which turns off one of my three connected screens. Using the KDE Display settings I am unable to turn the screen back on, but restarting the session and returning to the login screen shows the login dialog on this screen as intended.

How do I stop KDE from messing with my screen setup? Alternatively, why is one of my monitors getting turned off? FWIW, the monitor affected by this is connected via HDMI while the other two that keep working are using DVI.

2
  • I think that the best solution to this problem is going to be different than what you are asking. Stopping KDE from messing with the screens is prob not going to happen but it should be possible to get it to mess with them in the correct way. I would also say that leaving 3 monitors on while your PC sits at the login screen seems like a pointless waste as well.
    – krowe
    Commented Aug 16, 2014 at 10:28
  • @krowe, I'd be more than happy if there's a solution that makes KDE set up my screens correctly rather than not trying at all. Regarding the login screen, this is for my home PC, it spends about 10 seconds on that screen each time I start up and that's it.
    – SoftMemes
    Commented Aug 16, 2014 at 10:34

2 Answers 2

12

There's a module in KDE called KScreen that is doing this.

To disable it, go to K Menu->Computer->System Settings->System Administration->Startup and Shutdown->Service Manager. Look for a service called KScreen, and uncheck the Use box. You can stop the service now if you want.

You can also manually edit $HOME/.kde/share/config/kdedrc, and add these lines:

[Module-kscreen]
autoload=false

This stops KDE messing with monitor configurations, and will stick with the one KDM provided at startup.

Kscreen is a per-user service; you'll need to set it for every user unless you have a policy set up.

3
  • This is a great tip. However, I notice that kscreen_backend_launcher keeps coming back on login anyway, even when the KScreen service is unchecked.
    – Pistos
    Commented May 20, 2020 at 21:13
  • This also fixes the problem with KScreen resetting the VMware screen size... even when set from within KDE! forum.kde.org/viewtopic.php?f=289&t=157213 Frankly, I don't even understand what KScreen is for... Commented Jun 25, 2020 at 18:19
  • On my system, it was located at System Settings > Workspace > Startup and Shutdown > Background Services.
    – Pistos
    Commented May 14, 2022 at 14:20
4

I've had similar issues and I tried solutions telling me to add xrandr commands to

~/.kde/share/config/krandrrc

but those turned out not to work. The only thing I got to work reliably was to add xrandr commands to my .profile:

xrandr --output "VGA1" --primary --mode 1920x1200 --output "HDMI2" --right-of "VGA1" --mode 1920x1200

First run xrandr without any options, that will list your available screens and their available resolutions, then you can compose a list of xrandr options using the xrandr output as a starting point.

My setup is: a laptop in a docking station, docking station has two identical monitors attached, one via DVI cable and the other via VGA cable. In my example above, the display attached with VGA cable is "VGA1", the display attached with DVI cable is "HDMI2".

3
  • If the second display is connected via VGA cable, why do you call it "HDMI2" the xrandr command? :)
    – Erathiel
    Commented Jun 1, 2015 at 8:22
  • Hi Erathiel, good question. The VGA display is listed as "VGA1", it's the DVI cable display that is listed as HDMI2, no idea why. Commented Jun 1, 2015 at 9:34
  • 1
    DBI is Digital Video Interface, and HDMI is High Definition Multimedia Interface - to oversimplify - HDMI is just DVI + digital sound in one cable. That's why you have simple adapters and cables from DVI to HDMI without any converters. BTW, this answer shows that you need to specify both outputs in one command - I wanted to adjust one ouput at a time and failed. Commented Feb 15, 2016 at 21:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .