Ubuntu :: Execute A Command When Power Supply Is Disconnected?

May 16, 2010

Is there a way to do that since the computer and OS is aware that the power supply is disconnected.

View 6 Replies


ADVERTISEMENT

General :: Execute A Command When Power Source Changes

May 20, 2010

My laptop has a dead battery. Even when it's fully charged, if the power cable is pulled out it only lasts for about 4 minutes before it dies. I'm running Ubuntu Lucid Lynx 32-Bit. What I want to do is create some sort of script or program that will immediately set my computer to go into hibernation once it detects that the power cable has gone dead. I'm willing to look into all ways of doing this. I can program in C, but I'm not familiar with the API used to manage Power Management in Linux.

[Code]...

View 5 Replies View Related

Ubuntu :: Power Supply Cooling Fan Won't Down Normally / Remedy This?

Oct 22, 2010

I just recently installed Ubuntu and my power supply cooling fan won't power down normally when I would run windows tho it would power down after the system was finished starting up. How can I remedy this?

View 1 Replies View Related

Ubuntu :: Installation Crashed After Power Supply Failure

Mar 8, 2011

My pc had hardware malfunction; power supply interruption. At this moment it is working stable. My Windows 7 installation is ok but Ubuntu Maverick which I used during crush has malfunction. When I start to boot it looks like this: I had to make a foto so you all can see the problem. all my important files are stored on Ubuntu partition..

View 4 Replies View Related

Hardware :: Fanless Power Supply Unit ?

Jan 15, 2011

Does anyone had any experience with fanless, low-powered power supply units (PSUs)like PicoPSU? Please share your experience.

I am also interested to hear about experience concerning the fanless cooling solutions and/or power-scaling for low-end CPUs like Intel's Atom, AMD's Neo or Via's Nano.

View 13 Replies View Related

Hardware :: Using One Power Supply For Multiple Motherboards

Apr 19, 2011

Is it technically possible to use just one power supply for more than one motherboard?The reason for asking is that I have a number of old (a few years) boards that I would like to use to make up a blender render farm yet only have one spare PSU. Having looked at the pin spec URL...pin 16 (power on) should only be connected to one board (or have a manual switch to ground for on)Pin 9 (standby +5v) probably should only connect to the one board or none and the other (or all) boards would need pin 9 to be tied to a +5v pin.All the boards would network boot and have nothing connected to them, no disks, floppies, monitors, etc; as all data would reside on a network server.

View 3 Replies View Related

Fedora Hardware :: GTX 470 + Corsair 650 Watt Power Supply?

Sep 23, 2010

is this a good combination to use with 8 GB of RAM and 2.6 GHz AMD Hex core? The power supply will be replacing a 450 watt power supply and the video card will be replacing an ATI 5750 1 GB (Which currently doesn't work without 10.9, so far) The problem with these is that it doesn't meet the AMP rating of 38A of the GTX 470.

View 1 Replies View Related

Hardware :: Replace Power Supply Or Mount Internally?

Dec 22, 2009

I have a 500GB WesternDigital Elements external harddrive and recently I plugged it into my computer and noticed the green light on the power adapter didn't light up anymore. I'm assuming that the power adapter failed - is this a fairly safe assumption? I know it COULD be something else, but does this at least make sense to move forward?Coincidentally, I've been researching new externals to order a 1.5TB because the 500GB is full.

I'm contemplating two options:
1.) Replace the power supply for ~$40
2.) Take apart the external and mount it internally

If it is in fact the power supply it might be the best option to just replace the thing and have 2 externals for backing up data on. But if it turns out to not be the power supply I'm out $40.I'm not sure how taking apart the external and install the hard drive in a desktop computer would be. Is the harddrive a standard drive? Does it have all the same power cords a normal computer would? If so, I could just install it into my brother's desktop and retreive the data that way (and he'll have an extra 500GB hdd).

View 2 Replies View Related

General :: Changing The Power Supply Unit And The Distros?

May 3, 2010

