Re: nouveau vs nvidia - fresh install, nouveau wins
Fedor Pikus <[email protected]>
| Newsgroups | gmane.linux.redhat.rpm.atrpms.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 4, 2011 at 9:28 AM, Axel Thimm <[email protected]> wrote: > On Wed, 2011-05-04 at 11:33 -0400, George Galt wrote: >> A long time ago, Axel posted instructions on rebuilding initrd, which >> should (I believe) fix the issue. I can't find the commands now, but >> perhaps Axel can repost the commands. I think this is what finally >> fixed the nouveau v nvidia issue for me. > > I'm still not convinced, as every user out there should be falling in > the same trap and we would have tons of reports, not only on ATrpms, or > Fedora, but generally for nvidia closed source driver users on > distributions with nouveau and kernel mode switching (which should > probably be every current distribution out there). The problem does not happen if you don't configure updates during install (and run yum update before adding nvidia-graphics from atrpms). It's also timing-sensitive, if new kernel update appears the problem goes away. That's what happened with one of my systems, after install I did yum update and a new kernel was installed, then I added atrpms repo, and everything was fine. > >> Axel, any thoughts on this? > > The safest way is to pick the latest running kernel and query rpm itself > how it was done, as the mkinitrd or equivalents are masked behind > wrappers. For example the latest F14 kernel says: > > $ rpm -q --scripts kernel-2.6.35.12-90.fc14.x86_64 > postinstall scriptlet (using /bin/sh): > > if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] && > [ -f /etc/sysconfig/kernel ]; then > /bin/sed -r -i -e 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' /etc/sysconfig/kernel || exit $? > fi > > /sbin/new-kernel-pkg --package kernel --install 2.6.35.12-90.fc14.x86_64 || exit $? > preuninstall scriptlet (using /bin/sh): > /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove 2.6.35.12-90.fc14.x86_64 || exit $? > posttrans scriptlet (using /bin/sh): > /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --update 2.6.35.12-90.fc14.x86_64 || exit $? > /sbin/new-kernel-pkg --package kernel --rpmposttrans 2.6.35.12-90.fc14.x86_64 || exit $? > > The interesting bits are the second to the last line in this case. But > beware, the scripts' layout can change (they have in the past and will > do so in the future), if you - dear reader in the year 2525 running > Fedora 10^3 - are reading this use rpm -q --scripts to check on how the > initramfs is set up in your time frame. ;) > -- > http://thimm.gr/ - http://ATrpms.net/ > > _______________________________________________ > atrpms-devel mailing list > [email protected] > http://lists.atrpms.net/mailman/listinfo/atrpms-devel > -- Fedor G Pikus ([email protected]) http://www.pikus.net http://wild-light.com