Skip to content
Snippets Groups Projects
  1. Mar 24, 2010
  2. Mar 23, 2010
    • Ray Strode's avatar
      [branch-merge] Add daemon configuration mechanism · b75a0ab5
      Ray Strode authored
      This series of commits adds a few configuration files
      to replace the kludgey symlink we use now for theme
      specification.
      
      In the future, these config files could potentially
      be used for other things as well.
      b75a0ab5
    • Ray Strode's avatar
      [daemon] Ship default configuration files · cf766763
      Ray Strode authored
      This commit adds plymouthd.defaults and plymouthd.conf.
      
      The former is for distributions to override, and the latter
      is for administrators to change.
      cf766763
    • Ray Strode's avatar
      [set-default-theme] Write plymouthd.conf instead of symlink · 5baed15f
      Ray Strode authored
      Now that the daemon looks for the default theme in configuration
      files, we should make plymouth-set-default-theme write the
      configuration files instead of doing symlinks.
      
      That's what this commit does.
      5baed15f
    • Ray Strode's avatar
      [main] Try getting default theme from config file · 27562c4f
      Ray Strode authored
      Right now we figure out the default theme via a symlink.
      This apprach is very simple, but is also a little cumbersome.
      
      It means as the default theme is changed around we have to move
      the symlink around.
      
      The symlink is in /usr.  We really shouldn't be mucking with
      /usr when changing defaults.
      
      This commit checks the filesystem for two config files:
      
      /usr/share/plymouth/plymouthd.defaults
      and
      /etc/plymouth/plymouthd.conf
      
      The first one is for distributions to use.  This is how they can
      manage which splash to show from release to release.
      
      The second one is for system administrators.  This is how they
      can override distribution policy.
      
      We don't actually ship these files yet.  In the mean time,
      (and even after for the forseeable future) the old symlink method
      will still work.
      27562c4f
    • Ray Strode's avatar
      [configure] drop --with-default-plugin-link · 65550c2d
      Ray Strode authored
      It's an old interface that I don't think anyone is using.
      65550c2d
    • Ray Strode's avatar
      [configure] change bug report link in AC_INIT · 73e6e29a
      Ray Strode authored
      It was my email address, but should probably be bugzilla
      (or the mailing list)
      73e6e29a
    • Ray Strode's avatar
      [configure] run through autoupdate · 54184496
      Ray Strode authored
      This just modernizes the file a bit.
      54184496
  3. Mar 22, 2010
    • Charles Brej's avatar
      [script] Update default script to use the window X and Y offsets every time · d28ff94b
      Charles Brej authored
      Previously the code was assuming the windows were placed at 0,0. This might not
      be the case and the window X and Y values should be used when trying to
      position items relative to a window.
      
      This change needs to be applied to all other scripts otherwise mutiple screen
      setups may have unaligned elements. Updates scripts should be tested using
      multi-head test systems or the x11 test renderer.
      d28ff94b
    • Charles Brej's avatar
      [script] Correctly initialise the minimum width when getting minimal window · 0bbc2437
      Charles Brej authored
      Values were preset to zero which was the smallest width/height.
      0bbc2437
    • Charles Brej's avatar
      [script] Get window value without an index returns area covered by all windows · 78edb5ab
      Charles Brej authored
      Calls to Window.GetWidth/Height/X/Y without a window index now return the
      values of the area covered by all windows. This is only the case if all the
      windows are aligned (either by their centers, or to a corner).
      
      This allows the theme designer to place an object knowing it will be seen on
      all screens.
      78edb5ab
    • Charles Brej's avatar
      [script] Return NULL when requesting width of nonexistent window · e70dfbe3
      Charles Brej authored and Charles Brej's avatar Charles Brej committed
      Minor bug, previously would return the index used rather than a NULL. Would
      only cause problems when using a width request as a test of the presence of a
      window.
      e70dfbe3
    • Charles Brej's avatar
      [script] Move windows to not start at negative coordinates · a0d16a9b
      Charles Brej authored and Charles Brej's avatar Charles Brej committed
      When multiple screens are found, the system will now arrange them so they are
      all centered, and the top left corner of the largest screen is at 0,0.
      No changes to any scripts are needed.
      a0d16a9b
    • Ray Strode's avatar
      [main] Deactivate terminal on quit if necessary · 5b518486
      Ray Strode authored
      If we're done with the VT plymouth was running on,
      and plymouth wasn't running on the initial VT, we
      should jump back to the initial VT and try to
      clean up plymouth's VT.
      5b518486
    • Ray Strode's avatar
      [terminal] Add new ply_terminal_deactivate function · 93482b76
      Ray Strode authored
      This will jump off the VT associated with the terminal
      and deallocate it.
      93482b76
    • Scott James Remnant's avatar
      [ply-text-display] don't set mode on every write · 9d488d5e
      Scott James Remnant authored
      Resetting the mode to text on every write means that if you're
      using a text plugin and X starts, X's VT keeps getting reset back to
      KD_TEXT since those plugins don't stop writing on deactivate (they
      have no renderer).
      
      There's no reason to set this mode here anyway; all paths to using
      those plugins already do this.
      9d488d5e
    • Scott James Remnant's avatar
      [terminal] keep track of terminal raw/cooked state · e9a22723
      Scott James Remnant authored
      Instead of setting the terminal to unbuffered (raw) mode on every
      write, keep track of whether it's unbuffered or not at the points
      we open and close the terminal.
      
      Deactivate already takes care to set back into buffered mode;
      otherwise we can end up resetting the terminal mode under X causing
      Enter to send X SIGQUIT.
      e9a22723
    • Scott James Remnant's avatar
      [main] deactivate renderer before hiding · 0ed7480e
      Scott James Remnant authored
      If we don't deactivate the renderer before hiding the splash, the
      drm renderer may scan out the buffer contents to the fbcon buffer;
      since we only hide the splash when dumping details or when
      --retain-splash is *not* given to quit, this is exactly the
      opposite of what we want.
      
      The effect of not doing this is partial splash contents behind the
      details in cases of error, or when using quit.  This doesn't affect
      plymouth quit --retain-splash.
      0ed7480e
    • Scott James Remnant's avatar
      [daemon] add "has active vt?" request · d54ae457
      Scott James Remnant authored
      One problem with the current deactivate/quit transition into X is that
      the display manager will, if Plymouth was running, re-use the currently
      active VT.
      
      That only works if Plymouth was actually displaying a splash screen on
      that VT.  If --show-splash hasn't been called yet because we booted too
      fast, we'll be on the wrong VT.
      
      Add a request to ask whether the Plymouth VT is active; I've done it
      this way so the answer defaults to "yes" for Fedora who use VT1.
      
      The pseudo-code for transition is thus:
      
        if plymouth is running (ping):
          plymouth deactivate
          if plymouth has active vt:
            start X on current VT with -nr
            if X starts ok:
              plymouth quit --retain-splash
            else if X fails:
              plymouth quit
          else if plymouth doesn't have active vt:
            plymouth quit
            start X as normal
        else if plymouth isn't running:
          start X as normal
      d54ae457
    • Scott James Remnant's avatar
      [client] add "has active vt?" request · 33e4d43f
      Scott James Remnant authored
      This asks the daemon whether it has an active VT, used for a smooth
      transition into X.
      
      I've implemented this to look like ping.
      33e4d43f
    • Scott James Remnant's avatar
      [two-step] resume animations on display_normal · 5eba40e4
      Scott James Remnant authored
      Change the display_normal() function so that rather than being a no-op
      if we already saved the state as normal, it restarts any animations and
      redraws the views.
      
      The only thing we now do if the state is not previously the same is
      hide any prompt.
      
      This allows this to be used to reanimate the plugin on reactivate.
      5eba40e4
    • Scott James Remnant's avatar
      [throbgress] resume animations on display_normal · 49162f43
      Scott James Remnant authored
      Change the display_normal() function so that rather than being a no-op
      if we already saved the state as normal, it restarts any animations and
      redraws the views.
      
      The only thing we now do if the state is not previously the same is
      hide any prompt.
      
      This allows this to be used to reanimate the plugin on reactivate.
      49162f43
    • Scott James Remnant's avatar
      [space-flares] resume animations on display_normal · 2346efab
      Scott James Remnant authored
      Change the display_normal() function so that rather than being a no-op
      if we already saved the state as normal, it restarts any animations and
      redraws the views.
      
      The only thing we now do if the state is not previously the same is
      hide any prompt.
      
      This allows this to be used to reanimate the plugin on reactivate.
      2346efab
    • Scott James Remnant's avatar
      [fade-throbber] resume animations on display_normal · 1b4a60cc
      Scott James Remnant authored
      Change the display_normal() function so that rather than being a no-op
      if we already saved the state as normal, it restarts any animations and
      redraws the views.
      
      The only thing we now do if the state is not previously the same is
      hide any prompt.
      
      This allows this to be used to reanimate the plugin on reactivate.
      1b4a60cc
    • Scott James Remnant's avatar
      [main] update display after reactivate · 117a434b
      Scott James Remnant authored
      Since deactivate uses on_boot_splash_idle, there's a good chance that
      plugins will have stopped animating.  Prod them to animate again by
      calling update_display()
      117a434b
Loading