I'm trying to activate/disable monitor power saving within a bash script. It's a TFT screen, mounted on a box.. but it's connected to the VGA card with a standard external monitor cable.

It's taken me a large portion of the day to get the damn thing suspending, (DPMS doesn't work for it.. hard as I tried... so I had to enable the kernel option that's usually for laptops, to power it down with APM).

The problem is... setterm doesn't run from non-local terminals. It will activate the power saving fine if I run my script from the command line, but when the script runs in the background (using &), from another script, it complains with the same message you get when you try to setterm in X, or over SSH:

cannot (un)set powersave mode

I am assuming this is because setterm can't get to the IOCTLs required to do the power saving.. does anyone know better?

Cheers,
MAL


--
[EMAIL PROTECTED] mailing list

Reply via email to