Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I know that setterm can be used to adjust parameters such as screen blanking time on a virtual console. How can I show the current setterm settings/values for all parameters?

share|improve this question
add comment

1 Answer 1

The least one can say is that the interface to set those VT attributes is very messy. Some are done with ioctls (a myriad of them), some with escape sequences (some that affect one VT some all at once), some are also accessible via /sys...

For the blanking time, you can have a look at /sys/module/kernel/parameters/consoleblank (in seconds).

share|improve this answer
    
Thanks. Your answer suggests that there is no single place where all the settings are stored or viewable? –  SabreWolfy Oct 15 '12 at 11:58
1  
Yes, in this instance, it is set with an escape sequence (printf '\033[9;10]' to set a 10 minute blank time) which you can read as 600 seconds in a /sys file (though it can be set by the /sys file as well), some are done by ioctls. There might be a command to query all of them the same way as setterm can be used to set some of them, but I don't know what that is. And there's nothing in util-linux where setterm comes from. –  Stéphane Chazelas Oct 15 '12 at 13:01
    
I have the exact same question but I'm not seeing this path/file on my CentOS 5.x server. There doesn't appear to be a kernel sub-directory under /sys/module/. There are plenty of other directories though. Would this consoleblank param exist somewhere else? –  Mike B Jul 15 at 21:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.