SavingGoogleCode / tint2

tint2 is a lightweight panel/taskbar.
GNU General Public License v2.0
0 stars 0 forks source link

tint2 doesn't render on debian multi-head fglrx #353

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install fglrx
2. execute "tint2"

What is the expected output: tint2 taskbar

What do you see instead:
black bars in the right dimension and position. The taskbar is functional too 
(when I right-click where a window button should be it tries to close that 
window)

output:

uke@Wheatley:~$ tint2
real transparency off.... depth: 24
xRandr: Found crtc's: 3
xRandr: Linking output DFP4 with crtc 0
xRandr: Linking output CRT2 with crtc 1
tint2 : nb monitor 3, nb monitor used 3, nb desktop 4
tint2 : not icon_swallow
tint2 : not icon_swallow
tint2 : not icon_swallow
^C

What version of the product are you using? On what operating system?

luke@Wheatley:~$ aptitude show tint2
Paket: tint2                                
Zustand: Installiert
Automatisch installiert: nein
Version: 0.11+svn20110307-1
luke@Wheatley:~$ cat /proc/version 
Linux version 2.6.38-2-686-bigmem (Debian 2.6.38-5) (ben@decadent.org.uk) (gcc 
version 4.4.6 (Debian 4.4.6-3) ) #1 SMP Sun May 8 15:43:39 UTC 2011
luke@Wheatley:~$ cat /etc/issue
Debian GNU/Linux wheezy/sid \n \l
luke@Wheatley:~$ aptitude show xserver-xorg-video-radeon
Paket: xserver-xorg-video-radeon            
Zustand: Installiert
Automatisch installiert: ja
Version: 1:6.14.2-1

Please provide any additional information below.

Seems only to happen since I installed fglrx. I'd go back to drm or mesa to 
test it, but it's too complicated and I don't want to fuck up my system...

Original issue reported on code.google.com by l.erlac...@gmail.com on 9 Jun 2011 at 5:10

Attachments:

GoogleCodeExporter commented 9 years ago
The same occurs for me with radeon (open source driver), not fglrx closed one.

Original comment by xiterrex@gmail.com on 24 Oct 2011 at 1:53

GoogleCodeExporter commented 9 years ago
same here since Ubuntu 12.04 upgrade yesterday

Original comment by zbo...@gmail.com on 27 Apr 2012 at 11:54

GoogleCodeExporter commented 9 years ago
Same issue over here, 11.10 xubuntu x64, open source driver.

Original comment by infin...@cybershade.org on 5 May 2012 at 4:06

GoogleCodeExporter commented 9 years ago
confirmed with a fresh 12.04 (x64) install on a new hard drive. Same PC 
demonstrated the same problem after updating 11.10 (i386) to 12.04.

Original comment by zbo...@gmail.com on 5 May 2012 at 4:58

GoogleCodeExporter commented 9 years ago
Here is a patch.
It seems XRRGetScreenResourcesCurrent() returns a fantom monitor on some 
configs.

--- tint2-read-only/src/server.c    2012-06-25 16:25:35.712224880 +0200
+++ tint2-dev/src/server.c  2012-06-25 16:18:55.539307027 +0200
@@ -280,6 +280,10 @@
                server.monitor[i].width = crtc_info->width;
                server.monitor[i].height = crtc_info->height;
                server.monitor[i].names = malloc((crtc_info->noutput+1) * sizeof(char*));
+               // on some recent configs, XRRGetScreenResourcesCurrent returns a fantom 
monitor at last position
+               if ( !(crtc_info->x|crtc_info->y|crtc_info->width|crtc_info->height) && 
(i==res->ncrtc-1)) {
+                   res->ncrtc -= 1;
+               }
                for (j=0; j<crtc_info->noutput; ++j) {
                    XRROutputInfo* output_info = XRRGetOutputInfo(server.dsp, res, crtc_info->outputs[j]);
                    printf("xRandr: Linking output %s with crtc %d\n", output_info->name, i);

Original comment by Boris.Ha...@gmail.com on 25 Jun 2012 at 2:27

GoogleCodeExporter commented 9 years ago
i have build tint2 with this patch but unfortunately i still observe this 
behavior, e.g. tint2 reserves space and reacts to interaction but is fully 
transparent (because compositing is enabled, otherwise it's black square).

This is the output from tint:

real transparency on... depth: 32
xRandr: Found crtc's: 3
xRandr: Linking output HDMI2 with crtc 1
xRandr: Linking output HDMI3 with crtc 2
tint2 : nb monitor 3, nb monitor used 3, nb desktop 6
icon with depth: 24
tint2 : not icon_swallow

What can i do to help debug the issue? // this is Arch with Openbox, notebook 
on a docking stating set up via XRandr.

Original comment by e.yunak on 10 Sep 2012 at 3:23

GoogleCodeExporter commented 9 years ago
In my case, they were all equal to 0 for the last (non-existent) detected 
monitor.
Seeing that you use HDMI2 and HDMI3, maybe in your case it is the first monitor 
that is wrongly detected.

To help, you should try to add a debug print on the following values :
crtc_info->x
crtc_info->y
crtc_info->width
crtc_info->height

Original comment by Boris.Ha...@gmail.com on 10 Sep 2012 at 3:41

GoogleCodeExporter commented 9 years ago
after upgrading to Ubuntu 12.10 (and the new tint2 package), I had the same 
problem. Fixed after building tint2 from source with the patch listed in 
comment #5

Original comment by Boris.Ha...@gmail.com on 24 Oct 2012 at 1:25

GoogleCodeExporter commented 9 years ago
had to do it again after upgrading to 13.04

Original comment by Boris.Ha...@gmail.com on 26 Apr 2013 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by mrovi9...@gmail.com on 21 Jan 2015 at 11:27

GoogleCodeExporter commented 9 years ago
Patch applied in r663, thank you!

Original comment by mrovi9...@gmail.com on 22 Jan 2015 at 12:13