PDA

View Full Version : GNU Screen: No more ptys?


jibanes
01-05-2008, 08:59 PM
Hello,

When I compile GNU screen-4.0.2 for my N810, it creates the armel binary just fine, but I have only one pty, when I try to create a new screen (ctrl-a c) it displays "No more ptys", I'm guessing the # of ptys is hardcoded somewhere, or there's an OS2008 trick I'm not aware of, have any of you successfully used screen on your OS2008 device?

Please note that attaching and detaching a screen session works just fine, I just can't have more than one pty which is really not great.

jibanes
01-05-2008, 09:45 PM
Okay I found why, there's a kernel tunable on OS2008 as such:

kernel.pty.max = 4

So I bump'd it to 256 and we're in business again!
Thread closed, problem solved.

dblank
01-05-2008, 10:12 PM
Okay I found why, there's a kernel tunable on OS2008 as such:

kernel.pty.max = 4

So I bump'd it to 256 and we're in business again!
Thread closed, problem solved.

I think you can just "echo num > /proc/sys/kernel/pty/max" as well.

The latest OS2008 bumps it to 16.

jibanes
01-05-2008, 11:52 PM
Yes, that's right RX-44_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin sets it by default to 16, which is probably enough for a low-end workstation/pda. I'm glad I have screen on this thing working, that's for sure.

Also, glad to see that the latest rev is on 2.6.21.


Jerome

www.rzr.online.fr
09-15-2009, 03:16 PM
is screen packaged so far ?
http://talk.maemo.org/showthread.php?t=4768

regards
--
http://rzr.online.fr/q/maemo