Bug 324393 - To avoid repetitive screen configuration actions, kscreen should have a way of saving commonly used screen profiles
Summary: To avoid repetitive screen configuration actions, kscreen should have a way o...
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.4.0
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
: 335334 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-02 11:51 UTC by jamese
Modified: 2020-09-05 01:19 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
poorly drawn profile settings/choose (47.20 KB, image/png)
2013-11-26 22:53 UTC, jamese
Details
current system service settings (141.25 KB, image/png)
2013-11-26 22:54 UTC, jamese
Details
Initial settings after plugging DP1 in and opening Display Configuration (41.32 KB, image/png)
2015-10-13 23:27 UTC, jamese
Details
Actual screen setup (44.04 KB, image/png)
2015-10-13 23:31 UTC, jamese
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jamese 2013-09-02 11:51:54 UTC
I have a pretty standard setup - when I'm mobile, I have one laptop screen, when I'm at the desk I have a flat panel to the left and the laptop screen on the right. The flat panel is the active one.

I switch between the two setups daily and every morning when I hit the desk, I click the kscreen icon in the tray and go through a process of lining up the screens in the right position and making the correct one active.

It would be better if I could just select a profile - like "Work" and then Kscreen picks up the settings for that profile and applies them. This would help when I'm shutting down for the day - quite often if I suspend the laptop without deactivating the flat panel, when I resume the applications are left offscreen (hard reset time).

Having a profile like "Mobile" that goes back to one screen in one click would avoid this.

There is a "Defaults"  button in Kscreen, I press it but nothing happens. Maybe it's a quirk of kubuntu packaging.

Happy to test out any changes if needed.

Reproducible: Always
Comment 1 Daniel Vrátil 2013-09-02 12:17:30 UTC
In that case you are doing something wrong - KScreen should automatically restore the profile whenever you plug or unplug your monitor. Make sure you have kscreen KDED module installed and loaded.

Wrt the default button: yes, that's broken :)
Comment 2 jamese 2013-09-02 23:51:44 UTC
Well, no, just running with the standard packages.


I searched for kscreen packages installed:

$ aptitude search kscreen
i   kscreen                                                                - KDE monitor hotplug and screen handling                                         
p   kscreen-dbg                                                            - KDE monitor hotplug and screen handling, debug info                             
p   kscreensaver                                                           - Additional screensavers for KScreenSaver                                        
p   kscreensaver-xsavers                                                   - xscreensaver support for KScreenSaver                                           
p   kscreensaver-xsavers-extra                                             - universe xscreensaver support                                                   
p   kscreensaver-xsavers-webcollage                                        - webcollage screensaver support for KScreenSaver                                 
p   libkscreen-dbg                                                         - library for screen management - debug info                                      
p   libkscreen-dev                                                         - library for screen management - development files                               
c   libkscreen0                                                            - library for screen management - shared library                                  
i A libkscreen1                                                            - library for screen management - shared library                                  
i   libkscreensaver5                                                       - library of the KDE Screensaver system 


In System Settings, Load on Demand Services "Display Management" is marked as not running and there is no way to start it. 

In Startup Services "Kscreen 2" is marked as running.


I googled for an answer and found your blog post:
http://www.progdan.cz/2012/09/display-management-in-kde/

My Kscreen doesn't contain any of the content between the buttons and the container holding the green boxes.
Comment 3 Andreas 2013-10-01 09:31:16 UTC
Hi,

I have the same problem on a DELL Latitude E6330 with a DELL docking station and an external monitor attached to that dock. When I unplug, or plug-in again, I get a dialog asking, whether I want to configure the screens manually, or let it try automatically. The automatic config does not restore my previous setup and does not produce a satisfactory configuration. So, I have to modify the setup manually every time. It would be really nice to have profiles to select. Or, a _working_ automatism.

I'm running on openSUSE 12.3 (x86_64)
with KDE installed from the standard repos in version
$ kde4-config --version
Qt: 4.8.4                                                                       
KDE Development Platform: 4.10.5 "release 1"                                    
kde4-config: 1.0                  