I have installed on my computer Solaris10 (64bit version), PCBSD8 (64bit) on 2 primary partitions and 7 Linux distributions (Redhat,Debian,OpenSuse,Fedora,LinuxMint,Slackware,Ubuntu) on the extended partition. I know this might be a stupid question, but here it goes: I have a problem with my actual power supply unit (the fan doesn't work as it should) and I will change it soon. Is there a problem with any of the Linux distributions if I change my power supply unit? I mean, will the Linux operating systems work properly with a new power supply unit or do I have to reinstall all Linux distributions?

View 4 Replies View Related

Ubuntu Servers :: The Internet Went Out Last Night Due To A Faulty Power Supply On The Main Line?

Mar 17, 2010

So now that it's working the Server can't be seen from the internet. I see that the router changed all the ip address so I changed the fort port forwarding on the router and still not working. And the external ip address has not changed.

View 4 Replies View Related

OpenSUSE Network :: Router/adsl Modem Is Not Connected To A Power Supply - How To Connect It

Feb 5, 2011

My router/adsl modem is not connected to a power supply so when power goes and comes the network will do a re-boot. Now the problem is my OpenSUSE network won't come back on! I set the static ip as Autoeth0 to eth0 however when network updates I losse eth0. Why is this happening? Why doesn't the PC simply re-connect? Can I do it via command line?

View 5 Replies View Related

General :: The Power Supply Is Failed On Chassis , Bay , Status , Model 2, Serial Num 2, Firmwar?

Oct 10, 2010

come across with this issue for one server we are giving support please,help me to know why this issues occurs and alsothat i want a command to display power supplies for the server.please,let me know if anybody is familiar with these kind of issues.

View 2 Replies View Related

Ubuntu :: Power Surge Disconnected Internet Connection

Jul 10, 2010

Our area was hit by a power surge and I cannot get the internet connection to work? What can I do. I'm using an AT&T modem which is connected to a netgear router.

View 4 Replies View Related

SUSE :: Automate Execute Command, Reboot And Execute Command?

Dec 1, 2008

Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually

View 5 Replies View Related

General :: Sudo And Command Line - Get The Result Without Having To Supply A Password

Mar 31, 2011

I have the following commande /sbin/fuser -f -u /u/DT01/F010107 1>/tmp/null 2>/tmp/seausr.T0069 when executing as root 'su' this give me all user using the file. but when tried with 'sudo' i am asked with 'user password'. Is ther anyway to simply get the result without having to supply a password and to see all user not only me. (i have the file open also).

View 1 Replies View Related

Ubuntu :: BASH: Execute Next Command Until Another Command Succeed?

Mar 19, 2010

I have a big bash script ,its goal is to download movie one by one . But I often get into a problem: if this script is executed in cron,it often does not completely download the movie.I often find the movies it downloaded are several KB while the movie is actually 20MB.So I think it is because it did not wait for finishing one task ,and jump to download another.So I want to know ,is there a way to force the bash script to wait until one movie downloaded completely and then start to download another movie ?

View 8 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

General :: Only Execute 2nd Command On Successufl Execution Of 1st Command?

Aug 19, 2009

I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.

View 3 Replies View Related

Ubuntu :: Execute Command Without Login

Sep 14, 2010

I want to start my Ubuntu 10.04 and without logging in I need a command started. The command is setxkbmap .... So, I will not put the command in my .profile, nor in my .bashrc, because I am not going to login.

View 2 Replies View Related

Ubuntu :: Execute Command Without The Login?

Sep 14, 2010

I want to start my Ubuntu 10.04 and without logging in I need a command started. The command is setxkbmap .... So, I will not put the command in my .profile, nor in my .bashrc, because I am not going to login.

View 1 Replies View Related

Ubuntu :: Automatically Execute Terminal Command?

May 13, 2010

I googled around and couldnt find what I was looking for. Maybe I used the wrong search terms, but whatever. I was wondering if there was a possibility to execute a series of terminal commands just by double-clicking an icon. For example, there would be an icon on my desktop, and if I were to doubleclick it, it would execute "cd ~/.wine2" and then "WINEPREFIX="$HOME/.wine2" wine program.exe".

I realise that most of you will probably go "duh, that's simple" or something similar, but I am extremely new to ubuntu, and dont know my way around yet.

View 3 Replies View Related

Ubuntu :: How To Execute Command Automatically After Login

Feb 2, 2011

I need to execute this command after login: gvfs-mount -d /dev/sda1.It works perfectly from terminal but it doesn't if I add it to "Startup Applications" or to rc.local.Is there another way?

View 2 Replies View Related

Ubuntu :: How To Execute Command At Boot Time

Apr 29, 2011

I use two monitors,my problem is that I want to change the setup,so that the other monitor becomes default.There's no problem with my BIOS settings and I have tried every GUI tool that could help me(to my knowledge).Well I've found this URL...that helps a lot but I want to execute the command every time I boot before the splash screen(so that the login screen appears on the right monitor).I've tried rc.local but had no success.Any ideas on how to execute the command at boot time?

View 9 Replies View Related

Ubuntu :: Execute System Command With Perl?

Jun 13, 2011

i want to execute system command with perlm but it gives me error.

command is wmic client. here it is

#!/usr/bin/perl
open (EP, "/home/user/Templates/domainpc.log");
while (<EP>) {
chomp;

[Code]....

View 1 Replies View Related

Software :: Allow A Group/user To Execute A Command, Where One Of The Parameters Of The Command Is A Group As Well?

May 3, 2010

Is it possible to allow a group/user to execute a command, where one of the parameters of the command is a group as well? example that does not work as intended:

Code:
Cmnd_alias SU=/bin/su -l %group1 This example works sortof, it treats the "%group1" literally. I know I can list out the "/bin/su -l <eachuser>", but as you can imagine that is impractical. In this example, I want people in group2(not shown for brevity sake) to be able to su to someone in group1

View 13 Replies View Related

Ubuntu Servers :: Execute .php Files From The Command-line?

Jan 26, 2010

Some time ago I installed LAMP in my server, but now I need to execute .php files from the command-line (in order to execute some manteinance scripts for mediawiki). Seems that the PHP files running in the server are run thru some kind of "module" in apache2. Can I tell apache2 to run a .php file in command-line mode using that php module? Or should I install a fresh copy of php-5? Won't that interfere with apache or mangle the system?

View 4 Replies View Related

Ubuntu :: Setting Up A Cron Job On DD-WRT Router To Execute A WOL Command

Oct 9, 2010

I am setting up a cron job on my DD-WRT router to execute a WOL command, and would like to know if what I have is correct.

Format:

Execute @ 12:00 on Wed, Thur, Fri, Sat every month/Yr

0 12 * * 2345 root /usr/sbin/wol -i 192.168.1.255 00:00:00:00:00:00

View 3 Replies View Related

Debian :: How To Run Execute Command In Terminal

May 4, 2010

i have one executable file (filename : "tet"). i can run this command in other linux os like: "fedora, cent os" using command "./tet", and it's working fine. but this command not working in debian. i don't know how to execute this file.

1. i have tried with 755 and 777 permission
2. i have tried "home/fullpath/tet"
3. i have tried "/tet"
4. i have tried "./home/fullpath/tet"

but above all commands are failed. to run this execute file

View 10 Replies View Related

OpenSUSE :: Can't Execute Some Command With Sudo?

Nov 29, 2010

I would like to have an user that can execute al command with sudo.I configured sudo with yast2 and in the sudoers file actually there is a line with:USER ALL = (ALL) ALLWhere user is my username.But I can't use some command like ifconfig becouse it say that it can't find the command. I think that this is becouse of path, but shouldn't i get root path using sudo?

View 3 Replies View Related

General :: Execute A Command Whenever A File Changes?

Aug 27, 2010

I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with that file. Currently, I'm using this: while read; do ./myfile.py ; done And then I need to go to that terminal and press Enter, whenever I save that file on my editor. What I want is something like this: while sleep_until_file_has_changed myfile.py ; do ./myfile.py ; done

Or any other solution as easy as that. BTW: I'm using Vim, and I know I can add an autocommand to run something on BufWrite, but this is not the kind of solution I want now. Update: I want something simple, discardable if possible. What's more, I want something to run in a terminal because I want to see the program output (I want to see error messages).

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved