作者 主題: 請問 linux 解析度問題  (閱讀 5749 次)

0 會員 與 1 訪客 正在閱讀本文。

dark

  • 俺是博士!
  • *****
  • 文章數: 1581
    • 檢視個人資料
請問 linux 解析度問題
« 於: 2017-09-18 18:25 »
小弟環境 centos6.5 gnome
平常不接螢幕

小弟使用 ssh startx
並使用 vino-server_vnc server

從遠端 vnc 進入 , 解析度非常低 (因為沒插螢幕)
且此時不能調整解析度

接上螢幕後就能調整解析度
此時 ssh 或多跳一行
resize called 1280 1024

若不想接螢幕 , 又想控制解析度該怎麼做呢 ?





Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
Re: 請問 linux 解析度問題
« 回覆 #1 於: 2017-09-19 11:02 »
沒有 -geometry 之類的選項嗎?

dark

  • 俺是博士!
  • *****
  • 文章數: 1581
    • 檢視個人資料
Re: 請問 linux 解析度問題
« 回覆 #2 於: 2017-09-19 14:18 »
沒有 -geometry 之類的選項嗎?

這參數該如何使用呢 ?
目前小弟已經調至 1360x768 , 高度略嫌不夠

小弟參考 http://www.equn.com/forum/thread-39749-1-1.html
小弟用 dvi 轉 dsub 接頭 , 可惜仍沒效果 ...

後來看了這篇 https://askubuntu.com/questions/453109/add-fake-display-when-no-monitor-is-plugged-in
找 dummy 字眼安裝了 xorg-x11-drv-dummy
只可惜最大只有 1360x768


Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
Re: 請問 linux 解析度問題
« 回覆 #3 於: 2017-09-19 14:46 »
引用
$ vncserver -h
TightVNC Server version 1.3.10

Usage: vncserver [<OPTIONS>] [:<DISPLAY#>]
       vncserver -kill :<DISPLAY#>

<OPTIONS> are Xtightvnc options, or:

        -name <DESKTOP-NAME>
        -depth <DEPTH>
        -geometry <WIDTH>x<HEIGHT>

        -httpport number
        -basehttpport number
        -alwaysshared
        -nevershared
        -pixelformat rgb<NNN>
        -pixelformat bgr<NNN>

dark

  • 俺是博士!
  • *****
  • 文章數: 1581
    • 檢視個人資料
Re: 請問 linux 解析度問題
« 回覆 #4 於: 2017-09-19 16:48 »
原來如此 ...
小弟是使用 vino 當 vncserver
與 console 端螢幕同步
若網路不通好去接螢幕繼續

Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
Re: 請問 linux 解析度問題
« 回覆 #5 於: 2017-09-19 19:32 »
沒用過 vino

我是在 docker 用
tightvncserver + xvfb 開桌面
桌面大小可以隨意設定  :D

dark

  • 俺是博士!
  • *****
  • 文章數: 1581
    • 檢視個人資料
Re: 請問 linux 解析度問題
« 回覆 #6 於: 2017-09-20 17:53 »
不死心又找了一下
這篇看到關鍵字 https://ubuntuforums.org/showthread.php?t=2246833
VideoRam

代碼: [選擇]
Section "Device"
Identifier  "abcxyz"
Driver      "dummy"
VideoRam 8000
EndSection
給 8 Mb 就夠了 ... 應該是 K 吧
終於能看到所有按鈕 , 不用 tab 猜了