1 |
On Tue, Nov 10, 2009 at 08:58:13AM +0930, Iain Buchanan wrote |
2 |
> On Mon, 2009-11-09 at 10:39 -0500, Walter Dnes wrote: |
3 |
> |
4 |
> > OnResume 97 /etc/init.d/sshd restart |
5 |
> |
6 |
> how come? To kill any stale ssh connections? I find that they clean |
7 |
> themselves up fairly well. In fact, if I hibernate and resume in |
8 |
> enough time, an existing ssh won't be disconnected (and still works). |
9 |
|
10 |
I find that for some reason sshd doesn't restart on resume. I tested |
11 |
it 2 minutes ago... |
12 |
- ssh from my laptop... OK |
13 |
- disconnect |
14 |
- comment out the OnResume statement |
15 |
- hibernate the desktop |
16 |
- resume the desktop |
17 |
- ssh from my laptop... Connection refused |
18 |
- manually enter "/etc/init.d/sshd restart" (as root) |
19 |
- ssh from my laptop... OK |
20 |
- and remember to uncomment the OnResume |
21 |
|
22 |
For that matter, the console font setting is forgotten as well. I |
23 |
have VGA=6 in lilo.conf (probably works in GRUB as well), which defaults |
24 |
to an unreadable 80 columns x 60 rows display. This is done by |
25 |
selecting the 640 pixels by 480 scanlines mode, and the 8-pixel high |
26 |
font. 480 / 8 = 60 rows. Selecting 10-pixel high font gets |
27 |
480 / 10 = 48 rows (YES!). And thanks to the extra pixels, the font is |
28 |
*MUCH* nicer than standard 80 x 50 (using 8-pixel high font with 400 |
29 |
scanlines). No 2 ways about it, 10-pixel high font beats out 8-pixel |
30 |
high font on a text console every time. |
31 |
|
32 |
-- |
33 |
Walter Dnes <waltdnes@××××××××.org> |