Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Gilbert

Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Post by Gilbert »

Hi
I am testing Linux Mint Cinnamon 19.3, love-it.

My only problem is, when I turn Off then On my main monitor (DP-0 - right hand side) Conky is referencing the left monitor (HDMI-0 - left hand side).
Don't have that problem in Mint Mate 19.3

Everything stay ok if I turn Off then On the left monitor.

My only solution for now is to run a small script (ConkyFix) every time I turn my monitor back on, that kill conky and restart it.

Code: Select all

#!/bin/bash
sudo killall conky
conky &
exit 0
Normal placement. (On system start or after running ConkyFix)
S2_25.jpg
After I turn monitor Off then On.
S1_25.jpg

My conky.config -- header only.

Code: Select all

conky.config = {
    own_window = true,
    own_window_class = 'Conky',
    own_window_title = 'Conky',
    own_window_type = 'panel',
    own_window_transparent = false,
    own_window_argb_visual = true,
    own_window_argb_value = 100,
    own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
    background = true,
    double_buffer = true,
    xinerama_head = 2,
    alignment = none,
    gap_x = 4165,
    gap_y = -70,
    use_xft = true,
    xftalpha = 1,
    override_utf8_locale = true,
    draw_outline = true,
    draw_borders = false,
    draw_shades = true,
    default_outline_color = 'black',
    default_color = 'ECEAE4',
    color1 = 'FFFF00',
    stippled_borders = 0,
    border_inner_margin = 5,
    border_outer_margin = 5,
    border_width = 1,
    uppercase = false,
    no_buffers = true,
    temperature_unit = 'celsius',
    pad_percents = 0,
    minimum_width = 310,
    maximum_width = 310,
    update_interval = 1,
    short_units = false,
    font = 'Ubuntu:bold:size=11'       --important for shades to work
}
Is this a Conky or system setup ?
If anybody can help to fix this, tell me the info you need and I'll provide it.

Thank a lot. :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Post by smurphos »

For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Gilbert

Re: Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Post by Gilbert »

Hi

Thanks for the hint.

Still not working.

I found this:

1. When I turn off my main monitor (DP-0) nothing change on the second monitor (HDMI-0).
I did put a

Code: Select all

touch a file command
in one of the script called by conky every second, the file timestamp are getting updated when the main monitor is off.
So conky is still running and at the correct position, since it did not yet appear on the second monitor.

2. When I turn the main monitor back on. The NVIDIA 1050T1 card reset, both screen go black.
Then, when the screen return, conky is missplaced and any windows that was open on the main monitor are now displayed on the second monitor.

Is that could be a X server problem, getting reset then losing the correct real estate information and
changing all open windows (including conky) positionning reference ?

or the Display Manager (LightDM) ?

Thanks.
User avatar
Koentje
Level 7
Level 7
Posts: 1578
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Post by Koentje »

Have you tried this?

Code: Select all

own_window_type = 'dock'
User avatar
cpedretti
Level 3
Level 3
Posts: 199
Joined: Tue Mar 10, 2020 12:06 am

Re: Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Post by cpedretti »

Koentje wrote: Sat Feb 19, 2022 4:32 pm Have you tried this?

Code: Select all

own_window_type = 'dock'
Thank you very much for this detail, it works perfectly under LMDE5 :D
AMD Ryzen 7 3700X - 32GB DDR4 RGB White - RTX4060TI O8GB White- SSD NVME Crucial P5 500GB - Mobo Gigabyte AORUS ELITE B550 V2 - PSU Corsair RM750 White - Case Corsair 5000D Airflow White 7 fans AF120 ARGB - AIO Corsair H100I Cappelix 240 White
User avatar
Koentje
Level 7
Level 7
Posts: 1578
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Conky + Cinnamon - Bad Placement After Turning Main Monitor Off/On

Post by Koentje »

Glad it worked for you! ;)
Locked

Return to “Compiz, Conky, Docks & Widgets”