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.
 
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.
fair, but think I will do a fresh boot just to make sure I do it properly and understand if there was anything I might have gotten wrong in the process initially
 
So update:
Was able to change the Window manager to CTWM with relative ease, and does work, however, it seems like the Split screen issue is still prevalent across both WM, which either the computer I am running has a display setting which the system is reading wrong and need to figure out how to fix that. Potential theory is that it has something to do with the Vesa driver not reading the display size properly:


Code:
(WW) VESA(0): Unable to estimate virtual size
(II) VESA(0): Not using Built-in mode "1024x768" (no mode of this name)
(II) VESA(0): Not using Built-in mode "800x600" (no mode of this name)
(II) VESA(0): Not using Built-in mode "640x480" (no mode of this name)
(II) VESA(0): Virtual size is 1368x768 (pitch 1368)
(II) VESA(0): *Built-in mode "1368x768"
(II) VESA(0): Display dimensions: (340, 190) mm
(II) VESA(0): DPI set to (102,102)
 
How interesting... I wonder what's happening. For a sanity check, you could try getting ghostbsd https://www.ghostbsd.org/, writing that to a flash usb stick, and then booting the machine from the usb stick. That comes with a preconfigured desktop, full gui. You just 'dd' the ghostbsd image to any usb drive and then boot from it, it will run live from the flash drive. If that works, you could take a look at the Xorg.0.log and/or Xorg config on the flash drive. It's hard to think what the problem could be with your freebsd install...
 
blackbird9 I dont think its the freebsd install either. I think its just that the display settings are either weirdly configured so that when I run Xorg, it acts weirdly. cause it work perfectly fine when not running it. No split screen or keyboard issues.

The only other culprit I can think of is that when I run Xrandr, it says something along the lines of couldn find gamma? (cant remember what that is for)
 
The only other culprit I can think of is that when I run Xrandr, it says something along the lines of couldn find gamma? (cant remember what that is for)ut with similiar
I run xfce and here is my "xrandr"
randr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1400 x 1050, maximum 1400 x 1050
default connected 1400x1050+0+0 0mm x 0mm
1400x1050 0.00*
1280x1024 0.00
1280x960 0.00
1152x864 0.00
1024x768 0.00

I get the "Failed to get size of gamma for output default" too, but my default screen display is fine, tho only the default. I cannot change to a different screen size because that causes issues on my dell m4600 laptop.

I'd try:
Xorg -config as root, su or sudo

then in /etc/rc.conf (if you don't have those entries in)

Code:
dbus_enable="YES"
linux_enable="YES"

Not sue if that's much of help, but ...

Edit:
btw, I have dual video options in my laptop, on chip Integrated Intel HD Graphics 3000 and dedicated AMD FirePro M5950 gpu. And, it doesn't matter which kmod I use, amdgpu or i915kms, the same issues come up when I try different than default screen size. So, I have no clue what cuases the issues, the video drivers, xorg or the Desktop manager.
 
hasbeen it could be that the kmod driver isn't sufficient for my computer and need to download xf86-video in order to get things working. Also have tried to do `X --configure` but nothing much really changed, unless there is a setting to configure the position of the window manager, I am not really sure what I can do in the xorg.conf file to fix my problems
 
hasbeen it could be that the kmod driver isn't sufficient for my computer and need to download xf86-video in order to get things working. Also have tried to do `X --configure` but nothing much really changed, unless there is a setting to configure the position of the window manager, I am not really sure what I can do in the xorg.conf file to fix my problems
Firstly I want to apologize for my error with Xorg command util. It should be:

Xorg -configure

X --configure is not a valid command and option

Secondly, decide on which kmod/video driver you want to use in you /etc/rc.conf first. Then in a console mode as root you can do the Xorg -configure which will set the default X display configuration based on your video driver. The Xorg -configure will display msg to tell you what to do with the newly created xorg conf file in your home (root) dir, I don't think that there is a tweak that you can apply if the Xorg can't set up your display correctly to begin with.
 
Can't quite tell how the display's connected, but if it's DP/eDP I'd try something like enable_dp_mst=0 in loader.conf (not sure if same name on FreeBSD but check with sysctl -a | grep 'enable_dp_mst')
Code:
hw.i915kms.enable_dp_mst="0"


I'd also do all this and delete all xorg.conf snippets (also any created with Xorg -configure; iirc nothing's in xorg.conf.d by-default and no xorg.conf):
Code:
ee '/boot/loader.conf'
Code:
hw.i915kms.modeset="1"
hw.i915kms.nuclear_pageflip="0"
hw.i915kms.fastboot="0"
hw.i915kms.enable_psr="0"
hw.i915kms.enable_psr2_sel_fetch="0"
hw.i915kms.panel_use_ssc="0"
hw.i915kms.enable_ips="0"
hw.i915kms.enable_fbc="0"
hw.i915kms.enable_dc="0"
hw.i915kms.disable_power_well="0"
hw.i915kms.enable_guc="0"
hw.i915kms.guc_log_level="0"
hw.i915kms.verbose_state_checks="0"
hw.i915kms.error_capture="0"
hw.i915kms.request_timeout_ms="0"
hw.i915kms.enable_hangcheck="0"

Code:
pkg install drm-61-kmod xf86-video-intel
Code:
mkdir -p '/usr/local/etc/X11/xorg.conf.d' && ee '/usr/local/etc/X11/xorg.conf.d/10-graphics-custom.conf'
Code:
Section "OutputClass"
    Identifier "Intel (intel custom)"
    MatchDriver "i915"
    Driver "intel"
    Option "AccelMethod" "blt"
    Option "DRI" "3"
    Option "Present" "1"
    Option "TearFree" "0"
    Option "ReprobeOutputs" "0"
    Option "HotPlug" "0"
    Option "Virtualheads" "0"
EndSection

Is your display adapter AMD Radeon HD 6380G?
xorg log has only 1 card with Intel's 8086 ID:
Code:
PCI:*(0@0:2:0) 8086:0116:103c:166f
 
The bottom line. One should not have to play with Xorg configurations if the video chipset is supported by the OS and the user enters correct video driver/kernel module in /etc/rc.conf. The AI (a.k.a automagic) in FreeBSD can figure how to configure X ;)
 
Back
Top