Anyone help me with sorting out Xorg configuration?

So been trying to configure my BSD driver into a daily driver just as an experiment and see what I can do with it. Have finally managed to get XFCE to work somewhat (maybe no the most recommend de but I liked it), however I am running into 2 issues:

1) the display is offset the the side ina way where both edges of the screen are actually in the middle (will edit to add an image later)
2) it’s not recognising the keyboard type (British). Some of the keys are swapped around or do not work at all

Been looking through the FreeBSD and Xorg documentation and cannot for the life of me figure out how to fix either of those things and was wondering if could get a bit of guidance for it.
 
This is the issue with the desktop environment I am having. Know it has something to do with display configurations but cannot figure out how or why it’s like this
IMG_2547.jpeg
 
To set the english language keyboard, go into xfce settings, then 'language support', and set it to 'Englich (united kingdom)' under language; and/or look for 'keyboard layout' and set it to uk english.

What hp laptop is it? What graphics chip is it running?
 
To set the english language keyboard, go into xfce settings, then 'language support', and set it to 'Englich (united kingdom)' under language; and/or look for 'keyboard layout' and set it to uk english.

What hp laptop is it? What graphics chip is it running?
It’s a HP pavilion g6… chip is intel.

Also are just regular settings when I hop into the DE or is there I configuration file I need to edit for XFCE?
 
is there I configuration file I need to edit for XFCE?
Focus on Xorg first. Get the foundation in order, then you can build on top of that (the DE or WM). Note that it defaults to the vesa(4) driver, you might want to install a proper graphics driver first.

 
Make sure you've installed graphics/drm-kmod. Then in /etc/rc.conf you need this line.
Code:
kld_list="i915kms"

Also in /etc/rc.conf, you can specify your keymap like this.
Code:
keymap="uk.kbd"

I'm a bit surprised you're having problems, it usually works straight out of the box.

I think from memory that there are some screen settings you can configure in the xfce settings menu, it would be worth checking what you have got set in there, in case there is something that is messing it up.
 
Focus on Xorg first. Get the foundation in order, then you can build on top of that (the DE or WM). Note that it defaults to the vesa(4) driver, you might want to install a proper graphics driver first.

the reason I have it set to vesa is because it’s the only one that works (believe it’s cause the boot loader is set to bios?). Did try to use an intel driver but kept giving me a black screen with nothing on it. I haven’t yet downloaded the xf86-video driver for intel if that is what you mean
 
Make sure you've installed graphics/drm-kmod. Then in /etc/rc.conf you need this line.
Code:
kld_list="i915kms"

Also in /etc/rc.conf, you can specify your keymap like this.
Code:
keymap="uk.kbd"

I'm a bit surprised you're having problems, it usually works straight out of the box.

I think from memory that there are some screen settings you can configure in the xfce settings menu, it would be worth checking what you have got set in there, in case there is something that is messing it up.
Thing is those are both set correctly. I don’t know if I screwed something with the configuration (can try to locate them later) but must have done something while trying to get the screen to load up. Had the driver set to intel which wouldn’t load so set it to vesa cause I believe bootloader was set to bios (which I believe was the problem?)

Honestly at this point I am considering doing a fresh boot and starting over to make sure I do it properly
 
the reason I have it set to vesa is because it’s the only one that works (believe it’s cause the boot loader is set to bios?)
Xorg can fallback to two different drivers depending on how the system is booted. For BIOS boots it will default to vesa(4), if you UEFI boot it will fallback to scfb(4).
 
Thing is those are both set correctly. I don’t know if I screwed something with the configuration (can try to locate them later) but must have done something while trying to get the screen to load up. Had the driver set to intel which wouldn’t load so set it to vesa cause I believe bootloader was set to bios (which I believe was the problem?)

Honestly at this point I am considering doing a fresh boot and starting over to make sure I do it properly
You could start over and try using a simple window manager like twm, before you put xfce on. Xfce is pretty big. See if you can get it working with something simple like twm or fvwm first. Once you have it working that way, then put xfce on. Although it shouldn't really be necessary to do that, but it's worth a try.
 
