Bug 151137 - [patch] x11-wm/compiz compiz-manager
Summary: [patch] x11-wm/compiz compiz-manager
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stephen Montgomery-Smith
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 11:40 UTC by Ivan Klymenko
Modified: 2011-07-12 06:30 UTC (History)
0 users

See Also:


Attachments
patch-compiz-manager.in (871 bytes, application/octet-stream)
2010-10-01 11:47 UTC, Ivan Klymenko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Klymenko 2010-10-01 11:40:04 UTC
compiz-manager script not correct detected memory size nvidia card...

Fix: 

see patch
Comment 1 Jilles Tjoelker freebsd_committer freebsd_triage 2010-10-01 14:34:45 UTC
Responsible Changed
From-To: freebsd-bugs->rnoland

Ports PR.
Comment 2 Ivan Klymenko 2010-12-06 19:28:38 UTC
Please add my patch, it is edible :-)
Comment 3 Thomas Abthorpe freebsd_committer freebsd_triage 2011-07-05 04:13:13 UTC
Responsible Changed
From-To: rnoland->freebsd-ports-bugs

Reassign to the heap
Comment 4 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-10 01:23:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stephen

I'll have a go with this.
Comment 5 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-10 04:17:19 UTC
State Changed
From-To: open->feedback

I cannot get compiz to work, and I have questions.
Comment 6 Stephen Montgomery-Smith 2011-07-10 04:24:41 UTC
Dear Ivan,

I have been trying to get this port to work, with your changes.

First, this port seems to require glxinfo (from graphics/mesa-demos) and 
nvidia-settings to work.  So they need to be part of RUN_DEPENDS.

But even then, when I try it out on my computer (which has a 
NVIDIA-7600, so I think I should see something), I don't get all the 
nice 3D effects - instead my window manager stops working.

What else do I need to do to make this work?  If I can get this working 
on my computer, then I will commit it.

When I ran compiz-manager from my terminal, I got the following 
messages.  I don't know if this will help diagnose anything.

Checking for Xgl: not present.
xset q doesn't reveal the location of the log file. Using fallback 
/var/log/Xorg.0.log
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1280x1024) to maximum 3D texture size (4096): Passed.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting gtk-window-decorator
Comment 7 Ivan Klymenko 2011-07-10 09:39:06 UTC
=D0=92 Sat, 09 Jul 2011 22:24:41 -0500
Stephen Montgomery-Smith <stephen@missouri.edu> =D0=BF=D0=B8=D1=88=D0=B5=D1=
=82:

> Dear Ivan,
>=20
> I have been trying to get this port to work, with your changes.
>=20
> First, this port seems to require glxinfo (from graphics/mesa-demos)
> and nvidia-settings to work.  So they need to be part of RUN_DEPENDS.

Maybe ...
I have not tried to fix the whole port, I only corrected the path to
the library GL (with regard to his work with graphics cards from
nvidia (/usr/ports/x11/nvidia-driver*) ) and correct detection of video RAM.

original version:
# nvidia-settings -q VideoRam | egrep Attribute\ \'VideoRam\'\ .*: | cut -d=
: -f3 | sed 's/[^0-9]//g'
egrep: No match.


with my changes:
# nvidia-settings -q VideoRam | grep "Attribute 'VideoRam'" | cut -d: -f3 |=
 sed 's/[^0-9]//g'=20
262144


>=20
> But even then, when I try it out on my computer (which has a=20
> NVIDIA-7600, so I think I should see something), I don't get all the=20
> nice 3D effects - instead my window manager stops working.
>=20
> What else do I need to do to make this work?  If I can get this
> working on my computer, then I will commit it.

I do not know how to help you ...

It is possible to look for files with names like compiz_crash-<pid proc>.ou=
t and to investigate what caused damage

