You are not logged in.

#1 2023-01-11 18:44:24

cherio
Member
Registered: 2022-04-27
Posts: 34

TTY login prompt and display power management

My monitor doesn't turn off when it stays at user login prompt in TTY.

I do not have X automatically started upon reboot, so when the computer boots it hangs there in TTY with the initial "hostname login:" prompt.

Arch Linux 6.1.4-arch1-1 (tty1)
hostname login: _

This is the intended behavior. The problem is that the display never goes to sleep when it stays without logging in. When I log in and start X (XFCE4) power management seems to be working just fine, but I'd like it to go to sleep in TTY as well.

Neither https://wiki.archlinux.org/title/Power_management nor https://wiki.archlinux.org/title/Displa … _Signaling address this for TTY login.

Guidance is much appreciated!!

Offline

#2 2023-01-11 18:48:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: TTY login prompt and display power management


Jin, Jîyan, Azadî

Offline

#3 2023-01-11 19:17:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: TTY login prompt and display power management

I see your google and raise the wiki the OP linked tongue
https://wiki.archlinux.org/title/Displa … th_setterm

I guess the question is a bit ambigious and the critical part is

The problem is that the display never goes to sleep when it stays without logging in.

@cherio, https://wiki.archlinux.org/title/Getty is started by a systemd service, you could edit that and ExecStartPre some setterm commands…

Also Apple Jacks ftw!

Offline

#4 2023-01-11 20:48:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: TTY login prompt and display power management

seth wrote:

I see your google and raise the wiki the OP linked tongue

Gah! *shakes fist at seth* tongue

seth wrote:

I guess the question is a bit ambigious and the critical part is

The problem is that the display never goes to sleep when it stays without logging in.

The consoleblank parameter works regardless of login status, I think.

Last edited by Head_on_a_Stick (2023-01-11 20:50:36)


Jin, Jîyan, Azadî

Offline

#5 2023-01-11 21:34:40

cherio
Member
Registered: 2022-04-27
Posts: 34

Re: TTY login prompt and display power management

Head_on_a_Stick wrote:

Search engines are good, m'kay?

I guess you erroneously assumed I didn't search smile

The link you reference suggest using commands which requires initialized interactive terminal.

The consoleblank=120 kernel parameter in GRUB has no effect. The following are console related log entries

$ journalctl -b | grep console
Jan 11 10:14:33 host kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=xxxxxxxx-ef0b-48d4-a7bc-xxxxxxxxxxxx rw consoleblank=120 loglevel=5
Jan 11 10:14:33 host kernel: Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=xxxxxxxx-ef0b-48d4-a7bc-xxxxxxxxxxxx rw consoleblank=120 loglevel=5
Jan 11 10:14:33 host kernel: printk: console [tty0] enabled
Jan 11 10:14:33 host kernel: fbcon: Taking over console
Jan 11 10:14:33 host kernel: i915 0000:00:02.0: vgaarb: deactivate vga console

It should work, but it doesn't ¯\_(°ʖ°)_/¯

Offline

#6 2023-01-11 21:36:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: TTY login prompt and display power management

Yes, but

The wiki wrote:

Note:
Console blanking alone does not enable DPMS power saving.

Offline

#7 2023-01-11 21:39:33

cherio
Member
Registered: 2022-04-27
Posts: 34

Re: TTY login prompt and display power management

seth wrote:

@cherio, https://wiki.archlinux.org/title/Getty is started by a systemd service, you could edit that and ExecStartPre some setterm commands…

That ^^^ I WILL try shortly ............

Offline

#8 2023-01-11 21:48:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: TTY login prompt and display power management

The consoleblank=120 kernel parameter in GRUB has no effect.

It won't poewr off your monitor, but does it not even blank the console after 2 minutes?
There could be some spurious input in which case powersav/powerdown might also fail.
Did you try  those after the login btw?
(APM_DISPLAY_BLANK could be a pending problem)

Offline

#9 2023-01-11 22:23:49

cherio
Member
Registered: 2022-04-27
Posts: 34

Re: TTY login prompt and display power management

seth wrote:

It won't poewr off your monitor, but does it not even blank the console after 2 minutes?

Yes sir, the monitor stays lit past 2 minutes. Running from remote SSH session, the 2 min parameter is still there:

$ cat /sys/module/kernel/parameters/consoleblank
120
seth wrote:

Did you try  those after the login btw?

Yes sir, the monitor stays lit after 2 min even after logging into physical console.
The following commands executed after logging into console don't have an effect either:

setterm --powersave on --powerdown 1
setterm --blank 1

And just as I mentioned before XFCE4 has no issues either just blanking the screen or putting the monitor to sleep.

seth wrote:

(APM_DISPLAY_BLANK could be a pending problem)

I read about it too, but was hoping there was a solution that doesn't involve recompiling kernel

Offline

#10 2023-01-11 22:45:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: TTY login prompt and display power management

console blanking works somewhat here (right promt stays on, but the background color changes to black) but powersave indeed doesn't.

XFCE4 has no issues

To be more precise, X11 has no issues (or to be even more precisererer: its DPMS extension)
This isn't relevant to the console context at all.

hoping there was a solution that doesn't involve recompiling kernel

Did you try https://superuser.com/a/1357404 ?

Offline

#11 2023-01-12 07:02:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: TTY login prompt and display power management

cherio wrote:

I guess you erroneously assumed I didn't search

In future please be sure to include everything you have already researched and tried in the OP to avoid wasting the time of those who attempt to help. Thanks.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB