I use framebuffer console in 791 VGA mode (1024x768x64k) and I'd like to display JPEG images in the console mode. There are two programs for such purposes: seejpeg from Slackware and zgv from SlackBuilds. I installed both.
To use them I load svgalib_helper module.
In /usr/share/mc/mc.ext is registered zgv:
Code:
include/image
Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (xv %f &); fi
View=%view{ascii} identify %f
I use two machines. On the old one I can display image using Midnight Commander and zgv. On the new one zgv started with Midnight Commander displays fuzzy pictures. When I try to change SVGA mode with the keys from F1 to F10 zgv blanks the screen and locks the keyboard so I need to power off the machine.
Moreover I can't display image on any machine using command zgv "Image File.jpg", though I can do it on the first machine with Midnight Commander. When I run that command manually it displays the message:
Quote:
zgv: not running on console and no free VTs found.
|
When I try to display an image using seejpeg "Image File.jpg" command as regular user the program displays the message:
Code:
svgalib: can't open /dev/console
I added that user to /etc/sudoers file and now sudo seejpeg "Image File.jpg" command displays the message:
Code:
You must be the owner of the current console to use svgalib.
Not running in a graphics capable console,
and unable to find one.
When I try to use seejpeg as root the program blanks the screen and locks the keyboard so I need to power off the machine.
What should I do to display the images in the console mode using the command zgv or seejpeg as regular user?