Re: Running X window programs from PM suspend-resume scripts

2010-03-22 Thread Serguei Miridonov
On Monday 22 March 2010, Chris Tyler wrote: > On Mon, 2010-03-22 at 22:38 +0200, Serguei Miridonov wrote: > > On Monday 22 March 2010, Chris Tyler wrote: > > > On Mon, 2010-03-22 at 21:10 +0200, Serguei Miridonov wrote: > > > > Hello, > > > > > > > > Is there a trick to run X window programs from

Re: Running X window programs from PM suspend-resume scripts

2010-03-22 Thread Chris Tyler
On Mon, 2010-03-22 at 22:38 +0200, Serguei Miridonov wrote: > On Monday 22 March 2010, Chris Tyler wrote: > > On Mon, 2010-03-22 at 21:10 +0200, Serguei Miridonov wrote: > > > Hello, > > > > > > Is there a trick to run X window programs from PM suspend-resume > > > hooks? For example, I need to re

Re: Running X window programs from PM suspend-resume scripts

2010-03-22 Thread Serguei Miridonov
On Monday 22 March 2010, Chris Tyler wrote: > On Mon, 2010-03-22 at 21:10 +0200, Serguei Miridonov wrote: > > Hello, > > > > Is there a trick to run X window programs from PM suspend-resume > > hooks? For example, I need to restore keyboard mapping after > > suspend to RAM using > > > > xkbcomp s

Re: Running X window programs from PM suspend-resume scripts

2010-03-22 Thread Chris Tyler
On Mon, 2010-03-22 at 21:10 +0200, Serguei Miridonov wrote: > Hello, > > Is there a trick to run X window programs from PM suspend-resume > hooks? For example, I need to restore keyboard mapping after suspend > to RAM using > > xkbcomp some_file.xkm :0.0 > > Running this in > > #!/bin/bash >

Running X window programs from PM suspend-resume scripts

2010-03-22 Thread Serguei Miridonov
Hello, Is there a trick to run X window programs from PM suspend-resume hooks? For example, I need to restore keyboard mapping after suspend to RAM using xkbcomp some_file.xkm :0.0 Running this in #!/bin/bash DISPLAY=":0.0" export DISPLAY case $1 in hibernate | suspend) ;; th