LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2014, 06:23 PM   #1
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979

Rep: Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614
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
 
Old 04-15-2014, 06:48 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 04-15-2014, 07:03 PM   #3
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
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.
 
Old 04-15-2014, 10:26 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
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.
 
Old 04-16-2014, 04:17 AM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979

Original Poster
Rep: Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614
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.
 
Old 04-16-2014, 07:13 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by enorbet View Post
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?
 
Old 04-16-2014, 07:43 AM   #7
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
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.
 
Old 04-16-2014, 08:03 AM   #8
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Hello,

Quote:
Originally Posted by enorbet View Post
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.
Old 04-16-2014, 10:31 AM   #9
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979

Original Poster
Rep: Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614
@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.
 
Old 04-16-2014, 10:55 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by enorbet View Post
@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
 
Old 04-16-2014, 12:47 PM   #11
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979

Original Poster
Rep: Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614
Quote:
Originally Posted by TobiSGD View Post
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:http://xfce.10915.n7.nabble.com/ANNO...d-td42382.html
OK. Cool. Thx for the heads-up.... better late than never. Maybe it will be just in time for Wayland
 
Old 04-16-2014, 01:58 PM   #12
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
Quote:
Originally Posted by enorbet View Post
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
 
Old 04-16-2014, 08:34 PM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,979

Original Poster
Rep: Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614Reputation: 4614
Quote:
Originally Posted by Nh3xus View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking websites - preferred method? linuxbird Linux - Networking 9 05-21-2010 10:24 AM
Want to know preferred method of Slackware 13 installation, CD or DVD MonkfishAlchemist Slackware - Installation 4 02-16-2010 03:08 PM
Tearing effects when moving windows around in Slackware64 current Feinom Slackware 6 06-08-2009 08:15 PM
Preferred method to deploy RHEL driver for new device nickolais Red Hat 2 01-22-2009 06:15 PM
xfce flickering problem after 2006-02-10 slack-current upgrade firebird Slackware 2 04-08-2006 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration