FreebSD12 xorg with AMDGPU

andrew glaeser bugs at irregulaire.info
Mon Aug 5 07:37:43 UTC 2019


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Seems OK now finally, without using AMDGPU-driver from ports,

this was also a good read:

> https://en.wikipedia.org/wiki/Direct_Rendering_Infrastructure

You see I changed to FreeBSD12, because installing TrueOS (and disabling

boot) turned out an 'unrepeatable error'.

This seems mostly identical, also gave me ZFS-root and many more options

during install-time, probably I could also use open-RC here, but that is not

even necessary, so it does not really matter which one you love the most.




> andrew at a68n:~$ ssh root at fbsd12
> Last login: Mon Aug  5 09:11:12 2019 from 192.168.0.58
> FreeBSD 12.0-STABLE r350087 GENERIC 
> 
> Welcome to FreeBSD!
> 
> Release Notes, Errata: https://www.FreeBSD.org/releases/
> Security Advisories:   https://www.FreeBSD.org/security/
> FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
> FreeBSD FAQ:           https://www.FreeBSD.org/faq/
> Questions List:
> https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD
> Forums:        https://forums.FreeBSD.org/
> 
> Documents installed with the system are in the /usr/local/share/doc/freebsd/
> directory, or can be installed later with:  pkg install en-freebsd-doc
> For other languages, replace "en" with a language code like de or fr.
> 
> Show the version of FreeBSD installed:  freebsd-version ; uname -a
> Please include that output and any error messages when posting questions.
> Introduction to manual pages:  man man
> FreeBSD directory layout:      man hier
> 
> Edit /etc/motd to change this login announcement.
> root at fbsd12:~ # ee /etc/ssh/sshd_config 
> ^[ (escape) menu  ^y search prompt  ^k delete line   ^p prev li   ^g prev
> page ^o ascii code     ^x search         ^l undelete line ^n next li   ^v
> next page ^u end of file    ^a begin of line  ^w delete word   ^b back 1
> char ^t top of text    ^e end of line    ^r restore word  ^f forward 1 char
> ^c command        ^d delete char    ^j undelete char ^z next word
> =====line 40 col 0 lines from top 40
> ========================================== #       $OpenBSD: sshd_config,v
> 1.103 2018/04/09 20:41:22 tj Exp $ #       $FreeBSD:
> stable/12/crypto/openssh/sshd_config 338561 2018-09-10 16:20:12Z des $
> 
> # This is the sshd server system-wide configuration file.  See
> # sshd_config(5) for more information.
> 
> # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
> 
> # The strategy used for options in the default sshd_config shipped with
> # OpenSSH is to specify options with their default value where
> # possible, but leave them commented.  Uncommented options override the
> # default value.
>                                       
> # Note that some of FreeBSD's defaults differ from OpenBSD's, and
> # FreeBSD has a few additional options.
>                                       
> #Port 22                              
> #AddressFamily any                    
> #ListenAddress 0.0.0.0                
> #ListenAddress ::                     
>                                       
> #HostKey /etc/ssh/ssh_host_rsa_key    
> #HostKey /etc/ssh/ssh_host_ecdsa_key  
> #HostKey /etc/ssh/ssh_host_ed25519_key
>                                       
> # Ciphers and keying
> #RekeyLimit default none
> 
> # Logging
> #SyslogFacility AUTH
> #LogLevel INFO
> 
> # Authentication:
> 
> #LoginGraceTime 2m
> PermitRootLogin without-password
> #StrictModes yes
> #MaxAuthTries 6
> #MaxSessions 10
> 
> #PubkeyAuthentication yes
> 
> # The default is to check both .ssh/authorized_keys
> and .ssh/authorized_keys2 # but this is overridden so installations will
> only check .ssh/authorized_keys
> 
> root at fbsd12:~ # pw groupmod video -M user
> root at fbsd12:~ # [startx issued as user]
> root at fbsd12:~ # cat /var/log/Xorg.0.log 
> [   178.521] 
> X.Org X Server 1.18.4
> Release Date: 2016-07-19
> [   178.521] X Protocol Version 11, Revision 0
> [   178.521] Build Operating System: FreeBSD 12.0-RELEASE-p8 amd64 
> [   178.521] Current Operating System: FreeBSD fbsd12 12.0-STABLE FreeBSD
> 12.0-STABLE r350087 GENERIC amd64 [   178.522] Build Date: 03 August 2019
> 01:28:15PM [   178.522]  
> [   178.522] Current version of pixman: 0.38.4
> [   178.522]    Before reporting problems, check http://wiki.x.org
>         to make sure that you have the latest version.
> [   178.522] Markers: (--) probed, (**) from config file, (==) default
> setting, (++) from command line, (!!) notice, (II) informational,
>         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> [   178.522] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug  5
> 09:23:33 2019 [   178.533] (II) Loader magic: 0x421020
> [   178.533] (II) Module ABI versions:
> [   178.533]    X.Org ANSI C Emulation: 0.4
> [   178.533]    X.Org Video Driver: 20.0
> [   178.533]    X.Org XInput driver : 22.1
> [   178.533]    X.Org Server Extension : 9.0
> [   178.534] (--) PCI:*(0:0:1:0) 1002:9991:1002:9991 rev 0, Mem @
> 0xc0000000/268435456, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @
> 0x????????/65536 [   178.534] (==) Using default built-in configuration (39
> lines) [   178.534] (==) --- Start of built-in configuration ---
> [   178.534]    Section "Device" [   178.534]            Identifier
> "Builtin Default ati Device 0" [   178.534]            Driver  "ati"
> [   178.534]    EndSection
> [   178.534]    Section "Screen"
> [   178.534]            Identifier      "Builtin Default ati Screen 0"
> [   178.534]            Device  "Builtin Default ati Device 0"
> [   178.534]    EndSection
> [   178.534]    Section "Device"
> [   178.535]            Identifier      "Builtin Default modesetting Device
> 0" [   178.535]            Driver  "modesetting"
> [   178.535]    EndSection
> [   178.535]    Section "Screen"
> [   178.535]            Identifier      "Builtin Default modesetting Screen
> 0" [   178.535]            Device  "Builtin Default modesetting Device 0"
> [   178.535]    EndSection
> [   178.535]    Section "Device"
> [   178.535]            Identifier      "Builtin Default scfb Device 0"
> [   178.535]            Driver  "scfb"
> [   178.535]    EndSection
> [   178.535]    Section "Screen"
> [   178.535]            Identifier      "Builtin Default scfb Screen 0"
> [   178.535]            Device  "Builtin Default scfb Device 0"
> [   178.535]    EndSection
> [   178.535]    Section "Device"
> [   178.535]            Identifier      "Builtin Default vesa Device 0"
> [   178.535]            Driver  "vesa"
> [   178.535]    EndSection
> [   178.535]    Section "Screen"
> [   178.536]            Identifier      "Builtin Default vesa Screen 0"
> [   178.536]            Device  "Builtin Default vesa Device 0"
> [   178.536]    EndSection
> [   178.536]    Section "ServerLayout"
> [   178.536]            Identifier      "Builtin Default Layout"
> [   178.536]            Screen  "Builtin Default ati Screen 0"
> [   178.536]            Screen  "Builtin Default modesetting Screen 0"
> [   178.536]            Screen  "Builtin Default scfb Screen 0"
> [   178.536]            Screen  "Builtin Default vesa Screen 0"
> [   178.536]    EndSection
> [   178.536] (==) --- End of built-in configuration ---
> [   178.536] (==) ServerLayout "Builtin Default Layout"
> [   178.536] (**) |-->Screen "Builtin Default ati Screen 0" (0)
> [   178.536] (**) |   |-->Monitor "<default monitor>"
> [   178.537] (**) |   |-->Device "Builtin Default ati Device 0"
> [   178.537] (==) No monitor specified for screen "Builtin Default ati
> Screen 0". Using a default monitor configuration.
> [   178.537] (**) |-->Screen "Builtin Default modesetting Screen 0" (1)
> [   178.537] (**) |   |-->Monitor "<default monitor>"
> [   178.537] (**) |   |-->Device "Builtin Default modesetting Device 0"
> [   178.537] (==) No monitor specified for screen "Builtin Default
> modesetting Screen 0". Using a default monitor configuration.
> [   178.537] (**) |-->Screen "Builtin Default scfb Screen 0" (2)
> [   178.537] (**) |   |-->Monitor "<default monitor>"
> [   178.537] (**) |   |-->Device "Builtin Default scfb Device 0"
> [   178.537] (==) No monitor specified for screen "Builtin Default scfb
> Screen 0". Using a default monitor configuration.
> [   178.537] (**) |-->Screen "Builtin Default vesa Screen 0" (3)
> [   178.538] (**) |   |-->Monitor "<default monitor>"
> [   178.538] (**) |   |-->Device "Builtin Default vesa Device 0"
> [   178.538] (==) No monitor specified for screen "Builtin Default vesa
> Screen 0". Using a default monitor configuration.
> [   178.538] (==) Automatically adding devices
> [   178.538] (==) Automatically enabling devices
> [   178.538] (==) Not automatically adding GPU devices
> [   178.544] (==) Max clients allowed: 256, resource mask: 0x1fffff
> [   178.568] (==) FontPath set to:
>         /usr/local/share/fonts/misc/,
>         /usr/local/share/fonts/TTF/,
>         /usr/local/share/fonts/OTF/,
>         /usr/local/share/fonts/Type1/,
>         /usr/local/share/fonts/100dpi/,
>         /usr/local/share/fonts/75dpi/
> [   178.568] (==) ModulePath set to "/usr/local/lib/xorg/modules"
> [   178.568] (II) The server relies on devd to provide the list of input
> devices. If no devices become available, reconfigure devd or disable
> AutoAddDevices. [   178.568] (II) LoadModule: "glx"
> [   178.572] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
> [   178.640] (II) Module glx: vendor="X.Org Foundation"
> [   178.640]    compiled for 1.18.4, module version = 1.0.0
> [   178.641]    ABI class: X.Org Server Extension, version 9.0
> [   178.641] (==) AIGLX enabled
> [   178.641] (II) LoadModule: "ati"
> [   178.642] (WW) Warning, couldn't open module ati
> [   178.642] (II) UnloadModule: "ati"
> [   178.642] (II) Unloading ati
> [   178.642] (EE) Failed to load module "ati" (module does not exist, 0)
> [   178.642] (II) LoadModule: "modesetting"
> [   178.643] (II)
> Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so [   178.646]
> (II) Module modesetting: vendor="X.Org Foundation" [   178.646]    compiled
> for 1.18.4, module version = 1.18.4 [   178.646]    Module class: X.Org
> Video Driver [   178.646]    ABI class: X.Org Video Driver, version 20.0
> [   178.646] (II) LoadModule: "scfb"
> [   178.646] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
> [   178.649] (II) Module scfb: vendor="X.Org Foundation"
> [   178.649]    compiled for 1.18.4, module version = 0.0.4
> [   178.649]    ABI class: X.Org Video Driver, version 20.0
> [   178.649] (II) LoadModule: "vesa"
> [   178.650] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
> [   178.652] (II) Module vesa: vendor="X.Org Foundation"
> [   178.652]    compiled for 1.18.4, module version = 2.4.0
> [   178.652]    Module class: X.Org Video Driver
> [   178.652]    ABI class: X.Org Video Driver, version 20.0
> [   178.652] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
> [   178.652] (II) scfb: driver for wsdisplay framebuffer: scfb
> [   178.652] (II) VESA: driver for VESA chipsets: vesa
> [   178.653] (--) Using syscons driver with X support (version 2.0)
> [   178.653] (--) using VT number 9
> 
> [   178.653] (EE) open /dev/dri/card0: No such file or directory
> [   178.653] (WW) Falling back to old probe method for modesetting
> [   178.653] (EE) open /dev/dri/card0: No such file or directory
> [   178.653] (WW) Falling back to old probe method for scfb
> [   178.653] scfb trace: probe start
> [   178.654] (II) scfb(1): using default device
> [   178.654] scfb trace: probe done
> [   178.654] vesa: Ignoring device with a bound kernel driver
> [   178.654] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card
> support [   178.654] (EE) Screen 0 deleted because of no matching config
> section. [   178.654] (II) UnloadModule: "modesetting"
> [   178.654] (EE) Screen 1 deleted because of no matching config section.
> [   178.654] (II) UnloadModule: "vesa"
> [   178.654] scfb: PreInit 0
> [   178.654] (II) scfb(0): Using: depth (32),   width (1024),    height
> (768) [   178.654] (II) scfb(0): Creating default Display subsection in
> Screen section "Builtin Default scfb Screen 0" for depth/fbbpp 24/32
> [   178.654] (==) scfb(0): Depth 24, (==) framebuffer bpp 32
> [   178.654] (==) scfb(0): RGB weight 888
> [   178.654] (==) scfb(0): Default visual is TrueColor
> [   178.654] (==) scfb(0): Using gamma correction (1.0, 1.0, 1.0)
> [   178.655] (II) scfb(0): Vidmem: 3072k
> [   178.655] (==) scfb(0): DPI set to (96, 96)
> [   178.655] (**) scfb(0): Using "Shadow Framebuffer"
> [   178.655] (II) Loading sub module "shadow"
> [   178.655] (II) LoadModule: "shadow"
> [   178.655] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
> [   178.658] (II) Module shadow: vendor="X.Org Foundation"
> [   178.658]    compiled for 1.18.4, module version = 1.1.0
> [   178.658]    ABI class: X.Org ANSI C Emulation, version 0.4
> [   178.658] (II) Loading sub module "fb"
> [   178.658] (II) LoadModule: "fb"
> [   178.659] (II) Loading /usr/local/lib/xorg/modules/libfb.so
> [   178.668] (II) Module fb: vendor="X.Org Foundation"
> [   178.668]    compiled for 1.18.4, module version = 1.0.0
> [   178.668]    ABI class: X.Org ANSI C Emulation, version 0.4
> [   178.668] scfb: PreInit done
> [   178.668] (--) Depth 24 pixmap format is 32 bpp
> [   178.668] scfb: ScfbScreenInit 0
> [   178.668]    bitsPerPixel=32, depth=24, defaultVisual=TrueColor
>         mask: ff0000,ff00,ff, offset: 16,8,0
> [   178.668] mmap returns: addr 0x801c00000 len 0x300000, fd 6, off 0
> [   178.668] scfb: ScfbSave 0
> [   178.669] scfb: ScfbSave done
> [   178.689] (==) scfb(0): Backing store enabled
> [   178.703] scfb: ScfbScreenInit done
> [   178.703] (==) RandR enabled
> [   178.722] (II) AIGLX: Screen 0 is not DRI2 capable
> [   178.722] (EE) AIGLX: reverting to software rendering
> [   180.263] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
> [   180.264] (II) AIGLX: Loaded and initialized swrast
> [   180.264] (II) GLX: Initialized DRISWRAST GL provider for screen 0
> [   180.509] (II) config/devd: probing input devices...
> [   180.510] (II) config/devd: adding input device (null) (/dev/kbdmux)
> [   180.510] (II) LoadModule: "kbd"
> [   180.510] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
> [   180.512] (II) Module kbd: vendor="X.Org Foundation"
> [   180.512]    compiled for 1.18.4, module version = 1.9.0
> [   180.512]    Module class: X.Org XInput Driver
> [   180.512]    ABI class: X.Org XInput driver, version 22.1
> [   180.512] (II) Using input driver 'kbd' for 'kbdmux'
> [   180.512] (**) kbdmux: always reports core events
> [   180.512] (**) kbdmux: always reports core events
> [   180.512] (**) Option "Protocol" "standard"
> [   180.513] (**) Option "XkbRules" "base"
> [   180.513] (**) Option "XkbModel" "pc105"
> [   180.513] (**) Option "XkbLayout" "us"
> [   180.513] (**) Option "config_info" "devd:kbdmux"
> [   180.513] (II) XINPUT: Adding extended input device "kbdmux" (type:
> KEYBOARD, id 6) [   180.513] (II) config/devd: kbdmux is enabled, ignoring
> device ukbd0 [   180.513] (II) config/devd: kbdmux is enabled, ignoring
> device atkbd0 [   180.513] (II) config/devd: adding input device (null)
> (/dev/sysmouse) [   180.513] (II) LoadModule: "mouse"
> [   180.514] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
> [   180.520] (II) Module mouse: vendor="X.Org Foundation"
> [   180.520]    compiled for 1.18.4, module version = 1.9.3
> [   180.520]    Module class: X.Org XInput Driver
> [   180.520]    ABI class: X.Org XInput driver, version 22.1
> [   180.520] (II) Using input driver 'mouse' for 'sysmouse'
> [   180.520] (**) sysmouse: always reports core events
> [   180.520] (**) Option "Device" "/dev/sysmouse"
> [   180.520] (==) sysmouse: Protocol: "Auto"
> [   180.520] (**) sysmouse: always reports core events
> [   180.520] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
> [   180.520] (**) sysmouse: ZAxisMapping: buttons 4 and 5
> [   180.520] (**) sysmouse: Buttons: 5
> [   180.520] (**) Option "config_info" "devd:sysmouse"
> [   180.520] (II) XINPUT: Adding extended input device "sysmouse" (type:
> MOUSE, id 7) [   180.521] (**) sysmouse: (accel) keeping acceleration
> scheme 1 [   180.521] (**) sysmouse: (accel) acceleration profile 0
> [   180.521] (**) sysmouse: (accel) acceleration factor: 2.000
> [   180.521] (**) sysmouse: (accel) acceleration threshold: 4
> [   180.521] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
> [   180.521] (II) sysmouse: SetupAuto: protocol is SysMouse
> [   180.521] scfb: SaveScreen 0
> [   180.521] scfb: SaveScreen done
> root at fbsd12:~ # [works now!]
> root at fbsd12:~ # 
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQTF9uNaslvnJpWt8kXn6sEfJS3nCwUCXUfcRgAKCRDn6sEfJS3n
C4xNAKCfClrK8UF5zy6y6LMcWZWGjESkgACfa+MnYMf8SJXB/BYzEB3mGHoYfIs=
=lzHy
-----END PGP SIGNATURE-----


More information about the freebsd-x11 mailing list