Why it's so complicated

I have a GTX 650 TI Boost and it works with the last available nvidia driver, I think the last available nvidia driver for FreeBSD supports everything down to Kepler.
I can confirm, the GT710 in my machine runs with the 470.86 driver version, too. However, I cannot verify the Kepler part :)
 
Ah, nothing has changed from my 2.2.5 days.

The answer to this question is that FreeBSD users simply bang their heads on things until they figure it out and expect everyone else to do the same. That way we're all adept at knowing all the problems we'll run into and how just about everything works, even if we don't want to know. Sometimes, a nice thing will come along such as freebsd-update and people will complain about how it "dumbs users down" from knowing how to recompile a kernel.

Anyway, I'm sorry. It probably shouldn't be like this but it is.
Fair enough, that's really very kind from you thank you :)
 
Don't be afraid of doing it many times over - that's what it takes to learn. :)
Well, actually I'm not good enough in English that's why I like to ask too much rather than search and I was planning to give up but I'm not i will install FreeBSD on my PC i know it is worth the time like hbsd above said with WM that i was always afraid to configure and customize it the way i like i swear
 
I'm somewhat concerned that you are spending too much time worrying about getting a desktop up and running before you have the base system installed. Putting the cart before the horse.
Do you have the base system up and running? That is, terminal only. No other windowing or desktop anything.
 
Yes, I have the base system installed and updated!

That's good.

If you have not already done so, add yourself (not the root user) to the video and wheel groups.

Then:
  1. pkg install --quiet --yes nvidia-driver nvidia-xconfig xorg
  2. nvidia-xconfig
  3. kldload nvidia-modeset
  4. kldstat | grep nvidia
What is shown after step 4?
 
I'm going to disagree with grahamperrin on step #2 above.
As root, create a file /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf with the following contents:
Code:
Section "Device"
        Identifier "NVIDIA Card"
        VendorName "NVIDIA Corporation"
        Driver "nvidia"
EndSection
That should be enough to get X up and running. If this is a laptop with a dual Intel/Nvidia thing, there is more work, but it sounds like that is not the case.
That's all I've had to do, X tells me:
Code:
[327837.578] (II) NVIDIA GLX Module  470.86  Tue Oct 26 21:45:59 UTC 2021
[327837.578] (II) NVIDIA: The X server supports PRIME Render Offload.
[327837.766] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[327837.766] (--) NVIDIA(0):     CRT-0
[327837.766] (--) NVIDIA(0):     DFP-0 (boot)
[327837.766] (--) NVIDIA(0):     DFP-1
[327837.766] (II) NVIDIA(0): NVIDIA GPU NVIDIA GeForce GT 740 (GK107) at PCI:1:0:0 (GPU-0)
If the CPU has embedded graphics (Intel, AMD) you may need to explicitly turn them off in the BIOS.
 
In the name of the great Internet tradition of butting in and disagreeing with the previous post, I will keep the tradition going - even if drhowarddrfine has mastered the art way better than I ever will: :P

The FreeBSD Graphics wiki page has all the info needed to get a GPU going, be it discrete or integrated. No need for no stinkin' driver-nvidia.conf file :P
 
I'll disagree with the outdated information on linked page.....
(mostly because a really quick look at the page it's talking about Intel and AMD, not nvidia)
:)
 
"Ok, you can't really move for the next 6 weeks, here's a keyboard, the internet, have fun. But don't burn it down"
 
That's good.

If you have not already done so, add yourself (not the root user) to the video and wheel groups.

Then:
  1. pkg install --quiet --yes nvidia-driver nvidia-xconfig xorg
  2. nvidia-xconfig
  3. kldload nvidia-modeset
  4. kldstat | grep nvidia
