前提・実現したいこと
raspberrypiをVNC Viewerでwindowsから操作するときの画面のサイズを正常にしたい
発生している問題・エラーメッセージ
試したこと
raspberrypiの画面比率の設定(黒の部分は減るがアイコンが大きいまま)
HDMIの出力モードの変更
補足情報
Viewer 側ウィンドウの大きさを変更しても追従しない(サイズ固定)ということであれば、xrandr で調整できるかもしれません。
そうではなく、文字通りサイズが「小さくなる」のですか?
> raspberrypiからVNC Viewerで操作する
が、他のパソコンからVNC経由でラズパイを使う、という意味なら、下記を見てください
https://www.mechatronahibi.com/raspi-disp-resolution-config/
TaichiYanagiya様 コメントありがとうございます。
先ほど試してきたところ、raspberry側の画面は追従してきました。
jbpb0様 コメントありがとうございます。
載せていただいたサイトは質問の前にすべて試しましたがうまくいきませんでした。
> raspberrypiからVNC Viewerで操作する
は、他のパソコンからVNC経由でラズパイを使う、という意味で合ってるのでしょうか?
合ってる場合ですが、下記を見るとアスペクト比が4:3じゃないと設定しても有効にならないようですが、それは大丈夫でしょうか?
https://55life555.blog.fc2.com/blog-entry-3219.html
https://55life555.blog.fc2.com/blog-entry-3221.html
すいません。raspberrypiから ではなくwindowsからでした。
あと、OSを再インストールした直後1回だけは正常になります。
> OSを再インストールした直後1回だけは正常になります。
1回だけって、バグかも
それか、1回目起動した後に、何かが働いて設定を(勝手に)上書きしてしまう、とか
headless resolution
https://forums.raspberrypi.com/download/file.php?id=50695&sid=131b2c58861911fa8c26e67d7e6d150f
を設定してるのでしょうか?
【追記】
https://forums.raspberrypi.com/viewtopic.php?t=323294&start=25#p1936355
に、
「The headless resolution works on Pi4.
Maybe on pi0-3 the composite resolution is overriding it.」
と書かれてました
【追記2】
https://forums.raspberrypi.com/viewtopic.php?t=323294#p1936176
に、
「If no monitor is connected, then the new Headless Resolution combo box on the Display tab of Raspberry Pi Configuration and the corresponding VNC Resolution item in the Display menu of raspi-config can be used to set the size of the virtual desktop.
If a monitor is connected, the virtual desktop will be the same size as the connected monitor; this overrides any setting made above.」
と書かれてました
【追記3】
https://forums.raspberrypi.com/viewtopic.php?t=324185
https://forums.raspberrypi.com/viewtopic.php?t=323294
に、他にもいろいろ書かれてるので、何かヒントが有るかも(無いかも)
「If no monitor is connected, then the new Headless Resolution combo box on the Display tab of Raspberry Pi Configuration and the corresponding VNC Resolution item in the Display menu of raspi-config can be used to set the size of the virtual desktop.
If a monitor is connected, the virtual desktop will be the same size as the connected monitor; this overrides any setting made above.」
これを参考にして解決できました!本当にありがとうございます!
ベストアンサーにしたいので回答お願いします。
ラズパイに物理モニターが接続されてたので、それの解像度(画素数)に合ってしまって、設定変えられなかった、ということでしょうか?
はい。物理モニターとVNC Viewerを併用していましたが、物理モニターを外したらうまくできました。
回答1件
あなたの回答
tips
プレビュー

