Skip to content

Commit 7e57408

Browse files
slpalyssarosenzweig
authored andcommitted
Pass --direct-scale and --log-level to sommelier
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]>
1 parent fb6ef35 commit 7e57408

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

crates/krun/src/guest/sommelier.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ where
2121
let gl_env = env::var("LIBGL_DRIVERS_PATH").ok();
2222

2323
let mut cmd = Command::new(sommelier_path);
24-
cmd.args(["--virtgpu-channel", "-X", "--glamor"]);
24+
cmd.args([
25+
"--virtgpu-channel",
26+
"-X",
27+
"--direct-scale",
28+
"--log-level=3",
29+
"--glamor",
30+
]);
2531

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

0 commit comments

Comments
 (0)