>=20
> When I ran compiz-manager from my terminal, I got the following=20
> messages.  I don't know if this will help diagnose anything.
>=20
> Checking for Xgl: not present.
> xset q doesn't reveal the location of the log file. Using fallback=20
> /var/log/Xorg.0.log
> Checking for texture_from_pixmap: present.
> Checking for non power of two support: present.
> Checking for Composite extension: present.
> Comparing resolution (1280x1024) to maximum 3D texture size (4096):
> Passed. Checking for nVidia: present.
> Checking for FBConfig: present.
> Checking for Xgl: not present.
> Starting gtk-window-decorator
>=20
>=20
Comment 8 Stephen Montgomery-Smith 2011-07-10 15:55:26 UTC
Ivan,

Did you get compiz to work on your computer?  Or did you just correct 
these two errors?  (And I agree that they are good fixes.)

Thanks, Stephen
Comment 9 Ivan Klymenko 2011-07-10 16:17:02 UTC
=D0=92 Sun, 10 Jul 2011 09:55:26 -0500
Stephen Montgomery-Smith <stephen@missouri.edu> =D0=BF=D0=B8=D1=88=D0=B5=D1=
=82:

> Ivan,
>=20
> Did you get compiz to work on your computer?  Or did you just correct=20
> these two errors?  (And I agree that they are good fixes.)
>=20
> Thanks, Stephen
>=20
>=20
compiz works for me anyway
and i use it long enough.

http://www.youtube.com/watch?v=3DQ7lbMR8Gc28
http://www.youtube.com/watch?v=3D2pzZl8AKhMI
Comment 10 Stephen Montgomery-Smith 2011-07-10 16:27:22 UTC
On 07/10/2011 10:17 AM, Ivan Klymenko wrote:
> Ð Sun, 10 Jul 2011 09:55:26 -0500
> Stephen Montgomery-Smith<stephen@missouri.edu>  пиÑеÑ:
>
>> Ivan,
>>
>> Did you get compiz to work on your computer?  Or did you just correct
>> these two errors?  (And I agree that they are good fixes.)
>>
>> Thanks, Stephen
>>
>>
> compiz works for me anyway
> and i use it long enough.
>
> http://www.youtube.com/watch?v=Q7lbMR8Gc28
> http://www.youtube.com/watch?v=2pzZl8AKhMI


Are you using "emerald" instead of "gtk-windowdresser"?  That might be 
what is making it work for you.  I'll try emerald later today.
Comment 11 Ivan Klymenko 2011-07-10 16:52:13 UTC
=D0=92 Sun, 10 Jul 2011 10:27:22 -0500
Stephen Montgomery-Smith <stephen@missouri.edu> =D0=BF=D0=B8=D1=88=D0=B5=D1=
=82:

> On 07/10/2011 10:17 AM, Ivan Klymenko wrote:
> > =D0=92 Sun, 10 Jul 2011 09:55:26 -0500
> > Stephen Montgomery-Smith<stephen@missouri.edu>  =D0=BF=D0=B8=D1=88=D0=
=B5=D1=82:
> >
> >> Ivan,
> >>
> >> Did you get compiz to work on your computer?  Or did you just
> >> correct these two errors?  (And I agree that they are good fixes.)
> >>
> >> Thanks, Stephen
> >>
> >>
> > compiz works for me anyway
> > and i use it long enough.
> >
> > http://www.youtube.com/watch?v=3DQ7lbMR8Gc28
> > http://www.youtube.com/watch?v=3D2pzZl8AKhMI
>=20
>=20
> Are you using "emerald" instead of "gtk-windowdresser"?  That might
> be what is making it work for you.  I'll try emerald later today.
>=20
>=20

I used the compiz with different windows decorators...
now I use emerald (it is used by default in compiz-manager script)
...
# Use emerald by default if it exist
USE_EMERALD=3D"yes"
...