You could start over and try using a simple window manager like twm, before you put xfce on. Xfce is pretty big. See if you can get it working with something simple like twm or fvwm first. Once you have it working that way, then put xfce on. Although it shouldn't really be necessary to do that, but it's worth a try.
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
 
The B960 has intel HD graphics gen 6 @ 1100 MHz https://hmc-tech.com/cpus/intel-pentium-b960
Your chip uses the sandy bridge U architecture. https://www.cpu-monkey.com/en/cpu-intel_pentium_b960
It's a shared memory GPU that uses DDR3 main ram for its video ram. https://hmc-tech.com/gpus/intel-hd-1100mhz-gen-6

There is a gpu support matrix here. https://forums.freebsd.org/threads/intel-gpu-support-matrix.102846/
According to that sandybridge is supported by the i915 driver, and there are 4 drm-kmod packages that support it (hopefully there is not something special about 'sandybridge U'). I did try searching for 'Pentium B960' on intel.com but got no hits, so it seems to be a somewhat obscure cpu.

You could try installing the older driver which is graphics/drm-61-kmod, although it should work with the current driver.
 
CRatPirate did you create any custom configuration files for X11?
If yes, which ones?

For keyboard layout this is my config file (portuguese laylout):
Code:
Section "InputClass"
    Identifier "Keyboard1"
    MatchIsKeyboard "on"
    Option "XkbLayout" "pt"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Additionally on XFCE, from the terminal (xfce4-terminal, not a vt), type: xfwm4 --compositor=off
And see if that helps
 
CRatPirate did you create any custom configuration files for X11?
If yes, which ones?

For keyboard layout this is my config file (portuguese laylout):
Code:
Section "InputClass"
    Identifier "Keyboard1"
    MatchIsKeyboard "on"
    Option "XkbLayout" "pt"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Additionally on XFCE, from the terminal (xfce4-terminal, not a vt), type: xfwm4 --compositor=off
And see if that helps
deleted them thinking that might have been the problem, but have created other config files for specific components so i might try to edit that.
 
deleted them thinking that might have been the problem, but have created other config files for specific components so i might try to edit that.
SandyBridge had issues, so much that you have a specific acceleration method in X just for it (see the arch wiki as a good source of info: https://wiki.archlinux.org/title/Intel_graphics#With_the_Intel_driver), then Intel dropped work on the DDX driver and went all in with modesetting.
Though from a X11 perspective the only things that should have mattered are:
  1. Are you using modesetting or the xorg ddx driver?
  2. If using the xorg ddx driver which acceleration mode are you using?
  3. Are you using composition or not on your DE
If you are seeing the same screen issue with for example a plain old startx from vt (or twm), it's not a XFCE issue, if its only on XFCE and composition makes no difference I would see it's bug tracker (and their matrix/irc channel).
 
OP says the cpu is an i5-2430m. Which is also a sandybridge chip: https://www.intel.com/content/www/u...r-3m-cache-up-to-3-00-ghz/specifications.html . The GPU is an HD Graphics 3000.

To check which dri driver you are running, run 'xdriinfo'. If it reports 'crocus', then you are running the modesetting driver with glamor X acceleration, runing the 'crocus' dri driver. If it reports 'unaccelerated' or 'vesa', then you are running vesa.
Correction - it actually outputs 'swrast' for unaccelerated.

It's clear from https://termbin.com/19kq that you were running the vesa driver first time around.

You should be able to run the modesetting driver on that hardware. I have a similar i5-2520m cpu here, which is also a sandybridge cpu with HD 3000 graphics, ( see https://www.intel.com/content/www/u...r-3m-cache-up-to-3-20-ghz/specifications.html ) and modesetting runs ok here using glamor and the crocus dri driver. I am running 14.5-RELEASE and have drm-kmod-20260508 installed. I have not had to make any manual changes to the Xorg configuration files, it worked straight out of the box.
 
Back
Top