Tuesday, December 6, 2022

openSUSE Leap 15.3 and NVIDIA graphics on Acer Nitro 5

I recently found that the HDMI port on my Acer Nitro 5 would not work when using openSUSE, but worked fine in Windows. This is really just a graphical walk through of what is posted at:
  • https://en.opensuse.org/SDB:NVIDIA_drivers
  • https://en.opensuse.org/SDB:NVIDIA_SUSE_Prime
  • https://forums.opensuse.org/showthread.php/538877-optimus-laptop-and-leap-15-1-do-not-connect-to-external-hdmi-monitor/page3

Procedure

Confirm that multiversion is supported:
grep multiversion /etc/zypp/zypp.conf

You should see (or need to edit to change):



Next, add the NVIDIA repo:
zypper addrepo --refresh 'https://download.nvidia.com/opensuse/leap/$releasever' NVIDIA


Now we need to identify the correct graphics card model:
sudo lspci | grep VGA





You should see the standard graphcs controlle (e.g. Intel graphics), as well as the Nvidia graphics card. In this case, the GeForce RTX 3060.

Now for a bit of detective work. We need to identify the correct driver version, using Nvidia's driver search engine (link). Populate the search fields based on the model you have just positively identified using the previous step. For example:



From the output, you want the rather insignificant looking version:



Using the version information, we can search zypper for the correct driver:
sudo zypper se -s x11-video-nvidiaG0*




* 5 May 2023: The package names have subsequently changed for G06: 



To install, copy the name and do a normal zypper install. For example:
sudo zypper in x11-video-nvidiaG06 
sudo zypper in nvidia-video-G06

If you are using EFI and signed drivers, see the original links above for the extra steps.
Since this is on a laptop, we need to use the SUSE Prime tool to activate the Nvidia graphics as the chosen graphics. 

To activate the Nvidia graphics:
sudo prime-select nvidia

And to switch back to Intel graphics:
sudo prime-select intel

You will have to logout, maybe even restart.

Final comments

  • Enabling the Nvidia graphics got my HDMI output working
  • I also found the overall temperature of my laptop was reduced when using the Nvidia graphics over the Intel graphics
  • Another handy tool in nvidia-settings.





Wednesday, February 2, 2022

Quick and easy NTP server - Linux

 

When installing the MXONE, part of the setup requires testing the NTP server. This is a great way to ensure that the customer's site is truly prepared for all prerequisites. However, it can make advanced prep of systems - like SBN - really difficult. Here is an easy way to set your own Linux machine as an NTP server:

Edit /etc/chrony.conf. Below I have highlighted the entries that matter. Customise the allowed IPs to suit your purpose.



Next, remember to allow the NTP port (123 UDP) on your machine's firewall. On openSUSE using YaST:





References:
https://www.ibm.com/docs/en/db2/11.5?topic=suntp-setting-up-chrony-as-network-time-protocol-server-client-by-using-chronyd-linux