gtk-window-decorator used previously wrote for this option in ccsm
"gtk-window-decorator --replace" in windows decorator command and
USE_EMERALD=3D"no" in compiz-manager script...
Comment 12 Stephen Montgomery-Smith 2011-07-10 16:56:47 UTC
On 07/10/2011 10:52 AM, Ivan Klymenko wrote:
> Ð Sun, 10 Jul 2011 10:27:22 -0500
> Stephen Montgomery-Smith<stephen@missouri.edu>  пиÑеÑ:
>
>> On 07/10/2011 10:17 AM, Ivan Klymenko wrote:
>>> Ð Sun, 10 Jul 2011 09:55:26 -0500
>>> Stephen Montgomery-Smith<stephen@missouri.edu>   пиÑеÑ:
>>>
>>>> Ivan,
>>>>
>>>> Did you get compiz to work on your computer?  Or did you just
>>>> correct these two errors?  (And I agree that they are good fixes.)
>>>>
>>>> Thanks, Stephen
>>>>
>>>>
>>> compiz works for me anyway
>>> and i use it long enough.
>>>
>>> http://www.youtube.com/watch?v=Q7lbMR8Gc28
>>> http://www.youtube.com/watch?v=2pzZl8AKhMI
>>
>>
>> Are you using "emerald" instead of "gtk-windowdresser"?  That might
>> be what is making it work for you.  I'll try emerald later today.
>>
>>
>
> I used the compiz with different windows decorators...
> now I use emerald (it is used by default in compiz-manager script)

Yes, but it won't use emerald unless it is installed.  And I wouldn't 
have thought to install it without having seen your youtube videos.

Anyway, I'm going to go ahead and commit your partial fixes.  But maybe 
we can continue this discussion and decide what RUN_DEPENDS we need to add.
Comment 13 Ivan Klymenko 2011-07-10 17:03:35 UTC
=D0=92 Sun, 10 Jul 2011 10:56:47 -0500
Stephen Montgomery-Smith <stephen@missouri.edu> =D0=BF=D0=B8=D1=88=D0=B5=D1=
=82:

> Yes, but it won't use emerald unless it is installed.  And I wouldn't=20
> have thought to install it without having seen your youtube videos.
>=20
> Anyway, I'm going to go ahead and commit your partial fixes.  But
> maybe we can continue this discussion and decide what RUN_DEPENDS we
> need to add.
ok.

may add an default option:
WITH_EMERALD=3Dtrue
Comment 14 Stephen Montgomery-Smith 2011-07-10 19:46:20 UTC
On 07/10/2011 11:03 AM, Ivan Klymenko wrote:
> Ð Sun, 10 Jul 2011 10:56:47 -0500
> Stephen Montgomery-Smith<stephen@missouri.edu>  пиÑеÑ:
>
>> Yes, but it won't use emerald unless it is installed.  And I wouldn't
>> have thought to install it without having seen your youtube videos.
>>
>> Anyway, I'm going to go ahead and commit your partial fixes.  But
>> maybe we can continue this discussion and decide what RUN_DEPENDS we
>> need to add.
> ok.
>
> may add an default option:
> WITH_EMERALD=true

I cannot do that because compiz is a dependency of emerald, and this 
would create a loop in the dependencies.  And anyway, installing emerald 
didn't fix it for me.  If you ever work out what else is needed to make 
it work, email me or submit another PR.

So I think I will just stick with adding

RUN_DEPENDS=    glxinfo:${PORTSDIR}/graphics/mesa-demos \
                 nvidia-settings:${PORTSDIR}/x11/nvidia-settings
Comment 15 dfilter service freebsd_committer freebsd_triage 2011-07-12 06:28:06 UTC
stephen     2011-07-12 05:27:57 UTC

  FreeBSD ports repository

  Modified files:
    x11-wm/compiz        Makefile pkg-message 
    x11-wm/compiz/files  compiz-manager.in 
  Log:
  - Fix compiz-manager script to work with Nvidia graphics card.
  - Add run_depends needed by compiz-manager script.
  - Portlint.
  - Bump portrevision.
  
  PR:             ports/151137
  Submitted by:   Ivan Klymenko <fidaj@ukr.net>
  Approved by:    gabor (mentor)
  
  Revision  Changes    Path
  1.31      +4 -3      ports/x11-wm/compiz/Makefile
  1.2       +2 -2      ports/x11-wm/compiz/files/compiz-manager.in
  1.2       +0 -1      ports/x11-wm/compiz/pkg-message
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 16 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-12 06:28:46 UTC
State Changed
From-To: feedback->closed

Committed, thanks.