"Keep laptop running on lid close?" + "ssh via crossover cable?"
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"Keep laptop running on lid close?" + "ssh via crossover cable?"
I have a Dell Latitude C800, "Delphi", and a Dell Inspiron 1545, "Hermes."
I currently have Debian Squeeze installed on Hermes and wish to install the same on Delphi.
Before I proceed with this, I want to make sure that I can have Delphi running even when the lid is closed. Can I do this and if so how?
I also want to be able to connect a crossover cable between the two and ssh from Hermes into Delphi. Also can I do this and how?
I can't help with the Latitude. Have you done any testing?
This is normally a hardware call--the software has no way of knowing the lid is closed unless the hardware tells it.
I would feel around for a hardware shutdown switch (read "little tiny button" that's activated when the lid is closed, like a refrigerator light button). If it does have such a switch and if the switch works in Linux (the software has to understand the hardware call), perhaps it can be disabled in BIOS.
I have in Inspiron 1545n. I just closed it four five minutes and reopened it. It did not shut down, but it did lock the screen. Xscreensaver wanted a password when I re-opened it.
As near as I can tell, it has no hardware shutdown switch.
Edit:
The crossover cable is a hardware thing. It should work as long networking is set up properly. It's been a long time since I used a crossover cable--it was in the NT4 days.
You might need to set static ip addresses, since there would be no DHCP server to assign a DHCP address. That's something to investigate.
I still want the Inspiron to behave normally when closed (it will be used as my main laptop).
With your Inspiron, it's likely that you simply have the settings configured to simply sleep when closed and resume (bringing up the screensaver password prompt) when reopened. This was my default configuration for both Ubuntu and Debian on mine.
As to testing, I have only been able to do so much as turn off the screen on the Latitude by using "vbetool dpms off" this turns off the screen but the lid must still remain open. In the BIOS I didn't find anything that had the effect I want.
I don't mind setting a static IP for the Latitude, I would actually prefer one, but the Inspiron I would like DHCP since it's required for my home wifi.
When I re-opened the lid, everything was as I had left it.
The only power management I have configured is the screen power management in xscreesaver.
I don't normally mess with hibernate or sleep because, frankly, I think they are mostly silly and unnecessary.
Regarding the ip address, if I understand, you are wanting the crossover cable to work on the ethernet port while that box is also connected to the internet via the wireless. I've never needed to do that, but you will have to make sure the ethernet and the wireless settings are such that they can deal with that. Never done it, can't make suggestions, but I'm sure you can find data about how to manage two different eth connections on the web.
I am going to post this, close LQ, then close the lid of my computer. I'll let you know what I find in the morning!
Preferably I would like to keep the Inspiron connected to the wifi this entire time. The Latitude however I would like to remain disconnected from the web.
So:
Code:
Internet
|
wifi
|
V
Inspiron --crossover--> Latitude (no internet)
I opened the lid of my Dell 1545n this morning, entered a pword into xscreenlock, and everything was as I left it. All programs left running were still running and responsive to the keyboard and mouse, new programs started without incident, and the 4:00 a. m. podracer cron job ran successfully. I am currently copying the downloaded podcasts to my podplayer.
Conclusion: The computer did not sleep or hibernate.
Edit: Also, last night about an hour after I closed the lid, I connected to it over my network from my file server and was able to see the contents of the shared directory without incident.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.