Cheers.
Comment 4 Daniel Vrátil 2013-10-01 11:29:31 UTC
Andreas, that's a dialog from the old KRandR module. Please talk to your distribution to disable building of KRandR in their packages (it's possible via a cmake switch) and ship KScreen as default instead.
Comment 5 Daniel Vrátil 2013-10-01 11:30:00 UTC
Oh, and wrt the multiple profiles, that's being worked on currently together with the new UI
Comment 6 Raymond Wooninck 2013-10-01 12:57:07 UTC
Daniel,

Please not that Andreas is using 4.10.5.  Which is an older version of KDE. openSUSE has switched to KScreen as of 4.11.  I don't believe that KScreen was released when KDE 4.10 was released :-) 

Regards

Raymond
Comment 7 Andreas 2013-10-01 13:11:38 UTC
> Please talk to your distribution to disable building of KRandR in their packages (it's possible via a cmake switch) and ship KScreen as default instead.

As Raymond pointed out, this should be fixed with the next openSUSE release 13.1:
https://bugzilla.novell.com/show_bug.cgi?id=843495#c1

> Oh, and wrt the multiple profiles, that's being worked on currently together with the new UI

That is exciting to hear.

Best,

Andreas
Comment 8 Daniel Vrátil 2013-10-01 17:31:11 UTC
Oops, sorry - using git master, I'm somehow losing track of what was when released :D
Comment 9 jamese 2013-11-26 22:48:50 UTC
Just to confirm the original 'wish', that there be a quick way to configure screens without having to go through an analogue process of dragging screens around and ensuring the resolution is correct.
Maybe kscreen could pick up some unique ID of the screen and automatically do this or there be a profile I can create and then mash a button to set the screens to the require resolution and orientation.

See attached for current Kubuntu 13.10 kscreen  (1.0.1-0ubuntu1) and the System Service settings. Note "Display Management" is marked as Not Running, note sure if that is important.
Comment 10 jamese 2013-11-26 22:53:40 UTC
Created attachment 83784 [details]
poorly drawn profile settings/choose

maybe this could be automatic via a unique display id or proximity to a wifi network.
Comment 11 jamese 2013-11-26 22:54:23 UTC
Created attachment 83785 [details]
current system service settings
Comment 12 Christoph Feck 2014-05-25 22:22:50 UTC
*** Bug 335334 has been marked as a duplicate of this bug. ***
Comment 13 jamese 2015-10-13 01:39:44 UTC
In Kubuntu 15.10 with Plasma 5.4 the original issue still exists in that I have to run through a manual process of dragging screens to lay them out appropriately and pressing 'Apply' every time I plug the laptop in to one of my screen setups.

It would be nice if "Display Configuration" could save my screen setups and detect which external screens are plugged in and place the screens appropriately. I don't think I've ever used overlapping screens which is what I'm most often presented with when plugging a new screen in.

Examples, I have three common screen setups:

1. Laptop 1920x1080 alone, no external screen attached - fairly easy to configure ;)

2. Laptop + DP1 @ 2560x1140. DP1 is always to right of the laptop screen but plugging in the Displayport cable I tend to get presented with overlapping or separated screens. I should be able to set up this profile once and save it.

3. Laptop + DP1-1/DP1-2 (MST using Displayport 1.2). In this setup I have DP1-1 left of DP-1-2 which itself is above the Laptop.
As with #2 I get the same overlapping or inconsistent screen layouts whenever I plug the laptop into DP1-1.

Isn't there some unique identifier of a screen layout that KDE can detect and apply that last saved profile/layout for that layout whenever and screen is plugged in?
Comment 14 jamese 2015-10-13 23:27:25 UTC
Created attachment 94986 [details]
Initial settings after plugging DP1 in and opening Display Configuration

