Ubuntu :: Make Ubuntu Suspend After A Certain Amount Of Time?
Feb 16, 2011Is there anyway to have Ubuntu suspend (not sleep) when the computer is idle for about 30 minutes or so?
View 1 RepliesIs there anyway to have Ubuntu suspend (not sleep) when the computer is idle for about 30 minutes or so?
View 1 RepliesMost nights I fall asleep watching tv or movies. I want the computer to go to sleep after I do. Under Power Management Properties I have "put computer to sleep when inactive for 1:00" yes - to " spin down hard disks" and "put display to sleep when inactive for 1:00"
I'd say 65% of the time I wake up and the computer is running, not suspended, and 45% of the time the monitor is still on. Over the past 8 months or so I have been trying different media players. I tend to have the same problem of the computer not sleeping with all of them. (Banshee, Miro, xbmc, boxee, vlc, totem, )
1. Is there a process I can look for that may be running some of the time that would hinder the suspend function?
2. Is there a simple script I can write for "suspend in 90 minutes"
3. I think I remember seeing way to do this from the CLI with pm-suspend, yeah?
Edit- I found this http://bit.ly/hpThVM
Things I tested that didn't work
~$ sudo echo pm-suspend | at 12:27
~$ sudo sleep 30s
I want to record an internet radio station starting at 2:00am tomorrow morning. The specific program on the radio station lasts until 6:00am. The command I need to run to record the station is: Code:mplayer http://wjcu.jcu.edu:8001/listen.pls -ao pcm:file=indie_heat_of_the_night.wav -vc dummy -vo nullI'd use cron, but 1. I'm not sure how to and 2. it seems unnecessarily complicated for something that I only want to run once. If cron is the only/easiest solution, I guess I'll just have to resort to that, but I'd rather not.
View 12 Replies View Relatedi have a program for x64 and i need to complile it for x32 bits if somebody knows i will be happy to know!
Here it is:
/*
* timeout - run a command for a limited amount of time
*
* Uses POSIX process groups so that we do the right thing when the controlled
* command forks off child processes.
*
* Author: Wietse Venema.
[Code]...
Possibly related to this previous question, I would like to be able to run a task for a specified amount of time, then stop/kill it, then start it again. Specifically, I run the Folding@Home application on my Linux workstation. Periodically, it will have trouble logging-in to the home server, and will sit idle for a long time, but not release memory/resources it has claimed (yes, I realize this is likely a bug in the tool, but I can't fix that currently). Typically just the act of killing and starting the tool will allow it to check-in again. So, I would like to be able to run something like:
run_for <time> ./fah6
Does such a tool exist, or should I write a wrapper than nukes the fah6 client after, say, a week and restart it?
When I search addons with firefox, it takes 4 mins to connect to server, and after approving to ad it, it again takes that much time to connect to download. While downloading it's ok, but connecting to server takes time. This is for all addons. Is there any body having same issue?
View 7 Replies View RelatedI have a CentOS5 server with a 1tb hard drive.There is only 80gb of data on that huge drive and now I want to make a bare metal recovery backup using AcronisMy question is, how can I estimate the amount of time the backup will take and the size of the image file? Is it based on the size of my drive or is it based on the amount of data on the drive?
View 1 Replies View RelatedI just (regrettably) did a clean install of 10.04nbr on a Dell Mini 10. I got to wifi and gma500 crap all worked out (almost), but now when I close the lid, and reopen it, I'm greeted with a black screen. I know it's still running, because I can hear the little drum sound of the login screen loading- it's just not displayed to the screen. ctrl-alt-f8 brings it back, but just the login screen. After logging in - I can see that all my apps have been closed. It's like it brings up the wrong tty (sorry if I'm using the wrong wording). I don't know if it's relevant, but I have it set to log in automatically. This is a bit frustrating- I've done some googling and haven't found any relevant information.
View 3 Replies View RelatedHow to get output of text file containing account number, debit amount, credit amount,date using shell script?
View 1 Replies View RelatedI am running 11.04. After an update about a week and a half ago, the time to wake from suspend increased from about 3 seconds to well over 40 seconds. It now, sometimes, takes me longer to wake from suspend than a normal boot takes. Has anyone else encountered this problem/found a fix or workaround?
View 1 Replies View RelatedI'm looking to find a way to schedule my computer to wake up at say 7:00am. Every night before I go to bed, I put my computer into suspend so the fan doesn't wake me (old computer). I can't seem to find a task scheduler that allows me to be able to wake the system.
View 6 Replies View RelatedI have what I think is a somewhat different failure of standby than I've seen listed on other threads, and I'm stumped.The system hangs on this for a while, then comes back to the login screen without going into standby. This ONLY HAPPENS on a SECOND standby attempt--the first standby after booting ALWAYS succeeds.The standby log doesn't indicate any failures.I had made other changes previously that temporarily got standby working consistently:/etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"
View 1 Replies View RelatedMy computer has different time when booting to linux or Windows.How to make the time the same?My computer time is 10:57pm Apr 14 when booting to linux.My computer time is 2:57am Apr 14 when booting to Windows Vista Home Premimum SP2.Both OS are set to the same time zone (GMT-5. Eastern Time US & Canada).
View 5 Replies View RelatedI'll start at the beginning. The problem i am about to describe occured in ubuntu 9.10 for the first time (https://bugs.launchpad.net/ubuntu/+bug/480850) and is ironically partly responsible for my switching to debian. which i don't regret, but it seems i can't run from the bug any longer because now it's in squeeze, so i want to fix it or make a proper bug report:
Steps to Reproduce:
1: Suspend Laptop to RAM
2: Resume from Suspend
3: Wait and see, preferably monitoring top:
At some random time, ranging from immediately (black screen after resume) to several hours later, the system will become unresponsive. Switching to tty1 or Alt+Print+K does not work, Alt+Print+REISUB does work. Each freeze is anticipated by a random process (this time it was mandb, was installing something) hogging 100% of CPU, then the System becomes gradually unresponsive within a minute or so (panel, metacity, finally mouse cursor freezes too).
Alternatively, in case of a black screen immediately upon resume, Alt+Print+K works (EDIT: or not), and the system remains usable.
Additionally, i don't know if this is related, i noticed one process using 9999% of CPU for a second according to top, just thought i'd mention it.
This bug constitutes a regression, suspend does work flawlessly on this Laptop in Lenny.
The above is how it presented itself at the beginning on a fresh squeeze install, however, after two days of trying, i additionally get kerneloops messages i did not get before (again, after at least one suspend to ram) and after that the system becomes generally unstable (random applications won't properly open or terminate, including nautilus, evolution, iceweasel). Can this be due to secondary damage from the freezes and alt+print+reisubbing repeatedly?
The good news is, apart from this probably already damaged squeeze install, i have another one on one of my playground partitons, where i avoided suspend so far, so i can still try things out there. (it's kde, but i don't think it's related to the desktop environment).
In Windows I can get my computer to resume from sleep mode by pressing any key on the keyboard. My keyboard is a Logitech G15 (USB).
How can I get this functionality in Ubuntu?
#!/bin/bash
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo `date '+%s' -d '+ 30 seconds'` > /sys/class/rtc/rtc0/wakealarm
[code]....
If I suspend this toshiba satellite, and the battery is or gets low it will wake from suspend to tell me that it will need to suspend due to a critical low battery. Which is pretty dumb. I've experimented with this by plugging and unplugging the ac adapter.
View 1 Replies View Related3 questions i have about "pm-suspend-hybrid"
1. is it possible to schedule this command in the same manner as shutdown ? eg sudo shutdown -h 60
2. is it possible to schedule the laptop to come out of suspend ?
3. i have a usb sound card (xfi go). when waking from suspend, the internal sound card is selected. i have to manually select the external sound card & for whatever reason, also unmute it too
I need to make a few folders, but I need the fold name to reflect the time which they were created. For example: if I create a folder at on 2010.06.03 at 13:01:34 then I would need a file name something similar to the following 20100603_130134. In addition, could the same method be used for .tar files? I would like a bash script which I can run to perform the following; however, I am not familiar with scripting in Linux yet.
View 2 Replies View RelatedI've noticed that every time this desktop is turned on the date & time are as they were the last time I used it, and then have to put in the correct date & time again (this is why I chose the word 'persistent' within the tittle). When I try to change those have to write in the password for the date as well as for the time as if 'login-in' once were not enough! What I want to know is how to put in the date & time and receive the correct amounts the next time I turn the unit on again, as it should be? Do I've to open a terminal & do it with administrator's authority/credentials?
View 3 Replies View RelatedHow do I make imagemagick convert things one at a time? I know how to make imaggemagick convert all pages of a pdf into individual jpeg files by storing it all in the RAM at once but if there isn't enough RAM, this will use swap like crazy and be suuuuuuuper slow.
Here is the command for the "crazy swap-using" way:
convert --units PixelsPerInch -density 150x150 filename.pdf filename.jpg
I own a netbook (samsung nf210 to be exact) which has Linux Mint 10 installed. What I want to do is to make both, headphones and speakers, play the same output at the same time. I believe it is possible to make it since many people are facing such condition and treat it as a pulseaudio bug (or smth like that) And it would be perfect if it was possible to easily switch between the modified configuration (dual output) and original configuration. I've noticed there are some profiles (analog output, duplex, surround etc.). Is there any way to modify those profiles? If it was, I could modify the Analog Surround Output 4.0 profile and assign rear speakers to headphones and front speakers to internal speakers of my computer.
View 1 Replies View RelatedHow do I change the default OS on grub, and adding more time to make my choice?
View 3 Replies View RelatedI have Ubuntu 10.04.1 32bit installed on my flash drive so wherever I go I can have my own mini personal computer, but one problem I'm having is every computer it is run on the next time it's rebooted to the OS on the hard drive it has UTC time instead of the actual time for the timezone you're in that Windows uses. So is their a way I can make Ubuntu not automatically change the clock to what it wants?
View 2 Replies View RelatedHow to make the system boot faster by removing the idle time between 5s to 10s? bootchart attached. It is Ubuntu10.04LTS by the way. One more hint, the screen black out for ~4s after "Begin: Running /scripts/init-bottom... Done." I don't know what is going on during that 4s, but my best guess is there is a way we can get rid of it.
Bootchart can be found here:
Am quite new to Ubuntu (10.04) and have recently reinstalled XP. I want to make an image of my windows partition to save time and effort when wanting to restore this. I read the Ubuntu documentation on Drive Imaging [URL]..community/DriveImaging and am wondering if I've done things ok?
I've booted using the Live CD. Windows is on sda1 and is a 50GB partition. I have a hidden ntfs partition on the same hard drive at sda9 of 10GB. The first time I tried this I got an error regarding my output file saying "Not a directory". I'm assuming that was because I hadn't mounted sda9. It also reported an error saying permission denied on sda1. I then mounted sda9
Code:
sudo mount /dev/sda9 /mnt
I then changed to root as I thought not being in that was why I was getting the permissions error.
Code:
sudo -s
I've then done the following;
Code:
dd if=/dev/sda1 bs=1024 | gzip > /mnt/sda1.bin.gz
The terminal window is just showing a flashing cursor in the bottom left corner under the above command line input. Is the fact that my mount partition being smaller than my windows partition going to cause a problem or will gzip solve that? My Windows install occupies about 7.5GB of the 50GB partion.
I'm not sure if dd is just taking a long time to complete the task???
Recently I've bought this motherboard : [URL] ...
And this graphic card : [URL] ....
Now I have attached two monitors on the computer,the first one (the monitor that is working) is attached to the DVI port of the nvidia graphic card,the second one is attached on the VGA port of the embedded graphic card of the motherboard.
Since I would like to play a little with blender,I need to use two monitors at the same time because in this way I can follow more video tutorials at the same time.
I'm using this version of debian :
Linux ziomario-Z87-HD3 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 GNU/Linux
and this is the informations concerning the graphics card installed on the computer :
root@ziomario-Z87-HD3:/home/ziomario# lspci -nn | grep VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell Integrated Graphics Controller [8086:0412] (rev 06) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:11c0] (rev a1)
root@ziomario-Z87-HD3:/home/ziomario# xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
[Code] ....
How to use my two monitors together ?
I want to make one Fedora 14 as server that have Date and Time as normal. Is there any to make other fedora 14 get Date and time from that Fedora 14 server
View 9 Replies View RelatedIs there a way for the time at the top of the screen to display seconds as well as the date ?
My clock seems to be about :40 seconds off... before i upgraded from f-13 i had my time controlled by ntp(how to verify ntp is enabled) ? even with network time = yes, it seems to lag a little.
I figured out the network time. it is under a whole separate menu for some reason.
Is there a way to get weather/ temperature like in classic gnome ?
Rite now my clock reads: tue 3:50 pm...Is there a way i can make it read: tue, aug 20, 2011 3:50:45 pm
I need to write a small application which needs to detect if the system time is changed by an another application/user and perform some action as soon as it is detected (maybe log the data that time has changed, along with info about which application/user changed it).
How can this be achieved?
I have good programming experiences in shell script, c and beginner level in python.
I don't need to know when it was changed, just need to know who/what changed it.
The system uses NTP to sync the time, but it is also possible for anyone/any application to change the time(for eg: using the simple "date" command as well).