VOGONS


First post, by blew

User metadata
Rank Newbie
Rank
Newbie

Hi.

I'm having trouble taking screenshots on linux. My dosbox.conf is being loaded successfully, and i have the "captures" setting defined under the [dosbox] section. But, for some reason, nothing happens when i press ctrl+F5.

Did anyone get the same problem? And how can i solve it?

Thanks.

Reply 1 of 12, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Do the captures directory exist?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 12, by blew

User metadata
Rank Newbie
Rank
Newbie

Yes. Sorry for forgetting to mention it.

Reply 3 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

it's probably happening because your window manager steals the keycombination from dosbox.
many windowmanagers use ctrl-f* to switch to a different desktop.

To be sure of this:
start dosbox from a terminal and see if produces any information when you press ctrlf-f5

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 12, by blew

User metadata
Rank Newbie
Rank
Newbie

You mean a tty terminal outside X? I will try it but i don't know if it will work. I had to compile Dosbox with the X11-dev package for it to use X's display, otherwise it failed to launch ("no available display"). Running it from tty may fail, but i'll try it.

If indeed X is stealing ctrl+F5 presses, then it is a bit weird, as changing CPU cycles has been working correctly, using the similar key combination.

Thanks.

Reply 5 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

uhm no an xterminal
xterm or gterm or kterm or aterm or rxvt

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 12, by blew

User metadata
Rank Newbie
Rank
Newbie

Well, then that's what i've been using forever. I usually pass some command line options to dosbox. Besides, using the terminal is natural for me. Yes, i'm from that time. 😁

Am i missing something here? All i have is:

[dosbox]
captures=/home/blew/images/dosbox

And yes, the directory exists. Should i double quote the link? Or make it relative to dosbox's path?

Thanks again.

Reply 7 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

what does dosbox say when you press ctrl-f5 in the console
It should say something!!!!!!!!!!!
(something like Capturing Screenshot to .....
or
Can't open capture dir for ......
)

if it doesn't then your os/windowmanager does steal the key combination.

Water flows down the stream
How to ask questions the smart way!

Reply 9 of 12, by blew

User metadata
Rank Newbie
Rank
Newbie
Qbix wrote:
what does dosbox say when you press ctrl-f5 in the console It should say something!!!!!!!!!!! (something like Capturing Screensh […]
Show full quote

what does dosbox say when you press ctrl-f5 in the console
It should say something!!!!!!!!!!!
(something like Capturing Screenshot to .....
or
Can't open capture dir for ......
)

if it doesn't then your os/windowmanager does steal the key combination.

Actually, nothing happens. Nothing is displayed nor new files are created. But this only happens when trying ctrl+F5. All other ctrl+F? functions seem to be working, including capturing to a wave file (which dumps the file to the captures directory i've defined).

Again, i find it strange that my window manager (i'm using Gnome on Ubuntu, by the way) is stealing just THAT combination.

I wanted to try capturing to a video file, but ctrl+alt+F? commands don't work as they open a tty window (is there a workaround for that?).

gulikoza wrote:

I'm gonna ask the obvious...is screenshot support enabled in your build?

Whoa. Do i have to enable anything while building? I just did a ./configure, make and make install.

Prior to that, i did the same thing to the latest version of SDL. May i be missing some extra package from SDL?

Thanks again for your time, guys.

Reply 10 of 12, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

You need libpng for screenshots. Look at the configure output, it should say something like screenshot support enabled or disabled.

http://www.si-gamer.net/gulikoza

Reply 11 of 12, by blew

User metadata
Rank Newbie
Rank
Newbie

Crap. You're absolutely right. I checked all the required libs but i made a mistake with libpng. I don't have libpng-dev installed!

I'll apt-get it and recompile everything right away and let you know.

Thank you!

Reply 12 of 12, by blew

User metadata
Rank Newbie
Rank
Newbie

Yeap, that was it! Up and running now! Thanks to everyone!