From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D60CC198005 for ; Mon, 25 Feb 2013 19:14:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20F01E06F3; Mon, 25 Feb 2013 19:14:04 +0000 (UTC) Received: from mail129c7.megamailservers.com (mail129c7-2520.megamailservers.com [69.49.98.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE312E0676 for ; Mon, 25 Feb 2013 19:14:02 +0000 (UTC) X-POP-User: admin.sys-concept.com Received: from syscon7.localdomain (S01060050da7ae68c.ed.shawcable.net [68.149.90.13]) by mail129c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id r1PJDuSt030554 for ; Mon, 25 Feb 2013 14:13:57 -0500 Received: by syscon7.localdomain (Postfix, from userid 1000) id 249E6203DD2; Mon, 25 Feb 2013 12:14:00 -0700 (MST) Date: Mon, 25 Feb 2013 12:14:00 -0700 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] switching between "nvidia / nouveau" drivers Message-ID: <20130225191400.GA30055@syscon7.inet> References: <20130224043002.GB3200@syscon7.inet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CSC: 0 X-CHA: v=1.1 cv=HephILaxdiIcZBGymGV80kTppfrCi99HHE1kmkFqajc= c=1 sm=1 a=wom5GMh1gUkA:10 a=V5C9vx7EF54A:10 a=nDghuxUhq_wA:10 a=8nJEP1OIZ-IA:10 a=C3ZDv51cNVt4vJz/79I2xQ==:17 a=pGLkceISAAAA:8 a=UHxcllcOs34nkaOJ2f8A:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=C3ZDv51cNVt4vJz/79I2xQ==:117 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A020202.512BB7F5.0177,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-Archives-Salt: 43882637-31e0-4078-a209-b4f1b5b94db3 X-Archives-Hash: e1282d4fa30e18c61d0e5cbe8cf4b921 On 02/25/13 09:10, Paul Hartman wrote: >On Sat, Feb 23, 2013 at 10:30 PM, Joseph wrote: >> I'm trying to prevent next disaster with nvidia driver/kernel combination. >> I'm running "nvidia" driver and installed "nouveau" as module. If for any >> reason nvidia or nouveau will stop working I want to just run a sript and >> use other one. >> >> Here is my configuration: >> >> cat /etc/modprobe.d/blacklist.conf >> blacklist nouveau >> >> cat /etc/X11/xorg.conf >> Section "Device" >> Identifier "Nvidia card" >> Driver "nvidia" >> EndSection >> >> eselect opengl list >> Available OpenGL implementations: >> [1] nvidia * >> [2] xorg-x11 >> >> In order to switch it to "nouveau" I would need to unload the nvidia module, >> but I can not do it when it is in use so I need to stop "xdm" first, am I >> correct? >> /etc/init.d/xdm stop (X crashes at this moment) >> modprobe -r nvidia >> mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf_backup >> mv /etc/X11/xorg.conf /etc/X11/xorg.conf_nvidia >> eselect opengl set xorg-x11 >> modprobe nouveau >> mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf >> /etc/init.d/xdm start (at this moment I should have login screen) >> >> Did I miss anything? Will it work if I put it into a bash script? > >What about console framebuffer (if you use one) and KMS? I wonder if >you need to do something about those. I've solved this problem. It is not possible to switch without rebooting, so the correct procedure would be: CORRECT PROCES TO FOLLOW to switch between nvidia and noveau. (assuming the kernel is using "nvidia") to switch to noveau: mv /etc/modprobe.d/blacklist.conf_nvidia /etc/modprobe.d/blacklist.conf eselect opengl set xorg-x11 mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf reboot Assuming: cat blacklist.conf_nouveau blacklist nouveau cat blacklist.conf_nvidia blacklist nvidia cat xorg.conf_nouveau # uncomment when the card gets IN Section "Device" Identifier "nouveau" Driver "nouveau" EndSection at xorg.conf_nvidia Section "Device" Identifier "Nvidia card" Driver "nvidia" EndSection -- Joseph