Announcement

Collapse
No announcement yet.

Capturing the images of the ksplash & kdm & ksplash again

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Capturing the images of the ksplash & kdm & ksplash again

    This is posted under the Experimentation/Customization/Optimization (> Topic: Rules for posting in this forum).

    With the Kubuntu 9.10; Grub > Usplash > KsplashX (1) > KDM > KsplashX (2) /1/,/2/, /3/.


    There is > How to install and use Xephyr / Make Screen Shot of LogIn screen. This an alternative way to do it.


    man xwd
    NAME
    xwd - dump an image of an X window

    SYNOPSIS
    xwd [-debug] [-help] [-nobdrs] [-out file] [-xy] [-frame] [-add value] [-root | -id id | -name name ] [-icmap] [-screen] [-silent]
    [-display display]

    DESCRIPTION
    Xwd is an X Window System window dumping utility. Xwd allows X users to store window images in a specially formatted dump file. This file can then be read by various other X utilities for redisplay, printing, editing, formatting, archiving, image processing, etc. The target window is selected by clicking the pointer in the desired window. The keyboard bell is rung once at the beginning of the dump and twice when the dump is completed.
    The xwd is part of the package x11-apps:
    X applications

    An X client is a program that interfaces with an X server (almost always via
    the X libraries), and thus with some input and output hardware like a
    graphics card, monitor, keyboard, and pointing device (such as a mouse).

    This package provides a miscellaneous assortment of X applications
    that ship with the X Window System, including:
    - bitmap,
    - oclock and xclock, graphical clocks;
    - xbiff, a tool which tells you when you have new email;
    - xcalc, a scientific calculator desktop accessory;
    ...
    - xwd, a utility for taking window dumps ("screenshots") of the X session;
    - xwud, a viewer for window dumps created by xwd;
    - Xmark, x11perf, and x11perfcomp, tools for benchmarking graphical
    operations under the X Window System;

    The xbiff, xcalc, xconsole and xman programs use bitmap images provided
    by the xbitmaps package.


    1) Writing a bash script (snap):

    Code:
    #!/bin/bash
    
    for i in {1..20..1}
    do
      xwd -out /home/rog/snap/screenshot-$i.xwd -root -display :0.0
      sleep 1
    done
    The path is to YOUR home directory = /home/<YOUR_username_here>/snap/.

    Dropping it in to the /usr/local/bin and making it executable.

    The scrip will dump the image (20 images / about 1 per sec ) of the X Window to the /home/rog/snap/.


    2) Adding a script call to the /etc/kde4/kdm/Xsetup.

    Backup before edit !

    After the edit:
    Code:
    #! /bin/sh
    # Xsetup - run as root before the login dialog appears
    
    #xconsole -geometry 480x130-0-0 -notify -verbose -fn fixed -exitOnFail -file /dev/xconsole &
    
    # Kubuntu needs boot splash starting, KDM will kill it when it is running
    if ! grep -q ^AutoLoginEnable=true /etc/kde4/kdm/kdmrc; then
      ksplashx Rog131 &
    fi
    
    # xwd call 
    /usr/local/bin/snap &

    3) Booting
    Images are dumped to the /home/rog/snap/screenshot-1.xwd, /home/rog/snap/screenshot-2.xwd, ....

    With the 1680x1050 each image is 6,7 MiB.


    4) Conversion

    The xwd images can be opened with the Gimp or prosessed with the ImageMagick.




    /1/ > Kubuntu Karmic Xsplash
    /2/ > Topic: KDM from 4.3.1
    /3/ > Topic: [SOLVED] Ksplash Theme background - can't get it to change
    Last edited by Snowhog; Apr 20, 2013, 10:18 AM.
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    #2
    Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

    Geez Rog131, you just amaze and amaze. Just tried this. Works great! Of course, one wouldn't want (necessarily) to leave this 'active' all the time, although, I guess it wouldn't hurt - you would just overwrite the 20-images each time. I found that image 2 showed the KDM login screen, and image 19 was a nice KSplashx screen, showing all the load icons. Nice.

    What is really cool using this method, is that once setup, it will always take 20 'snaps' of the KDM Login process. So, if you were playing around with different 'themes' you would always have the snapshots after each login to do what you want with.

    Very, very nice. My hat is of to you.
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

      Agreed. That really seems better than Xephyr.

      Comment


        #4
        Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

        And just to note, the images taken and saved into ~/snap are owned by root (root:root). You need to chown user:user (user=your user name) screenshot* in order to work with them.
        Using Kubuntu Linux since March 23, 2007
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

          oops .

          I tried to edit the first post not to add a new one.
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

            I tried the script, it gets my KDM but only the first screen of ksplash.

            Is there any other way of getting the ksplash screenhsot?
            HP Pavilion dv6 core i7 (Main)
            4 GB Ram
            Kubuntu 18.10

            Comment


              #7
              Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

              Is there any other way of getting the ksplash screenhsot?

              If you only want the Ksplash (KsplashX):

              Konsole:
              :~$ ksplashx
              Usage: ksplashx <theme> [--test] [--pid]
              i.e. with the Default theme:
              Code:
              ksplashx Default --test
              Capture can be done with the KSnapshot et al.




              More:

              > Topic: Customizing Kubuntu
              ...
              KDE Splash / KSplashX
              > Topic: how to create an animated splash screen
              >> KsplashX
              >> KSplasherX for KDE4
              >> Ksplash theme generator
              > Topic: [SOLVED] Ksplash Theme background - can't get it to change
              Last edited by Rog131; Jan 31, 2012, 05:11 AM.
              Before you edit, BACKUP !

              Why there are dead links ?
              1. Thread: Please explain how to access old kubuntu forum posts
              2. Thread: Lost Information

              Comment


                #8
                Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

                Okay, Thank you rog. I had to fiddle with the timer on Ksnapshot but It worked
                HP Pavilion dv6 core i7 (Main)
                4 GB Ram
                Kubuntu 18.10

                Comment


                  #9
                  Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

                  With the Kubuntu 10.04 / 10.10; Grub > Plymouth > KDM > KSplashX > Desktop

                  The script can capture the images of Plymouth screen and the KDM screen.

                  The ksplash screen can be started by the command:
                  Code:
                  ksplashx <theme> [--test]
                  and the capture can be done with the KSnapshot et al (> snapshot alternatives).

                  The Plymouth screen can be started with commands:
                  Code:
                  sudo plymouthd
                  sudo plymouth --show-splash
                  and stop:
                  Code:
                  sudo plymouth quit
                  (may or may not work with the Kubuntu 10.10)

                  ---edit----
                  With the Kubuntu 10.10 and later > Ubuntu Plymouth wiki
                  ---edit---


                  Capturing the Grub screen with a cell phone camera, Plymouth and KDM screens with the xwd and the ksplash and the desktop screens with the ksnaphot.



                  Links:
                  > Few Plymouth links
                  > Topic: Customizing Kubuntu
                  > Plymouth background and logo images context menu
                  Last edited by Rog131; Jan 31, 2012, 05:11 AM.
                  Before you edit, BACKUP !

                  Why there are dead links ?
                  1. Thread: Please explain how to access old kubuntu forum posts
                  2. Thread: Lost Information

                  Comment


                    #10
                    Re: Capturing the images of the ksplash &amp; kdm &amp; ksplash again

                    Why not just use a virtual machine and take a video capture of it, then select the frames that you want?

                    Comment

                    Working...
                    X