Can someone test nvidia-340xx-dkms?

Yes

I don’t know for sure

You have lightdm as the dm. So either you want lightdm or sddm?

I should mention that i used yay -Rs to unistall the nvidia package, not sure if i should have done that

Try

systemctl disable lightdm

Then

systemctl enable sddm
systemctl start sddm

When you installed nvidia-340xx-dkms, there should have been some text telling you to copy the file

/usr/share/nvidia-340xx/20-nvidia.conf

to

/etc/X11/xorg.conf.d

That is the part about disabling the API check and is probably why you are getting the black screen.

1 Like

I ran these commands and i was stuck at a black screen with a mouse cursor when my pc finished loading, i had to access the forum from a smartphone and disable sddm, enable lightdm and start lightdm again

Well i don’t know why that is. Kde normally uses sddm. Is it working now?

inxi -Ga
1 Like
[ramon@ramon-m61pmes2p ~]$ inxi -Ga
Graphics:
  Device-1: NVIDIA GT218 [GeForce 210] vendor: ZOTAC driver: nouveau
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports: active: VGA-1
    empty: DVI-I-1,HDMI-A-1 bus-ID: 02:00.0 chip-ID: 10de:0a65 class-ID: 0300
  Device-2: Microsoft LifeCam Cinema type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-4:4 chip-ID: 045e:075d
    class-ID: 0102
  Display: x11 server: X.Org v: 21.1.3 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,nouveau,nv,vesa gpu: nouveau
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.65x9.37")
    s-diag: 485mm (19.11")
  Monitor-1: VGA-1 model: Samsung SMB2030N serial: HQDZ600091 built: 2010
    res: 1600x900 hz: 60 dpi: 92 gamma: 1.2 size: 443x249mm (17.44x9.8")
    diag: 508mm (20") ratio: 16:9 modes: max: 1600x900 min: 720x400
  OpenGL: renderer: N/A v: N/A direct render: N/A
[ramon@ramon-m61pmes2p ~]$ 

Still no compositing here

I see it’s got nouveau open source driver loaded but ya. Maybe try installing the normal nvidia-340xx? Your choice…

Looks like it should work if i learn how to add the X config file to ignore the API, problem is that i don’t know how to do that
EDIT: looks like this is the file and looks like somehow i need to put it into /etc/X11/xorg.conf.d

https://aur.archlinux.org/cgit/aur.git/tree/20-nvidia.conf?h=nvidia-340xx

According to @jruschme you just copy the one file to the other.

/usr/share/nvidia-340xx/20-nvidia.conf

to

/etc/X11/xorg.conf.d

Edit: You can use a text editor such as nano to open the file and copy it. Then open the other file or create it if it doesn’t exist also using nano and then paste the contents you copied inside and save the file.

After installing nvidia look inside this file and copy and paste to the other file.

sudo nano /usr/share/nvidia-340xx/20-nvidia.conf

copy what’s inside

Open or create the other file if it doesn’t exist and paste the contents inside.

sudo nano /etc/X11/xorg.conf.d

Then ctrl + o and enter to save

Then ctrl + x to exit nano

Edit: Not sure if you need to delete /usr/share/nvidia-340xx/20-nvidia.conf file after copying it into the other?

Ask @jruschme if this is correct way?

3 Likes

I think i understood now, i need to do this after installing nvidia and only then restart the system

Not quite:

sudo cp /usr/share/nvidia-340xx/20-nvidia.conf /etc/X11/xorg.conf.d

/etc/X11/xorg.conf.d is a directory

2 Likes

Omg i think it worked !!, i saw a big nvidia logo screen at the boot and i got compositing back !!
now what’s the command to make sure nvidia is working ?
Thanks everyone for the help :heart:
Is this the command ?

nvidia-installer-dkms -t 

No i don’t think you can use the nvidia installer as the drivers are not supported and you need to install it from the AUR.

Edit: Just don’t want you going through the same thing over again.

Ya sorry i thought it was a .conf file. Not paying attention. :disappointed:

Ic, no problem, i already have the nvidia driver installed and seems to be working fine now, i got compositing back and no screen tearing etc.

Lets have a look!

inxi -Ga
[ramon@ramon-m61pmes2p ~]$ inxi -Ga
Graphics:
  Device-1: NVIDIA GT218 [GeForce 210] vendor: ZOTAC driver: nvidia
    v: 340.108 alternate: nouveau pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    bus-ID: 02:00.0 chip-ID: 10de:0a65 class-ID: 0300
  Device-2: Microsoft LifeCam Cinema type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-4:4 chip-ID: 045e:075d
    class-ID: 0102
  Display: x11 server: X.Org v: 21.1.3 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 92 s-size: 442x251mm (17.40x9.88")
    s-diag: 508mm (20.01")
  Monitor-1: VGA-0 res: 1600x900 hz: 60 dpi: 92
    size: 443x249mm (17.44x9.8") diag: 508mm (20.01") modes: N/A
  OpenGL: renderer: GeForce 210/PCIe/SSE2 v: 3.3.0 NVIDIA 340.108
    direct render: Yes
[ramon@ramon-m61pmes2p ~]$ 
1 Like

Looks all good from here.

1 Like