Thank you for your donation!


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


Problem: Raspberry Pi 7" Touchscreen Display -- Standby
#1
First of all kudos for the awesome work done in Moode

I have a couple of issues using the latest build one of them being airplay not working (the DAC is a Chord Mojo, but even if i set the bitrate correctly as recommended in the forums there's no sound coming out)

I can live without airplay after all its limits are about CD quality ... but there's another thing that bothers me in Moode. Currently my setup includes an Official Raspberry Pi 7" Touchscreen Display but the screen never goes to standby no matter how much time i set it to go to sleep.

Was expecting the display to go to sleep after the amount of minutes set in the settings but, that's not the case. It is always on regardless of being playing music or not.


Any place to look at, logs?
Reply
#2
Post the contents of the file below.

Code:
cat /home/pi/.xinitrc

The no audio issue most likely fixed in upcoming 7.3.0 release
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(05-27-2021, 10:09 PM)Tim Curtis Wrote: Post the contents of the file below.

Code:
cat /home/pi/.xinitrc

The no audio issue most likely fixed in upcoming 7.3.0 release

Here it goes:

Code:
#!/bin/bash
#
# moOde audio player (C) 2014 Tim Curtis
# http://moodeaudio.org
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# 2020-04-24 TC moOde 6.5.0
#
#

# Turn off display power management
xset -dpms

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

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

# Launch chromium browser
# --disk-cache-dir=/dev/null
chromium-browser --app=http://localhost/ --window-size=$SCREENSIZE --window-position=0,0 --no-first-run --enable-features=OverlayScrollbar --disable-infobars --disable-session-crashed-bubble
Reply
#4
Looks ok.

Below is the help for the xset command. The command used in moOde "xset s 300" should cause screen blank to occur after 5 minutes. https://shallowsky.com/linux/x-screen-blanking.html

Code:
pi@rp2:~ $ xset
usage:  xset [-display host:dpy] option ...
   To turn bell off:
       -b                b off               b 0
   To set bell volume, pitch and duration:
        b [vol [pitch [dur]]]          b on
   To disable bug compatibility mode:
       -bc
   To enable bug compatibility mode:
       bc
   To turn keyclick off:
       -c                c off               c 0
   To set keyclick volume:
        c [0-100]        c on
   To control Energy Star (DPMS) features:
       -dpms      Energy Star features off
       +dpms      Energy Star features on
        dpms [standby [suspend [off]]]    
             force standby
             force suspend
             force off
             force on
             (also implicitly enables DPMS features)
             a timeout value of zero disables the mode
   To set the font path:
        fp= path[,path...]
   To restore the default font path:
        fp default
   To have the server reread font databases:
        fp rehash
   To remove elements from font path:
       -fp path[,path...]  fp- path[,path...]
   To prepend or append elements to font path:
       +fp path[,path...]  fp+ path[,path...]
   To set LED states off or on:
       -led [1-32]         led off
        led [1-32]         led on
       -led named 'name'   led off
        led named 'name'   led on
   To set mouse acceleration and threshold:
        m [acc_mult[/acc_div] [thr]]    m default
   To set pixel colors:
        p pixel_value color_name
   To turn auto-repeat off or on:
       -r [keycode]        r off
        r [keycode]        r on
        r rate [delay [rate]]
   For screen-saver control:
        s [timeout [cycle]]  s default    s on
        s blank              s noblank    s off
        s expose             s noexpose
        s activate           s reset
   For status information:  q
   To print version: -version
pi@rp2:~ $

It's not obvious to me why it's not working in your case . I have a 7" touch and when I get some spare cycles I'll run a test.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(05-27-2021, 11:49 PM)Tim Curtis Wrote: Looks ok.

Below is the help for the xset command. The command used in moOde "xset s 300" should cause screen blank to occur after 5 minutes. https://shallowsky.com/linux/x-screen-blanking.html

Code:
pi@rp2:~ $ xset
usage:  xset [-display host:dpy] option ...
   To turn bell off:
       -b                b off               b 0
   To set bell volume, pitch and duration:
        b [vol [pitch [dur]]]          b on
   To disable bug compatibility mode:
       -bc
   To enable bug compatibility mode:
       bc
   To turn keyclick off:
       -c                c off               c 0
   To set keyclick volume:
        c [0-100]        c on
   To control Energy Star (DPMS) features:
       -dpms      Energy Star features off
       +dpms      Energy Star features on
        dpms [standby [suspend [off]]]    
             force standby
             force suspend
             force off
             force on
             (also implicitly enables DPMS features)
             a timeout value of zero disables the mode
   To set the font path:
        fp= path[,path...]
   To restore the default font path:
        fp default
   To have the server reread font databases:
        fp rehash
   To remove elements from font path:
       -fp path[,path...]  fp- path[,path...]
   To prepend or append elements to font path:
       +fp path[,path...]  fp+ path[,path...]
   To set LED states off or on:
       -led [1-32]         led off
        led [1-32]         led on
       -led named 'name'   led off
        led named 'name'   led on
   To set mouse acceleration and threshold:
        m [acc_mult[/acc_div] [thr]]    m default
   To set pixel colors:
        p pixel_value color_name
   To turn auto-repeat off or on:
       -r [keycode]        r off
        r [keycode]        r on
        r rate [delay [rate]]
   For screen-saver control:
        s [timeout [cycle]]  s default    s on
        s blank              s noblank    s off
        s expose             s noexpose
        s activate           s reset
   For status information:  q
   To print version: -version
pi@rp2:~ $

It's not obvious to me why it's not working in your case . I have a 7" touch and when I get some spare cycles I'll run a test.

Screen-blanking timeout has worked fine for me with my official RP 7-in Touch Display through multiple releases of moOde including 7.2.1.

I leave most system config settings at their default values. (Note, I've used this display only on RPi3B+ and RPi4B models.) 

Perhaps OP has something running which is keeping the screen active? 

Regards,
Kent
Reply
#6
Using a pi4B btw

Did a couple of testing and had some success by


Code:
export DISPLAY=:0

in ~/.bash_profile


Along with deactivating the feature in Moode configuration to turn-on the display if playing music <---- this was the magic trick although i don't have anything playing at the moment (at least none that i'm aware off  Big Grin)
Reply


Forum Jump: