[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Current linux console screen blanking period?



On Thu, 2003-07-31 at 16:07, Petter Reinholdtsen wrote:
> I know it is possible to use 'setterm -blank <value>' to change the
> current screen saver timeout value in the linux console.  But is it
> possible to get the current value out of the console?
> 
> I want to disable the screen saver while some task is being done, and
> then enable it again with the original value when the task is done.
> Is this possible?

A quick look at the kernel (2.4.19 sources) appears to say no; its a
pity that the ioctl call doesn't return the previous value.

Within console tools, you could probably read the default from 
/etc/console-tools/config ; within d-i , I'd presume since we'd just
assume the kernel value.

Regards,
Alastair

-- 
Alastair McKinstry <mckinstry@computer.org>
GPG Key fingerprint = 9E64 E714 8E08 81F9 F3DC  1020 FA8E 3790 9051 38F4

He that would make his own liberty secure must guard even his enemy from
oppression; for if he violates this duty he establishes a precedent that
will reach to himself.

- --Thomas Paine



Reply to: