Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-15-2014, 06:23 PM
|
#1
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979
|
Current Preferred Slack Method Preventing Xfce Tearing?
Greetz
I have googled around and seen that screen tearing is a common problem for Xfce and is in fact one of the reasons for Wayland. Some time ago people changed out the default WM for Compiz which sometimes fixes tearing but causes other problems. A better solution seem to be using Kwin as the compositor.
S0.....
1) Is Kwin the best option these days?
and if it is....
2) What is the best method for Slackers to utilize Kwin for Xfce?
3) Are there other viable options?
Thanks in advance for any opinions, experiences, tutorials
|
|
|
04-15-2014, 06:48 PM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
I use Compton with i3 without any issues. Which problems do other people have with it?
By the way, Compton is a mere compositor, not a WM, so you run it in combination with your WM, you don't replace the WM.
|
|
|
04-15-2014, 07:03 PM
|
#3
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep:
|
You need to fix your Xorg/graphics driver configuration or as a last resort disable composition in xfwm (I believe there is a simple checkbox in standard Xfce's settings).
Before i3 I did used Xfce and windows moving or resizing was fast & fluent even on a poor integrated Intel GA.
|
|
|
04-15-2014, 10:26 PM
|
#4
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
If you're using an OEM driver from Nvidia and AMD they should come with their tools already.
Alternatively, there is the DRIConf package you can get from SlackBuilds for the free drivers. You'll probably want to look for enabling VBlank/VSync to avoid tearing.
|
|
|
04-16-2014, 04:17 AM
|
#5
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979
Original Poster
|
Thanks for the responses so far but I'm more in favor of using a proper compositor than disabling Xfce's. I have GTX-760 nVidia w/ oem driver set to sync to VBlank and KDE works great but Xfce tears, especially on scrolling Firefox. I've read about Compton but Kwin seems a better choice of the two, though I've yet to see a set of dependencies to do so.
So far I've seen -
kde-Window-Manager-common
kde-Window-Manager
kwin-style-qtcurve
kde-window-manager-gles
kde-style-skulpture
kdeartwork-theme-window
qtcurve
kwin-style-crystal
kwin-style-skulpture
kde-window-manager-active
kde-window-manager-active-gles
kwin-style-dekorator
but those aren't in default full Slack install and some have dependencies of their own. This seems somewhat odd since Kwin works in KDE so I'm somewhat at a loss. Any help appreciated.
|
|
|
04-16-2014, 07:13 AM
|
#6
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by enorbet
Thanks for the responses so far but I'm more in favor of using a proper compositor than disabling Xfce's.
|
I am quite puzzled by that statement, since Compton is a proper compositor.
Anyways, I am also puzzled by the statement that you need extra dependencies for Kwin. Were did you get that list and have you just tried to run Kwin instead of xfwm4?
|
|
|
04-16-2014, 07:43 AM
|
#7
|
Member
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211
Rep:
|
Hello,
On my laptop, I use Xfce along with the Nvidia 304.xx legacy driver.
I had two choices to fix the tearing :
- Disable the xfwm4 compositor and live without compositing
- Use compton
I chose the latter.
I used this blog post to setup my box :
http://duncanlock.net/blog/2013/06/0...iting-in-xfce/
The author gives detailed steps and a sample of configuration file that was perfect for me.
The only dependency required for Compton outside the Slack repo is libconfig which is available on SBo.
The tearing used to piss me off when I was watching some movies in full screen.
Now that's a thing from the past
Last edited by Nh3xus; 04-16-2014 at 08:21 AM.
|
|
|
04-16-2014, 08:03 AM
|
#8
|
Senior Member
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052
|
Hello,
Quote:
Originally Posted by enorbet
Thanks for the responses so far but I'm more in favor of using a proper compositor than disabling Xfce's. I have GTX-760 nVidia w/ oem driver set to sync to VBlank and KDE works great but Xfce tears, especially on scrolling Firefox. I've read about Compton but Kwin seems a better choice of the two, though I've yet to see a set of dependencies to do so.
|
According to this thread, there are tearing issues with kepler nvidia gpu. I have an nvidia GT630 (kepler based), and I had this issue which can be, for most kepler user, solved by activating the attribute ForceFullCompositionPipeline.
Here is the nvidia configuration I use (i.e. /etc/X11/xorg.conf.d/10-nvidia.conf) :
Code:
# Important note about the attribute ForceFullCompositionPipeline
# ===============================================================
#
# Setting the attribute "ForceFullCompositionPipeline" to "On"
# solves the tearing issue on nvidia kepler based videocards.
#
# ATTENTION:
# ---------
# The use of ForceFullCompositionPipeline=On might reduce performance
# in some video-games. To avoid that, this attribute can be disabled
# using nvidia-settings before running any game as below :
#
# $ nvidia-settings --assign CurrentMetaMode="<CONNECTED_DEVICE> { ForceCompositionPipeline = Off }"
#
# <CONNECTED_DEVICE> must be replaced with the connected device
# returned by the command :
#
# $ xrandr | grep " connected"
#
# For instance, if running the command above returns :
#
# DVI-D-0 connected primary 1920x1080+0+0 ...
#
# Then, the string <CONNECTED_DEVICE> will be : "DVI-D-0: 1920x1080"
#
# Source: https://devtalk.nvidia.com/default/topic/543305
#
Section "Device"
Identifier "Device0"
Driver "Nvidia"
VendorName "Nvidia Corporation"
BoardName ""
Option "UseEdidDpi" "False"
Option "DPI" "120 x 120"
Option "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline=On }"
EndSection
Hope this helps.
--
SeB
|
|
1 members found this post helpful.
|
04-16-2014, 10:31 AM
|
#9
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979
Original Poster
|
@Tobi and anyone else who somehow took offense - I did not mean to imply that Compton was not a proper compositor. MY comparison was using a proper compositor versus turning off Xfce compositing (Sheeesh...people can be so defensive!) The only thing even vaguely negative about Compton was I prefer Kwin since I have it and I know it works great. That's all.
@phenixia2003 Thank you very much! +Rep. I wasn't aware of that issue and the solution works flawlessly. Although I still will mess with Kwin to see if this also solves the tearing issue while also bringing sweet config possibilities to Xfce, I'm marking this solved.
For those who want to see what I saw about dependencies, as well as what Kwin can do for Xfce, the best I saw was HERE though I don't care a hoot about wobbly windows and all that junk. This other guy is more complete about what Kwin can do but since he's installing on a minimalist distro with pacman/yaourt he doesn't select specifics but rather grabs the whole base as specced by his package manager. That's HERE
PS - I know I can use "kwin --replace" to just try it but I want it Xfce to use it by default and not replace each time and simply adding the xml string doesn't do it (Obviously I'm an xml newb)
PPS - BTW Kwin is smoother scrolling than the nVidia Kepler fix
Last edited by enorbet; 04-16-2014 at 10:42 AM.
|
|
|
04-16-2014, 10:55 AM
|
#10
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by enorbet
@Tobi and anyone else who somehow took offense
|
I did not take offense, sorry if it looked that way. I was just confused by your statements.
On a related note, tearing issues with xfwm4 should be fixed in xfwm4 4.11.0:
Quote:
- Add Vsync support for the compositor (bug #8898).
|
http://xfce.10915.n7.nabble.com/ANNO...d-td42382.html
|
|
|
04-16-2014, 12:47 PM
|
#11
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979
Original Poster
|
Quote:
Originally Posted by TobiSGD
|
OK. Cool. Thx for the heads-up.... better late than never. Maybe it will be just in time for Wayland
|
|
|
04-16-2014, 01:58 PM
|
#12
|
Member
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211
Rep:
|
Quote:
Originally Posted by enorbet
OK. Cool. Thx for the heads-up.... better late than never. Maybe it will be just in time for Wayland
|
Sadly, I don't think that the Xfce's team has the required man power to achieve a Wayland compatibility.
Don't get me wrong, I'm quite a fan of this DE.
But the GTK3 migration has been delayed so you know...
That would be great of course.
Btw, the 4.10 version of xfwm4 was patched by providing a vsync option in xfconf but this feature has never done the trick for me.
I might give the new xfwm4 compositor a try when it comes out from Pat, but my actual solution mentioned above makes me happy.
Well of course, YMMV depending on your choices
|
|
|
04-16-2014, 08:34 PM
|
#13
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979
Original Poster
|
Quote:
Originally Posted by Nh3xus
Sadly, I don't think that the Xfce's team has the required man power to achieve a Wayland compatibility.
Don't get me wrong, I'm quite a fan of this DE.
<snip>
|
I am both saddened and surprised to hear this. It is indeed a gem. I hope the team gets the support they need. I'll look into donating a bit.
|
|
|
All times are GMT -5. The time now is 02:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|