Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44040 - [nvidia] [nvidia-340xx] [nvidia-304xx] Add a message after upgrading nvidia driver

Attached to Project: Arch Linux
Opened by Jiulun Du (dujiulun2006) - Wednesday, 04 March 2015, 05:43 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 10 May 2015, 17:37 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After user upgrades nvidia driver, a message should be displayed (with .install file - post_upgrade) to tell user to reboot or at least remove+modprobe kernel module. Otherwise some apps (like Qt Creator) may silently break.
After a upgrade of nvidia driver from 346.35 to 346.47, Qt Creator won't open (it hangs a while and quits silently; if started from console, it gives "core dump"). It took me a while to find out about why.

Additional info:
* package version(s) nvidia - 346.47-3, qtcreator - 3.3.1-1
* config and/or log files etc.
3月 04 13:26:15 xiaodulabpc gdm-Xorg-:0[343]: (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
3月 04 13:26:15 xiaodulabpc gdm-Xorg-:0[343]: (**) NVIDIA(0): device HP 23fi (DFP-0) (Using EDID frequencies has been
3月 04 13:26:15 xiaodulabpc gdm-Xorg-:0[343]: (**) NVIDIA(0): enabled on all display devices.)
3月 04 13:26:15 xiaodulabpc gdm-Xorg-:0[343]: (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
3月 04 13:26:15 xiaodulabpc gdm-Xorg-:0[343]: (**) NVIDIA(0): device HP 23fi (DFP-0) (Using EDID frequencies has been
3月 04 13:26:15 xiaodulabpc gdm-Xorg-:0[343]: (**) NVIDIA(0): enabled on all display devices.)
3月 04 13:26:15 xiaodulabpc kernel: NVRM: API mismatch: the client has the version 346.47, but
NVRM: this kernel module has the version 346.35. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
3月 04 13:26:15 xiaodulabpc kernel: NVRM: nvidia_frontend_ioctl: minor 255, module->ioctl failed, error -22
3月 04 13:26:15 xiaodulabpc kernel: NVRM: API mismatch: the client has the version 346.47, but
NVRM: this kernel module has the version 346.35. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
3月 04 13:26:15 xiaodulabpc kernel: NVRM: nvidia_frontend_ioctl: minor 255, module->ioctl failed, error -22
3月 04 13:26:15 xiaodulabpc kernel: QSGRenderThread[8369]: segfault at 30 ip 00007f63e5e07c98 sp 00007f62df2c4988 error 4 in libc-2.21.so[7f63e5cce000+199000]
3月 04 13:26:21 xiaodulabpc systemd-coredump[8370]: Coredump of 8343 (qtcreator-bin) is larger than configured processing limit, refusing.
3月 04 13:26:22 xiaodulabpc systemd-coredump[8370]: Process 8343 (qtcreator-bin) of user 1000 dumped core.


Steps to reproduce:
1. Install nvidia 346.35 & qt creator.
2. Make sure 346.35 kernel module is loaded.
3. Upgrade nvidia to 346.47.
4. Start qt creator. It won't start.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 10 May 2015, 17:37 GMT
Reason for closing:  Implemented
Comment by Jan de Groot (JGC) - Wednesday, 04 March 2015, 12:05 GMT
When you install a large amount of updates you'll miss that message anyways, so I don't see the added value of this. Also, logfiles give enough information about what's wrong in this case.

What's next, add such messages to firefox because it could be running during an update?
Comment by Jiulun Du (dujiulun2006) - Wednesday, 04 March 2015, 14:00 GMT
> When you install a large amount of updates you'll miss that message anyways, so I don't see the added value of this.
In that case, no information in .install files has any value.

> Also, logfiles give enough information about what's wrong in this case.
Well... It does. I just think a message will make users' lives easier.

> What's next, add such messages to firefox because it could be running during an update?
Firefox is not to be compared with nvidia driver, because it won't break a lot of other applications. In my case, (and after digging back a year's log through journalctl,) quite many other apps were broken by previous nvidia updates without rebooting.
Since there is no mechanism for automatically reloading updated modules, and there are not so many drivers that contains such "powerful" kernel modules, I think adding one when we spot one is an acceptable solution.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 04 March 2015, 15:46 GMT
I'm not sure about this. We don't have a message about linux after that is updated and many modules can't be loaded either after a kernel upgrade without reboot.
Comment by Jiulun Du (dujiulun2006) - Thursday, 05 March 2015, 12:11 GMT
If updating kernel would silently break a bunch of userspace apps, then yes, a prompt should also be given. But from my experience, this "breaking" hardly happens and I always reboot after a kernel update anyway. Besides, some Linux distributions do suggest user to reboot after a kernel update.

Loading...