Skip to content

Commit

Permalink
Pass --direct-scale and --log-level to sommelier
Browse files Browse the repository at this point in the history
With HiDPI screens, some games running in sommelier may scale way beyond
the actual screen size. Passing --direct-scale to sommelier fixes this.

While there, also pass --log-level=3 to reduce sommelier's verbosity
which was increased in the latest versions.

Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp authored and alyssarosenzweig committed Sep 27, 2024
1 parent fb6ef35 commit 7e57408
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/krun/src/guest/sommelier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ where
let gl_env = env::var("LIBGL_DRIVERS_PATH").ok();

let mut cmd = Command::new(sommelier_path);
cmd.args(["--virtgpu-channel", "-X", "--glamor"]);
cmd.args([
"--virtgpu-channel",
"-X",
"--direct-scale",
"--log-level=3",
"--glamor",
]);

if let Some(gl_env) = gl_env {
cmd.arg(format!("--xwayland-gl-driver-path={gl_env}"));
Expand Down

0 comments on commit 7e57408

Please sign in to comment.