WayVNC Ghost Monitor for Hyprland2025年11月01日 12:21

Proxmox上のVMに、GPUをPassThroughして、 リモートからゲームをしたい。

  • やりたい事
    • デスクトップ画面も、リモート操作したい
    • Steam の画面をリモート操作したい
    • ゲームコントローラを使用したい
    • 画面表示は、できるだけ滑らかに

Alpine Linux + Hyprland 環境ゆえか、あまり期待した形になっていません。

WayVNC Ghost Monitor for Hyprland

WayVNC Ghost Monitorに出会い、wayvncの max-fps と、gpuオプションを使用する事で、それなりに希望に沿ったものが出来つつあります。

Remmina 経由で、デスクトップ表示も、Steamの起動も、ゲームコントローラでの操作も出来ました。

結局

ある程度は滑らかなのですが、ゲームとして遊ぶには、GPUに接続している物理モニタにウィンドウを移動させています。今は、ゲーム:物理モニタ、デスクトップ:VNC経由と、分業制にしています。

補足

Steamのストリートファイター6 にて、ゲームコントローラを使用しようとして、動かない場合は、「Steam入力を有効にする」を無効にする(有効にしない)事で、動くようになるかもしれません。

Sunshine (flatpak) on Hyprland on AlpineLinux2025年10月19日 16:56

課題

Sunshineを使って、Hyprlandをリモートから操作する事を試しています。Moonlightから、Sunshineに出来ているけど、マウスも、キーボードも効かない状況が発生していました。

Sunshine のログ

 Warning: Unable to create virtual mouse: Permission denied
 Warning: Unable to create virtual keyboard: Permission denied
 Warning: Gamepad xone is disabled due to Permission denied
 Warning: Gamepad ds5 is disabled due to Permission denied
 Warning: Gamepad switch is disabled due to Permission denied
 Warning: No gamepad input is available 

一時解決

  1. spice-vdagentd パッケージのインストール(uinputモジュールの登録)
  2. steam-devices パッケージのインストール
  3. /dev/uinput のパーミッション変更
 $ ls -ltra /dev/uinput
 crw-------    1 root     root       10, 223 Oct 19 16:51 /dev/uinput
 $ sudo chmod 660 /dev/uinput
 $ ls -ltra /dev/uinput
 crw-rw----    1 root     root       10, 223 Oct 19 16:51 /dev/uinput

steam-devices が必須かは、未整理。 パーミッション変更が妥当かも…。

未解決

Windows キーが、Moonlight 側に受け取られ、 Sunshine に送信できてない。

amdgpu_top2025年09月25日 11:58

amdgpu_top

頭出し

GPU の認識状況や、使用状況を、SSH経由で確認できるので、 amdgpu_top を、よく使います。

使い方

現在、alpine linux では、edge:testing にて管理されています。 edge:testing を気軽に使うのは、気が引けたので、 ビルドすることにしました。

事前準備

最低限、以下のパッケージは、必要だと思います。

  • binutils
  • cargo
  • libdrm-dev
  • rust

使うためには、以下も必要かもしれません。

  • libdrm
  • linux-firmware-amdgpu
  • xf86-video-amdgpu

ビルドと実行

0.11.0 が最新ですが、エラーが出たので、 0.10.5 を使用しています。

 git clone https://github.com/Umio-Yasuno/amdgpu_top.git -b v0.10.5
 cd amdgpu_top/
 cargo install --locked --path .
 ./target/release/amdgpu_top

エラーについて

0.11.0 でのエラーは、rust 1.87 ゆえかもしれません。 if let に関連するのかなぁ。

 error[E0658]: `let` expressions in this position are unstable
    --> crates/libamdgpu_top/src/ppfeaturemask.rs:112:34
     |
 112 |             if (n & 0b1) == 1 && let Ok(ftr) = PpFeatureMask::try_from(1 << i) {
     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information