Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Local GUI on 4K screens
#2
Try adding the bolded line below to the file /home/pi/.xinitrc
- Replace 0.80 with the percent zoom you are using
- You may have to put quotes around the value "0.80"

#!/bin/bash
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2014 The moOde audio player project / Tim Curtis
#

# Turn off display power management
xset -dpms

# Screensaver timeout in secs or 'off' for no timeout
xset s 600

# Capture screen size
SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"

# Clear browser cache
$(/var/www/util/sysutil.sh clearbrcache)

# Launch chromium browser
chromium-browser --app="http://localhost/" \
--window-size="$SCREENSIZE" \
--window-position="0,0" \
--enable-features="OverlayScrollbar" \
--no-first-run \
--disable-infobars \
--disable-session-crashed-bubble \
--force-device-scale-factor=0.80 \
--kiosk
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Local GUI on 4K screens - by STUDI - 06-05-2024, 06:55 AM
RE: Local GUI on 4K screens - by Tim Curtis - 06-05-2024, 12:06 PM
RE: Local GUI on 4K screens - by STUDI - 06-06-2024, 06:52 AM
RE: Local GUI on 4K screens - by Tim Curtis - 06-06-2024, 10:02 AM
RE: Local GUI on 4K screens - by Venerdi - 06-06-2024, 11:36 AM
RE: Local GUI on 4K screens - by STUDI - 06-06-2024, 12:00 PM

Forum Jump: