WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Modern nvidia driver or recent nouveau?  (Read 9835 times)

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Modern nvidia driver or recent nouveau?
« on: April 23, 2023, 07:11:46 PM »
Hello, friends. I really like TinyCore. I am looking at using it as my one and only main system.

I have tested both dCore and x86 Pure 64 and have failed to get a proprietary or open source driver installed for my GTX 1650. Can anyone provide me with any assistance?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Modern nvidia driver or recent nouveau?
« Reply #1 on: April 24, 2023, 03:32:20 AM »
What have you tried so far - Xorg-7.7, Xorg-7.7-3d, nouveau kernel drivers, etc and what happened?

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #2 on: April 24, 2023, 05:22:08 AM »
What have you tried so far - Xorg-7.7, Xorg-7.7-3d, nouveau kernel drivers, etc and what happened?

Thanks a lot for the help. I'm not very familiar with TinyCore (actually I'm not very faimiar with linux on desktop, usually I just use a remote terminal). Apparently I was installing the wrong packages. After installing:

firmware-nvidia.tcz
graphics-6.1.2-tinycore64.tcz
nouveau-6.1.2-tinycore64.tcz
Xorg-7.7.tcz
Xorg-7.7-3d.tcz

The nouveau driver is now working properly again.

Taking advantage of the help, I would like to have some help on the keys and on the audio.

I installed the kmaps package and added kmap=qwerty/br-abnt2 in grub.cfg, but that wasn't enough to change the keyboard layout, what could I do?

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #3 on: April 24, 2023, 06:38:37 AM »
What have you tried so far - Xorg-7.7, Xorg-7.7-3d, nouveau kernel drivers, etc and what happened?

Thanks a lot for the help. I'm not very familiar with TinyCore (actually I'm not very faimiar with linux on desktop, usually I just use a remote terminal). Apparently I was installing the wrong packages. After installing:

firmware-nvidia.tcz
graphics-6.1.2-tinycore64.tcz
nouveau-6.1.2-tinycore64.tcz
Xorg-7.7.tcz
Xorg-7.7-3d.tcz

The nouveau driver is now working properly again.

Taking advantage of the help, I would like to have some help on the keys and on the audio.

I installed the kmaps package and added kmap=qwerty/br-abnt2 in grub.cfg, but that wasn't enough to change the keyboard layout, what could I do?

@edit
I somehow managed to change the keyboard by editing the .xsession and adding it to backupt, but i dont wanted to have a backup file
same applied to alsa audio, i also managed to get it to work, it was pretty easy actually, but i needed to create a backup for the alsactl init

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #4 on: April 24, 2023, 12:49:59 PM »
What have you tried so far - Xorg-7.7, Xorg-7.7-3d, nouveau kernel drivers, etc and what happened?

Thanks a lot for the help. I'm not very familiar with TinyCore (actually I'm not very faimiar with linux on desktop, usually I just use a remote terminal). Apparently I was installing the wrong packages. After installing:

firmware-nvidia.tcz
graphics-6.1.2-tinycore64.tcz
nouveau-6.1.2-tinycore64.tcz
Xorg-7.7.tcz
Xorg-7.7-3d.tcz

The nouveau driver is now working properly again.

Taking advantage of the help, I would like to have some help on the keys and on the audio.

I installed the kmaps package and added kmap=qwerty/br-abnt2 in grub.cfg, but that wasn't enough to change the keyboard layout, what could I do?

While the nouveau its working, it is damn slow. the proprietary driver is needed.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Modern nvidia driver or recent nouveau?
« Reply #5 on: April 24, 2023, 02:49:48 PM »
Did you check /var/log/Xorg.0.log to see if hardware acceleration is working.

Note also that if you want to avoid using a backup, you can add a configuration file to your local copy of the relevant extension.

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #6 on: April 24, 2023, 05:14:10 PM »
Did you check /var/log/Xorg.0.log to see if hardware acceleration is working.

Note also that if you want to avoid using a backup, you can add a configuration file to your local copy of the relevant extension.

I can't say if it's being accelerated or not, but it's much faster after I installed the nouveau  driver compared to no driver at all but, even with the nouveau driver, the mesa-demos are performing infinitely lower than low cost video cards  from 12 years ago! it is exaggeratedly slow.

aus9

  • Guest
Re: Modern nvidia driver or recent nouveau?
« Reply #7 on: April 24, 2023, 10:18:34 PM »
Juanito is the expert here....but my comments are

IMHO your xorg log shows that you have used a boot code vga=791 and the internet suggests that Kernel mode setting KMS does not like that.

Quote
The Nouveau kernel module should load automatically on system boot. If it does not happen, then:
    Make sure you do not have nomodeset or vga= as a kernel parameter, since Nouveau requires kernel mode-setting.
ref
https://wiki.archlinux.org/title/Nouveau

Do you need UEFI on?

2) Can you download and install inxi please. its a lot easier to understand than reading your log. Your log shows loading and unloading of various video drivers.
Code: [Select]
tce-load -w inxi
tce-load -i inxi
inxi -Gxxx

I will give you an idea of the load unload going with my results.
Quote
NOT OP just example
inxi -Gxxx
Graphics:
  Device-1: AMD driver: amdgpu v: kernel arch: GCN-5 pcie: speed: 8 GT/s
    lanes: 16 ports: active: HDMI-A-1 empty: DVI-D-1,HDMI-A-2 bus-ID: 26:00.0
    chip-ID: 1002:15d8 class-ID: 0300 temp: 37.0 C
  Display: server: X.Org v: 1.21.1.6 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: LG (GoldStar) FULL HD
    res: 1920x1080 hz: 60 dpi: 102 size: 480x270mm (18.9x10.63")
    diag: 551mm (21.7") modes: max: 1920x1080 min: 720x400
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.

so its lot easier IMHO to see that unloaded: fbdev,vesa but inxi does not show any conflicting or blacklisting boot loader settings while Xorg log does!

Quote
I can't say if it's being accelerated or not
...if glxgears spins....you have acceleration
« Last Edit: April 24, 2023, 10:34:23 PM by aus9 »

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Modern nvidia driver or recent nouveau?
« Reply #8 on: April 25, 2023, 03:38:20 AM »
With the x11 keyboard map problem you may to read this threads.

http://forum.tinycorelinux.net/index.php/topic,25863.msg165846.html#msg165846

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Modern nvidia driver or recent nouveau?
« Reply #9 on: April 25, 2023, 04:19:31 AM »
Your Xorg log shows this:
Code: [Select]
[    25.764] (==) Matched nouveau as autoconfigured driver 0
[    25.764] (==) Matched nv as autoconfigured driver 1
[    25.764] (==) Matched modesetting as autoconfigured driver 2
[    25.764] (==) Matched fbdev as autoconfigured driver 3
[    25.764] (==) Matched vesa as autoconfigured driver 4
..meaning its first preference is to use the nouveau driver.

..but it can't find the nouveau module:
Code: [Select]
[    25.764] (II) LoadModule: "nouveau"
[    25.764] (WW) Warning, couldn't open module nouveau
[    25.764] (EE) Failed to load module "nouveau" (module does not exist, 0)

..and so:
Code: [Select]
[    25.779] (EE) open /dev/dri/card0: No such file or directory..which means 3d hardware acceleration is not being used (fbdev is being used).

The nouveau-KERNEL extension provides nouveau.ko.gz, does "lsmod" show that it is loaded? If not try "sudo modprobe nouveau" and check again.

Is the xf86-video-nouveau extension loaded?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Modern nvidia driver or recent nouveau?
« Reply #10 on: April 25, 2023, 04:24:19 AM »
...if glxgears spins....you have acceleration

Yes, but they will spin with both software (lavapipe) and hardware acceleration - better to use "glxinfo | grep Accel"

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #11 on: April 25, 2023, 05:25:24 AM »
...if glxgears spins....you have acceleration

Yes, but they will spin with both software (lavapipe) and hardware acceleration - better to use "glxinfo | grep Accel"
Code: [Select]
tc@box:~$ glxinfo | grep Accel
    Accelerated: no

tc@box:~$ sudo modprobe nouveau
modprobe: module nouveau not found in modules.dep

tc@box:~$ inxi -Gxxx
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "pt_BR"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Graphics:
  Device-1: NVIDIA vendor: ASUSTeK driver: N/A arch: Turing pcie:
    speed: 2.5 GT/s lanes: 4 bus-ID: 03:00.0 chip-ID: 10de:1f82 class-ID: 0300
  Display: server: X.Org v: 1.21.1.6 driver: X: loaded: nouveau,vesa
    unloaded: fbdev,modesetting alternate: nv dri: swrast gpu: N/A
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37")
    s-diag: 449mm (17.69")
  Monitor-1: default res: 1440x900 hz: 77 size: N/A modes: N/A
  API: OpenGL v: 4.5 Mesa 22.3.7 renderer: llvmpipe (LLVM 15.0.7 256 bits)
    direct-render: Yes

I installed everything related to nouveau. The comments by xf86-video-nouveau say that my video card is not supported.

Does the order of the packages matter?

Do you need UEFI on?
Sadly yes. My motherboard is UEFI only. I can't even boot into windows 7.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Modern nvidia driver or recent nouveau?
« Reply #12 on: April 25, 2023, 05:45:23 AM »
If you get this:
Code: [Select]
sudo modprobe nouveau
modprobe: module nouveau not found in modules.dep
..it means nouveau-KERNEL is not loaded.

What does this give:
Code: [Select]
tce-status -i | grep nouveau

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #13 on: April 25, 2023, 05:48:26 AM »
If you get this:
Code: [Select]
sudo modprobe nouveau[code]
modprobe: module nouveau not found in modules.dep
..it means nouveau-KERNEL is not loaded.

What does this give:
Code: [Select]
tce-status -i | grep nouveau
Code: [Select]
tc@box:~$ tce-status -i | grep nouveau
xf86-video-nouveau
I installed xf86-video-nouveau now after you advise me. I don't know what happened before but the result is apparently the same.

@edit
Maybe I found the problem. Apparently, when I tried to load the driver through the apps, the driver restarted before the files were saved to the USB stick. I just noticed that several files, i2c, nouveau and etc were 0kb. I will update soon.
« Last Edit: April 25, 2023, 06:06:08 AM by CardealRusso »

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Modern nvidia driver or recent nouveau?
« Reply #14 on: April 25, 2023, 06:31:51 AM »
If you get this:
Code: [Select]
sudo modprobe nouveau
modprobe: module nouveau not found in modules.dep
..it means nouveau-KERNEL is not loaded.

What does this give:
Code: [Select]
tce-status -i | grep nouveau

Everything is seems installed correctly. but still no acceleration.

Code: [Select]
tc@box:~$ sudo modprobe nouveau

tce-status -i | grep nouveau
nouveau-6.1.2-tinycore64

tc@box:~$ glxinfo | grep Accel
    Accelerated: no

tc@box:~$ inxi -Gxxx
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "pt_BR"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Graphics:
  Device-1: NVIDIA vendor: ASUSTeK driver: nouveau v: kernel arch: Turing
    pcie: speed: 2.5 GT/s lanes: 4 ports: active: HDMI-A-1 empty: DP-1,DVI-D-1
    bus-ID: 03:00.0 chip-ID: 10de:1f82 class-ID: 0300 temp: 37.0 C
  Display: server: X.Org v: 1.21.1.6 driver: X: loaded: modesetting
    unloaded: fbdev,vesa alternate: nouveau,nv dri: swrast gpu: nouveau
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37")
    s-diag: 449mm (17.69")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: HDMI res: 1440x900 hz: 60
    dpi: 64 size: 575x323mm (22.64x12.72") modes: max: 1440x900 min: 720x400
  API: OpenGL v: 4.5 Mesa 22.3.7 renderer: llvmpipe (LLVM 15.0.7 256 bits)
    direct-render: Yes


tc@box:~$ glxgears
1895 frames in 5.0 seconds = 378.986 FPS
1878 frames in 5.0 seconds = 375.515 FPS
2035 frames in 5.0 seconds = 406.945 FPS

onboot.lst:

Code: [Select]
...
Xorg-7.7-3d.tcz
nouveau-6.1.2-tinycore64.tcz
...
« Last Edit: April 25, 2023, 06:33:53 AM by CardealRusso »