Bug 392863 - KWin does not recognize my macbook pro graphics card
Summary: KWin does not recognize my macbook pro graphics card
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: glx (show other bugs)
Version: 5.12.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-08 08:40 UTC by Filipe Azevedo
Modified: 2018-04-09 15:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe Azevedo 2018-04-08 08:40:46 UTC
I have a macbook pro (11.3 version if i recall, the hardware, not the OS version) with a 64bits linux distribution natively installed on it and for some reason kwin does not recognize the nvidia graphics card.
Sometimes, after some minutes i can enable desktop effects using Alt+Shift+F12, still kwin always report unknow gl vendor/version etc in the console.
I tried to build myself kwin to add support for it without succes.
For some reason the gl calls (proxied from the libepoxy) return null strings and even trying to force intialization of those variable manually in code does not help.
Is there any chance to see kwin / gl working correctly on a mac with non free drivers ? (I can't use nouveau as it regulary freeze desktop).

Here are the details:

- lspci | grep NVIDIA:
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 750M Mac Edition] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)

- pasnox  ~  la /usr/lib/*nvidia*
lrwxrwxrwx 1 root root       18 28.03.2018 20:50 /usr/lib/libEGL_nvidia.so -> libEGL_nvidia.so.0*
lrwxrwxrwx 1 root root       23 28.03.2018 20:50 /usr/lib/libEGL_nvidia.so.0 -> libEGL_nvidia.so.390.48*
-rwxr-xr-x 1 root root   918552 28.03.2018 20:50 /usr/lib/libEGL_nvidia.so.390.48*
lrwxrwxrwx 1 root root       18 28.03.2018 20:50 /usr/lib/libnvidia-cfg.so -> libnvidia-cfg.so.1*
lrwxrwxrwx 1 root root       23 28.03.2018 20:50 /usr/lib/libnvidia-cfg.so.1 -> libnvidia-cfg.so.390.48*
-rwxr-xr-x 1 root root   190760 28.03.2018 20:50 /usr/lib/libnvidia-cfg.so.390.48*
lrwxrwxrwx 1 root root       27 28.03.2018 20:50 /usr/lib/libnvidia-eglcore.so -> libnvidia-eglcore.so.390.48*
-rwxr-xr-x 1 root root 27456672 28.03.2018 20:50 /usr/lib/libnvidia-eglcore.so.390.48*
lrwxrwxrwx 1 root root       26 28.03.2018 20:50 /usr/lib/libnvidia-egl-wayland.so -> libnvidia-egl-wayland.so.1*
lrwxrwxrwx 1 root root       30 28.03.2018 20:50 /usr/lib/libnvidia-egl-wayland.so.1 -> libnvidia-egl-wayland.so.1.0.2*
-rwxr-xr-x 1 root root    31976 28.03.2018 20:50 /usr/lib/libnvidia-egl-wayland.so.1.0.2*
lrwxrwxrwx 1 root root       35 28.03.2018 20:50 /usr/lib/libnvidia-fatbinaryloader.so -> libnvidia-fatbinaryloader.so.390.48*
-rwxr-xr-x 1 root root   291496 28.03.2018 20:50 /usr/lib/libnvidia-fatbinaryloader.so.390.48*
lrwxrwxrwx 1 root root       26 28.03.2018 20:50 /usr/lib/libnvidia-glcore.so -> libnvidia-glcore.so.390.48*
-rwxr-xr-x 1 root root 29256232 28.03.2018 20:50 /usr/lib/libnvidia-glcore.so.390.48*
lrwxrwxrwx 1 root root       24 28.03.2018 20:50 /usr/lib/libnvidia-glsi.so -> libnvidia-glsi.so.390.48*
-rwxr-xr-x 1 root root   554776 28.03.2018 20:50 /usr/lib/libnvidia-glsi.so.390.48*
-rwxr-xr-x 1 root root  1472040 28.03.2018 20:52 /usr/lib/libnvidia-gtk2.so.390.48*
-rwxr-xr-x 1 root root  1479400 28.03.2018 20:52 /usr/lib/libnvidia-gtk3.so.390.48*
lrwxrwxrwx 1 root root       17 28.03.2018 20:50 /usr/lib/libnvidia-ml.so -> libnvidia-ml.so.1*
lrwxrwxrwx 1 root root       22 28.03.2018 20:50 /usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.390.48*
-rwxr-xr-x 1 root root  1310336 28.03.2018 20:50 /usr/lib/libnvidia-ml.so.390.48*
lrwxrwxrwx 1 root root       23 28.03.2018 20:50 /usr/lib/libnvidia-tls.so -> libnvidia-tls.so.390.48*
-rwxr-xr-x 1 root root    14480 28.03.2018 20:50 /usr/lib/libnvidia-tls.so.390.48*
Comment 1 Filipe Azevedo 2018-04-08 08:42:32 UTC
Note that glxinfo and glxgears report correct vendor/version gl strings and everything using opengl is accelerated correctly, but kwin
Comment 2 Martin Flöser 2018-04-08 14:34:33 UTC
Which distribution and which version of libepoxy do you use?
Comment 3 Filipe Azevedo 2018-04-08 16:34:21 UTC
That's KaOS up-to-date, arguing the cutting edge approach of the distribution, should be a very recent if not latest version of libepoxy.
Comment 4 Martin Flöser 2018-04-08 18:14:21 UTC
The latest version of libepoxy has unfortunately a bug making it incompatible with Nvidia. Distributions are informed about the issue and are advised to not upgrade before the issue is fixed
Comment 5 Filipe Azevedo 2018-04-09 14:42:27 UTC
From my package manager, libepoxy is 1.5.0-1, is this the one impacted ?
Comment 6 Rex Dieter 2018-04-09 15:31:00 UTC
Yes,

see also:
https://github.com/anholt/libepoxy/issues/160
Comment 7 Filipe Azevedo 2018-04-09 15:47:40 UTC
Reverting the lib name change in libepoxy and rebuilding the package fixed the issue on reboot.
thank you!