No, it is not.Working suspend/resume is still comparatively rare
1. vt console breaks resume for nvidia (you must use sc console)
No, it is not.
Just make sure you avoid the most common resume blockers:
1. vt console breaks resume for nvidia (you must use sc console)
2. make sure vesa.ko is not loaded (if necessary, build kernel without options VESA)
3. stop running virtualbox VMs before suspending
4. avoid using dysfunctional DE menu sleep functions, instead directly call acpiconf -s 3
VT
or a SC
? ?VESA
module is not running:kldstat | grep vesa
>
desktop computer
vt
console does not work with NVIDIA cards.
sysrc -f /etc/rc.conf kld_list-=nvidia-modeset && sysrc kld_list+=nvidia
sysrc -f /etc/rc.conf kld_list-=nvidia && sysrc kld_list+=nvidia-modeset
…
Code:% pkg iinfo nvidia nvidia-driver-535.104.05_1 nvidia-settings-470.86_1 nvidia-xconfig-525.116.04 …
I do use vt(4) with NVIDIA. Without breakage.
I can't find relevant information in the FreeBSD Handbook.
vt(4) is the virtual terminal console driver implementation (also known as the "Newcons" project) which replaces syscons(4), …
… Integration with KMS (Kernel Mode Setting) video drivers for switching between the X Window System and virtual terminals. …
How can I understand if I am usingVT
or aSC
? ?![]()
#freebsd-bugs
in IRC I wrote:x11/nvidia-driver-390 might be slightly outdated, <https://www.nvidia.com/Download/driverResults.aspx/196217/en-us/> has no release highlight.
x11/nvidia-driver-470 is outdated by <https://www.nvidia.com/Download/driverResults.aspx/215843/en-us/>, I doubt that danfe@ will need a report
nvidia-driver-535.104.05_1
smithi
Resume did not survived the overnight.
This morning when I woke up the computer all the LED on, including the keyboard, no screen, no sign of any disk activity. Before to wake up the laptop I plugged in the power supply.
It looks like after a couple hours it goes in deep sleep and then it is unable to resume.
Well I don't know actually... ?
How can I understand if I am usingVT
or aSC
? ?![]()
At leastVESA
module is not running:
Code:kldstat | grep vesa >
kldstat -v | grep vesa
to check if it's built into kernel rather than deliberately loaded. Not likely your problem, though, as it's in GENERIC.4. avoid using dysfunctional DE menu sleep functions, instead directly call acpiconf -s 3
I haven't followed the development since I conversated with Ed Maste about that topic almost two years ago.That's generally untrue.
1. Versions prior to 390 are broken and dysfunctional anyway due to xorg ABI changes.For versions prior to 358.09:
[...]
- the nvidia-modeset kernel module is correct
- vt(4) is correct
Improper use of sc can cause boot failure, with single user mode unusable.
One result of my discussion with Ed Maste was that vesa.ko no longer is part of GENERIC. Not sure though from which release/patchlevel on it has been taken away from GENERIC.Try withkldstat -v | grep vesa
to check if it's built into kernel rather than deliberately loaded. Not likely your problem, though, as it's in GENERIC.
Try withkldstat -v | grep vesa
to check if it's built into kernel rather than deliberately loaded. Not likely your problem, though, as it's in GENERIC.
One result of my discussion with Ed Maste was that vesa.ko no longer is part of GENERIC. Not sure though from which release/patchlevel on it has been taken away from GENERIC.
Versions prior to 390
nvidia
module for versions prior to 358.09.… x11/nvidia-driver-304, does not support x11-servers/xorg-server 1.20 or greater …
… Versions prior to 390 are broken and dysfunctional anyway due to xorg ABI changes. …
… If you experience the "colored blocks phenomenon" when switching from xorg to console, this is caused by vt being buggy.
No idea whether this already got fixed, maybe this issue no longer exists by now. …
Thanks.<https://forums.freebsd.org/posts/632795> above specifies thenvidia
module for versions prior to 358.09.
![]()
x11/nvidia-driver: reword the pkg-message to reflect modern reality · freebsd/freebsd-ports@a09185f
Try to reduce readers' confusion by specifying exactly which nVidia kernel module users should be loading these days. PR: 269626github.com
Background:
269626 – FreeBSD Handbook: NVIDIA: corrections
bugs.freebsd.org
Hang on ... do you mean that while suspended overnight, the power supply had not been connected? If so, are you sure it didn't just run down battery?
vt
as console as it written in the handbook somewhere.at /boot/loader.conf
aesni_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"
cryptodev_load="YES"
zfs_load="YES"
# Custom
kern.vty=vt
cuse_load="YES"
#geom_md_load="YES"
cpu_microcode_load="YES"
cpu_microcode_name="/boot/firmware/intel-ucode.bin"
# Sound
mixer_enable="YES"
sysctl -d kern.vt
kern.vt: vt(9) parameters
kern.vt.splash_cpu_duration: Hide logos after (seconds)
kern.vt.splash_cpu_style: Draw logo style (0 = Alternate beastie, 1 = Beastie, 2 = Orb)
kern.vt.splash_ncpu: Override number of logos displayed (0 = do not override)
kern.vt.splash_cpu: Show logo CPUs during boot
kern.vt.kbd_panic: Enable request to panic. See kbdmap(5) to configure.
kern.vt.kbd_debug: Enable key combination to enter debugger. See kbdmap(5) to configure (typically Ctrl-Alt-Esc).
kern.vt.kbd_reboot: Enable reboot keyboard combination. See kbdmap(5) to configure (typically Ctrl-Alt-Delete).
kern.vt.kbd_poweroff: Enable Power Off keyboard combination. See kbdmap(5) to configure.
kern.vt.kbd_halt: Enable halt keyboard combination. See kbdmap(5) to configure.
kern.vt.suspendswitch: Switch to VT0 before suspend
kern.vt.deadtimer: Time to wait busy process in VT_PROCESS mode
kern.vt.debug: vt(9) debug level
kern.vt.enable_bell: Enable bell
kern.vt.enable_altgr: Enable AltGr key (Do not assume R.Alt as Alt)
Withzzz
two in a row without issues... ?![]()
Updated my graphics card so I can use nvidia-driver-470. Still fails to load due to the assumption everything were syscons. …
n266797-0a958aa16fed-d
). n266797-0a958aa16fed-c
) later today.% sysctl kern.vty
kern.vty: vt
% pkg iinfo nvidia
linux-nvidia-libs-470-470.161.03
nvidia-driver-390-390.154_1
nvidia-settings-470.86_1
nvidia-xconfig-525.116.04
% bectl list -c creation | tail -n 2
n266797-0a958aa16fed-c - - 44.9M 2023-12-09 13:47
n266797-0a958aa16fed-d NR / 571G 2023-12-10 06:25
%
Actually my reason for recommending the manual zzz method over the DE menu is that years ago I browsed the KDE sources to find out what KDE did when suspending/resuming. I found that it did some strange actions instead of a clean call of acpiconf. So the easiest fix/workaround was just to not use the start menu for sending the computer to sleep.Withzzz
two in a row without issues... ?![]()
/usr/local/lib/libexec/ksmserver-logout-greeter
runs (behind the dialogue) and locking can be automated.