Solved Xorg Setup not working on a X220

I am trying to setup FreeBSD 12.2 on a Lenovo Thinkpad X220 and I have trouble with the basic X Setup. I have already tried GhostBSD and everything worked fine. Since I wanted to encrypt my disk I am no trying to setup everything on FreeBSD. From what I am reading it should work pretty much out of the box.

Currently I am struggling getting the graphic setup. This is what I did based on research in this forum and various other pages

Code:
sudo pkg install xorg-minimal xrdb libXft compton dejavu libXinerama xrandr xterm 
echo "dbus_enable=\"YES\"" >> /etc/rc.conf
echo "hald_enable=\"YES\"" >> /etc/rc.conf
pkg install drm-kmod
echo 'kld_list="/boot/modules/i915kms.ko"' >> /etc/rc.conf
reboot

kldstat shows that i915kms.ko is loaded.

When I run startx and the check with xrandr it tells me the resolution is only 1024x768 instead of the possible 1366x768 and it also does not find the external screen.

Any hints what I am missing?
 
One of the best resources for setting up a FreeBSD desktop (especially using a Thinkpad) is Vermaden's FreeBSD Desktop series here. Post again if you're still struggling. Good luck.
 
Thats it.

For those that come back to this later. This it what solved it

pkg install subversion svnlite checkout https://svn.freebsd.org/base/releng/12.2 /usr/src portsnap fetch portsnap update pkg remove drm-fbsd12.0.kmod cd /usr/ports/graphics/drm-fbsd12.0-kmod make install reboot

xrandr is now detecting all screens and X is using the correct resolution of the internal display. I can also enable the external VGA Display with xrandr. I assume when I setup a nice Windowmanager the rest will workout find
 
Back
Top