On Thursday 13 February 2003 18:30, MAL wrote: > 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?
If X is running you can use xset (Make sure you have permission for the display by using some xauth magic). For example: "xset dpms force off" immidiately turns of your display Paul -- Paul de Vrieze Researcher Mail: [EMAIL PROTECTED] Homepage: http://www.devrieze.net
msg01284/pgp00000.pgp
Description: signature
