GPU accel flips on and off between reboots

either native

Code:
$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) HD Graphics 5500 (BDW GT2) (0x1616)
    Version: 22.3.7
    Accelerated: yes
    Video memory: 8192MB
…

or fallback

Code:
$ glxinfo -B
name of display: :0
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff)
    Version: 22.3.7
    Accelerated: no
    Video memory: 8192MB
…

on a Thinkpad x250 / FreeBSD 13.2.

How could I get that stable?

P.S.: see loader.con, rc.conf etc via https://mro.name/FreeBSD-XFCE
 
I found native dropped after lid close suspend/resume (sysctl hw.acpi.lid_switch_state=S3). What may make the machine loose hw accel? Where to look?
 
I had the same issue after suspending and resuming my desktop. As I use amdgpu I solved it by adding a file /usr/local/etc/X11/xorg.conf.d/amdgpu.conf with the following:
Code:
Section "Device"
    Identifier "AMDGPU"
    Driver "amdgpu"
EndSection
I think it would by worth trying something similar.
 
Does this happen on a cold reboot, or warm reboot, or both?

There are sysctls regarding reboots I think, I am not sure.
 
  • Thanks
Reactions: mro
My desktop does this. I just log out and back in. I was wondering if I had something in my rc.conf out of order.

Order in rc.conf doesn't matter; it sets system variables as listed, overriding any default values.

Exception: if you have more than one entry for some variable, the last one overrides any before.
 
  • Thanks
Reactions: mro
  • Thanks
Reactions: mro
Does this happen on a cold reboot, or warm reboot, or both?

There are sysctls regarding reboots I think, I am not sure.
a fresh started x session comes acceleration on, suspend/resume falls back to accel off.
 
Sorry I haven't answered, been busy reinstalling due to reorganizing disk pool and fumblefingers :(

I see you have the driver row commented out.
I would recommend do a
pkg list drm-510-kmod (or drm-515-kmod if you are on 14.0)
and see the names of the kernel modules and pick the one closesest to your card (and remove the #).
thanks, I guess i915kms.ko fits best, which is loaded ($ kldstat | fgrep i915 has it).

I had the impression Driver "intel" causes video playback quirks, but today I use it smoothly.

See https://codeberg.org/mro/x250-freebsd/commit/2341947d9d7dcd53d8ff1ae0c1f61bb64c04040c
 

It seems to keep coming back to needing kern.vt.suspendswitch=0 for certain mostly recent systems.

For others like my IvyBridge T430s the opposite is true, i.e. it needs to be enabled, the default.

Maybe some sort of test is needed to determine which?

(Just musing on what I've observed, I only have that T430s and a core2duo X200 these days.)
 
Back
Top