Package: fbgrab Version: 1.0.0-4 Severity: important I use framebuffer console and I want to take a screenshot with fbgrab. But the it gives me garbase image.
In any tty $ fbgrab fb.png or $ fbgrab -w 1440 -h 900 -b 32 fb.png or $ cp /dev/fb0 fb.dump $ fbgrab -w 1440 -h 900 -b 32 -f fb.dump fb.png all produce garbage image. After looking into fbgrab.c, I find it reads /dev/fb0 into buffer and treats the width of the buffer as fb_varinfo.xres. This is incorrect since I have xres_virtual larger than xres then fbgrab uses a wrong line_length. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages fbgrab depends on: ii libc6 2.9-4 GNU C Library: Shared libraries ii libpng12-0 1.2.35-1 PNG library - runtime fbgrab recommends no packages. fbgrab suggests no packages. -- no debconf information my framebuffer driver is nvidiafb with param: video=nvidiafb,mode_options:1440x900,bpp:32,hwcur:1 framebuffer mode: $ fbset -v -i Linux Frame Buffer Device Configuration Version 2.1 (23/06/1999) (C) Copyright 1995-1999 by Geert Uytterhoeven Opening frame buffer device `/dev/fb0' Using current video mode from `/dev/fb0' mode "1440x900-60" # D: 106.508 MHz, H: 55.939 kHz, V: 59.892 Hz geometry 1440 900 1472 11300 32 timings 9389 232 80 25 3 152 6 hsync high accel true rgba 8/16,8/8,8/0,8/24 endmode Getting further frame buffer information Frame buffer device information: Name : NV39 Address : 0xe0000000 Size : 268435456 Type : PACKED PIXELS Visual : DIRECTCOLOR XPanStep : 8 YPanStep : 1 YWrapStep : 0 LineLength : 5888 MMIO Address: 0xf4000000 MMIO Size : 16777216 Accelerator : nVidia Arch 40 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org