Re: [OpenIndiana-discuss] Nvidia 515 problem

2022-11-11 Thread Stephan Althaus

On 11/11/22 11:55, Andreas Wacknitz wrote:

Hi Stephan,

Thanks to your efforts and the provided patch I have been able to create
a fix for own xorg-server version:
https://github.com/OpenIndiana/oi-userland/pull/9858
as our server is still on 1.19.7 while the patch is for a newer 1.21.1
version an adaption was needed.

My desktop is already running on a newer NVIDIA driver with this patched
xorg.

Regards,
Andreas

Am 11.11.22 um 09:38 schrieb Stephan Althaus:

Hello!

After a little bit of looking around, i think it could be relatated to
a bug that occured first with 495.

Solutions are

1) to disable the compositing-Manager withing mate

[org.mate.Marco.general]
compositing-manager=false

or

gsettings set org.mate.Marco.general compositing-manager false

2) a patch for xorg.server. The proposed patch to present_scmd.c could
be modified to match present.c in OI-userland...

--- a/present/present_scmd.c    2022-02-08 09:38:39.322128250 +0100
+++ b/present/present_scmd.c    2022-02-08 09:40:30.205857503 +0100
@@ -167,6 +167,9 @@
 {
 if (!screen_priv->info)
 return NULL;
+
+    if (!screen_priv->info->get_crtc)
+    return NULL;

 return (*screen_priv->info->get_crtc)(window);
 }
@@ -205,6 +208,9 @@

 if (!screen_priv->info)
 return;
+
+    if (!screen_priv->info->flush)
+    return;

 (*screen_priv->info->flush) (window);
 }


i will check 1) when i have the time to reboot,
maybe 2) in the next days..


Stephan
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Hi!

I am glad i was able to help.

This was just a very tiny stone in the OI universe.

Thanks a lot for your immense contributions to OI, Andreas!

Stephan


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Nvidia 515 problem

2022-11-11 Thread Andreas Wacknitz

Hi Stephan,

Thanks to your efforts and the provided patch I have been able to create
a fix for own xorg-server version:
https://github.com/OpenIndiana/oi-userland/pull/9858
as our server is still on 1.19.7 while the patch is for a newer 1.21.1
version an adaption was needed.

My desktop is already running on a newer NVIDIA driver with this patched
xorg.

Regards,
Andreas

Am 11.11.22 um 09:38 schrieb Stephan Althaus:

Hello!

After a little bit of looking around, i think it could be relatated to
a bug that occured first with 495.

Solutions are

1) to disable the compositing-Manager withing mate

[org.mate.Marco.general]
compositing-manager=false

or

gsettings set org.mate.Marco.general compositing-manager false

2) a patch for xorg.server. The proposed patch to present_scmd.c could
be modified to match present.c in OI-userland...

--- a/present/present_scmd.c    2022-02-08 09:38:39.322128250 +0100
+++ b/present/present_scmd.c    2022-02-08 09:40:30.205857503 +0100
@@ -167,6 +167,9 @@
 {
 if (!screen_priv->info)
 return NULL;
+
+    if (!screen_priv->info->get_crtc)
+    return NULL;

 return (*screen_priv->info->get_crtc)(window);
 }
@@ -205,6 +208,9 @@

 if (!screen_priv->info)
 return;
+
+    if (!screen_priv->info->flush)
+    return;

 (*screen_priv->info->flush) (window);
 }


i will check 1) when i have the time to reboot,
maybe 2) in the next days..


Stephan
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Nvidia 515 problem

2022-11-11 Thread Stephan Althaus

On 11/11/22 09:38, Stephan Althaus wrote:

Hello!

After a little bit of looking around, i think it could be relatated to 
a bug that occured first with 495.


Solutions are

1) to disable the compositing-Manager withing mate

[org.mate.Marco.general]
compositing-manager=false

or

gsettings set org.mate.Marco.general compositing-manager false

2) a patch for xorg.server. The proposed patch to present_scmd.c could 
be modified to match present.c in OI-userland...


--- a/present/present_scmd.c    2022-02-08 09:38:39.322128250 +0100
+++ b/present/present_scmd.c    2022-02-08 09:40:30.205857503 +0100
@@ -167,6 +167,9 @@
 {
 if (!screen_priv->info)
 return NULL;
+
+    if (!screen_priv->info->get_crtc)
+    return NULL;

 return (*screen_priv->info->get_crtc)(window);
 }
@@ -205,6 +208,9 @@

 if (!screen_priv->info)
 return;
+
+    if (!screen_priv->info->flush)
+    return;

 (*screen_priv->info->flush) (window);
 }


i will check 1) when i have the time to reboot,
maybe 2) in the next days..


Stephan
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Hello!

I have a running mate session on nvidia 515

I did this:

Disable Composite setting in xorg.conf

Section "Extensions"
    Option "Composite" "Disable"
EndSection

Disable the compositing-Manager withing mate

[org.mate.Marco.general]
compositing-manager=false

gsettings set org.mate.Marco.general compositing-manager false

i started X manually, killed twm an startet mate-session..

On next reboot we will see if it works out-of-the-box with lightdm..


Stephan



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Nvidia 515 problem

2022-11-11 Thread Stephan Althaus

Hello!

After a little bit of looking around, i think it could be relatated to a 
bug that occured first with 495.


Solutions are

1) to disable the compositing-Manager withing mate

[org.mate.Marco.general]
compositing-manager=false

or

gsettings set org.mate.Marco.general compositing-manager false

2) a patch for xorg.server. The proposed patch to present_scmd.c could 
be modified to match present.c in OI-userland...


--- a/present/present_scmd.c2022-02-08 09:38:39.322128250 +0100
+++ b/present/present_scmd.c2022-02-08 09:40:30.205857503 +0100
@@ -167,6 +167,9 @@
 {
 if (!screen_priv->info)
 return NULL;
+
+if (!screen_priv->info->get_crtc)
+return NULL;
 
 return (*screen_priv->info->get_crtc)(window);

 }
@@ -205,6 +208,9 @@
 
 if (!screen_priv->info)

 return;
+
+if (!screen_priv->info->flush)
+return;
 
 (*screen_priv->info->flush) (window);

 }


i will check 1) when i have the time to reboot,
maybe 2) in the next days..


Stephan
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss