From 37c9fbc8c65009df5be6cc40d2ba64531495e85d Mon Sep 17 00:00:00 2001 From: Daniel Knight Date: Sun, 25 Nov 2018 01:08:46 +0000 Subject: [PATCH 1/4] v6.18 + Chromium optimizations. --- dietpi/dietpi-software | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index f0c25f6810..6916da0d75 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -11200,7 +11200,17 @@ _EOF_ Banner_Configuration #Allow root, start maximized and disable sandbox under root (blank screen without) - local export_options="export CHROMIUM_FLAGS=\"\$CHROMIUM_FLAGS --test-type --no-sandbox --temp-profile --user-data-dir " + local export_options="export CHROMIUM_FLAGS=\"\$CHROMIUM_FLAGS \ +--test-type \ +--no-sandbox \ +--temp-profile \ +--user-data-dir \ +--disable-smooth-scrolling \ +--disable-low-res-tiling \ +--enable-low-end-device-mode \ +--num-raster-threads=$G_HW_CPU_CORES \ +--profiler-timing=0 \ +--disable-composited-antialiasing " #RPi if (( $G_HW_MODEL < 10 )); then From 82b3a31a8b2ba306d605950ae39e15178f54a86d Mon Sep 17 00:00:00 2001 From: Daniel Knight Date: Sun, 25 Nov 2018 01:25:26 +0000 Subject: [PATCH 2/4] v6.18 + Code optimzations + PB Wifi module --- dietpi/dietpi-config | 28 ++++++++++++++-------------- dietpi/func/dietpi-set_hardware | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dietpi/dietpi-config b/dietpi/dietpi-config index 30f041f812..79eb040543 100644 --- a/dietpi/dietpi-config +++ b/dietpi/dietpi-config @@ -725,12 +725,13 @@ elif (( $G_WHIP_RETURNED_VALUE == 16 )); then - # - Known FP's for setting brightness, do NOT re-order indexs + # - Known FP's for setting brightness local afp_current_set_brightness=( - '/sys/class/backlight/intel_backlight/brightness' #0 - '/sys/class/backlight/rpi_backlight/brightness' #1 - '/sys/class/backlight/lcd0/brightness' #2 + '/sys/class/backlight/intel_backlight' + '/sys/class/backlight/rpi_backlight' + '/sys/class/backlight/lcd0' + '/sys/class/backlight/backlight' ) @@ -742,9 +743,15 @@ for ((i=0; i<${#afp_current_set_brightness[@]}; i++)) do - if [[ -f ${afp_current_set_brightness[$i]} ]]; then + if [[ -f ${afp_current_set_brightness[$i]}/brightness ]]; then + + current_brightness=$(<${afp_current_set_brightness[$i]}/brightness) + if [[ -f ${afp_current_set_brightness[$i]}/max_brightness ]]; then + + MAX_VALUE=$(<${afp_current_set_brightness[$i]}/max_brightness) + + fi - current_brightness=$(<${afp_current_set_brightness[$i]}) index_apply=$i break @@ -754,13 +761,6 @@ if disable_error=1 G_CHECK_VALIDINT $current_brightness; then - # - Get max value (intel|0) - if (( $index_apply == 0 )) && [[ -f /sys/class/backlight/intel_backlight/max_brightness ]]; then - - MAX_VALUE=$( ${afp_current_set_brightness[$index_apply]} + echo $G_WHIP_RETURNED_VALUE > ${afp_current_set_brightness[$index_apply]}/brightness fi diff --git a/dietpi/func/dietpi-set_hardware b/dietpi/func/dietpi-set_hardware index df48e8073b..5418e5c1f7 100644 --- a/dietpi/func/dietpi-set_hardware +++ b/dietpi/func/dietpi-set_hardware @@ -1216,8 +1216,8 @@ _EOF_ aWIFI_MODULES+=('8189es') - # + Pine A64 / Asus tinker board (onboard) - elif (( $G_HW_MODEL == 40 || $G_HW_MODEL == 52 )); then + # + Pine A64 / PB / Asus tinker board (onboard) + elif (( $G_HW_MODEL == 40 || $G_HW_MODEL == 44 || $G_HW_MODEL == 52 )); then aWIFI_MODULES+=('8723bs') From 6b5f33dc62726e7258f51b493acade78f2786c2e Mon Sep 17 00:00:00 2001 From: Daniel Knight Date: Sun, 25 Nov 2018 01:42:27 +0000 Subject: [PATCH 3/4] v6.18 - DietPi-Config | Resovled an visual error when selecting network options due to 'G_CHECK_VALIDINT'. --- CHANGELOG.txt | 1 + dietpi/func/dietpi-globals | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d2b13eee2c..0997d637ec 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -26,6 +26,7 @@ Bug Fixes: - General | Resolved an issue, where entering passwords via our internal whiptail password box leads to "invalid match", when special characters are used, forcing a retry: https://github.com/Fourdee/DietPi/issues/2215#issuecomment-437683709 - DietPi-Cleaner | Resolved an issue where test runs on -dev package removal, would remove the packages. - DietPi-Cleaner | Resolved a syntax error with function 'Run_Cleaners', disabling the ability to run cleaners. Many thanks to @optio50 for reporting this issue! https://github.com/Fourdee/DietPi/issues/2241 + - DietPi-Config | Resovled an visual error when selecting network options due to 'G_CHECK_VALIDINT'. - DietPi-Config | Locale: Resolved an issue where DietPi would always display en_GB as the current locale: https://github.com/Fourdee/DietPi/issues/2216#issuecomment-435599419 - DietPi-Config | Resolved an issue where on Odroid C1/2 with current kernel 3.5" LCD shield does not work anymore. Thanks to @Kreeblah for reporting this issue and solution: https://github.com/Fourdee/DietPi/issues/2256 - DietPi-Automation | CONFIG_NTP_MODE is now applied after APT cache, and, initial time sync is updated. Due to packages required for some modes: https://github.com/Fourdee/DietPi/issues/2181#issuecomment-433444882 diff --git a/dietpi/func/dietpi-globals b/dietpi/func/dietpi-globals index 6969b143e4..4b929b8125 100644 --- a/dietpi/func/dietpi-globals +++ b/dietpi/func/dietpi-globals @@ -1992,7 +1992,7 @@ $print_logfile_info # - Native PC + possibily others, due to vast sensors /sys/class/thermal/thermal_zone[0-9], all of which we are unsure is CPU, check for possible invalid entries and set N/A # EG: Z83 = 0, also seen some results as a minus value - if ! G_CHECK_VALIDINT $cpu_temp_current || (( $cpu_temp_current <= 0 )); then + if ! disable_error=1 G_CHECK_VALIDINT $cpu_temp_current || (( $cpu_temp_current <= 0 )); then cpu_temp_current='N/A' @@ -2095,7 +2095,7 @@ $print_logfile_info return_value=0 - else + elif (( ! $disable_error )); then G_WHIP_MSG "Input value \"$input\" is higher than allowed \"$max\". No changes applied." From 8f991474eb95e895e003574ac8a8655b471f9c26 Mon Sep 17 00:00:00 2001 From: Daniel Knight Date: Sun, 25 Nov 2018 04:56:11 +0000 Subject: [PATCH 4/4] v6.18 + - DietPi-Config | Added support for setting Xorg DPI scale. + RC beta up --- CHANGELOG.txt | 1 + dietpi.txt | 4 ++++ dietpi/dietpi-config | 26 ++++++++++++++++++++++++++ dietpi/server_version-6 | 2 +- 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0997d637ec..80eaa0823a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,7 @@ v6.18 Changes / Improvements / Optimisations: - General | Concurrent execution detection: Now has a 5 second buffer to wait for exit (G_INIT_WAIT_CONCURRENT), before failing: https://github.com/Fourdee/DietPi/issues/2159#issuecomment-433619721 - DietPi-Config | Added support for changing the brightness of the RPi touchscreen: https://github.com/Fourdee/DietPi/issues/2169 + - DietPi-Config | Added support for setting Xorg DPI scale. - DietPi-Services | MariaDB: DietPi now uses the pre-installed "mariadb" systemd service instead of obsoleve "mysql" init.d service: https://github.com/Fourdee/DietPi/pull/2196 - DietPi-Software | Nextcloud Talk video calls with configured TURN server is now available for install: https://github.com/Fourdee/DietPi/pull/2197 - DietPi-Software | NAA Daemon: Added installation support for ARMv8 and x86_64. Thanks Jussi! diff --git a/dietpi.txt b/dietpi.txt index 38da2eb6a6..8246bde0c5 100644 --- a/dietpi.txt +++ b/dietpi.txt @@ -231,6 +231,10 @@ SOFTWARE_WIFI_HOTSPOT_SSID=DietPi-HotSpot SOFTWARE_WIFI_HOTSPOT_KEY=dietpihotspot SOFTWARE_WIFI_HOTSPOT_CHANNEL=3 +#Xorg options +# DPI 96(default) 120(+25%) 144(+50%) 168(+75%) 192(+100%) +SOFTWARE_XORG_DPI=96 + #Chromium Options SOFTWARE_CHROMIUM_RES_X=1280 SOFTWARE_CHROMIUM_RES_Y=720 diff --git a/dietpi/dietpi-config b/dietpi/dietpi-config index 79eb040543..49cde4c48e 100644 --- a/dietpi/dietpi-config +++ b/dietpi/dietpi-config @@ -267,6 +267,9 @@ fi + local xorg_dpi_current=$(grep -m1 '^SOFTWARE_XORG_DPI=' /DietPi/dietpi.txt | sed 's/^[^=]*=//') + G_WHIP_MENU_ARRAY+=('17' ": Xorg DPI: [$xorg_dpi_current]") + #Display brightness G_WHIP_MENU_ARRAY+=('16' ': Display Brightness') @@ -782,6 +785,29 @@ unset afp_current_set_brightness + elif (( $G_WHIP_RETURNED_VALUE == 17 )); then + + G_WHIP_MENU_ARRAY=( + + '96' ': Default' + '120' ": +25% larger" + '144' ": +50% larger" + '168' ": +75% larger" + '192' ": +100% larger" + + ) + + G_WHIP_DEFAULT_ITEM=$xorg_dpi_current + G_WHIP_MENU "Please select a DPI value for Xorg:\n - A higher value will make text and windows larger\n - Has no effect on local terminal (eg: no desktop installed)\n\nNB: Setting will only take effect, once system is restarted." + if (( $? == 0 )); then + + G_CONFIG_INJECT 'SOFTWARE_XORG_DPI=' "SOFTWARE_XORG_DPI=$G_WHIP_RETURNED_VALUE" /DietPi/dietpi.txt + mkdir -p /etc/X11/Xsession.d + echo -e "xrandr --dpi $G_WHIP_RETURNED_VALUE" > /etc/X11/Xsession.d/99-dietpi-dpi + REBOOT_REQUIRED=1 + + fi + fi fi diff --git a/dietpi/server_version-6 b/dietpi/server_version-6 index f39271c6c4..b6d379bb27 100644 --- a/dietpi/server_version-6 +++ b/dietpi/server_version-6 @@ -1,3 +1,3 @@ 6 18 -10 +11