2016-09-25 41 views
0

好日子如何防止X11爲tty7設置opost?

我的Ubuntu 16.04.1機的i915顯卡有TTY2以下設置:

速度38400個波特; line = 0; -brkint -imaxbel iutf8

而對於TTY7(用於X11的終端是)

速度38400波特的設置; line = 0; min = 1;時間= 0; IGNBRK -brkint -icrnl -imaxbel -opost -onlcr將 -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

大概X11/lightdm xinit的/ startx的期間產生用於TTY7那些設置。如何更改由X11/lightdm for tty生成的終端設置?

乾杯,

達尼

回答

0

如果X上運行TTY7,你不會使用它的外殼登錄。但是你可以改變終端屬性(不管它是否有用取決於你對它的用處)。

假設你有權限,例如,運行在

stty opost </dev/tty7 

即,重定向打開終端上的有效的文件描述符。您可能會看到類似這樣的內容:

$ sudo su - 
[sudo] password for whoever: 
# stty -a </dev/tty7 
speed 38400 baud; rows 25; columns 80; line = 0; 
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; 
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; 
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; 
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts 
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff 
-iuclc -ixany -imaxbel -iutf8 
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt 
-echoctl -echoke 
# stty opost </dev/tty7 
# stty -a </dev/tty7 
speed 38400 baud; rows 25; columns 80; line = 0; 
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; 
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; 
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; 
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts 
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff 
-iuclc -ixany -imaxbel -iutf8 
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt 
-echoctl -echoke 
+0

我實際上想阻止X11首先生成tty設置。在X11產生了它的tty設置後,我不會進入「stty -F/dev/tty7 sane」命令。任何建議,我可以在哪裏找到正確的開關? – dzmanto

相關問題