-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails when fractional scaling <> 100% #564
Comments
please fix this - affects the core functionality of the product when using a HiDPI screen |
Any update on this? Since the demise of Shutter, Flameshot is the best tool, but without fractional scaling it is no good to me. |
Fixes for issues flameshot-org#564 , flameshot-org#265 and flameshot-org#650 need to be tested. Possibly laso works for flameshot-org#227 I don't know how to reproduce mixed DPI screen.
Fixes for issues flameshot-org#564 , flameshot-org#265 and flameshot-org#650 need to be tested. Possibly also works for flameshot-org#227 I don't know how to reproduce mixed DPI screen.
Fixes for issues flameshot-org#564 , flameshot-org#265 and flameshot-org#650 need to be tested. Possibly also works for flameshot-org#227 I don't know how to reproduce mixed DPI screen.
@fzaninotto @flantel |
Hi, No, unfortunately this does not work for me. The screen keeps flipping around between different resolutions. This is on Ubuntu 19,10/Gnome |
@flantel you are using 200% scaling? indeed it wasn't working on 2x only on fractional, like 1.5x |
Hi @Mart-Bogdan I am using 150% on a Pixelbook, running ubuntu 19.10/Gnome/X Result is the same - screen will flip between small and normal and continues to do so until I press escape. |
Same issue on Pop_OS! on both an Eve V (surface pro look-alike) and a Matebook X Pro, both at 150%. |
Same here on Pop_OS Surface Laptop 2 at 150% Impossible to take a screenshot, it just toggles constantly big/small/big/small/... |
@Mart-Bogdan Hi Bogdan, can you please confirm if your fix for fractional scaling was indeed incorporated into the main flameshot branch? Occasionally I get flameshot updates from OpenSUSE and it is breaking it, so clearly at least SUSE does not have that patch. |
Hello, no it wasn't. there were someone who took my changes into their fork. Likely this form merged it https://github.com/hosiet/flameshot But I've found that my patch don't work well with dual monitor set-up. |
I have dual monitors (although with the same 4k resolution with fractional scaling) and it works perfectly. OK, I will just keep using your build. Thanks for your work! |
If they are at different horizontal level tool buttons are aligned wierdly.
…On Mon, Jun 15, 2020, 15:04 Karol Bryd ***@***.***> wrote:
I have dual monitors (although with the same 4k resolution with fractional
scaling) and it works perfectly. OK, I will just keep using your build.
Thanks for your work!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#564 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF5G7XMBKIICEMCS7HW7WLRWYE6TANCNFSM4H2RTW5A>
.
|
flameshot does not work fine at scale 125% display Ubuntu 20.04 LTS |
same at at scale 125% display Ubuntu 20.04 LTS |
Same here on Arch Linux w/ KDE on X11 while using version 0.8.1 |
Ubuntu 20.04.1 LTS here with Dual HiDPI monitors set to 150% fractional scaling. Running the very latest Flameshot release (0.8.5) when I try to take a screenshot both my monitors flicker on and off and it becomes actually difficult to break out of. Has there been any progress addressing this issue? Is there a beta or alpha build we could try? I have tried this: https://github.com/Mart-Bogdan/flameshot/releases/tag/tmp-fix-scaling-2 and it doesn't work for me. |
I'm actively working on it but it is not an easy issue to solve. Im at a point where I can confirm the screenshot is actually taken and sized correctly, however it displays with an X offset. I haven't quite figured out why. |
Ive made some good progress on this. I can correct the offset by adding a move command here:
The offset for my current test is 640px. My current set setup is 2x monitors with 1920x1080 resolution and fractional scaling of 1.5. 1920 * 2monitors / 640 = 6. I don't understand why there is this factor of 6, but the fact that its a perfect divisor makes me think I am on the right track. Edit: Okay great I figured it out....still want to understand WHY the issue occurs, but there is scare documentation on QT fractional scaling. The offset is: resolution of primary display - resolution of primary display* (1/scaling) Edit: It also seems to only happen when the primary screen is on the left. Edit: 2020/11/22: Still havent uncovered root cause. My next step is creating a minimal working example to post on the QT forums. Edit: 2020/11/23: Minimal working example of bug posted here: https://forum.qt.io/topic/121111/position-of-widget-with-fractional-scaling |
Some interesting findings (I'm running PopOS 22.04 on a laptop with an external monitor and screen scaling of 1.5 on both laptop and external). I if I run Interestingly, if I add zeros to the scale factor, the orientation of the monitors matters. On a side-by-side, I can set it to 1.0000000001 and it works fine. But on a one-above-the-other arrangement, 1.00001 no longer works and it goes into a re-scale loop. But this doesn't work on just-laptop screen (at 1.5 scaling) - for that to work I need to run |
Actually, the number of zeros to make it work is a bit weird. I just tried three zeros on side-by-side, and it failed, but two zeroes worked. And I've made a little script to make it work on either 1 or 2 monitors:
|
I tried what you did and, FINALLY, it worked! 🎉 |
linux mint 150% |
|
Ubuntu 23.10, scale 150%, QT_AUTO_SCREEN_SCALE_FACTOR doesn't work neither. |
/usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=1 flameshot gui or /usr/bin/env QT_AUTO_SCREEN_SCALE_FACTOR=2 flameshot gui doesn't work on Debian 12 with Flameshot v12.1.0. |
I have two screens, first it's with no scaling, the seconds 130% scaling. I managed to solve my issue by settings running flamshot with: env QT_SCREEN_SCALE_FACTORS="1.3" flameshot gui |
I'm using Arch with KDE and Wayland with 1.25 scaling XDG_SESSION_TYPE=x11 flameshot gui The only side effect is I can't hit ctrl+c to take the photo... i.e. have to click copy to clip board a small annoyance really. |
@damobeanrod enabling X11 legacy app support here seems to work, but it's not the most elegant solution |
@winskil that is awesome kudos just what I was looking for good balance between security and form I hold down shift now to type in text boxes (I can hit caps if I don't feel like yelling hahah). Not Ideal but I think a good compromise compared to always which would forgo the requirement to hold a modifer but reduce security dramatically. |
My 2c, Ubuntu 23.10, flameshot 12.1.0-2, Lenovo X1C6 2560x1440, scaling 125%, running via keyboard shortcut + script (flatpak/xdg-desktop-portal#1070 (comment), no security message from Gnome), and have the same problem with scaling :( |
This worked using Flatpak. Using it with
|
As a note, you can set permanent env var in Flatseal. For CLI, you should be able to do it with |
Same issue as everyone above me. |
Wow,It works for me. Arch + kde + wayland. |
@damobeanrod You can get Ctrl+C to work by changing KDE's settings to allow X11 apps to snoop on Ctrl presses from other apps. By default, Wayland restricts these, while X11 does not. |
|
This appears to be working for me: env XDG_SESSION_TYPE=x11 flatpak run org.flameshot.Flameshot |
|
Thanks for this. It is a good workaround. I went with a variation of it Ubuntu 22.4, Xorg. (wayland disabled) In my case, Final code:
|
Interestingly, on my laptop with 125% scaling, rather than increasing the I am using the The exact command that worked for me: env QT_SCREEN_SCALE_FACTORS="0.8" flameshot gui |
Hmm.. Unfortunately that didn't work for me (125% laptop scaling too). |
Ubuntu 19.04 supports fractional scaling on Wayland and Xorg. When using a factor that is not the default (like 150%, for instance on a HiDPI display), and trying to capture a screenshot with flameshot, the screen flickers an changes resolution. and flameshot can only capture a quadrant of the screen.
The text was updated successfully, but these errors were encountered: