Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Conky appears to honor screen resolution, now. That breaks alignr!

  1. #1

    Default Conky appears to honor screen resolution, now. That breaks alignr!

    For years, I've set the DPI in Mate Appearances > Fonts > Details > DPI to 120 for my high res screen. Until the latest (12.2) versions, conky was unaffected by this. Now, goto, alignc, alignr, and probably a lot of other commands I don't use are confused and move too far to the right. Was this intentional? Is there a command to compensate for changing system DPI?

    Thanks,
    Gene

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,297
    Blog Entries
    15

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    Quote Originally Posted by Gene_S View Post
    For years, I've set the DPI in Mate Appearances > Fonts > Details > DPI to 120 for my high res screen. Until the latest (12.2) versions, conky was unaffected by this. Now, goto, alignc, alignr, and probably a lot of other commands I don't use are confused and move too far to the right. Was this intentional? Is there a command to compensate for changing system DPI?

    Thanks,
    Gene
    Hi
    Not seen any issues here on GNOME, but don't set the DPI. Perhaps the move to libLLVM12. What graphics card in use?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    The graphics is the on chip graphics for an AMD Ryzen 5 2500U. However, it was trivial to fix after thinking a bit. I just scaled everything by 96/120 = 0.8. So I set minimum_width and maximum_width to 1536, and scaled every goto by 0.8. So, goto 830 became goto 665. This fixed all the placements. Setting DPI in MATE does the same thing as setting the scaling in Windows. 120/96 = 1.25, which results in the same screen scaling in MATE that I get with 125% in Windows. Something in conky now pays attention to DPI, but it really is new to the latest version, 12.2.

    Thanks,
    Gene

  4. #4

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    I'm not the only one to notice this change. There is an issue on github, https://github.com/brndnmtthws/conky/issues/1097. The more I think about this, the more it seems like a bug. If I want to go to the middle of a line that is 1920 pixels long, goto 960 should work no matter what the DPI is. Perhaps they are trying to implement scaling and got it wrong?

    Gene

  5. #5
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    475

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    Good find, but are you running conky based on the latest code in git?

    I see the commit mention in the issue, 7f84662 is from 2 March 2021, so if that is indeed the problem you can go back using "git checkout 7f84662^" with the ^ indicating the parent of 7f84662.

  6. #6

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    I'm using the latest version of conky in Tumbleweed. I noticed that commit made it into openSUSE TW conky version 1.12.2.
    Code:
    > sudo zypper info conky
    Loading repository data...
    Reading installed packages...
    
    
    Information for package conky:
    ------------------------------
    Repository     : Main Repository (OSS)
    Name           : conky
    Version        : 1.12.2-1.1
    Arch           : x86_64
    Vendor         : openSUSE
    Installed Size : 1.4 MiB
    Installed      : Yes
    Status         : up-to-date
    Source package : conky-1.12.2-1.1.src
    Summary        : A System Monitor
    Description    : 
        Conky is an configurable system monitor.
    Gene

  7. #7
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    475

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    Looking at that commit it is very unlikely causing the issue you and the guy creating the issue, but is likely due to one of the earlier commits.

    Would be good if you can revert back to an older version of the conky package but unless you did some special settings in the past I do not know an easy way to do that.

  8. #8

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    Here is the history, the problem appeared after the first update, and the reversion made my original .conkyrc script work again. Changing my .conkyrc file as described in my earlier post allows me to use the new version.
    Code:
    Update that broke things.
    2021-04-30 09:56:59 | install | conky | 1.12.2-1.1
    
    Revert that fixed things.
    2021-04-30 11:38:43 | install | conky | 1.12.1-1.3
    
    Update now works with modified .conkyrc file.
    2021-05-02 15:56:09 | install | conky | 1.12.2-1.1
    I haven't looked at the code yet, but the commit that broke things seems to multiply the move derived from "goto y" by the system DPI divided by the assumed default DPI of 96. So conky says " y' = DPI/96 * y ", where y is from the .conkyrc file, then issues " goto y' ". I fixed things by changing all my y values, including screen width, to the old value * 96/DPI and the multiplications cancel out. As I said, this seems like a bug, not a new feature.

    Gene

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,297
    Blog Entries
    15

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    Quote Originally Posted by Gene_S View Post
    Here is the history, the problem appeared after the first update, and the reversion made my original .conkyrc script work again. Changing my .conkyrc file as described in my earlier post allows me to use the new version.
    Code:
    Update that broke things.
    2021-04-30 09:56:59 | install | conky | 1.12.2-1.1
    
    Revert that fixed things.
    2021-04-30 11:38:43 | install | conky | 1.12.1-1.3
    
    Update now works with modified .conkyrc file.
    2021-05-02 15:56:09 | install | conky | 1.12.2-1.1
    I haven't looked at the code yet, but the commit that broke things seems to multiply the move derived from "goto y" by the system DPI divided by the assumed default DPI of 96. So conky says " y' = DPI/96 * y ", where y is from the .conkyrc file, then issues " goto y' ". I fixed things by changing all my y values, including screen width, to the old value * 96/DPI and the multiplications cancel out. As I said, this seems like a bug, not a new feature.

    Gene
    Hi
    Add your voice to the issue report....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10

    Default Re: Conky appears to honor screen resolution, now. That breaks alignr!

    I added it.

    Gene

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •