Toggle between Nouveau and nVidia? Possible?

If none of the more specific forums is the right place to ask

Toggle between Nouveau and nVidia? Possible?

Postby golinux » 2011-06-02 21:27

Now that nVidia is up and running, I'm curious to do a comparison with Nouveau. I there an EASY way to do this? Like a simple on/off switch? Major system/kernel changes are not an acceptable option. If it can't be easily done, I'll just stick with nVidia. Thanks.
Blessed are the 'troublemakers' who strive to right wrongs and shine light into dark places.
User avatar
golinux
 
Posts: 594
Joined: 2010-12-09 00:56
Location: not a 'buntard!

Re: Toggle between Nouveau and nVidia? Possible?

Postby smallchange » 2011-06-02 21:43

It is probably not quite as easy as a switch but with the dkms packages in squeeze and beyond it is not very hard, but does require a reboot. When you install nvidia-kernel-dkms ( or the legacy versions) /etc/modprobe.d/nvidia-kernel-common.conf is created to blacklist the nouveau module. The instructions then ask you to create /etc/X11/xorg.conf.d//20-nvidia.conf that sets the device to nvidia. These are the only two changes that need to be made. Remove /etc/modprobe.d/nvidia-kernel-common.conf (or rename it) and change the /etc/X11/xorg.conf.d//20-nvidia.conf or /etc/X11/xorg.conf to point to nouveau, reboot, and you should be running nouveau. Revert the changes to go back to nvidia.
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: Toggle between Nouveau and nVidia? Possible?

Postby golinux » 2011-06-03 05:41

smallchange wrote:It is probably not quite as easy as a switch but with the dkms packages in squeeze and beyond it is not very hard, but does require a reboot. When you install nvidia-kernel-dkms ( or the legacy versions) /etc/modprobe.d/nvidia-kernel-common.conf is created to blacklist the nouveau module. The instructions then ask you to create /etc/X11/xorg.conf.d//20-nvidia.conf that sets the device to nvidia. These are the only two changes that need to be made. Remove /etc/modprobe.d/nvidia-kernel-common.conf (or rename it) and change the /etc/X11/xorg.conf.d//20-nvidia.conf or /etc/X11/xorg.conf to point to nouveau, reboot, and you should be running nouveau. Revert the changes to go back to nvidia.

Thanks for your help. Seems simple enough but . . .

/etc/modprobe.d/nvidia-kernel-common.conf is there but /etc/X11/xorg.conf.d/20-nvidia.conf is nowhere to be found.

So I guess I would disable the first and in xorg.conf change Driver "nvidia" to Driver "nouveau"??
Blessed are the 'troublemakers' who strive to right wrongs and shine light into dark places.
User avatar
golinux
 
Posts: 594
Joined: 2010-12-09 00:56
Location: not a 'buntard!

Re: Toggle between Nouveau and nVidia? Possible?

Postby smallchange » 2011-06-03 18:56

Exactly.
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: Toggle between Nouveau and nVidia? Possible?

Postby golinux » 2011-06-03 19:07

Thanks, smallchange. I'm surprised someone hasn't written a script to do that . . .
Blessed are the 'troublemakers' who strive to right wrongs and shine light into dark places.
User avatar
golinux
 
Posts: 594
Joined: 2010-12-09 00:56
Location: not a 'buntard!

Re: Toggle between Nouveau and nVidia? Possible?

Postby PedroNGV » 2012-05-01 21:31

Hello,

I have both drivers installed and have the nvidia currently in use.

I installed the drivers through the nvidia sgfxi script and I can not find any of these files that you speak.

The xorg.conf file has 3 entries "nvidia":

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "dri2"
# Load "dri"
Load "record"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "nvidia"
Option "Coolbits" "1"
Option "AddARGBGLXVisuals" "true"
Option "TripleBuffer" "false"
BusID "PCI:1:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # <str>
#Option "fbdev" # <str>
#Option "debug" # [<bool>]
Identifier "Card1"
Driver "nvidia"
Option "Coolbits" "1"
Option "AddARGBGLXVisuals" "true"
Option "TripleBuffer" "false"
BusID "PCI:1:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card2"
Driver "nvidia"
Option "Coolbits" "1"
Option "AddARGBGLXVisuals" "true"
Option "TripleBuffer" "false"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "Monitor2"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "enable"
# Option "RENDER" "disable"
EndSection


Is there already some script that allows to do the switch, or what are the files to change now with Debian Wheezy?

Sorry for my ignorance, but I'm pretty new with this X configurations... :roll:

Thank you very much!
Debian Wheezy
User avatar
PedroNGV
 
Posts: 4
Joined: 2012-04-30 22:51
Location: Portugal


Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable