Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problems capturing screenshots with 4k display zoomed to 150% #535

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

Open
mrmodolo opened this issue Jan 4, 2021 · 7 comments
Open

Problems capturing screenshots with 4k display zoomed to 150% #535

mrmodolo opened this issue Jan 4, 2021 · 7 comments
Assignees
Labels

Comments

@mrmodolo
Copy link

mrmodolo commented Jan 4, 2021

Hi!

Unlike #276 in this case, I only have one monitor!

On Ubuntu 20.10 with a 4K monitor and scale factor of 150 the first time the application is run, the screen goes black, flashes several times and the cursor freezes. After pressing ESC and trying again, the screen shrinks to a fraction of the monitor.

I tried with different settings:

bin/ksnip-1.8.0-x86_64.AppImage
QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCREEN_SCALE_FACTORS="" bin/ksnip-1.8.0-x86_64.AppImage
QT_SCALE_FACTOR=0 QT_SCREEN_SCALE_FACTORS="" bin/ksnip-1.8.0-x86_64.AppImage

In all attempts, the behavior was the same!

Thanks,

Marcelo Módolo

@mrmodolo mrmodolo changed the title Problems capturing screenshots with 4k displays zoomed to 150% Problems capturing screenshots with 4k display zoomed to 150% Jan 4, 2021
@DamirPorobic
Copy link
Member

Thanks for logging thin, I'll have a look into it.

Do you use Wayland or X11?

@mrmodolo
Copy link
Author

mrmodolo commented Jan 4, 2021

Hi!

X11

✦ ❯ loginctl
SESSION UID USER SEAT TTY
2 1000 modolo seat0 tty2

1 sessions listed.

✦ ❯ loginctl show-session 2 -p Type
Type=x11

✦ ❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy

Thanks,
Marcelo Módolo

@mrmodolo
Copy link
Author

mrmodolo commented Jan 4, 2021

Hi!

I found that with the combination of values for the variables below the application works!

✦ ❯ printenv | grep QT
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_AUTO_SCREEN_SCALE_FACTOR=1
QT_SCALE_FACTOR=1.5

However, the aspect seems a little big in relation to the fonts and other windows as you can see below!
And the movement of the mouse in the capture region becomes slower!

Captura de tela de 2021-01-04 18-26-53
Captura de tela de 2021-01-04 18-27-32

@mrmodolo
Copy link
Author

mrmodolo commented Jan 4, 2021

Hi!

I found the best values!
If you have more than one monitor, you can put the factors separated by ';' (exampĺe QT_SCREEN_SCALE_FACTORS="1.5;2")

env | grep QT
QT_ACCESSIBILITY=1
QT_SCREEN_SCALE_FACTORS=1.5
QT_IM_MODULE=ibus
QT_AUTO_SCREEN_SCALE_FACTOR=1

You can see that the screens look better!

Captura de tela de 2021-01-04 18-51-06
Captura de tela de 2021-01-04 18-51-56

@DamirPorobic DamirPorobic self-assigned this Jan 24, 2021
@DamirPorobic
Copy link
Member

Tested in my Ubuntu 20.04 VM and the only issue that I see is that icons and text is not properly scalled but the rest seem to be correct:
image

Is this the issue you're seeing? The Screenshot seems to be correct. That's now WQHD with 200% scaling.

@DamirPorobic
Copy link
Member

Just tested with a fresh install of Ubuntu 20.10 and see there the same behavior, icons with fixed size are not correctly scaled but screenshots seem to be captured correctly as far as I can tell.

@DamirPorobic
Copy link
Member

I have address the incorrectly scaled UI elements here #549, those should be fixed now in latest version, thought the CI might need some time to build it.

Regarding the screenshot issue you're facing, I might need more input from you on how to reproduce it. Best would be if you could try to reproduce it on a fresh installed VM @mrmodolo .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants