Detecting intervals of inactivity in the tty? (to simulate setterm --blank in fbterm)
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
setterm --blank n
allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm
does not apply.
I've found that I can manually shut the display off with
$ sudo sh -c 'echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/graphics/fb0/blank'
(and echo 0
to restore it).
Is there any way to detect periods of inactivity in the tty/fbterm, so that I can create a script to simulate a setterm --blank
setting?
terminal tty power-management framebuffer
add a comment |Â
up vote
3
down vote
favorite
setterm --blank n
allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm
does not apply.
I've found that I can manually shut the display off with
$ sudo sh -c 'echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/graphics/fb0/blank'
(and echo 0
to restore it).
Is there any way to detect periods of inactivity in the tty/fbterm, so that I can create a script to simulate a setterm --blank
setting?
terminal tty power-management framebuffer
setterm
command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers.
â Ipor Sircer
Oct 27 '17 at 17:35
Thanks! I've updated the question to reflect this understanding.
â Ryan Lue
Oct 27 '17 at 17:41
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
setterm --blank n
allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm
does not apply.
I've found that I can manually shut the display off with
$ sudo sh -c 'echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/graphics/fb0/blank'
(and echo 0
to restore it).
Is there any way to detect periods of inactivity in the tty/fbterm, so that I can create a script to simulate a setterm --blank
setting?
terminal tty power-management framebuffer
setterm --blank n
allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm
does not apply.
I've found that I can manually shut the display off with
$ sudo sh -c 'echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/graphics/fb0/blank'
(and echo 0
to restore it).
Is there any way to detect periods of inactivity in the tty/fbterm, so that I can create a script to simulate a setterm --blank
setting?
terminal tty power-management framebuffer
edited Oct 27 '17 at 17:41
asked Oct 27 '17 at 17:31
Ryan Lue
1997
1997
setterm
command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers.
â Ipor Sircer
Oct 27 '17 at 17:35
Thanks! I've updated the question to reflect this understanding.
â Ryan Lue
Oct 27 '17 at 17:41
add a comment |Â
setterm
command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers.
â Ipor Sircer
Oct 27 '17 at 17:35
Thanks! I've updated the question to reflect this understanding.
â Ryan Lue
Oct 27 '17 at 17:41
setterm
command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers.â Ipor Sircer
Oct 27 '17 at 17:35
setterm
command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers.â Ipor Sircer
Oct 27 '17 at 17:35
Thanks! I've updated the question to reflect this understanding.
â Ryan Lue
Oct 27 '17 at 17:41
Thanks! I've updated the question to reflect this understanding.
â Ryan Lue
Oct 27 '17 at 17:41
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f400930%2fdetecting-intervals-of-inactivity-in-the-tty-to-simulate-setterm-blank-in-fb%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
setterm
command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers.â Ipor Sircer
Oct 27 '17 at 17:35
Thanks! I've updated the question to reflect this understanding.
â Ryan Lue
Oct 27 '17 at 17:41