Hello,

I figured out how to use Nvidia hardware stereo with K4000 or K4200 cards under Linux Ubuntu 24 and Xfce.

Coot 0.98, PyMol and Chimerax are running fine in hardware stereo mode.

I'll put a little guide together for the installation, which is included below.

Wim

-
*Wim Burmeister*
Professor
Institut de Biologie Structurale (IBS) CIBB
71 avenue des Martyrs / CS 20192
38044 Grenoble Cedex 9, FRANCE
E-mail: [email protected]
Mobile:   +33 (0) 7 50 49 19 91
website <https://www.ibs.fr/en/research/microbiology-infection-and-immunity/viral-replication-machines-group-m-jamin/team-burmeister/>

Ce ne sont pas les faits qui rendent éco-anxieux, mais ce qu'on fait ou ne fait pas. /
/
/Anonyme/


 *Setting up a stereo graphics workstation under Ubuntu 24 and xfce
 with a stereo capable Nvidia graphics processor (K4000 etc.) and the
 hardware stereo emitter*

Wim P. Burmeister

with help from Nicolas Tarbouriech et Aymeric Puech

Iinstitut de Biologie Structurale, Grenoble, France.


*Installation of the Nvidia 470 driver (470 is the last version compatible with Nvidia Hardware stereo, but no longer maintained by Nvidia or Ubuntu). I used a Dell Precision 5810 for the installation.*

The following section is based on :

https://ubuntuhandbook.org/index.php/2026/07/install-nvidia-470-ubuntu/ <https://ubuntuhandbook.org/index.php/2026/07/install-nvidia-470-ubuntu/>


   *1.* Uninstall existing Nvidia drivers

If you installed the legacy 470 driver through the package from Ubuntu system repository, run the command below to uninstall it:

sudo apt --purge remove '*nvidia*470*'

For the driver installed through the NVIDIA-provided installer, then re-do step 3 & 4 in Option 2 to stop graphical sessions, then run the command below to uninstall:

sudo nvidia-uninstall

To un-blacklist the open-source nouveau Kernel driver, just remove the config files:

sudo rm /etc/modprobe.d/nvidia-installer-disable-nouveau.conf /usr/lib/modprobe.d/nvidia-installer-disable-nouveau.conf

Finally, restart computer to apply changes.

*2. Then, open a terminal (Ctrl+Alt+T) and install the dependency libraries:*

sudo apt install git wget build-essential linux-headers-$(uname -r) libglvnd-dev
sudo apt install dkms

*3. Kill your desktop and run in full text console with Ctrl+Alt+F3 ~ F6* to switch to TTY command console. And, input your username and password to login.

*4.Now, run the command below which will kill all the graphical sessions. This is required for being able to run the NVIDIA-provided |.run|driver installer.*

sudo systemctl isolate multi-user.target

Press Ctrl+C if the command is stuck with a blinking cursor.

*5. Next run the command to clone the source which contains all the community patches, and the script to apply them.*

git clone https://github.com/joanbm/nvidia-470xx-linux-mainline

Finally, navigate to the source folder and run |install|script: (can be copied from USB key with

sudo cp -rf /media/xxxxxx/xxx/nvidia-… .

cd nvidia-470xx-linux-mainline
*6. Register the nvidia driver with dkms* sudo nano install
Add –dkms on the last line : $ASROOT ./nvidia-installer --dkms
sudo ./install

The script will automatically download the nvidia-provided .run installer, extract and apply patches, and finally start the installer.

When the installer starts, select “Continue installation” to skip the “An alternative method of installing the NVIDIA driver was detected …” screen.

If kernel’s built-in Nouveau driver is in use, it will output error due to incompatibility. Just hit OK, then select Yes in next screen to auto-add config file to add nouveau driver into blacklist.

Finally, run *reboot* to reboot computer without nouveau driver and re-run step 3, step 4, step 5 (without |git clone|) to re-start the installer and answer yes/ok to all questions.

Create nvidia’s /etc/X11/xorg.config file and use the dkms integration and ignore 32bit compatibility mode.


   7. Stereo needs an xfce desktop

|sudo apt install xfce4|

|Default display server lightdm|

|sudo apt install xfce4-goodies|


   |8. Activate stereo in |

|/etc/X11/xorg.conf|||
|section “Screen” ||and ||add|
|Option "Stereo" "10"|

|Reboot and log on under xfce.|

|*9. Disable window compositing*||i||n the ||“||Parameters” menu : 
||Settings||/Window Manager Tweak||/||Compositor/disable display compositing.|

|Test with|
|sudo apt install mesa-utils|
|glxgears -stereo|


   10. Configure xfce greeter screen

Create a custom configuration file:

|sudo ||nano||/etc/lightdm/lightdm.conf.d/50-custom.conf|
Paste the following into the new file:
|[SeatDefaults]|
|greeter-show-manual-login=true|
|allow-guest=false|
|user-session=||lightdm|

Restart LightDM:
|sudo service lightdm restart|


   11. Install xfce screensaver

|sudo apt install xfce4-screensaver|


   12. Switch off suspend

In

sudo nano /etc/systemd/sleep.conf

AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no

|r||eboot|

|*After clicking on the user name, chose *||*the *||*xfce desktop and open a new session. *||*The installation should be finished.*|


|If you want to use coot, create the file “||.||coot.py||“ containing |||

set_hardware_stereo_angle_factor(0.3)

In ChimeraX adjust the eye separation with

camera stereo eyeSeparation 40



########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=CCP4BB&A=1

This message was issued to members of www.jiscmail.ac.uk/CCP4BB, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/

Reply via email to