My Laptop keeps randomly freezing and after the freeze the only option is a hard shutdown. Sometimes the mouse cursor continues to work but am unable to double click/open anything. Then the mouse pointer freezes and the whole GUI seems frozen.
MacBook Pro I just installed Ubuntu LTS 24.04.3 with NVIDIA video card.
You have not used the support template nor provided us with nearly enough information to try and help you.
By the way, I deleted your duplicate post in another topic (which also had little information).
Please provide the following information:
full computer specifications and correct Ubuntu version number (there is no Ubuntu 24)
any log messages, check in syslog or use sudo dmesg to look for clues
post the output of nvidia-smi
install inxi with sudo apt install inxi and post the output of inxi -Fxxxz
When you post the output back here in a reply, highlight the output and wrap with code tags using either </> in the composer or Ctrl+E from the keyboard.
In Software & Updates > Additional Drivers, is there a proprietary NVIDIA driver available that you can try?
Or are you able to use only the integrated Intel graphics? It is possible to select whether to use the integrated graphics, discrete GPU, or both, with some low-level configuration applied via GRUB
No proprietary driver is in use for NVIDIA. My system is only using one for the Broadcom 802.11 a/b/g/n card. At least as far as the Software and Updates> Additional Drivers panel shows.
I think it must be using Intel driver and not one for NVIDIA.
nvidia-smi gives the following response:
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I’ve been up and running in graphical mode for like 25 minutes checking all of this out and not a single problem so far.
According to your terminal outputs, it is using both in the default hybrid mode, which IIRC on MacBook Pros of that era means:
The NVIDIA GPU is the primary graphics (in your case via the nouveau driver)
The integrated Intel graphics is available, but is only being used to display the NVIDIA GPU’s output on the MacBook’s built-in monitor
If the integrated Intel graphics is powerful enough for your needs, you could try running with only integrated graphics and disable the NVIDIA GPU. This guide looks like a good starting point for that. But based on my own past experience running a MacBookPro9,1 with Ubuntu:
I’m not sure whether that’s the best place in /etc/grub.d/10_linux to add the outb lines. The outb lines themselves are correct, it does require all 4 outb lines, and it is correct to add them to /etc/grub.d/10_linux as shown, but the exact place in that file where they’re suggesting to add them does not look familiar to me
The guide was written for Ubuntu 17.10. I do not know whether the GRUB_PRELOAD_MODULES change is necessary in Ubuntu 24.04. I don’t recall ever doing that on my own MacBook Pro, which ran LTS versions of Ubuntu from 14.04 to 20.04.
One of your issues is that that particular Nvidia chip, the GT 330M, isn’t even supported by any current Nvidia drivers and requires the built-in Nouveau driver to work. Sadly, Nouveau is a reverse-engineered driver and cannot have the performance of proprietary Nvidia drivers.
Nvidia doesn’t even support that older driver, which is why it can no longer be found in the repos.
Basically, you are most certainly going to have performance issues no matter what. I know I experience the same with my 2010 Mac Mini because it, like your Macbook Pro, uses a much older Nvidia chip.
Your MacBook is 15 years old - possibly, the nouveau driver may perform better with a lighter flavour within the Ubuntu family.
Xubuntu 24.04 or Lubuntu 24.04?
Have you tried a different desktop session…to test? Installing xfce4 as a package, log off then log into the XFCE session at the login page rather than gnome-shell. Is it different in the stability you see?
Hello and thank you to everyone who helped. It seems like editing GRUB with these lines is working. I’ve used it over the past day or 2 and it’s been rock solid!!!
Glad to hear it. Make sure to mark @halogen2 's post as the solution with the checkbox on the bottom of the post so that others with the same problem can see their solution, and so that the thread can eventually auto-close.
If you need it reopened, you can always reach out to a moderator.