You are not logged in.

#1 2020-09-24 09:08:56

kevinen98
Member
Registered: 2020-04-19
Posts: 10

[Solved] When using 2 monitors laptop screen goes black after login

Hello, i got KDE Plasma and from like 1 week ago when i have two monitors (external + laptop) laptop screen goes black after login. I can open stuff on external and drag them over. A temporarily fix for me is to unplug vga cable let laptop screen load and then plug it back in. I don't really know where to look so if you ask i will provide.

I use
Xorg as display server
KDE plasma desktop environment
I have Intel intergrated graphics intel hd graphic 4500.

I have one config file for xorg at
/etc/X11/xorg.conf.d/10-monitor.conf

which contains

Section "Monitor"
        Identifier "VGA1"
        Modeline "1920x1080R"  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync
        Option "PreferredMode" "1920x1080R"
EndSection

Section "Screen"
        Identifier "Screen0"
        Monitor "VGA1"
        DefaultDepth 24
        SubSection "Display"
                Modes "1920x1080R"
        EndSubSection
EndSection

Section "Device"
        Identifier "Device0"
        Driver "intel"
EndSection

EDIT: The config file was created and change long before this problem i have appeared.

Last edited by kevinen98 (2020-09-24 13:40:55)

Offline

#2 2020-09-24 10:56:08

seth
Member
Registered: 2012-09-03
Posts: 61,655

Re: [Solved] When using 2 monitors laptop screen goes black after login

after login

Probably means that kscreen steamrolls its (now dated) config over the layout. Change the setup there or deactivate the daemon.

Offline

#3 2020-09-24 12:34:46

kevinen98
Member
Registered: 2020-04-19
Posts: 10

Re: [Solved] When using 2 monitors laptop screen goes black after login

Ok, will i lose anything if i disable the deamon? How do i disable it? What is kscreens actual name?

I tried to find it with the name kscreen but nothing comes up. I have something  called kscreen-console.

Thanks for the reply! smile

Offline

#4 2020-09-24 12:42:15

seth
Member
Registered: 2012-09-03
Posts: 61,655

Re: [Solved] When using 2 monitors laptop screen goes black after login

Should be a systemsettings page, possibly a kded daemon.
I think it also provides a nice icon in the systray, but haven't used plasma/KDE since years ago.

Offline

#5 2020-09-24 13:31:28

zpg443
Member
Registered: 2016-12-03
Posts: 300

Re: [Solved] When using 2 monitors laptop screen goes black after login

Try temporarily removing the 10-monitor.conf file, then report what happens.

Also, what are the KDE "System Settings" for display configuration and compositor?

Last edited by zpg443 (2020-09-24 13:33:05)

Offline

#6 2020-09-24 13:38:14

kevinen98
Member
Registered: 2020-04-19
Posts: 10

Re: [Solved] When using 2 monitors laptop screen goes black after login

seth wrote:

Should be a systemsettings page, possibly a kded daemon.
I think it also provides a nice icon in the systray, but haven't used plasma/KDE since years ago.

So i fixed it! I did as you said and found kscreen 2 as a background service which automatically starts but i switched it off. But then i got a problem where the screens where mirrored in a weird way as i have one 1080p and one 768p.
My solution was to edit the file /etc/X11/xorg.conf.d/10-monitor.conf to

Section "Monitor"
        Identifier "VGA1"
        Modeline "1920x1080R"  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync
        Option "PreferredMode" "1920x1080R"
EndSection

Section "Screen"
        Identifier "Screen0"
        Monitor "VGA1"
        DefaultDepth 24
        SubSection "Display"
                Modes "1920x1080R"
        EndSubSection
EndSection

Section "Monitor"
        Identifier "eDP1"
        Option "PreferredMode" "1366x768"
        Option "Position" "1920 312"
EndSection

Section "Device"
        Identifier "Device0"
        Driver "intel"
EndSection

And that fixed it. But if you feel like it could you do me a favor and see if my config file looks right.
Thanks!

Last edited by kevinen98 (2020-09-24 13:41:34)

Offline

#7 2020-09-24 13:43:29

kevinen98
Member
Registered: 2020-04-19
Posts: 10

Re: [Solved] When using 2 monitors laptop screen goes black after login

zpg443 wrote:

Try temporarily removing the 10-monitor.conf file, then report what happens.

Also, what are the KDE "System Settings" for display configuration and compositor?

I fixed it but thanks anyway!

Offline

#8 2020-09-24 13:44:41

seth
Member
Registered: 2012-09-03
Posts: 61,655

Re: [Solved] When using 2 monitors laptop screen goes black after login

You don't need the Device and Screen sections, just use

Option "Enable" "False"

in the one you don't want.
You can also arrange them vertically or horizontally or however you want.

Or you seek to fix the kscreen config (and probably file an upstream bug to be more clever about dynamic setups ;-)

Offline

#9 2020-09-24 14:01:07

kevinen98
Member
Registered: 2020-04-19
Posts: 10

Re: [Solved] When using 2 monitors laptop screen goes black after login

seth wrote:

You don't need the Device and Screen sections, just use

Option "Enable" "False"

in the one you don't want.
You can also arrange them vertically or horizontally or however you want.

Or you seek to fix the kscreen config (and probably file an upstream bug to be more clever about dynamic setups ;-)

Oh i dont? I had another problem where kde or xorg (which ever decides which resolutions is available) didn't have 1920x1080 as a resulotion choice for my external monitor so i added Device and Screen sections because someone said that is the fix to my problem.

I think i stay with xorg for now. Might try to fix kscreen config when i have more time.

Offline

#10 2020-09-24 14:19:06

seth
Member
Registered: 2012-09-03
Posts: 61,655

Re: [Solved] When using 2 monitors laptop screen goes black after login

If the "Monitor" "Identifier" matches the output name in eg. xrandr: no. The config will auto-apply to that output.
You can also try to just comment the other lines ("#") but the resolution is added and preferred in the monitor section (I'd rather suspect further interference by kscreen) and the Device section is unreferenced anyway.

Offline

Board footer

Powered by FluxBB