Debian :: Automatically Restarts When Using Wake-on-lan
Aug 28, 2015
I am hosting a home server to make developing stuff easier. And because I don't need my server all day and night I automatically start and shut it down. For starting I use Wake-On-Lan (etherwake) and to shut it down I am using my RaspberryPi. Finally I have a problem doing that: When I use WOL to start my home server it works perfect. But when I try to shut it down, I have to do that twice. After the first shutdown it restarts automatically even when no WOL-Package is sent.
I am using Debian 8.1 Mate as os.
My stop script is:
Code: Select allsshpass -p<password> ssh root@server.home.lan shutdown -h now
I am looking for an automated backup system and I like bacula. I have 3 Notebooks and a Desktop computer that need regular backup. Now I don't want to let them run all night just to do the backuping, so I was thinking I could use wake-on-lan to have bacula wake up the machines, then do the backups, and shut them down afterswards. While this may work with devices on the ethernet, it won't work with the Notebooks on the wifi. So is it possible to have the Notebooks schedules to automatically wake up from suspend or shutdown ?
Or is it possible to interject a shutdown command if it is after a certain hour and call the bacula director to start the backup now?
I have a problem with one a server installed with Debian 3.1, that is restarting almost every day at the same hour, 6,25 AM. Here are the messages obtained with #cerberus:/etc# grep -C 5 restart /var/log/messages
.....missing displays....
.....missing displays....
.....missing displays....
As I said, there are days when the system is not restarting, but more often it does. For example, on 6th and 8th October it didn't restart, but on 7th it did, and the messages are the same.
I've come across a problem just recently where my laptop will restart after I shut it down from within Debian. I've looked into my BIOS for anything that might trigger this, but could not find anything. I run Debian Testing 64-bit on a Dell Inspiron 17R laptop.
I installed latest stable debian lenny. However when I want to switch to a virtual console by pressing Alt+Ctrl+F(1-6) the X server is restarted and I get the gdm login screen. When I kill gdm, virtual console switching works fine. How to switch a to a terminal and return to my X session by pressing Alt+Ctrl+F7?
I have downloaded the latest version of Debian for PPC to run on my iMac G3 600MHz 1GB ram. The problem is, is when it is partitioning the HD the computer just shuts down and restarts from the beginning. I don't understand this. I chose it to erase and use the entire disk. The HD is 80GB. I really want to install this OS!
I have installed Debian 8.1 with KDE desktop on Lenovo t431s with intel HD4000 graphics.
When using it with dual monitor configuration, I experience the problem when I put system to sleep (by closing the lid), then remove the external monitor cable (from miniDP port) and then try to wake system from sleep. The login screen freezes and I am unable to move the mouse or type in credentials. In case I had music player running I can hear the music after system wake , but it shutters while playing.
This does not happen on some other distributions, but the problem is that I very much like my current setup and I would like to fix this problem and keep it.
I do not know if this problem is due to KDE or KDM or it's Debian base.
I came back to debian after trying many others because it installed flawlessly and worked. I'm on the testing channel and upgrade nearly everyday and after a recent upgrade my xsession (Xfce4) display won't wake up any more after I close and re-open the lid. I know the box is awake because I can go to a ctr-alt-fn console login and use it normally. How can I track this down? And is there some way I can restart the gui display from the console without losing what was running before I shut the lid? Right now the only way I can recover is to restart the computer.
I have installed Debian Jessie (<-- brilliant OS ) on my uncles Laptop (it is a Thinkpad E540) with Cinnamon as desktop environment. The installation was no problem. Everything apart from one minor thing works nicely. The minor thing however is the following:
I don't know what it is, but when I don't use a particular usb port for a while and then try to plug in a usb stick or a wacom tablet, it doesn't get recognized, it doesn't show up when I use f.e. Code: Select alllsusb. When I close the lid of the laptop and open it again, then the particular usb device gets recognized and cinnamon asks me what to do, f.e. open a folder and show the content of the usb stick I have plugged in. Because of the success on two other laptops I use the following
to save power on the Thinkpad (this is in no way my service script, I tuned everything using powertop in the terminal after having had logged in, the script above stems from a brilliant user here on the forum). Could it therefore be autosuspend that is not working properly here?
I recently switched back to Debian after getting fed up with Ubuntu. The one feature that I haven't been able to get back since the switch is Wake on LAN.If I turn on the computer and watch tcpdump, I can see the packets hitting my machine. I don't think it's a router configuration issue.If I shut down from windows, WOL works.Another sign that it's not a networking or BIOS thing.Here's some stuff I've tried:When I boot up in linux, if I run ethtool eth0, it tells me that wake is set to g (which every guide I've read says is correct).Just in case, I added "post-up /usr/sbin/ethtool -s $IFACE wol g" to /etc/network/interfaces (as shown here: ewtopic.php?f=5&t=42049&p=244736&hilit=wakeonlan#p244736). Also added same thing for post-down.
In /etc/init.d/halt, I changed NETDOWN to no (also from previous guide) to keep my eth card from being shut down.Also changed /etc/init.d/networking to exclude eth0 (as documented in Added "pre-down false" to /etc/network/interfaces.. trepid+wol), to keep eth0 from being shut off.Anyway, I'm guessing that either there's another script somewhere shutting off eth0 or I'm completely wrong in assuming that's the problem. I've been googling this problem for a couple weeks now and I'm totally out of ideas.
I'm am able to WOL my computer when it has been halted (or shutdown, which is basically the same thing for the problem I'm facing). The problem comes when I try to WOL the computer when it is suspended or hibernated. Then, it does not work.
I've been investigating for a while and have found that when halting, the following is done in the /etc/init.d/halt script:
[code]...
But I don't know which script must be modified in case I want the network not to be brought down when the computer is suspended or hibernated.
Suspend worked before I completely reinstalled Testing from scratch. Now it seems to suspend OK, but when it tries to wake up it fails. Details here: [URL]
I have an Acer 1551 4755, with Debian Squeeze. Normally my Debian Squeeze installations and suspending work fine on my other 2 laptops. For some reason this one is troubled. I can put into sleep with "pm-suspend" or "pm-hibernate" but the thing is that my laptop never wakes up. I endup restarting.
I use my laptop connected to an external monitor, so I would like it to wake up from suspend with a wireless keyboard. I could manage to do it when the lid is open, however, when the laptop lid is closed, it doesn't. So I need to open laptop lid each time and it is annoying.
This is how I make it wake up with wireless keyboard:
Is there a config file to toggle whether the screen is locked after hibernation? I looked all over preferences but if it's there, I missed it. In Ubuntu, the screen was always locked after waking up. In Squeeze, it's going directly to desktop. It's not a biggie but you never know when someone might try to access your account so I kind of liked that it would wake up locked. Maybe it's doing that because I'm the only user on the system?
i have recompiled kernel on my netbook (lenovo s10-3t).suspend works correctly but then i cannot wake up. i think i just missed some kernel options.what options must be set for suspend/wake up?
how do I uninstall Java? Tried with Synaptic and apt-get remove, but uninstalling sun-java6 automatically adds default-jre (openjdk) and uninstalling openJdk automatically installs sun-java ... but I don't want ANY Java on my machine - am I missing something? Already thought I maybe have a package that requires SOME kind of Java, but how do I find out?
removing A automatically causes apt-get to want to install B when removing a bucnh of gnome stuff for example....The following extra packages will be installed:
It was running squeeze before it became stable. X was running fine and loading automatically on booting. Then I did not use it for some time. Then I ran apt-get updates and upgrades after squeeze became stable. A few packages were kept back. So I did aptitude dist-upgradeIt installed some things and maybe removed some things. After that it will boot only toconsole. When I do startx on the command line, X session starts and everything seems normal. But it will not boot to the GUI like before. I also checked in the Synaptic and saw xorg and xserver-xorg still installed
Allright peeps does debian updrade automatically or one has to go about it by self and is it recommended to upgrade or just to go about re installing with a new dvd?
just installed Debian 8.2 on my ThinkPad X230 laptop using netinst. I installed only basic system and then install packages I need manually. Now I stuck with NetworkManager and Wi-Fi. NetworkManager and its applet (package network-manager-gnome) installed, I can connect to my Wi-Fi network, but after reboot a dialog asking for passphrase for keys appeared and even after entering correct passphrase NetworkManager does not connect to the Wi-Fi, so I need to connect it manually.
But idea is that this PC will work without operator so driver must be loaded automatically. As i realized the solution is to make script but when i try google it shows me how and where to put this script but not how to make it. Also i've tried to put tmk1553b.ko to /lib/modules/2.6.32-5-686/kernel/drivers/misc but it doesn't work.
I am having trouble getting grub to automatically boot into ubuntu server. When I turn on my server the grub menu shows up and shows me the choices. They all work fine except that grub wont automatically select one. This wouldn't be too much of a problem but this is a headless server and I can't boot into ubuntu without a keyboard. I tried looking through the grub 2 documentation but nothing seemed to work when I edited the conf file.
what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?
My computer is set up as a dual boot into windows 7 and ubuntu, but since I installed the latest updates, every time hit enter to boot into ubuntu the computer just restarts. It doesn't even go into the ubuntu grub loader like it usually does