Note that DP1 is not enabled by default and is stacked behind Laptop Screen.
Comment 15 jamese 2015-10-13 23:31:51 UTC
Created attachment 94987 [details]
Actual screen setup

This is the preferred screen setup, DP1 is the Primary Display and is to the right of Laptop Screen.
After hitting Apply the screens are set up but on the next time I plug into the Dell U2711 the system doesn't pick up the preferred layout and defaults back to the layout showing in the previous attachment uploaded (https://bugsfiles.kde.org/attachment.cgi?id=94986).
Comment 16 Giuseppe Ravasio 2016-10-14 08:26:21 UTC
Same problem here with three Dell U2411 attached via Docking station to a ThinkPad T430s.
Running Plasma 5.7.5 on Fedora 24.
Comment 17 Frederik Gladhorn 2018-07-13 18:33:59 UTC
I think this kind of issue was mostly fixed, can you confirm whether it works in a recent release or if kscreen still does not remember the preferred configuration? You should only have to configure it once and it should always restore the last setup that was active with a certain set of screens.
Comment 18 bugreporter11 2018-07-13 19:31:18 UTC
This issue is not fixed in plasmashell 5.13.3-1 on Arch Linux. This bug report is from 2013. My experience is that from 2016 to around June of 2018 this issue did indeed appear to be resolved, as I never observed it. Unfortunately, it is back now. It came back somewhere around plasma 5.13.2.

I reported it in Bug 396354 - Management of multiple screens: Display and Monitor settings no longer remembered
Comment 19 Ian Silvester 2019-04-09 02:12:38 UTC
I concur with bugreporter11, this is still reproducible in 5.14.5. Logs and details attached to https://bugs.kde.org/show_bug.cgi?id=396354
Comment 20 Stephan Uhlmann 2020-04-09 19:08:23 UTC
Myself I never had problems when switching monitor setups, but when playing a game with DOSBox in (lowres) fullscreen mode, after quitting the game, my screen resolution and layout wasn't reset to normal.

KScreen provides command-line tool named kscreen-doctor which can be used to change your configuration.
So I wrote a small shell script which looks like this:

----
#!/bin/sh

kscreen-doctor \
output.eDP-1.enable \
output.eDP-1.mode.1920x1080@120 \
output.eDP-1.position.0,120 \
output.DP-1-1.enable \
output.DP-1-1.mode.1920x1200@60 \
output.DP-1-1.position.1920,0

xrandr --output DP-1-1 --primary
----

Whenever I want to switch back to this setup, I just call this script.

kscreen-doctor does not seem to have an option to set the primary screen, so I use xrandr for that.

Maybe this helps some of you at least as a workaround to switch to a certain setup more easily.
Comment 21 jamese 2020-09-05 01:19:20 UTC
Hello


I'm now using KDE Neon 20.04 packages and the original issue is fixed and has been for a while, at least on Neon.
When I plug my screens in via a dock the last known configuration for those screens is loaded.

I sometimes have a weird flickering/non-sleep-wake-up thing going on but I'll put that down to a crappy DisplayPort implementation from Dell in their U2414H screens which I'll fix by buying a new screen :D


Thanks for the work put into Kscreen over the years.
I'll mark this as resolved and someone else can reopen it if needed.




Current package:


$ pkcon get-details kscreen
Resolving                     [=========================]         
Getting details               [=========================]         
Waiting in queue              [=========================]         
Loading cache                 [=========================]         
Finished                      [=========================]         
Package description
  package:     kscreen-4:5.19.5-0xneon+20.04+focal+build8.amd64
  summary:     KDE monitor hotplug and screen handling
  license:     unknown
  group:       desktop-kde
  description: KScreen provides multiple monitor support.  This support tries to be as smart as possible adapting the behavior of it to each use case making the configuration of monitors as simple as plugging them into your computer.

This package contains the modules and plugins for monitor hotplug and automatic screen handling.
  size:        1277952 bytes
  url:         https://projects.kde.org/projects/kde/workspace/kscreen



Cheers
J