if shutdown -c does it that would be great.
I'll try it out.
In my sleep.d suspend script the script just exits if the condition is met rather than issuing a counter command and the machine...
Type: Posts; User: bilboubu; Keyword(s):
if shutdown -c does it that would be great.
I'll try it out.
In my sleep.d suspend script the script just exits if the condition is met rather than issuing a counter command and the machine...
Is it possible to abort a shutdown using a shutdown script based on a certain condition?
eg rc.local script
if conition = true
abort shutdown command here
fi
sleepd does not seem to be acknowledging my remote control presses, I have it set to run a script after 10 mins of activity which it does but it does not acknowledge button presses, is this a known?
how can I find out what interrupt my usb infa red remote control and my keyboard use?
cat /proc/interrupts
CPU0 CPU1
0: 46 7 IO-APIC-edge timer
1: ...
I have installed this via apt-get and configured it so that it should put my machine into suspend. The only monitors configured are the keyboard and mouse but my machine does not go to sleep.
I...
Cool, so the script would run when not alot else was occuring, I would have ther script looping , would it then stop the script when the machine became active again, ie user input.
It is more no...
On windows I could initiate a task ie a script on idle which would run and stop running if the machine stopped being idle.
Is this possible in linux? At the moment I am running the job every 15...
I think my problem is the windows password.
If I do "mount //myshare"
it prompts me for my windows password and mounts fine, the problem is I want to run drom a script and when I try
...
Hello
Is it possible to mount a windows network share after a resume from suspend and after a delay?
My client wakes up the server with a wakeon lan, I then want to wait say 10 seconds before...
.This file, in turn, executes my wakeup script
/etc/init/net-device-up.conf
Contents:
Code:
description "Run server wakeup script after network is up"
start on (net-device-up IFACE=eth0)
bloody had to unload/reload the module for that usb stick in a suspend/reume script script!
wtf I had to do that when I never have before I do no know, if anyone had an incling please share.
when i take out mu usb tv stick pctv 290e resume works, I have no idea why this is ??? when it there was no problem previously.
How can I resolve this, any ideas greatly appreciated.
does this mean anything:
cat /var/log/syslog* | grep PM:
Nov 18 14:05:19 htpc kernel: [ 0.000000] PM: Registered nosave memory: 000000 ...
I reinstalled 11.10 as upgrading to 12.10 seemed to bork my machine. I previously had no problem suspending and resuming so I dont understand wtf has happened. The machine suspends fine but when...
thank you, no it is not my real password.
I put this in my fstab which works fine:
//192.168.0.2/Media3/recordings /home/billy/oscar cifs username=Billy,password=yessir,billy,uid=1000,gid=1000,iocharset=utf8,mode=0777,dir_mode=0777 0 0
...
I have this but I need to fix the ifs any advice?
#!/bin/bash
sleep 30
if [ `netstat -t | grep -c ":9982"` -ge 3 ]
then
echo live tv
Ok I think I have worked out what I need to grep for but I dont know how :)
from the below output:
billy@htpc:~/bin$ netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q...
Actually thinking about it, no because I dont want it to suspend if I am watchin locally which it would with this, hmmmmm
So this:
#!/bin/bash
if [ netstat -t|grep "9982 192.168.0.*ESTABLISHED" ]; then
if [ -f /tmp/idle.tmp ]; then
rm -f /tmp/idle.tmp
pm-suspend
else
echo 1 > /tmp/idle.tmp
Excellent thank you, looking at the netstat out put I need to check for
tcp 0 0 htpc.local:9982 192.168.0.4:59455 ESTABLISHED
specifically 9982 with any 192.168.0.*...
Thanks I've found these for starters:
http://www.linuxquestions.org/questions/linux-server-73/auto-suspend-for-my-home-server-730037/
http://aikar.co/2011/03/03/ubuntu-prevent-sleep-samba/
...
me too!
I want xbmc to suspend a machine after 30 mins of inactivity which it does. A tv server runs on this machine and I do not want it to suspend whilst it has clients connected.
At present I use a...
After upgrading to the latest version 12.04 if my hdtv connected via hdmi is off when i start the computer i get a blank screen when i do turn it on, the tv needs to be switched on first.
I found...