Graphic driver installation for old Alienware M11xR1

Hello everyone,

I wanted to install Endeavour OS on my old Alienware M11xR1. Somehow I can’t get the nVidia graphics driver to work properly (nvidia gt335m).

I have now reinstalled Endeavour OS for the third time because I kept having problems with the driver installation.

My wishful thinking: if possible, I would simply run the nvidia graphics card (discrete in the BIOS), as with Win10, because the Intel does not support hardware decoding for HD videos and is generally very rudimentary.
The laptop was delivered without nvidia Optimus and you had to switch between the graphics chipsets manually using the FN key. (I think this is where the worm is buried). With Windows, however, it was enough to simply install a current nvidia driver and the nvidia graphics then ran permanently.

Previously I had installed the nvidia 340xx driver under Endavour OS. That also worked. Unfortunately, the resolution was then limited to 640x480 and I could not select any other resolution. The screen was recognised as “Unknown-1” and I could not add a resolution with xrandr.

So I tried again and the Optimus Switch. Here, however, the laptop gets stuck at Graphical Interface when booting and no setting in the BIOS made it boot.

Now I’m on the third installation and hoping for the community. I don’t know which instructions to follow anymore

If it were possible to switch the graphics, it would be great, but a permanently running nvidia graphics with the correct screen resolution would be enough for me (I would set the permanently running fans again using the fan tool, with Windows it was always HWInfo).

Can you tell me the best way to proceed or which method might work?

From what I can gather, if your GPU is Tesla based, that would be the correct proprietary driver for your hardware.

https://wiki.archlinux.org/title/NVIDIA#Unsupported_drivers

I suggest running this, to detect, and recommend what drivers you might install. This won’t actually perform an install, it is in test mode only. Please share the output:

nvidia-inst -t

So I reinstalled Endeavour OS and then I set the graphics to “discrete” in the BIOS and was now, for whatever reason, set the correct resolution.

I also noticed that the video acceleration now works, which is actually enough for me. However, after a few minutes of use, Caps-Lock flashes and the whole system freezes.

I have now executed the command:

nvidia-inst -t

It returns “command not found”.

yay nvidia-inst -t

yields “invalid option -t”

System runs on Wayland (nothing was set from my side).

It’s odd that wasn’t on there by default, but you’re not the first person I’ve encountered where that’s happened :thinking:

To install it, the correct command would be:

yay -S nvidia-inst

But that said, if the graphics are working, maybe leave it alone. You might share the output of this, so we can see what drivers you’re actually using perhaps:

inxi -G
yay -Q | grep nvidia

The caps-lock issue is obviously concerning. Is that the first time that has happened?

You might consider running a memory test, like Memtest86+, to confirm your memory isn’t the culprit.

the command resulted in

$ inxi -G
Graphics:
  Device-1: NVIDIA GT215M [GeForce GT 335M] driver: nouveau v: kernel
  Device-2: Suyin Laptop_Integrated_Webcam_1.3M driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting dri: nouveau
    gpu: nouveau resolution: 1366x768
  API: EGL v: 1.4,1.5 drivers: nouveau,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.5 compat-v: 3.3 vendor: mesa v: 24.1.5-arch1.1
    renderer: NVA3
  API: Vulkan Message: No Vulkan data available.

Second command do nothing.

I also had flashing capslock yesterday with Manjaro and KaOS. I replaced the RAM yesterday and checked it with Memtest. However, there was no error.
I can’t remember having this error with Intel graphics under Linux.

When I successfully installed the nvidia driver on Endeavour OS once (but couldn’t change the resolution), I didn’t have the error. If I remember correctly, the system did not run with Wayland either.

You may have better luck if you log in using xorg instead of wayland.That card will not run on wayland with nvidia’s drivers .

The Nvidia 300 series is supported only by the 340.xx version drivers.

GeForce 300M Series (Notebooks):

GeForce GTS 360M, GeForce GTS 350M, GeForce GT 335M, GeForce GT 330M, GeForce GT 325M, GeForce GT 320M, GeForce 320M, GeForce 315M, GeForce 310M, GeForce 305M

You need to install the 340.xx drivers from the AUR. You have the choice of using the dkms version also from the AUR. Currently your laptop is rendering on nouveau open source driver.

Since the nouveau driver can probably use video acceleration, that would be enough for me in principle. Unfortunately, as already mentioned, I get system freezes (flashing caps lock).
If I switch to the Intel card in the BIOS, everything works fine, but I can’t even watch YouTube at 480p smoothly and graphics on pages load more slowly. With the nvidia it goes up to 720p, which would be enough for the old system.

I loaded the session with X11 and the nvidia card earlier and the system stopped loading the desktop and hung up.

What should I do now?

Install the nvidia driver 340xx (I would have to do this with the Intel graphics so that the system doesn’t hang up again) and then start the session with X11 instead of Wayland.

Or, if possible, see why the system hangs under Wayland with the Nouveau driver, should this be possible.

The command to install the drivers would then be?

yay -S nvidia-inst

Run the test as @Bink said. You need to install nvidia-inst if it’s not installed. Then run the test and post the output.

nvidia-inst -t

Edit:

Keep in mind you have a hybrid laptop so in order to render from the nvidia gpu you have to switch to it using what ever method works for this particular laptop otherwise it’s always rendering on the intel gpu.

Edit: Your output shows it rendering on nouveau (NVA3)

I think there’s a chance that your card is so old that the proprietary driver is no more compatible with the other software. That would mean nouveau (which you seem to have now) is the only way to go.

But to test this, you need to install the correct version of the Nvidia driver. And possibly try with x11 since version 340 seems not to support wayland.

So you could try something like:

yay -Syu nvidia-340xx-dkms 

and also make sure to have package linux-headers installed.
You might need to install libxnvctrl-340xx too.

Note that reboot is required after installing such drivers.

Also, better check what nvidia related packages you have installed already, they might conflict with the 340 series:

pacman -Qs nvidia

Please show this output.

At first the output from nvidia-inst -t

nvidia-inst -t
2024-08-05 20:07:33: Info: Running: nvidia-inst v24-1
2024-08-05 20:07:33: Info: Command line: nvidia-inst -t
2024-08-05 20:07:33: Info: Selected mode: nvidia
NVIDIA card id: 0caf
Fetching driver data from nvidia.com ...
Sorry, none of the Nvidia driver series [555, 470, 390] is supported.

More info:
   https://www.nvidia.com/en-us/drivers/unix
   https://download.nvidia.com/XFree86/Linux-x86_64/555.58.02/README/supportedchips.html
2024-08-05 20:07:37: Error: nvidia-driver-supported-branches could not fetch card ids from Nvidia.

@manuel output:

$ pacman -Qs nvidia
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/nvidia-inst 24-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS

So I would try the nvidia340xx installation

So, I installed the nvidia driver. Seems to have worked in itself. However, the resolution is limited to 640x480 and I can’t select any other.
I had already started a session with X11 and it was the same there.

Output from inxi -G

$ inxi -G
Graphics:
  Device-1: NVIDIA GT215M [GeForce GT 335M] driver: nvidia v: 340.108
  Device-2: Suyin Laptop_Integrated_Webcam_1.3M driver: uvcvideo
    type: USB
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting gpu: nvidia
    resolution: 640x480
  API: EGL v: N/A drivers: N/A platforms: N/A
  API: OpenGL Message: No GL data available.
  API: Vulkan Message: No Vulkan data available.

Do you have any idea how I can get the right resolution to work?

A great source of information is https://wiki.archlinux.org/title/NVIDIA (and its related articles) but it might not resolve your issue. To my understanding, it suggests using nouveau instead, which you already had. Unfortunately nouveau may not support all features you’d want to use, but it (mostly) works.

For the record, could you show the output of command

device-info --graphics

Nouveau would be perfectly adequate. However, I always got system freezes or kernel panics there.
With the nvidia driver the system runs stable, but the resolution is not adjustable.

$ device-info --graphics
NVIDIA Corporation GT215M [GeForce GT 335M] (rev a2)

What is the resolution you are looking to set?

Can you show inxi -Ga

Edit: If using grub you could try to set the resolution in the grub command line such as

video=<port-name>:<resolution-w>x<resolution-h>@<refresh-rate>

as an example:

video=HDMI-A-1:1280x1024@85

Then you would have to run the grub update command. I’m not sure how on system-boot.

The Arch/NVIDIA link above should provide some help to those problems, but you will need to dig them carefully and do some testing with the proposals.

Note that you can use the USB installer drive to revert your system to a previously working state.

In addition, you may try program ChangeDisplayResolution, but it likely needs certain adjustments explained in the article.

This is the output

$ inxi -Ga
Graphics:
  Device-1: NVIDIA GT215M [GeForce GT 335M] vendor: Dell driver: nvidia
    v: 340.108 alternate: nouveau non-free: series: 340.xx
    status: legacy (EOL~2019-12-xx) last: release: 340.108 kernel: 5.4
    xorg: 1.20 arch: Tesla process: 40-80nm built: 2006-2013 pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 2 speed: 5 GT/s
    bus-ID: 01:00.0 chip-ID: 10de:0caf class-ID: 0300
  Device-2: Suyin Laptop_Integrated_Webcam_1.3M driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-2:3
    chip-ID: 064e:8101 class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: 0
  Monitor-1: Unknown-1 res: 640x480 size: N/A modes: N/A
  API: EGL v: N/A platforms: active: N/A inactive: x11
  API: OpenGL Message: No GL data available.
  API: Vulkan Message: No Vulkan data availabl

Editing Grub made no difference. The port of the laptop’s screen has the name “Unknown-1” in Wayland and “None-1” in X11.
I had already tried to add the resolutions with addmode and newmode in X11. But the output does not work.

What does xrandr show?

I have a couple thoughts on this.

  • Given the age of the system, are you using the current LTS kernel which would likely maintain support for older hardware for longer?
  • Might you consider disabling the discrete Nvidia GPU, and exploring possible hardware video decoding support for your integrated Intel graphics?

inxi shows there is only Nvidia GPU?