Bug 18206 - Environment corrupted with nvidia340
Summary: Environment corrupted with nvidia340
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-14 19:46 CEST by Martin Volf
Modified: 2017-04-15 10:47 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
journalctl.txt (96.76 KB, text/plain)
2016-04-14 19:47 CEST, Martin Volf
Details
Xorg.0.log.txt (24.06 KB, text/x-log)
2016-04-14 19:48 CEST, Martin Volf
Details
nvidia-bug-report.sh (65.05 KB, application/gzip)
2016-04-14 19:52 CEST, Martin Volf
Details

Description Martin Volf 2016-04-14 19:46:25 CEST
Description of problem:
After fresh MGA5 64bit installation, update and setting of the proportional driver nvidia340 is KDE4 damaged after reboot and login.
After login to KDE4 the background is black, crash of KDEInit (warnings), Dolphin does not open home folder.

This trouble does not come with nouveau driver.

Possible cause:
In logs you can find incorrect UID=0 for the user "jiira" with nvidia driver, if nouveau is used, then UID=1000. 

Version-Release number of selected component (if applicable):
# rpm -qa|grep nvidia|sort
dkms-nvidia340-340.96-1.mga5.nonfree
nvidia340-doc-html-340.96-1.mga5.nonfree
nvidia340-kernel-desktop-latest-340.96-1.mga5.nonfree
nvidia340-kernel-3.19.8-desktop-3.mga5-340.76-27.mga5.nonfree
nvidia340-kernel-4.1.15-desktop-2.mga5-340.96-1.mga5.nonfree
x11-driver-video-nvidia340-340.96-1.mga5.nonfree

Hardware:
# lspcidrake -v
Card:NVIDIA GeForce 8100 to GeForce 415: NVIDIA Corporation|C77 [GeForce 8200M G] [DISPLAY_VGA] (vendor:10de device:0845 subv:103c subd:360a) (rev: a2)

How reproducible:
always after nvidia prop. driver installation and set as default (MCC/konsole - drakx11)

Steps to Reproduce:
1. install MGA5 64bit
2. set tainted and nonfree mirrors and update system
3. install nvidia340 driver
4. reboot the system and log in to KDE4
5. KDE4 crashes
6. go to drakx11 and set nouveau driver
7. reboot, KDE4 works well

Please find attached logs below. All files have been created after crash and switched into tty2.
Comment 1 Martin Volf 2016-04-14 19:47:35 CEST
Created attachment 7669 [details]
journalctl.txt
Comment 2 Martin Volf 2016-04-14 19:48:19 CEST
Created attachment 7670 [details]
Xorg.0.log.txt
Comment 3 Martin Volf 2016-04-14 19:52:19 CEST
Created attachment 7671 [details]
nvidia-bug-report.sh
Comment 4 Marja Van Waes 2016-04-15 13:01:03 CEST
does it reoccur if you select the NVidia driver again?

Asking because of:
 https://wiki.mageia.org/en/Mageia_5_Errata#X_might_fail_to_start_for_nvidia_graphics_cards_using_nvidia340_driver_.28GeForce_8100_to_GeForce_415.29

Keywords: (none) => NEEDINFO
CC: (none) => doktor5000, marja11

Comment 5 Martin Volf 2016-04-23 08:47:35 CEST
Thanks Marja, we have tested it again and now the driver nvidia works. The command init 3 in tty2 is important.

Now we have a trouble with kwin effects, which causes screen tearing and corruption. Dolphin etc. works. LXDE with nvidia works fine. Nouveau driver works well for all environments. But it is an other issue.

Closing this bug. Reopen if needed.

Keywords: NEEDINFO => (none)
Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 6 Martin Volf 2016-04-23 13:10:52 CEST
Reopening, crashes back in LXDE with nvidia340 too.

Run glxgears crashes immediatelly.

We have tried in xorg.conf these option:
Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers#No_vertical_synchronization_.28no_VSync.2C_tearing.29_in_OpenGL_applications

and tested as well in /etc/modprobe.d/nvidia.conf:
blacklist nouveau
options nvidia NVreg_EnableMSI=0

https://bbs.archlinux.org/viewtopic.php?pid=1310966#p1310966

but does not help.

With nouveau driver no crashes.

I am interest, if somebody has the same troubles with this card and nvidia340.

Keywords: (none) => NEEDINFO
Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Martin Volf 2016-04-23 13:13:51 CEST

Summary: Environment corrupted with nvidia340 - wrong UID? => Environment corrupted with nvidia340

Comment 7 Martin Volf 2016-04-30 12:38:00 CEST
Finally, we have a solution.

At tty2, init 3 under root, drakx11 (MCC also) wants to install a driver nvidia340 for the tested NVIDIA GeForce 8200M G, means these packages:

nvidia340-kernel-4.1.15-desktop-2
x11-driver-video-nvidia340-340.96
dkms-nvidia340

and next dependencies. After reboot, environment crashes after during work on the computer.

