When taking a screenshot in Ubunt, the screen goes black and the screenshot is black as well

Asked by diego on 2020-02-28

Ubuntu 18.04 LTS

When I try to take a screenshot, the screen goes all black and the output is a black image as well

Bonus bug:
The coordinates are off if you change the resolution or screen size using cvt. To get correct coordinates, you have to use xdotool mousemove

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-02-29
Last reply:
2020-03-01
RaiMan (raimund-hocke) said : #1

which Sikuli?
which Java?

what is cvt?

diego (adrian-veidt) said : #2

Sikuli 2.0.3
https://launchpad.net/sikuli/sikulix/2.0.3/+download/sikulix-2.0.3.jar

Java -version
openjdk version "11.0.6" 2020-01-14

CVT is a tool you use to set a custom resolution on Ubuntu
https://askubuntu.com/questions/377937/how-to-set-a-custom-resolution

I set 200x resolution on Ubuntu so that Tesseract can give me good OCR results on screenshots

RaiMan (raimund-hocke) said : #3

--- I set 200x resolution on Ubuntu so that Tesseract can give me good OCR results on screenshots

not needed for OCR with SikuliX, since 2.0.x internally optimizes the screenshots for OCR internally anyways.

So I recommend, to first try with standard screen settings.

Can you help with this problem?

Provide an answer of your own, or ask diego for more information if necessary.

To post a message you must log in.