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 1AB28198005 for ; Mon, 25 Feb 2013 15:11:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3521BE0712; Mon, 25 Feb 2013 15:11:11 +0000 (UTC) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D48DCE06C1 for ; Mon, 25 Feb 2013 15:11:09 +0000 (UTC) Received: by mail-ve0-f181.google.com with SMTP id d10so2221588vea.40 for ; Mon, 25 Feb 2013 07:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=qqBqKY/iulZfcEORAzQn3AkrCuW7eIxpcyUZDhs6HtA=; b=hYP+1z9i3fGOIa/ZDPM/8JCrhe8eLVCeoOnhKBzxdKSom244a7Ro7o0YUiZU8n3E1I WcNDnDn3yqmm57Oc7xu27E68ZUaZsknNFg0AgcicCcyTugWgXTSpVjN/j2Sm5SK8Honl TevsLbIuuFueQc9Or48oa3SbKKraIC1GTph39P1qZV7tAX/j68flLbooIgyR6F/EullL h7tbmM2Sgr6k2aaoRZIWVdOLagzI+7cSEwJBvwhfpqKVKRd8rSgTWlT6dJKIJxcYoKUX uArHwcpzJ+dIKnB5Wuimm7YERrLcK/tV49NYPXhBFosf++3+FQIYOQI8r1RN45sJiU+5 vecg== X-Received: by 10.220.222.72 with SMTP id if8mr790683vcb.61.1361805069030; Mon, 25 Feb 2013 07:11:09 -0800 (PST) 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 Sender: paul.hartman@gmail.com Received: by 10.58.209.201 with HTTP; Mon, 25 Feb 2013 07:10:47 -0800 (PST) In-Reply-To: <20130224043002.GB3200@syscon7.inet> References: <20130224043002.GB3200@syscon7.inet> From: Paul Hartman Date: Mon, 25 Feb 2013 09:10:47 -0600 X-Google-Sender-Auth: p4Eid9mlxSOPOAIGrmCwgJSPcwI Message-ID: Subject: Re: [gentoo-user] switching between "nvidia / nouveau" drivers To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 6760ba5f-4237-4cf1-b84f-1888f5902af4 X-Archives-Hash: 99edb9941dc327ff8ac1161a78e86c9b 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.