(已解決)同一台螢幕有二種不同結果 [論壇 - Ubuntu基本設定]


正在瀏覽:   2 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 (2)


回覆: 同一台螢幕有二種不同結果

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 70795
EXP: 24
離線
你先試試 #9
sudo dpkg-reconfigure console-setup
修改後 重開機 如果效果 滿意
sudo cat /etc/default/console-setup
看看跟你原來的修改 一樣不一樣

不滿意 我們再來修改 buffer-frame 與 grub

2012/6/23 7:05
應用擴展 工具箱
回覆: 同一台螢幕有二種不同結果
會員五級
註冊日期:
2008/11/21 9:18
所屬群組:
已註冊使用者
等級: 23
HP : 0 / 571
MP : 229 / 24779
EXP: 86
離線
感謝 poloshiao
sudo dpkg-reconfigure console-setup
這一招有效,但必需接著下 setupcon 之後,才會生效
但是,重開機之後,又回復原狀,系統似乎「記不住」,
不過,這樣我也很滿意了,
謝謝您!

我又試了公司的電腦,發現問題好像出在獨立顯卡,
有獨立顯卡的,隨便弄都OK
沒獨立顯卡的,解析度很難控管

leo@YcbServer:~$ sudo cat /etc/default/console-setup
[sudo] password for leo:
Sorry, try again.
[sudo] password for leo:
Sorry, try again.
[sudo] password for leo:
# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT="no"

# Setup these consoles. Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"

# Put here your encoding. Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
CHARMAP="UTF-8"

# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese. Read README.fonts for explanation.
CODESET="Lat15"

# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16) and Fixed (sizes 13, 14, 15, 16 and 18). Only when
# CODESET=Ethiopian: Goha (sizes 12, 14 and 16) and
# GohaClassic (sizes 12, 14 and 16).
# Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
# set up the keyboard but to leave the console font unchanged.
FONTFACE="Terminus"
FONTSIZE="32x16"

# You can also directly specify nonstandard font or console map to load.
# Use space as separator if you want to load more than one font.
# You can use FONT_MAP in order to specify the Unicode map of the font
# in case the font doesn't have it embedded.

# FONT='lat9w-08.psf.gz brl-8x8.psf'
# FONT_MAP=/usr/share/consoletrans/lat9u.uni
# CONSOLE_MAP=/usr/local/share/consoletrans/my_special_encoding.acm

# You can also specify a screen size that setupcon will enforce. This can not
# exceed what the current screen resolution can display according to the size of
# the loaded font.
#
# SCREEN_WIDTH=80
# SCREEN_HEIGHT=25

if [ -f /etc/default/keyboard ]; then
. /etc/default/keyboard
fi
leo@YcbServer:~$

2012/6/23 18:48
應用擴展 工具箱
回覆: 同一台螢幕有二種不同結果
會員五級
註冊日期:
2008/11/21 9:18
所屬群組:
已註冊使用者
等級: 23
HP : 0 / 571
MP : 229 / 24779
EXP: 86
離線
感謝oldwu提醒
我真的沒想到「升壞了」的情境耶
既然是伺服器,真的還是少動為妙,穩定第一。

2012/6/23 18:54
應用擴展 工具箱
回覆: 同一台螢幕有二種不同結果

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 70795
EXP: 24
離線
sudo dpkg-reconfigure console-setup
...
這一招有效,但必需接著下 setupcon 之後,才會生效

如果你執行完
sudo dpkg-reconfigure console-setup
就立刻重開機 就不必再執行 setupcon

如果你沒立刻執行重開機
執行 setupcon 只是一次性 效果 重開機 必須重新再執行一次

重開機之後,又回復原狀,系統似乎「記不住」,

這個指令 實際上就是去修改 /etc/default/console-setup
sudo dpkg-reconfigure console-setup
開機程序 會去讀取 /etc/default/console-setup

如果 回復原狀 表示 /etc/default/console-setup 又被恢復成預設值
你可以在不同時間點
sudo cat /etc/default/console-setup
記錄下來
看看有沒有被 恢復成預設值 # 重開機 不要執行 setupcon 看看

以下幾個方法 選一種 試試看 有沒有效果

1. 執行 sudo dpkg-reconfigure console-setup 完畢
sudo chattr +i /etc/default/console-setup # 改爲不可被修改
註 下次你要重新修改這個檔案前 要先
sudo chattr +i /etc/default/console-setup # 改爲可被修改
不過 ubuntu 12.04 好像會出現不支援這個功能的訊息

2. 登出 lightdm
按 alt + ctrl + F1 進入 tty1
登入 帳號/密碼
sudo stop lightdm
sudo dpkg-reconfigure console-setup
sudo chattr +i /etc/default/console-setup
sudo reboot

3. sudo gedit /etc/rc.local
sudo setupcon # 加在最後一行 exit 0 前面
重開機
exit 0

4. sudo gedit ~/.bashrc # 家目錄
加入這一行 在最後面
setupcon
儲存 重開機

2012/6/23 19:04
應用擴展 工具箱
回覆: 同一台螢幕有二種不同結果
會員五級
註冊日期:
2008/11/21 9:18
所屬群組:
已註冊使用者
等級: 23
HP : 0 / 571
MP : 229 / 24779
EXP: 86
離線
poloshiao 寫到:
3. sudo gedit /etc/rc.local
sudo setupcon # 加在最後一行 exit 0 前面
重開機
exit 0


試了一遍之後,這一招有效
十分感謝您不厭其煩地教導,
謝謝!

2012/6/24 6:18
應用擴展 工具箱

« 1 (2)

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.