Anyone help me with sorting out Xorg configuration?

From my installation notes, after I did the basic freebsd installation as far as getting to the console logon, I then ran
# pkg install xorg wmaker
- which installed xorg and the windowmaker window manager (you can use twm, fvwm, whatever)
- after this point everything worked with the vesa driver

Then to get accelerated graphics I installed
# pkg_install drm-61-kmod

And on the next startx, Xorg auto-configured, modesetting was loaded and I had accelrated graphics, with xdrinfo reporting 'crocus'.

That's all I had to do. I didn't do any manual edits to Xorg config files. My hardware is thinkpad X220, which is about the same generation as your laptop.
NB I'm running freebsd 14.5, not 15.1, so there may be some differences.

I think you are close to having it working, since the whole desktop is shown on your screen, it's just displaced by 50% to the right (or left). Something is not quite configured correctly. I suggest try a different window manager and see if that works.
 
This is what I currently have installed

# pkg info drm-kmod
drm-kmod-20260508
Name : drm-kmod
Version : 20260508
Installed on : Fri Oct 23 13:56:45 2026 BST
Origin : graphics/drm-kmod

I think I may have overwritten drm-61-kmod with drm-kmod at some point, I seem to remember some discussion about this back in 2025, that drm-61-kmod was required early on in 14.x-release, but drm-kmod was then updated and could be used instead; but my memory is a bit hazy so don't quote me on that.

And in /etc/rc.conf I have
Code:
keymap="uk.kbd"
kld_list="i915kms"

And in my window manager's startup file I have
Code:
setxkbmap gb
- although of course you can just run that on the command line in an xterm.
 
Honestly at this point might as well. Think I went over my head with going straight to XFCE. Happen to know if there is a way to factory reset the os? If not just gonna boot it fresh from iso
There's no 'factory reset' like you get on a smartphone, if that's what you're thinking of. Just reinstall from .iso. I suggest give fvwm or windowmaker a try, twm is very minimal. If it all works fine with one of those, then I think something must be wrong in your xfce config, I don't use xfce so I don't know what might be wrong there.
 
There's no 'factory reset' like you get on a smartphone, if that's what you're thinking of. Just reinstall from .iso. I suggest give fvwm or windowmaker a try, twm is very minimal. If it all works fine with one of those, then I think something must be wrong in your xfce config, I don't use xfce so I don't know what might be wrong there.
can either of the Desktop Environment you suggested handle software like gimp or would i need a different DE for that? actually better question is there a list of various DE I could use?
 
can either of the Desktop Environment you suggested handle software like gimp or would i need a different DE for that? actually better question is there a list of various DE I could use?
Yes no problem running gimp on any of those. You can simply open a terminal and type 'gimp' to launch it, or if you read the configuration details for the particular WM you should be able to figure out how to add a menu option for gimp, if there isn't already one there.

But I would do the test first, let's establish that your laptop does actually work correctly with another window manager. Once we know that, then it may be worth having another try with xfce, or you can try something like kde plasma, if you want a full-featured desktop.
 
If you want to experiment, there is a very nice guide to building a freebsd desktop environment here https://vermaden.wordpress.com/freebsd-desktop/
And there is a recent article on building a kde plasma 6 desktop on freebsd here https://www.musabase.com/2025/08/how-to-install-and-configure-kde-plasma.html

One of the nice things about freebsd is that you have a wide array of desktop gui software available to choose from.

But let's get to first base first, and get your system up and running with a simple classic window manager like ctwm, or fvwm. Once you have established the hardware works, then you can think about what other options you might like to try.
 
I should probably add, multiple window managers / DE's can co-exist in the same install, and which one to use can be chosen from the login manager (eg, sddm). You don't need to completely re-install the machine from scratch for each one. So you might well have, for example, kde plasma as your main desktop, with fvwm also available for occasional use, when you want something simple.
 
Back
Top