Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Toggle between Nouveau and nVidia? Possible?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Toggle between Nouveau and nVidia? Possible?

#1 Post by golinux »

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.
May the FORK be with you!

smallchange
Posts: 1740
Joined: 2009-05-04 15:56
Been thanked: 1 time

Re: Toggle between Nouveau and nVidia? Possible?

#2 Post by smallchange »

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.

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Toggle between Nouveau and nVidia? Possible?

#3 Post by golinux »

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"??
May the FORK be with you!

smallchange
Posts: 1740
Joined: 2009-05-04 15:56
Been thanked: 1 time

Re: Toggle between Nouveau and nVidia? Possible?

#4 Post by smallchange »

Exactly.

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Toggle between Nouveau and nVidia? Possible?

#5 Post by golinux »

Thanks, smallchange. I'm surprised someone hasn't written a script to do that . . .
May the FORK be with you!

User avatar
PedroNGV
Posts: 4
Joined: 2012-04-30 22:51
Location: Portugal

Re: Toggle between Nouveau and nVidia? Possible?

#6 Post by PedroNGV »

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

Post Reply