You are not logged in.

#26 2018-06-08 06:19:44

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

umonitor --load undocked --verbose

umonitor --load undocked --verbose
Connected to server
Loading profile: undocked
Done loading values from configuration file
Loading profile undocked
Num outputs per profile undocked: 1
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
Found matching mode id: 72
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 72, output: eDP-1
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 72, output: eDP-1
Queued crtc 63 matches! Remove duplicate crtc 63 from ll
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:1920, y:0, rotation: 1, mode_id: 0, output: eDP-1
No crtcs to disable or enable. Profile undocked is currently active
Profile undocked loaded!
---------------------------------
Number of profiles: 2
Trying to find which profile matches current setup
Current connected outputs: eDP-1 (AUO unknown) 
Looping over profile undocked
Configuration outputs: eDP-1 (AUO unknown) 
Profile undocked matches current setup
Done loading values from configuration file
Loading profile undocked
Num outputs per profile undocked: 1
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
Found matching mode id: 72
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 72, output: eDP-1
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 72, output: eDP-1
Queued crtc 63 matches! Remove duplicate crtc 63 from ll
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:1920, y:0, rotation: 1, mode_id: 0, output: eDP-1
No crtcs to disable or enable. Profile undocked is currently active
*

Looping over profile docked
Configuration outputs: eDP-1 (AUO unknown) DP-2-2 (BNQ BenQ BL2706H) DP-

umonitor --load docked --verbose

umonitor --load docked --verbose
Connected to server
Loading profile: docked
Done loading values from configuration file
Loading profile docked
Num outputs per profile docked: 3
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
No need to find mode id, just let this output be disabled later
Trying to find matching setting for DP-2-2 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-2 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 427
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 427, output: DP-2-2
Trying to find matching setting for DP-2-3 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-3 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 427
Found potential crtc 63. Is it already assigned?
Crtc 63 already assigned!
Found potential crtc 64. Is it already assigned?
Queing up crtc to load: 64
Crtc settings: x:1920, y:0, rotation: 1, is_primary: 0, mode_id: 427, output: DP-2-3
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 72, output: eDP-1
Queing disable crtc 63
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?


Crtc: x:1920, y:0, rotation: 1, mode_id: 0, output: eDP-1
Disabling this crtc: 63
Change screen size here
Enable crtc 64
Enable crtc 63
Segmentation fault (core dumped)

loading the docked profile when the laptop is docked leaves both the laptop LCD blank and both external monitors blank until i take it off dock

EDIT: below is the umon.conf

undocked : 
{
  Screen : 
  {
    width = 1920;
    height = 1080;
    widthMM = 508;
    heightMM = 285;
  };
  Monitors : 
  {
    eDP-1 : 
    {
      EDID = "AUO unknown";
      resolution : 
      {
        x = 1920;
        y = 1080;
      };
      pos : 
      {
        x = 0;
        y = 0;
      };
      rotation = 1;
      primary = 1;
    };
  };
};
docked : 
{
  Screen : 
  {
    width = 3840;
    height = 1080;
    widthMM = 1016;
    heightMM = 286;
  };
  Monitors : 
  {
    eDP-1 : 
    {
      EDID = "AUO unknown";
      resolution : 
      {
        x = 0;
        y = 0;
      };
      pos : 
      {
        x = 0;
        y = 0;
      };
      rotation = 0;
    };
    DP-2-2 : 
    {
      EDID = "BNQ BenQ BL2706H";
      resolution : 
      {
        x = 1920;
        y = 1080;
      };
      pos : 
      {
        x = 0;
        y = 0;
      };
      rotation = 1;
      primary = 1;
    };
    DP-2-3 : 
    {
      EDID = "BNQ BenQ BL2706H";
      resolution : 
      {
        x = 1920;
        y = 1080;
      };
      pos : 
      {
        x = 1920;
        y = 0;
      };
      rotation = 1;
    };
  };
};

Last edited by stanna (2018-06-08 06:20:46)

Offline

#27 2018-06-12 01:27:16

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

@LeaveAThousand,  is that enough logging to go on or do you need further information?

Offline

#28 2018-06-12 02:03:32

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

It is enough for now, thanks! Was busy this weekend, sorry about that!

Offline

#29 2018-06-13 01:38:14

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

no problems mate!

I seem to have run into another problem where umonitor will not go into daemon mode and listen (see below command + output). I do not have it in any start up scripts. does it have a pid file somewhere i dont know about i need to remove from a previous crash or something?

umonitor --listen --verbose
Connected to server
umonitor process already running.
Please stop the existing process and try again.
ps aux | grep umonitor
stanna   13811  0.0  0.0  10904  2372 pts/4    S+   11:36   0:00 grep umonitor

i can howver create the home & docked profiles then run them manually to change the setup successfully, which isnt automatic like intended.

Offline

#30 2018-06-16 14:39:46

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

Yes, there's a pid file that needs to be removed. In all previous versions, the file was stored in the tmp folder and was called '.umonitor.lock'. However, in the most recent updates I moved the file location to your home directory.

Offline

#31 2018-06-16 15:37:06

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

@stanna

This problem has me scratching my head. I thought I knew the cause, but now I'm not so sure. Segmentation fault could be happening anywhere in the code. If you have valgrind installed, could you duplicate the segmentation fault?

 valgrind --leak-check=yes umonitor --load docked --verbose 

Offline

#32 2018-06-16 23:39:43

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

no problem, i will install valgrind and give it another go tomorrow when i am in the office.

I did notice during the week tha running "umonitor --load docked" didnt always have the desired result. sometimes it would bring up the 2 external displays correctly, other times it would be just 1 monitor and sometimes it would be the 2 external monitors but in mirror'd mode.

i had umonitor assigned to 2 keys so i could set it manually but i was getting the above results. I will let you know how i go tomorrow.

Offline

#33 2018-06-17 03:34:37

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

Thanks! Hopefully that random behavior is the result of the same bug, so when I fix the bug both issues will be resolved!

Offline

#34 2018-06-17 22:56:21

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

@LeaveAThousand,

well after removing the pid file and running "umonitor --listen --verbose" everything seems to be working - only when i dock the laptop with the lid down, if i have it docked and the lid open all 3 screens go blank (laptop LCD + 2 x external monitors). i had to disable the lid switching in logind and now it seems to all be working correctly.

i will be keeping a close on on this during the week to make sure there are no major breakages but i think it might be resolved now.. that crash could of been a freak accident? i have valgrind installed and ready to go if it crashes again.

As always thanks for your support LeaveAThousand!

Last edited by stanna (2018-06-17 22:57:36)

Offline

#35 2018-06-19 03:24:48

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

No problem! If you want to be able to dock with the lid up, just give me the valgrind output and I can try and fix it.

Offline

#36 2018-06-20 11:42:08

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

here is the output of valgrind. i hope it helps!

valgrind --leak-check=yes umonitor --load docked --verbose 
==5745== Memcheck, a memory error detector
==5745== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==5745== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==5745== Command: umonitor --load docked --verbose
==5745== 
Connected to server
Loading profile: docked
Done loading values from configuration file
Loading profile docked
Num outputs per profile docked: 3
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
No need to find mode id, just let this output be disabled later
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 72, output: eDP-1
Queing disable crtc 63
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Disabling this crtc: 63
Change screen size here
Profile docked loaded!
---------------------------------
Number of profiles: 2
Trying to find which profile matches current setup
Current connected outputs: eDP-1 (AUO unknown) 
Looping over profile home
Configuration outputs: eDP-1 (AUO unknown) 
Profile home matches current setup
Done loading values from configuration file
Loading profile home
Num outputs per profile home: 1
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
Found matching mode id: 72
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 72, output: eDP-1
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1

Looping over profile docked
Configuration outputs: eDP-1 (AUO unknown) DP-2-2 (BNQ BenQ BL2706H) DP-2-3 (BNQ BenQ BL2706H) 

Unknown profile*
---------------------------------
==5745== 
==5745== HEAP SUMMARY:
==5745==     in use at exit: 0 bytes in 0 blocks
==5745==   total heap usage: 543 allocs, 543 frees, 100,414 bytes allocated
==5745== 
==5745== All heap blocks were freed -- no leaks are possible
==5745== 
==5745== For counts of detected and suppressed errors, rerun with: -v
==5745== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Offline

#37 2018-06-28 05:23:55

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

It seems that umonitor only detects your laptop screen. Could you run xrandr before umonitor and post the output?

Offline

#38 2018-07-05 22:36:39

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

docked laptop this morning only to discover umonitor was not running so i performed the below

xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1920x1080     60.03*+  60.01    59.97    59.96    59.93    48.03  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2-1 disconnected (normal left inverted right x axis y axis)
DP-2-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.90  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    66.67    59.94  
   720x400       70.08  
