2016-09-25 1 views
0

Bonjour:Comment empêcher X11 de configurer opost pour tty7?

Ma machine Ubuntu 16.04.1 avec des graphiques i915 a les paramètres suivants pour tty2:

vitesse 38400 bauds; ligne = 0; -brkint -imaxbel iutf8

tandis que les paramètres de tty7 (le terminal pour X11 sont)

38400 vitesse baud; ligne = 0; min = 1; heure = 0; ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

Probablement X11/lightdm produit ces paramètres pour tty7 pendant xinit/startx. Comment puis-je changer les paramètres de terminal produits par X11/lightdm pour tty?

Cheers,

Dani

Répondre

0

Si X est en cours d'exécution sur tty7, vous ne l'utiliser pour une connexion shell. Mais vous pouvez changer les attributs du terminal (que cela soit utile ou non dépend de l'utilisation que vous en faites).

En supposant que vous disposez des autorisations, par exemple, en cours d'exécution comme racine:

stty opost </dev/tty7 

C'est, la redirection ouvre un descripteur de fichier valide sur le terminal. Vous pourriez voir quelque chose comme ceci:

$ 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

En fait, je veux empêcher X11 de produire des paramètres tty en premier lieu. Je ne suis pas dans une commande "stty -F/dev/tty7 saine" après que X11 ait produit ses paramètres tty. Des suggestions quant à l'endroit où je peux trouver le bon interrupteur? – dzmanto