Solved Weird issue with Hibernation

Tracker

New Member

Reaction score: 3
Messages: 15

I could get my system to hibernate earlier on my laptop using
sudo acpiconf -s 3

Somehow when I upgraded the system on my desktop - it doesn't work anymore.

Instead of saving ram to disk, it turns off earlier (doesn't switch off though) but when I try to get it up from sleep - the screen is blank.

Not sure where to start to debug this, would appreciate any guidance
 

Snurg

Daemon

Reaction score: 578
Messages: 1,349

S3 sleep state is suspend to ram (STR). Supported by FreeBSD, but there are some bugs/resume breakers.
S4 sleep state (suspend to disk, STD) is not supported by FreeBSD.
If you list your hardware and system configuration details, it might be possible to identify the resume breaker.
 

Mjölnir

Daemon

Reaction score: 1,488
Messages: 2,114

S3 sleep state is suspend to ram (STR). Supported by FreeBSD, but there are some bugs/resume breakers.
S4 sleep state (suspend to disk, STD) is not supported by FreeBSD.
Hibernation works with a dedicated partition. This is independent from OS via ACPI, though. Suspend to disk via OS (suspend to swap) never worked from my limited experiences.
If you list your hardware and system configuration details, it might be possible to identify the resume breaker.
👍
 
OP
Tracker

Tracker

New Member

Reaction score: 3
Messages: 15

S3 sleep state is suspend to ram (STR). Supported by FreeBSD, but there are some bugs/resume breakers.
S4 sleep state (suspend to disk, STD) is not supported by FreeBSD.
If you list your hardware and system configuration details, it might be possible to identify the resume breaker.
Do you mean the dmesg output? Here it is
Code:
---<<BOOT>>---
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.2-RELEASE-p4 GENERIC amd64
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
VT(vga): resolution 640x480
CPU: Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz (3400.07-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306c3  Family=0x6  Model=0x3c  Stepping=3
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7fdafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x21<LAHF,ABM>
  Structured Extended Features=0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 21474836480 (20480 MB)
avail memory = 20689285120 (19730 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
Launching APs: 1 3 2
Timecounter "TSC-low" frequency 1700033148 Hz quality 1000
random: entropy device external interface
000.000019 [4336] netmap_init               netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff81114e40, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
kbd1 at kbdmux0
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS> on motherboard
acpi0: <ALASKA A M I> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz quality 440
Event timer "HPET4" frequency 14318180 Hz quality 440
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0xf7800000-0xf7bfffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
vgapci0: Boot video device
hdac0: <Intel Haswell HDA Controller> mem 0xf7e14000-0xf7e17fff irq 16 at device 3.0 on pci0
xhci0: <Intel Lynx Point USB 3.0 controller> mem 0xf7e00000-0xf7e0ffff irq 16 at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Port routing mask set to 0xffffffff
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms> at device 22.0 (no driver attached)
ehci0: <Intel Lynx Point USB 2.0 controller USB-B> mem 0xf7e1c000-0xf7e1c3ff irq 16 at device 26.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
hdac1: <Intel Lynx Point HDA Controller> mem 0xf7e10000-0xf7e13fff irq 22 at device 27.0 on pci0
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0
pci3: <ACPI PCI bus> on pcib3
alc0: <Killer E2200 Gigabit Ethernet> port 0xe000-0xe07f mem 0xf7d00000-0xf7d3ffff irq 19 at device 0.0 on pci3
alc0: 11776 Tx FIFO, 12032 Rx FIFO
alc0: Using 1 MSIX message(s).
miibus0: <MII bus> on alc0
atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
atphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
alc0: Using defaults for TSO: 65518/35/2048
alc0: Ethernet address: d4:3d:7e:dc:e3:5f
pcib4: <ACPI PCI-PCI bridge> irq 19 at device 28.7 on pci0
pci4: <ACPI PCI bus> on pcib4
ahci0: <ASMedia ASM1062 AHCI SATA controller> port 0xd050-0xd057,0xd040-0xd043,0xd030-0xd037,0xd020-0xd023,0xd000-0xd01f mem 0xf7c00000-0xf7c001ff irq 19 at device 0.0 on pci4
ahci0: AHCI v1.20 with 2 6Gbps ports, Port Multiplier supported
ahci0: quirks=0xc00000<NOCCS,NOAUX>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ehci1: <Intel Lynx Point USB 2.0 controller USB-A> mem 0xf7e1b000-0xf7e1b3ff irq 23 at device 29.0 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci1
usbus2: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci1: <Intel Lynx Point AHCI SATA controller> port 0xf0b0-0xf0b7,0xf0a0-0xf0a3,0xf090-0xf097,0xf080-0xf083,0xf060-0xf07f mem 0xf7e1a000-0xf7e1a7ff irq 19 at device 31.2 on pci0
ahci1: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported
ahcich4: <AHCI channel> at channel 2 on ahci1
ahciem0: <AHCI enclosure management bridge> on ahci1
acpi_button0: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 221c00002200
device_attach: est0 attach returned 6
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 221c00002200
device_attach: est1 attach returned 6
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 221c00002200
device_attach: est2 attach returned 6
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 221c00002200
device_attach: est3 attach returned 6
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
hdacc0: <Intel Haswell HDA CODEC> at cad 0 on hdac0
hdaa0: <Intel Haswell Audio Function Group> at nid 1 on hdacc0
pcm0: <Intel Haswell (HDMI/DP 8ch)> at nid 3 on hdaa0
hdacc1: <Realtek ALC1150 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC1150 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC1150 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa1
pcm2: <Realtek ALC1150 (Front Analog)> at nid 27 and 25 on hdaa1
pcm3: <Realtek ALC1150 (Rear Digital)> at nid 30 on hdaa1
ugen0.1: <0x8086 XHCI root HUB> at usbus0
ugen2.1: <Intel EHCI root HUB> at usbus2
ugen1.1: <Intel EHCI root HUB> at usbus1
Trying to mount root from zfs:zroot/ROOT/12.0-p11 []...
Root mount waiting for: usbus0 usbus1 CAM usbus2
uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ses0 at ahciem0 bus 0 scbus3 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 2.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
ada0 at ahcich4 bus 0 scbus2 target 0 lun 0
ada0: <Samsung SSD 860 EVO 500GB RVT04B6Q> ACS-4 ATA SATA 3.x device
ada0: Serial Number S4FNNJ0N101593D
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors)
ses0: pass0,ada0 in 'Slot 02', SATA Slot: scbus2 target 0
GEOM: ada0: the secondary GPT header is not in the last LBA.
GEOM_ELI: Device ada0p3.eli created.
GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI:     Crypto: hardware
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub0: 21 ports with 21 removable, self powered
Root mount waiting for: usbus0 usbus1 usbus2
ugen0.2: <PixArt Dell MS116 USB Optical Mouse> at usbus0
ugen1.2: <vendor 0x8087 product 0x8008> at usbus1
uhub3 on uhub1
uhub3: <vendor 0x8087 product 0x8008, class 9/0, rev 2.00/0.04, addr 2> on usbus1
ugen2.2: <vendor 0x8087 product 0x8000> at usbus2
uhub4 on uhub2
uhub4: <vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.04, addr 2> on usbus2
Root mount waiting for: usbus0 usbus1 usbus2
uhub3: 6 ports with 6 removable, self powered
uhub4: 8 ports with 8 removable, self powered
ugen0.3: <Logitech Logitech USB Keyboard> at usbus0
ukbd0 on uhub0
ukbd0: <Logitech Logitech USB Keyboard, class 0/0, rev 1.10/28.00, addr 2> on usbus0
kbd2 at ukbd0
ugen0.4: <Realtek 802.11n WLAN Adapter> at usbus0
GEOM_ELI: Device ada0p2.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI:     Crypto: hardware
drmn0: <drmn> on vgapci0
device_attach: drmn0 attach returned 19
lo0: link state changed to UP
alc0: link state changed to DOWN
ums0 on uhub0
ums0: <PixArt Dell MS116 USB Optical Mouse, class 0/0, rev 2.00/1.00, addr 1> on usbus0
ums0: 3 buttons and [XYZ] coordinates ID=0
rtwn0 on uhub0
rtwn0: <Realtek 802.11n WLAN Adapter, class 0/0, rev 2.00/2.00, addr 3> on usbus0
rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
wlan0: Ethernet address: 00:0f:02:3d:e6:17
wlan0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
ugen0.4: <Realtek 802.11n WLAN Adapter> at usbus0 (disconnected)
rtwn0: at uhub0, port 14, addr 3 (disconnected)
wlan0: link state changed to DOWN
rtwn0: ieee80211_crypto_encap returns NULL.
rtwn0: detached
ugen0.4: <Realtek 802.11n WLAN Adapter> at usbus0
rtwn0 on uhub0
rtwn0: <Realtek 802.11n WLAN Adapter, class 0/0, rev 2.00/2.00, addr 4> on usbus0
rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
wlan0: Ethernet address: 00:0f:02:3d:e6:17
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
 

Mjölnir

Daemon

Reaction score: 1,488
Messages: 2,114

Please post the output of sysrc kld_list, egrep '^[a-zA-Z0-9_-]+_load' /boot/loader.conf and kldstat -v|fgrep i915. I want to make sure you're using the right graphics kernel module.
I did try those links - it didn't help much. Weird part is that it was working fine when I was on the 11.x release, when I upgraded it to 12.x it somehow stopped working
If we can not find the error here, please file in a bug report. It's clear there must be some changes from 11.x to 12.x that needs to be reviewed. But 1st let's see if it's related to some misconfiguration; you may have overseen some detail during the upgrade.
 
OP
Tracker

Tracker

New Member

Reaction score: 3
Messages: 15

Please post the output of sysrc kld_list, egrep '^[a-zA-Z0-9_-]+_load' /boot/loader.conf and kldstat -v|fgrep i915. I want to make sure you're using the right graphics kernel module.

If we can not find the error here, please file in a bug report. It's clear there must be some changes from 11.x to 12.x that needs to be reviewed. But 1st let's see if it's related to some misconfiguration; you may have overseen some detail during the upgrade.
Code:
kldstat -v|fgrep i915
12    1 0xffffffff82b37000   12ccb0 i915kms.ko (/boot/modules/i915kms.ko)
        526 i915kms

Code:
sysrc kld_list, egrep '^[a-zA-Z0-9_-]+_load' /boot/loader.conf
sysrc: kld_list,: name contains characters not allowed in shell
 

Mjölnir

Daemon

Reaction score: 1,488
Messages: 2,114

The part in blue is a command to run on the console, and a comma in the forum post is a comma in the forum post... But now all we need is egrep '^[a-zA-Z0-9_-]+_load' /boot/loader.conf.
EDIT Did you build that graphics/drm-fbsd12.0-kmod yourself? Did you update it after your upgrade from 11.x -> 12.2?
 
OP
Tracker

Tracker

New Member

Reaction score: 3
Messages: 15

Did you build that graphics/drm-fbsd12.0-kmod yourself? Did you update it after your upgrade from 11.x -> 12.2?
I don't think I built it myself - in all likelihood it must have been installed via the pkg manager (been a while since I installed the system)

Code:
egrep '^[a-zA-Z0-9_-]+_load' /boot/loader.conf
aesni_load="YES"
aesni_load="YES"
geom_eli_load="YES"
geom_eli_load="YES"
zfs_load="YES"
if_rtwn_load="YES"
fuse_load="YES"
coretemp_load="YES"

rc.conf
Code:
cat /etc/rc.conf
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="toaster"
#Trying for desktop
wlans_rtwn0="wlan0"
#Original for laptop
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
create_args_wlan0="country IN"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
#powerd_enable="YES"
#to enable webcam
#webcamd_enale="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

#xrdp
#xrdp_enable="YES"
#xrdp_sesman_enable="YES"
#for linux compatbility at boot
linux_enable="YES"

kld_list="/boot/modules/i915kms.ko"
#gnome
dbus_enable="YES"
hald_enable="YES"
slim_enable="YES"
coretemp_enable="YES"
fuse_enable="YES"
autofs_enable="YES"
ifconfig_alc0="DHCP"

#gdm_enable="YES"
kdm4_enable="YES"
#log_in_vain=1 #to observe in /var/log/messages for logs of attempts to access non-existent/closed ports

loader.conf
Code:
cat /boot/loader.conf
aesni_load="YES"
aesni_load="YES"
geom_eli_load="YES"
geom_eli_load="YES"
security.bsd.allow_destructive_dtrace=0
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"

boot_verbose="NO"
autoboot_delay="3"
beastie_disable="NO"
loader_logo="beastie"

#New Wifi Desktop
legal.realtek.license_ack=1
if_rtwn_load="YES"

#webcam
#cuse4bsd_load="YES"
#bluetooth
#ubtbcmfw_load="YES"

#HDMI trial
#i915kms_load="YES"

fuse_load="YES"
coretemp_load="YES"
kern.vty=vt
#ng_ubt_load="YES" didn't work for bluetooth
 

Mjölnir

Daemon

Reaction score: 1,488
Messages: 2,114

I don't think I built it myself - in all likelihood it must have been installed via the pkg manager (been a while since I installed the system)
Then please make sure it is up to date: pkg update -F, then pkg upgrade -f graphics/drm-fbsd12.0-kmod (edited later to explicitely force that specific package). That DRM KMS module must match the kernel version it was built for; when 12.2 was new, we had to built it ourselves from ports(7), because the version in the packages was built for 12.1. Theoretically that should match, but unfortunately there've been minor kernel API changes, so that 12.1-REL module could not run on 12.2-REL.

Not related to the issue: it is commonly accepted policy to keep loader.conf(5) as minimal as possible, i.e. load only kernel modules that are needed to boot the BeaSD, and set only those sysctl(8) knobs that can't be set @runtime.
if_rtwn_load="YES"
fuse_load="YES"
coretemp_load="YES"
These could go into rc.conf(5):
foreach mod (rtwn fusefs coretemp)
sysrc kld_list+=" $mod"
end

rc.conf
#Original for laptop
wlans_iwn0="wlan0"
ntpd_enable="YES"
You don't need both. ntpdate(8) will be retired "soon", but for now you can either use that or sysrc ntpd_flags+=" -q". You could also run ntpd -q from crontab(5) or anacrontab(5) daily, if your box has long uptime(1)s.
#webcamd_enale="YES"
Typo. BL BL BL.
coretemp_enable="YES"
fuse_enable="YES"
*_enable in rc.conf(5) is to enable services. Kernel modules go into kld_list, or into *_load in loader.conf(5) if it's needed to boot or it's reasonable to have it very early, e.g. CPU microcode updates; additionally, some modules don't work correct when loaded @runtime, e.g. filemon(4).
ifconfig_alc0="DHCP"
How many different WiFi chips are built into your box?
kdm4_enable="YES"
That's long gone. You could use x11/slim or x11/sddm. Don't know which DE is your favourite, maybe GNOME/MATE has it's own.
loader.conf
kern.vty=vt
Not needed, it's default.
 
Last edited:

Snurg

Daemon

Reaction score: 578
Messages: 1,349

These are good instructions from Mjölnir !

You have *plenty* of stuff in your config.
I'd generally suggest to first disable the DM. These are most fickle regarding successful resume.
If disabling the DM doesn't fix the issue, disable/uncomment all the stuff including networking.

In regard to KDM I have to add that KDE has been ported to FreeBSD, but has not really been integrated.
For example, KDE menu shows "hibernate", which obviously does not work.
This means, it has not been adapted to FreeBSD's way of suspend/resume, and will fail and frustrate the user.
Thus, bad UX is inevitable (POLA violation).

You want to verify step-by-step that resuming works.
So test, enable one after the next module, suspend/resume a few times, going on to enable the next module, after your tests showed that the computer resumes well.
Then you will easily identify the module that breaks resume.
 

Mjölnir

Daemon

Reaction score: 1,488
Messages: 2,114

And I totally forgot: There're some sysctl(8) knobs for i915kms.ko drm-kms(7) that could affect suspend/resume. I have in loader.conf(5)
Code:
#
# System tunables/sysctl(8) knobs.  Please keep sorted to avoid duplicates.
#
# INTEL DRM WITH graphics/drm-kmod PACKAGE (NEW)
compat.linuxkpi.enable_rc6="7"  # ENABLE POWER SAVING RENDER C-STATE 6
compat.linuxkpi.enable_dc="2"   # ENABLE POWER SAVING DISPLAY C-STATES
compat.linuxkpi.enable_fbc="1"  # ENABLE FRAME BUFFER COMPRESSION FOR POWER SAVINGS
compat.linuxkpi.i915_fastboot="1" # SKIP UNNECESSARY MODE SETS AT BOOT TIME
compat.linuxkpi.i915_nuclear_pageflip="1"
compat.linuxkpi.semaphores="1"  # USE SEMAPHORES FOR INTER RING SYNC
And IIRC the 1st two are not good for older GPUs. I have
pciconf -lv | fgrep -B 3 display
Code:
vgapci0@pci0:0:2:0:     class=0x030000 card=0x503617aa chip=0x16168086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 5500'
    class      = display
 
OP
Tracker

Tracker

New Member

Reaction score: 3
Messages: 15

So it turns out - that all of my settings and drivers were fine - it was a problem that a new version of freebsd had introduced . This is the thread that pointed to issue with the drm-fbsd12.0-kmod driver . The simple solution was

sudo pkg install -f drm-fbsd12.0-kmod

That's it.

I was actually considering to stop using Freebsd simply because of this issue that was plaguing me for months - hope the team can take care of such things for the future. While I love to stick to Freebsd , I can totally understand someone not being able to find the time to fix such issue.

Sooo happy I can finally get my system to hibernate instead of switching it off :D

Thanks for the help guys - will tidy up my loader/rc files :)
 

grahamperrin

Well-Known Member

Reaction score: 102
Messages: 382

Elsewhere (I do not have the link handy) I found a case where it seems that installation of nonspecific graphics/drm-kmod does not trigger automated installation of the ABI-specific kernel module …
 
Top