What is shown after step 4?
ok I can't find what I'm looking for on the internet so I will do this correct me pls
I have the base system installed and updated, through the installation >>> Login Group is <username> wheel video
for the webcamd when I try add it I think tell me don't exist or something like that I forget
Code:
1-  pkg install beadm
2- beadm create base1
3- pkg install sudo
4- visudo      uncomment wheel
5- log out with ctrl+d        log in
6- sudo -s
7- pkg install xorg
before after I install xorg when I type startx twm doesn't appear or pop up, whatever ill do it again
Code:
8 startx
9- pkg install x11/awesome
10- pkg install slim
11- sysrc slim_enable="YES"
12- log out with ctrl+d
13- mkdir ~/.config
14- mkdir ~/.config/awesome
15- cp /usr/local/etc/xdg/openbox/*.* ~/.config/awesome
16- ee .xinitrc                                    exec awesome
17- sysrc dbus_enable="YES"
18- echo sessiondir/usr/local/share/xsessions/ >> /usr/local/etc/slim.conf
19- pkg search nvidia
20- pkg install --quite --yes nvidia-driver nvidia-xconfig xorg
21- kldload nvidia-modset
22- kldstat | greb nvidia
23- kldstat
24- kldload linux
25- kldload linux64
26- ee /etc/rc.conf
27- pkg install linux_base-c7
28- ee /etc/fstab
29- linprocfs   /compat/linux/proc      linprocfs   rw               0    0
30-  linsysfs    /compat/linux/sys       linsysfs    rw               0    0
31- tmpfs       /compat/linux/dev/shm   tmpfs       rw, mode=1777    0    0
mount /compat/linux/proc
mount /compat/linux/sys
mount /compat/linux/dev/shm
33- shutdown -r now
 
about Intel and AMD, not nvidia

True.

Graphics - FreeBSD Wiki
  • no mention of NVIDIA
  • if I understand correctly, there's a plan to "consolidate Graphics and Desktop pages", if/when this happens I guess that it should include or link out to NVIDIA-related information.


The suggestion to install and run nvidia-xconfig was based on my experience in the topic below. I hate editing X.Org configuration files, I preferred NVIDIA's utility to perform the configuration, it worked in my case.

 
  • Like
Reactions: mer
Where are you coming up with all that
From the internet i just try to do my best,(just take it easy for me i learn from you) I find other auto desktop installations but i just went to do it by myself and learn some basics
It's definitely not from the Handbook!
Yes, it's not from the Handbook! there is nothing about how to install Awesome WM on the Handbook i just make it a lot harder to me
it's definitely not any installation procedure I've gone through
Can u guide me and correct my stupid steps pls I'll appreciate it ?
 
Noob Noob The ONLY thing the Handbook doesn't help you with is installing Awesome. But the ONLY thing that's different is what you would enter in .xinitrc which looks to be correct from what you show.

I'm in and out all day and can't concentrate on this and I haven't needed to install my system in a couple of years (and it only took me 15 minutes or so). As I said earlier, do NOT use random internet sites for this. Use the Handbook! Come here if things don't work as expected but fumbling about with random sites will only get you deeper into trouble.
 

Upstream SLiM has not been updated since 2013.

SDDM (more modern) for FreeBSD is enhanced to not require ~/.xinitrc

Your opening post mentioned KDE. Don't be afraid to install KDE Plasma. The quick start (screenshot below) is genuinely quick:

1647428850549.png
  • no need to create or edit any .conf file.

Written guidance is linked from page 1 of this topic:

the KDE-provided quick start for Plasma on FreeBSD:
 
Installing KDE is definitely in the Handbook, as is installation of SDDM. I really recommend becoming familiar with the Handbook. Just about all other sources of info assume that you're familiar with contents of the Handbook, and are capable of following the steps as outlined there. ?
 
SDDM (more modern) for FreeBSD is enhanced to not require ~/.xinitrc
But the pkg-message for x11/sddm (v0.19.0_7 in ports tree) says:
SDDM lists a "user session" which needs either an .xinitrc in the user's
home directory, or as a fallback, xterm. In order to use the "user session"
feature, a ~/.xinitrc is recommended.
 
But the pkg-message for x11/sddm (v0.19.0_7 in ports tree) says:
SDDM lists a "user session" which needs either an .xinitrc in the user's
home directory, or as a fallback, xterm. In order to use the "user session"
feature, a ~/.xinitrc is recommended.
recommended, but not required - as in, x11/sddm won't crash or fail to install or give you other problems if ~/.xinitrc is not present. Graceful handling of less than desirable situations is possible even in a program. :P
 
Graceful handling of less than desirable situations is possible even in a program
I disagree :p
I've been writing sw for a long time, graceful handling of errors or less than desirable situations is like "The Mythical Man Month".

( Just kidding, I agree that it's possible, and actually desirable, but not often implemented )
 
Back
Top