(已解決)同一台螢幕有二種不同結果 [論壇 - Ubuntu基本設定]
正在瀏覽:
1 名遊客
(已解決)同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2008/11/21 9:18 所屬群組:
已註冊使用者 等級: 23
HP : 0 / 571
![]() |
客戶送來一台全新的電腦,請我幫他安裝ubuntu 12.04
發生的問題是: 1.我自己用的電腦也是ubuntu 12.04,螢幕解析度可以設成 1680x1050,但同樣這一台螢幕,接到新電腦上時,卻只能設成 1600x1200,這是什麼原因呢? 2.按Ctrl+Alt+F1進入tty1時,我的字體是很大字,但新電腦卻小得像螞蟻一樣,我有試著把 /etc/default/grup 及 /etc/default/console-setup設成和我舊電腦一樣了,但仍然無法改變字體大小,這有解嗎? 3.客戶的電腦是拿來當伺服器用,也不打算接螢幕了,對於更新的問題,不知各位先進有何建議?是都不要去做更新動作?對於這類「擺著就不動」的伺服器,更新策略為何?
2012/6/21 10:44
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
1.我自己用的電腦也是ubuntu 12.04,螢幕解析度可以設成 1680x1050,但同樣這一台螢幕,接到新電腦上時,卻只能設成 1600x1200,這是什麼原因呢? 顯示介面驅動,看kernel看廠商封閉原始碼驅動<del>看人品</del> 「尤其是在Linux底下」理論上<del>運氣好的話</del>有正確驅動的話應該可以調整成最佳螢幕解析度的 *更新*顯示介面不一樣的話就不一定了,可能硬體上就不支援也說不定 2.按Ctrl+Alt+F1進入tty1時,我的字體是很大字,但新電腦卻小得像螞蟻一樣,我有試著把 /etc/default/grup 及 /etc/default/console-setup設成和我舊電腦一樣了,但仍然無法改變字體大小,這有解嗎? 感覺是有裝NVidia顯示驅動跟沒裝的區別耶 至少我的NVidia顯卡用閉源或開源大小會有差<del>NVidia的好大好醜</del> 3.客戶的電腦是拿來當伺服器用,也不打算接螢幕了,對於更新的問題,不知各位先進有何建議?是都不要去做更新動作?對於這類「擺著就不動」的伺服器,更新策略為何? 其他的就算了,最少要讓他自動更新「資訊安全性更新」,除非您的伺服器不接網路XD
2012/6/21 10:51
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
同樣這一台螢幕,接到新電腦上時,卻只能設成 1600x1200 螢幕 同一個品牌 同一個型號 ? 解析度 顯卡要支援 螢幕要支援 Xorg.conf或其他程式設定要支援 再加上你的選擇 如果 你希望的解析度 沒出現 可以試試 產生你希望的解析度 但一定要 其它條件都支援 才會成功 Adding undetected resolutions 2.按Ctrl+Alt+F1進入tty1時,我的字體是很大字,但新電腦卻小得像螞蟻一樣,我有試著把 /etc/default/grup 及 /etc/default/console-setup設成和我舊電腦一樣了,但仍然無法改變字體大小, 1. sudo gedit /boot/grub/grub.cfg # 這個是開機選單 要在這裏設定 然後 重開機 才有效 參考 GNU GRUB Manual 1.99 用關鍵字 gfxmode resolution 去搜尋 2. sudo gedit /etc/default/grub 這個檔案是預設值 開機不會來讀取這個檔案 你修改這個檔案後 必須執行 sudo update-grub sudo update-initramfs -u -k all 把你的改變 散播到 /boot/grub/grub.cfg 及其它與開機有關的檔案 好處 以後你更新 linux-kernel 就自動從這個檔案預設值去更新所有與開機有關的檔案 包含 /boot/grub/grub.cfg 不必再手動更改 3. /etc/default/console-setup 這個檔案 在開機初期程序 / 出現 開機選單 / 選了開機選單 有影響 但是 開機進程 進行到 載入 gfxmode 後 (出現 splash 畫面以後) 畫面的解析度等等 就受到 gfxmode 的解析度等等畫面設定 影響 tty 的解析度 也會收到 gfxmode 影響
2012/6/21 12:41
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2008/11/21 9:18 所屬群組:
已註冊使用者 等級: 23
HP : 0 / 571
![]() |
感謝二位的指教
仔細查了一下, 舊電腦有獨立顯示卡,新電腦沒有, 我想,可能是顯示卡的關係,造成解析度不同 另,poloshiao所提
好像無效耶。
2012/6/22 11:13
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
好像無效耶。 無效是說 你所期望的改變沒發生 1. 你要說明你的期望是什麼 2. 你要將 sudo cat /etc/default/grub sudo update-grub sudo update-initramfs -u -k all sudo cat /boot/grub/grub.cfg 3. 它的結果是什麼 全部內容 貼上來 才能幫你 研判
2012/6/22 11:31
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2008/11/21 9:18 所屬群組:
已註冊使用者 等級: 23
HP : 0 / 571
![]() |
抱歉,沒有說清楚,
我期望的是,按Ctrl+Alt+F1進入tty1時的字型,能變大一些。 sudo cat /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" #GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' GRUB_GFXMODE=1024x768 GRUB_GFXPAYLOAD_LINUX=1024x768 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-26-generic Found initrd image: /boot/initrd.img-3.2.0-26-generic Found linux image: /boot/vmlinuz-3.2.0-25-generic Found initrd image: /boot/initrd.img-3.2.0-25-generic Found linux image: /boot/vmlinuz-3.2.0-23-generic Found initrd image: /boot/initrd.img-3.2.0-23-generic Found memtest86+ image: /boot/memtest86+.bin Found FreeDOS on /dev/sda1 sudo update-initramfs -u -k all update-initramfs: Generating /boot/initrd.img-3.2.0-26-generic update-initramfs: Generating /boot/initrd.img-3.2.0-25-generic update-initramfs: Generating /boot/initrd.img-3.2.0-23-generic sudo cat /boot/grub/grub.vfg cat: /boot/grub/grub.vfg: 沒有此一檔案或目錄
2012/6/22 21:37
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員二級
![]() ![]() 註冊日期:
2011/3/18 0:19 所屬群組:
已註冊使用者 等級: 7
HP : 0 / 163
![]() |
Marco 寫到: 不建議自動更新。自己手動更新。 更新前做備份。 看你的case是客戶拿電腦做伺服器,所以應該不重要。 如果真的很重要,又有2台以上,先升一台,沒問題再升另一台。 好處是除了安全,你要做升級時,和他正式通知,再簽維護單, 如果自動檢查升級,你一定沒辦法每次到,客戶升壞了,那就頭大了。 升級會升壞嗎?很少,比較常見的是config檔前後不相容,再來是, 升級後,關不了機,硬關,關出問題來! ============ 2012/6/22 23:30 改一好了,幾乎不會升壞,可是一年只要有一次升壞,就等著挫賽! 因為別台也會升壞,所以才會由不重要的開始升,或有多台先升一台。
2012/6/22 22:05
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
sudo cat /boot/grub/grub.vfg 抱歉 打錯字 sudo cat /boot/grub/grub.cfg
2012/6/22 22:37
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
先試試這個方法
從終端機 sudo dpkg-reconfigure console-setup 選擇 在主控台所要使用的編碼: UTF-8 要支援的字元集: Latin1 及 Latin5 - 西歐及突厥語 Console 的字型: 選擇 Terminus (大小有 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16) 或 TerminusBold (大小有 # 14, 16, 20x10, 24x12, 28x14 and 32x16) 依你的期望 選 32x16 看看 重新開機
2012/6/22 23:59
|
||||||||||
![]() |
回覆: 同一台螢幕有二種不同結果 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2008/11/21 9:18 所屬群組:
已註冊使用者 等級: 23
HP : 0 / 571
![]() |
感謝 poloshiao
sudo cat /boot/grub/grub.cfg leo@YcbServer:~$ sudo cat /boot/grub/grub.cfg [sudo] password for leo: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi set default="0" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=1024x768 load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 set locale_dir=($root)/boot/grub/locale set lang=zh_TW insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray if background_color 44,0,30; then clear fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" if [ "${1}" = "keep" ]; then set vt_handoff=vt.handoff=7 else set vt_handoff= fi } set linux_gfx_mode=1024x768 export linux_gfx_mode if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi menuentry 'Ubuntu,Linux 3.2.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 linux /boot/vmlinuz-3.2.0-26-generic root=UUID=e7d280c2-ba63-4ef6-8e93-66142627a524 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-26-generic } menuentry 'Ubuntu,Linux 3.2.0-26-generic (修復模式)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 echo '載入 Linux 3.2.0-26-generic ...' linux /boot/vmlinuz-3.2.0-26-generic root=UUID=e7d280c2-ba63-4ef6-8e93-66142627a524 ro recovery nomodeset echo '載入初始化記憶體虛擬磁碟 (initial ramdisk) ...' initrd /boot/initrd.img-3.2.0-26-generic } submenu "Previous Linux versions" { menuentry 'Ubuntu,Linux 3.2.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 linux /boot/vmlinuz-3.2.0-25-generic root=UUID=e7d280c2-ba63-4ef6-8e93-66142627a524 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-25-generic } menuentry 'Ubuntu,Linux 3.2.0-25-generic (修復模式)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 echo '載入 Linux 3.2.0-25-generic ...' linux /boot/vmlinuz-3.2.0-25-generic root=UUID=e7d280c2-ba63-4ef6-8e93-66142627a524 ro recovery nomodeset echo '載入初始化記憶體虛擬磁碟 (initial ramdisk) ...' initrd /boot/initrd.img-3.2.0-25-generic } menuentry 'Ubuntu,Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 linux /boot/vmlinuz-3.2.0-23-generic root=UUID=e7d280c2-ba63-4ef6-8e93-66142627a524 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-23-generic } menuentry 'Ubuntu,Linux 3.2.0-23-generic (修復模式)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 echo '載入 Linux 3.2.0-23-generic ...' linux /boot/vmlinuz-3.2.0-23-generic root=UUID=e7d280c2-ba63-4ef6-8e93-66142627a524 ro recovery nomodeset echo '載入初始化記憶體虛擬磁碟 (initial ramdisk) ...' initrd /boot/initrd.img-3.2.0-23-generic } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root e7d280c2-ba63-4ef6-8e93-66142627a524 linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "FreeDOS (on /dev/sda1)" --class windows --class os { insmod part_msdos insmod fat set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 3265-07F0 drivemap -s (hd0) ${root} chainloader +1 } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### leo@YcbServer:~$
2012/6/23 6:36
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.