DP-2-3 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.89  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    66.67    59.94  
   720x400       70.08  

then i ran "umonitor --load docked" which only enabled 1 monitor, it stated it had found and was using an "unknown profile*"

i performed xrandr again

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
eDP-1 connected (normal left inverted right x axis y axis)
   1920x1080     60.03 +  60.01    59.97    59.96    59.93    48.03  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2-1 disconnected (normal left inverted right x axis y axis)
DP-2-2 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.90  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    66.67    59.94  
   720x400       70.08  
DP-2-3 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.89  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    66.67    59.94  
   720x400       70.08  

then i ran "umonitor --load docked" once more and it set the correct settings. could my laptop be randomising the settings somehow or the id's or whatever is used to detect what is assigned (silly thought).

Thanks

Offline

#39 2018-07-06 06:04:16

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

Interesting.....no idea what's going on tongue RIght now I suspect that somehow umonitor is running before the Xorg properly detects that your monitors are connected, which is why I ask for xrandr output.

Seems like this is a different behavior from what you posted last time. In order to properly debug I'd like both the xrandr output and umonitor verbose output from one scenario, otherwise I just have incomplete information from both.

Thanks!

Offline

#40 2018-07-08 22:22:23

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

as requested. Docked my laptop this morning, and it only detected 1 screen.

umonitor --load docked --verbose

Connected to server
Loading profile: docked
Done loading values from configuration file
Loading profile docked
Num outputs per profile docked: 3
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
No need to find mode id, just let this output be disabled later
Trying to find matching setting for DP-2-2 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-2 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 502
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 502, output: DP-2-2
Trying to find matching setting for DP-2-3 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-3 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 502
Found potential crtc 63. Is it already assigned?
Crtc 63 already assigned!
Found potential crtc 64. Is it already assigned?
Queing up crtc to load: 64
Crtc settings: x:1920, y:0, rotation: 1, is_primary: 0, mode_id: 502, output: DP-2-3
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:1920, y:0, rotation: 1, mode_id: 502, output: DP-2-3
Queued crtc 64 matches! Remove duplicate crtc 64 from ll
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Change screen size here
Enable crtc 63
Profile docked loaded!
---------------------------------
Number of profiles: 2
Trying to find which profile matches current setup
Current connected outputs: eDP-1 (AUO unknown) DP-2-2 (BNQ BenQ BL2706H) DP-2-3 (BNQ BenQ BL2706H) 
Looping over profile home
Configuration outputs: eDP-1 (AUO unknown) 

Looping over profile docked
Configuration outputs: eDP-1 (AUO unknown) DP-2-2 (BNQ BenQ BL2706H) DP-2-3 (BNQ BenQ BL2706H) 
Profile docked matches current setup
Done loading values from configuration file
Loading profile docked
Num outputs per profile docked: 3
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
No need to find mode id, just let this output be disabled later
Trying to find matching setting for DP-2-2 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-2 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 502
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 502, output: DP-2-2
Trying to find matching setting for DP-2-3 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-3 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 502
Found potential crtc 63. Is it already assigned?
Crtc 63 already assigned!
Found potential crtc 64. Is it already assigned?
Queing up crtc to load: 64
Crtc settings: x:1920, y:0, rotation: 1, is_primary: 0, mode_id: 502, output: DP-2-3
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 502, output: DP-2-2
Queued crtc 63 matches! Remove duplicate crtc 63 from ll
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:1920, y:0, rotation: 1, mode_id: 502, output: DP-2-3
Queued crtc 64 matches! Remove duplicate crtc 64 from ll
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
No crtcs to disable or enable. Profile docked is currently active
*

Offline

#41 2018-07-09 05:17:57

LeaveAThousand
Member
Registered: 2014-04-11
Posts: 29

Re: umonitor: Manage monitor configuration automatically

Ok so the log seems to be telling a conflicting story. The log says that your right monitor is already on and configured correctly. Therefore umonitor only enables your left monitor. Just to confirm, in reality your left monitor is turned on, but your right one is not?

Looking deeper, the problem appears in your first xrandr output from post #38. Unless I'm mistaken, the star next to the resolution/refresh rate indicates that it's currently active. I'm assuming the first xrandr output is from when your laptop is docked but both monitors are off? However, there appears a star next to the resolution/refresh rate in both monitors!

