Bug 293747 - x11/nvidia-driver-470: saver="green" not working
Summary: x11/nvidia-driver-470: saver="green" not working
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-11 20:26 UTC by Craig Leres
Modified: 2026-03-11 23:37 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2026-03-11 20:26:18 UTC
For many years my desktop systems have used:

    blanktime="1200"
    saver="green"

in /etc/rc.conf. I see now that this is broken, probably for some time.

I recently upgraded from 14.3-RELEASE to 14.4-RELEASE. The system is amd64 and I'm using a quadro K420.

I just did a test, logged onto the console without X:

    vidcontrol -t 1

but the screen never blanks.

I seem to remember this happening a long time ago and it turned out to be due to a regression in the nvidia driver...
Comment 1 Tomoaki AOKI 2026-03-11 22:10:02 UTC
(In reply to Craig Leres from comment #0)
Are you 100% sure you're booting via legacy BIOS (including mimic'ing by CSM on UEFI) and your console driver is sc?

You can confirm by `sysctl kern.vty`.
If it shows "kern.vty: vt", you cannot use saver on console, as vt console driver (100% unrelated with GPU, as simplest VGA is also affected!) lacks mandatory functionalities for saver.

Note that sc driver (pure, legacy text mode) doesn't work on UEFI boot (which doens't have legacy text mode), thus, forced to vt driver. See vt (4) manpage and splash (4) manpage for details.

Relevant part of it is like below.


From vt (4):
LOADER TUNABLES
     These settings can be entered at the loader(8) prompt or in
     loader.conf(5).

     hw.vga.textmode
             Set to 1 to use virtual terminals in text mode instead of
             graphics mode on BIOS boot.  Features that require graphics mode,
             like loadable fonts, will be disabled.

             If a KMS driver is loaded the console will switch to, and remain
             in, graphics mode.  Moreover this tunable has no effect with
             UEFI(8) boot because it does not use VGA mode.

From splash (4):
     The screen saver will not run if the screen is not in text mode.
Comment 2 Craig Leres freebsd_committer freebsd_triage 2026-03-11 23:37:58 UTC
Thanks for the detailed explanation.

What confused me was the presence of blanktime and saver in my rc.conf that don't do anything. My problem appears to be that xlock isn't always honoring -dpmsstandby, I'll try to debug that...