Page 12 of 26
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 5:56 pm
by Jerry3904
About the flickering cursor: looking around the web, there are some suggestions that it is associated with the compositor. I don't know that area at all well, but will try to pursue it tomorrow.
EDIT: before a movie, I switched to compton and there is no flickering...but I still know nada about all this.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 7:06 pm
by Melber
Jerry3904 wrote: Sat Dec 16, 2023 4:29 pm
Might be something that @Melber could do a yad with.
Something like this?
Code: Select all
#!/bin/bash
# Simple Yad Frontend to set screen timeout
# This app was developed by MX Devs 2023 and released under GPLv3
# this script sets screen timeout value in seconds using xset for a given session.
# the parameter TIMEOUT is set in $(HOME)/.config/screen-timeout.conf
# version 231201
# yad settings
TITLE="Timeout Settings"
CLASS="mxpi-to"
ICONPATH="appointment-soon-symbolic"
# yad buttons
export BTN_CLOSE=$(gettext "Close") ; BTN_CLOSE+='!window-close'
export BTN_APPLY=$(gettext "Apply") ; BTN_APPLY+='!object-select'
# yad strings
TIMEOUT_TEXT1="Current timeout:"
TIMEOUT_TEXT2="minutes"
TIMEOUT_TEXT3="Select new timeout: "
TIMEOUT_VALUES="1!5!10!15!30!60!120"
DIALOG_TEXT="Modify screen timeout setting"
# check if conf file exists
if [ ! -f $HOME/.config/screen-timeout.conf ]; then
echo 'TIMEOUT=600' > $HOME/.config/screen-timeout.conf
fi
# function
set_timeout () {
source $HOME/.config/screen-timeout.conf
TIMEOUT_OLD=$(( $TIMEOUT / 60))
MAIN_YAD=$(yad \
--title="$TITLE" --class="$CLASS" --window-icon="$ICONPATH" \
--center --width=250 --height=250 --borders=10 \
--buttons-layout=spread --button="${BTN_CLOSE}":7 --button="${BTN_APPLY}":6 \
--form --separator='' --align=center \
--text-align=center --text="<b>$DIALOG_TEXT</b>\n" \
--field="$TIMEOUT_TEXT1 <b>$TIMEOUT_OLD</b> $TIMEOUT_TEXT2":LBL "" \
--field=" ":LBL "" \
--field="$TIMEOUT_TEXT3":CB "$TIMEOUT_OLD!$TIMEOUT_VALUES" \
)
ret=$?
case $ret in
7 | 252 )
ENDLOOP=getouttahere
;;
6 )
TIMEOUT_NEW=$(( $MAIN_YAD * 60 ))
if [ "$TIMEOUT_NEW" != "$TIMEOUT_OLD" ]; then
sed -i "s/$TIMEOUT/$TIMEOUT_NEW/" $HOME/.config/screen-timeout.conf
xset -dpms && xset s $TIMEOUT_NEW
fi
;;
esac
}
export -f set_timeout
# loop
until [ "$ENDLOOP" = "getouttahere" ]; do
set_timeout
done
exit
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 7:06 pm
by dolphin_oracle
Does not the power manager settings app work? To control screen blanking I mean.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 8:05 pm
by Jerry3904
Haven't had much luck there but will check again in the morning
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 8:48 pm
by dolphin_oracle
might need to turn OFF the display blanking in raspi-config. experimenting now.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 9:13 pm
by dolphin_oracle
yep, turning off the display blanking in raspi-config changes the /etc/X11/xorg.conf.d/10-screen-blanking file to set DPMS disabled to be reused at next login.
but that just allows the xfce power manager daemon to control the screen blanking per the Xfce gui settings. successfully set the screen blanking to 10 minutes (default), 3 minutes, and 30 minutes without issue.
right now I have the next image built with the X screen blanking set to disabled and the usual MXLiveLogo plymouth theme enabled.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sat Dec 16, 2023 9:36 pm
by Jerry3904
Cool.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sun Dec 17, 2023 6:32 am
by Jerry3904
Melber wrote: Sat Dec 16, 2023 7:06 pm
Jerry3904 wrote: Sat Dec 16, 2023 4:29 pm
Might be something that @Melber could do a yad with.
Something like this?
<snip>
Thanks! Works on the Pi 5 no matter what the raspi-config setting is. But it looks like a log out/in resets xset to 600. Maybe a little session starup script that ran "xset s X" where X was the value your script had stored?
I personally find the Xfce4 Power dialog box unappealing for this simple task, so will be interested in testing it more carefully today.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sun Dec 17, 2023 8:31 am
by dolphin_oracle
Further testing reveals that all the radio-config switch does is turn off or reset X defaults.
And doesn’t seem to matter if on or off screen blanking times set by xfce are honored.
Re: MX-23 Rpi Respin -- Beta testing
Posted: Sun Dec 17, 2023 8:59 am
by Jerry3904
Yeah, it also persists across log out/in apparently b/c they are killing the dpms as well.
Is this the directions we want:
Click Menu > Power Manager, "DIsplay" tab. Confirm that "Display Power Manager" is set to on, then slide bottom 2 sliders to zero before adjusting top slider "Blank after" to number of minutes desired