I have one possible idea, which is just to have a force load option where umonitor will load the screen whether or not it detects that the screen is already loaded. I'll work on it!

Offline

#42 2018-07-12 00:12:00

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

OK so its just crashing often and has nothing to do with the profile and not detecting things correctly like i thought. I can manually load the profile fine or delete the lockfile and relaunch "umonitor --listen".

how can i help tracking down the root cause of the crashing? i notice there is somebody else on GIT with a very similar sounding issue..

Offline

#43 Yesterday 02:00:28

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 60

Re: umonitor: Manage monitor configuration automatically

i managed to catch another valgrind report for you which occured this morning. i hope this helps further diagnose the crashing issue. Thanks!

==11761== Memcheck, a memory error detector
==11761== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==11761== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==11761== Command: umonitor --load docked --verbose
==11761== 
Connected to server
Loading profile: docked
Done loading values from configuration file
Loading profile docked
Num outputs per profile docked: 3
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
No need to find mode id, just let this output be disabled later
Trying to find matching setting for DP-2-2 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-2 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 158
Found potential crtc 64. Is it already assigned?
Queing up crtc to load: 64
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 158, output: DP-2-2
Trying to find matching setting for DP-2-3 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-3 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 158
Found potential crtc 64. Is it already assigned?
Crtc 64 already assigned!
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:1920, y:0, rotation: 1, is_primary: 0, mode_id: 158, output: DP-2-3
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 158, output: DP-2-2
Queued crtc 64 matches! Remove duplicate crtc 64 from ll
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:1920, y:0, rotation: 1, mode_id: 158, output: DP-2-3
Queued crtc 63 matches! Remove duplicate crtc 63 from ll
No crtcs to disable or enable. Profile docked is currently active
Profile docked loaded!
---------------------------------
Number of profiles: 2
Trying to find which profile matches current setup
Current connected outputs: eDP-1 (AUO unknown) DP-2-2 (BNQ BenQ BL2706H) DP-2-3 (BNQ BenQ BL2706H) 
Looping over profile home
Configuration outputs: eDP-1 (AUO unknown) 

Looping over profile docked
Configuration outputs: eDP-1 (AUO unknown) DP-2-2 (BNQ BenQ BL2706H) DP-2-3 (BNQ BenQ BL2706H) 
Profile docked matches current setup
Done loading values from configuration file
Loading profile docked
Num outputs per profile docked: 3
Trying to find matching setting for eDP-1 (AUO unknown)
Found output in configuration file that matches eDP-1 (AUO unknown)
Trying match up the configuration resolution with the mode id
No need to find mode id, just let this output be disabled later
Trying to find matching setting for DP-2-2 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-2 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 158
Found potential crtc 64. Is it already assigned?
Queing up crtc to load: 64
Crtc settings: x:0, y:0, rotation: 1, is_primary: 1, mode_id: 158, output: DP-2-2
Trying to find matching setting for DP-2-3 (BNQ BenQ BL2706H)
Found output in configuration file that matches DP-2-3 (BNQ BenQ BL2706H)
Trying match up the configuration resolution with the mode id
Found matching mode id: 158
Found potential crtc 64. Is it already assigned?
Crtc 64 already assigned!
Found potential crtc 63. Is it already assigned?
Queing up crtc to load: 63
Crtc settings: x:1920, y:0, rotation: 1, is_primary: 0, mode_id: 158, output: DP-2-3
Does any of queued crtc match currently loaded crtc 64?
Crtc: x:0, y:0, rotation: 1, mode_id: 158, output: DP-2-2
Queued crtc 64 matches! Remove duplicate crtc 64 from ll
Does any of queued crtc match currently loaded crtc 63?
Crtc: x:0, y:0, rotation: 1, mode_id: 0, output: eDP-1
Does any of queued crtc match currently loaded crtc 65?
Crtc: x:1920, y:0, rotation: 1, mode_id: 158, output: DP-2-3
Queued crtc 63 matches! Remove duplicate crtc 63 from ll
No crtcs to disable or enable. Profile docked is currently active
*

---------------------------------
==11761== 
==11761== HEAP SUMMARY:
==11761==     in use at exit: 0 bytes in 0 blocks
==11761==   total heap usage: 653 allocs, 653 frees, 104,942 bytes allocated
==11761== 
==11761== All heap blocks were freed -- no leaks are possible
==11761== 
==11761== For counts of detected and suppressed errors, rerun with: -v
==11761== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Offline

Board footer

Powered by FluxBB