Quote:
Originally Posted by Jellby
Is it possible to create a screenshot from KSM with this command? If it is, could a script be created such that it can be called from nickel (by opening an image, like exit_nickel, etc.) and it takes a screenshot after some delay?
|
It is possible, but ...
Since several FW updates nickel rotates the screen. Under older FWs, I converted the screenshots made on a Kobo Touch by using the values 800x1280, this resulted in an acceptable image, but with a huge black border on one side; or using the values 800x600 with results in an acceptable image without additional border. (This is at least how I seem to remember it.)
Now, with recent FWs, I convert with the values 608x1792 (I find these values with fbset). This results in an acceptable image, but with an even huger black border as before. So this should somehow be improved. I did not yet really look into this.
Making screenshots by executing a script file via fmon, is not very convenient, because of the timing problem. It is much easier do make it via telnet.
If you really want to do it via fmon, try this.
KSM provides the scriptfile .kobo\kbmenu\fmonsh\run_test_script.sh, which is associate with kbmenupngs\run_test_script.png. The script file is empty, as its purpose is to be ready for tests. For simplicity let us use it now.
The new content for .kobo\kbmenu\fmonsh\run_test_script.sh is
Code:
#!/bin/sh
kbmenudir=/mnt/onboard/.kobo/kbmenu
sh $kbmenudir/scripts/screenshot.sh &
Now the content of screenshot.sh
Code:
#!/bin/sh
targetfile=/mnt/onboard/screen_$(date +%Y%m%d_%H%M%S).raw
sleep 30
cat /dev/fb0 > $targetfile
You will probably want to change the sleeping time according to your needs.
Edit: Later we could try using the screen saver package to make screenshots with the power slider instead of fmon. This should be much more convenient.