Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 12:45
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HowTo use Shadows
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 29 Dec 2005, 00:56    Post subject:  HowTo use Shadows  

Shadows for Windows look great, but you often can read about problems with them:

- slow
- corrupted Titlebars
- background problems
- crashes

This article helps you, to solve these problems.

I have very fast shadows on an old Pentium 700 with an old ATI Radeon 7000 at 1280x1024 pixel resolution with 24 bit colordepth.

See a fullscreen-picture here: (300 kb):
http://dotpups.de/pics/puppy/xorgfbob.png

You will need the X.org -Xserver, thats to say Puppy 1.0.7 or my X.org Dotpup for older Puppys.


Step 1: The xserver

Skip this step, if you have no ATI-Graficscard.

The xorg-wizard installed an "ati"-driver.
I found a better solution, the driver called "radeon"
Exit X (hit CTRL-ALT-Backspace).

To edit the config, type:
mp /etc/X11/xorg.conf

Search the line
Code:
   Driver      "ati"

replace it with
Code:
   Driver      "radeon"


Save your changes (CTRL-a).

To test if it works, start X:
xwin


Step 2: DRI

DRI enables 2D-Hardware-accelleration.
http://www.murga.org/~puppy/viewtopic.php?t=5244

Step 3: Optimizing X

Again, edit xorg.conf like in step 1.
This time, activate some of the options by uncommenting them (remove the leading "#").
You should have these lines:
Code:
        Option     "AGPMode"               # <i>
        Option     "AGPFastWrite"          # [<bool>]
        Option     "EnableDepthMoves"      # [<bool>]
        Option     "EnablePageFlip"        # [<bool>]
        Option     "NoBackBuffer"          # [<bool>]
        Option     "DDCMode"               # [<bool>]
        Option     "RenderAccel"           # [<bool>]


I don't know if every option is needed, but for me they work ok.

I also commented this line:
Code:
#      Option    "omit xfree86-dga"   # don't initialise the DGA extension



Step 4: Activating shadows

Install this Dotpup (54 kb):
http://dotpups.de/dotpups/XServer/xcompmgr.pup

I slightly modified the program, to avoid crashes.

Again, edit xorg.conf.
In the end, add these lines:
Code:

Section "Extensions"
 Option "Composite" "Enable"
 Option "RENDER" "Enable"
EndSection


In a console, type "xcompmgr -c"
Now your windows should have shadows.

If you have bad luck, your background looks totally corrupted, and your window-decoration looks not perfect, either. The next steps fix that.


Step 5: The Windowmanager

I use Fluxbox with the "Aqua-Theme.
With shadows enabled, the corners are not transparent.
So edit /root/.fluxbox/init
Search these values, and alter them as shown here.
Code:

session.screen0.showwindowposition:   false
session.screen0.opaqueMove:   true
session.opaqueMove:   true
session.forcePseudoTransparency:   true



Step 6: Setting the background

If you have a corrupted background, we need to trick out the xcompmgr.
Install this Dotpup (130 kb):
http://dotpups.de/dotpups/WindowManagers/wmsetbg.pup

Then open ROX-Filer, and drag the file /usr/local/bin/shadow-background to your Desktop.
Now you can enable shadows and a backgroundpicture of your choice by dragging a picture on this new icon.
Sometimes this must be twice or 3 times, that is a timing-bug in xcompmgr.
To stop shadows, type "killall xcompmgr" in a console.

The only problem, that still might remain:
When you resize a window, the background might not be drawn correct.
In this case, drag /usr/local/bin/xrefresh to your desktop, and click it to clean up the desktop.
Maybe this problem can be solved with some more tweaking.
It also depends on the Windowmanager you use.

Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0609s ][ Queries: 12 (0.0146s) ][ GZIP on ]