[opensuse] ImageMagick import - HowTo capture kdm on vt7 from tty1??
Guys, I need to make a screenshot of the kdm greeter from tty1. All of the examples show using: import -display :0.0 -window root somefile.png It doesn't work. Unable to open display. I have also tried with :0, localhost:0, localhost:0.0, etc. nothing seems to work. I was able to grab one "black" screenshot after using ctrl+alt+F1 and then using: import -display :0 -window root somefile.png The capture what the correct 1440x900 screen size, but it was black. The X server seemed to reset after taking the screenshot and the import command would no longer work. The imagick website shows the syntax as: import -display host:display[.screen] -window root somefile.png http://www.imagemagick.org/www/command-line-options.html#display What am I messing up? I get the same results with both radeonhd and nvidia drivers (different boxes of course) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday 01 February 2012 16:58:39 David C. Rankin wrote:
Guys,
I need to make a screenshot of the kdm greeter from tty1. All of the examples show using:
import -display :0.0 -window root somefile.png
It doesn't work. Unable to open display.
Have you set the XAUTHORITY environment variable to an appropriate value? If you do "ps aux|grep X" you'll find the X server that kdm is using, and it will have a parameter -auth pointing to the authentication cookie that you need to use. It will be something like /var/lib/xdm/authdir/authfiles/A:0-foobar If you then do export XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-foobar then your import command should work Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/01/2012 05:09 PM, Anders Johansson wrote:
On Wednesday 01 February 2012 16:58:39 David C. Rankin wrote:
Guys,
I need to make a screenshot of the kdm greeter from tty1. All of the examples show using:
import -display :0.0 -window root somefile.png
It doesn't work. Unable to open display.
Have you set the XAUTHORITY environment variable to an appropriate value?
If you do "ps aux|grep X" you'll find the X server that kdm is using, and it will have a parameter -auth pointing to the authentication cookie that you need to use. It will be something like
/var/lib/xdm/authdir/authfiles/A:0-foobar
If you then do
export XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-foobar
then your import command should work
Anders
Anders, Malcolm, Thanks! The XAUTHORITY bit was the bit I was missing. I'll also pull fbcat and give that a go. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/03/2012 09:12 AM, David C. Rankin wrote:
export XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-foobar
then your import command should work
Anders
Anders, Malcolm,
Thanks! The XAUTHORITY bit was the bit I was missing. I'll also pull fbcat and give that a go.
Anders, Malcolm, All After setting XAUTHORITY, the import command will work for 'root'. However, it only captures a totally 'black' image of the display of the correct size when run from tty1. However, when run from within kde, I can capture the correct image. I have also tried xwd from within kde and it works as well. Any thought on why I get a totally black image when using import from tty1? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 03 Feb 2012 10:51:36 -0600
"David C. Rankin"
On 02/03/2012 09:12 AM, David C. Rankin wrote:
export XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-foobar
then your import command should work
Anders
Anders, Malcolm,
Thanks! The XAUTHORITY bit was the bit I was missing. I'll also pull fbcat and give that a go.
Anders, Malcolm, All
After setting XAUTHORITY, the import command will work for 'root'. However, it only captures a totally 'black' image of the display of the correct size when run from tty1. However, when run from within kde, I can capture the correct image. I have also tried xwd from within kde and it works as well.
Any thought on why I get a totally black image when using import from tty1?
Hi Are you using the chvt command as well? That was the only way I could get it to work using import. -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 12.1 (x86_64) Kernel 3.1.9-1.4-desktop up 20:24, 5 users, load average: 0.02, 0.04, 0.05 CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 01 Feb 2012 16:58:39 -0600
"David C. Rankin"
Guys,
I need to make a screenshot of the kdm greeter from tty1. All of the examples show using:
import -display :0.0 -window root somefile.png
It doesn't work. Unable to open display. I have also tried with :0, localhost:0, localhost:0.0, etc. nothing seems to work. I was able to grab one "black" screenshot after using ctrl+alt+F1 and then using:
import -display :0 -window root somefile.png
The capture what the correct 1440x900 screen size, but it was black. The X server seemed to reset after taking the screenshot and the import command would no longer work.
The imagick website shows the syntax as:
import -display host:display[.screen] -window root somefile.png
http://www.imagemagick.org/www/command-line-options.html#display
What am I messing up? I get the same results with both radeonhd and nvidia drivers (different boxes of course)
Hi I have just packaged up the other day fbcat which will do that ;) http://software.opensuse.org/search?q=fbcat&baseproject=openSUSE%3A12.1&lang=en&include_home=true&exclude_debug=true Just run fbgrab -C 1 tty1.png -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 12.1 (x86_64) Kernel 3.1.9-1.4-desktop up 19:40, 3 users, load average: 0.00, 0.01, 0.05 CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 1 Feb 2012 17:33:28 -0600
Malcolm
On Wed, 01 Feb 2012 16:58:39 -0600 "David C. Rankin"
wrote: Guys,
I need to make a screenshot of the kdm greeter from tty1. All of the examples show using:
import -display :0.0 -window root somefile.png
It doesn't work. Unable to open display. I have also tried with :0, localhost:0, localhost:0.0, etc. nothing seems to work. I was able to grab one "black" screenshot after using ctrl+alt+F1 and then using:
import -display :0 -window root somefile.png
The capture what the correct 1440x900 screen size, but it was black. The X server seemed to reset after taking the screenshot and the import command would no longer work.
The imagick website shows the syntax as:
import -display host:display[.screen] -window root somefile.png
http://www.imagemagick.org/www/command-line-options.html#display
What am I messing up? I get the same results with both radeonhd and nvidia drivers (different boxes of course)
Hi I have just packaged up the other day fbcat which will do that ;) http://software.opensuse.org/search?q=fbcat&baseproject=openSUSE%3A12.1&lang=en&include_home=true&exclude_debug=true
Just run fbgrab -C 1 tty1.png
Hmm OK, this works for gdm... chvt 8 ; sleep 2 ; XAUTHORITY=/var/gdm/:0.Xauth DISPLAY=:0.0 import -window root /tmp/gdm.png ; chvt 1 -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 12.1 (x86_64) Kernel 3.1.9-1.4-desktop up 1 day 0:20, 3 users, load average: 0.16, 0.13, 0.08 CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Anders Johansson
-
David C. Rankin
-
Malcolm