Workaround - install nvidia304 manually (MCC doesn't choose it)- this card is supported by this driver as well (see nVidia webpage):
- go to tty2 (CTRL+ATL+F3 or F4 etc.)
$ su
# init 3
# urpme x11-driver-video-nvidia340 dkms-nvidia340
# urpmi x11-driver-video-nvidia304         ### will download all dependencies
# urpmi dkms-nvidia304        ### install it at last! It will configure the driver
# cat /etc/X11/xorg.conf      ### check a line "Driver "nvidia"",if "nouveau",use mc, rewrite the file and save
# reboot

Then, all works fine - tested with glxgears, glxspheres64, GPU Benchmarks.

FYI: we compared xorg.conf of nvidia340 with nvidia304 and it looks the same.

Regards
yullaw

Closing. Please reopen if needed. Please add the solution to wiki page, if neccessary.

Thanks.

Keywords: NEEDINFO => (none)
Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 8 Martin Volf 2016-04-30 12:39:27 CEST
Finally, we have a solution.

At tty2, init 3 under root, drakx11 (MCC also) wants to install a driver nvidia340 for the tested NVIDIA GeForce 8200M G, means these packages:

nvidia340-kernel-4.1.15-desktop-2
x11-driver-video-nvidia340-340.96
dkms-nvidia340

and next dependencies. After reboot, environment crashes after during work on the computer.

Workaround - install nvidia304 manually (MCC doesn't choose it)- this card is supported by this driver as well (see nVidia webpage):
- go to tty2 (CTRL+ATL+F3 or F4 etc.)
$ su
# init 3
# urpme x11-driver-video-nvidia340 dkms-nvidia340
# urpmi x11-driver-video-nvidia304         ### will download all dependencies
# urpmi dkms-nvidia304        ### install it at last! It will configure the driver
# cat /etc/X11/xorg.conf      ### check a line "Driver "nvidia"",if "nouveau",use mc, rewrite the file and save
# reboot

Then, all works fine - tested with glxgears, glxspheres64, GPU Benchmarks.

FYI: we compared xorg.conf of nvidia340 with nvidia304 and it looks the same.

Regards
yullaw

Closing. Please reopen if needed. Please add the solution to wiki page, if neccessary.

Thanks.
Comment 9 Martin Volf 2016-04-30 12:40:23 CEST
Finally, we have a solution.

At tty2, init 3 under root, drakx11 (MCC also) wants to install a driver nvidia340 for the tested NVIDIA GeForce 8200M G, means these packages:

nvidia340-kernel-4.1.15-desktop-2
x11-driver-video-nvidia340-340.96
dkms-nvidia340

and next dependencies. After reboot, environment crashes after during work on the computer.

Workaround - install nvidia304 manually (MCC doesn't choose it)- this card is supported by this driver as well (see nVidia webpage):
- go to tty2 (CTRL+ATL+F3 or F4 etc.)
$ su
# init 3
# urpme x11-driver-video-nvidia340 dkms-nvidia340
# urpmi x11-driver-video-nvidia304         ### will download all dependencies
# urpmi dkms-nvidia304        ### install it at last! It will configure the driver
# cat /etc/X11/xorg.conf      ### check a line "Driver "nvidia"",if "nouveau",use mc, rewrite the file and save
# reboot

Then, all works fine - tested with glxgears, glxspheres64, GPU Benchmarks.

FYI: we compared xorg.conf of nvidia340 with nvidia304 and it looks the same.

Regards
yullaw

Closing. Please reopen if needed. Please add the solution to wiki page, if neccessary.

Thanks.
Comment 10 Thomas Backlund 2016-04-30 13:00:34 CEST
Ok, can you post lspcidrake -v so we can default this card to nvidia304 then

Status: RESOLVED => REOPENED
CC: (none) => tmb
Resolution: FIXED => (none)

Comment 11 Martin Volf 2016-04-30 14:58:17 CEST
# lspcidrake -v
Card:NVIDIA GeForce 8100 to GeForce 415: NVIDIA Corporation|C77 [GeForce 8200M G] [DISPLAY_VGA] (vendor:10de device:0845 subv:103c subd:360a) (rev: a2)
Comment 12 Mageia Robot 2016-04-30 23:08:37 CEST
commit c6df7ba7c48da2d102000c7aea5203d8ca0c7366
Author: Thomas Backlund <tmb@...>
Date:   Sun May 1 00:07:31 2016 +0300

    use nvidia304 for NVIDIA GeForce 8200M G (id 0x0845) (mga#18206)
---
 Commit Link:
   http://gitweb.mageia.org/software/ldetect-lst/commit/?id=c6df7ba7c48da2d102000c7aea5203d8ca0c7366
Comment 13 Mageia Robot 2016-04-30 23:23:52 CEST
commit 667e7e5426ea55237c0a5731584e87133e3f8714
Author: Thomas Backlund <tmb@...>
Date:   Sun May 1 00:21:39 2016 +0300

    - use nvidia304 for NVIDIA GeForce 8200M G (id 0x0845) (mga#18206)
---
 Commit Link:
   http://gitweb.mageia.org/software/ldetect-lst/commit/?id=667e7e5426ea55237c0a5731584e87133e3f8714
Comment 14 Marja Van Waes 2017-04-15 10:47:14 CEST
(In reply to Mageia Robot from comment #13)
> commit 667e7e5426ea55237c0a5731584e87133e3f8714
> Author: Thomas Backlund <tmb@...>
> Date:   Sun May 1 00:21:39 2016 +0300
> 
>     - use nvidia304 for NVIDIA GeForce 8200M G (id 0x0845) (mga#18206)
> ---
>  Commit Link:
>   
> http://gitweb.mageia.org/software/ldetect-lst/commit/
> ?id=667e7e5426ea55237c0a5731584e87133e3f8714

Seems we forgot to close this report ;-)

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.