Screensaver timeout

Hi.
Im new here and was researching topics about screensaver timeout on Volumio.
I have a Waveshare 7.9 inch touchscreen connected to my Raspberry Pi 4. Volumio Version is 3.785. I have Peppy-meter-Basic plugin installed.
When I go to Touchscreen plugin settings, and set Screensaver Timeout to 120 s - it does nothing.
Not sure what should I expect but comparing it to a computer screensaver timeout, I would expect my touch screen to go “off” (black, off, down) but it does nothing. Volumio stays on player screen forever.
Any plugin (peppy) or touchscreen config needs to be tewaked? Any config file needs to be tweaked?

Touchscreen plugin config for screensaver (GUI)

Please let me know.

Is that an HDMI or a DSI display?

The screen should go black with backlight off.

Please connect to Volumio via SSH and post the output of

cat /boot/userconfig.txt

Hi

This is HDMI display (exactly like this one Waveshare 7.9" from Amazon)

Here is my userconfig file

volumio@volumio:~$ sudo cat /boot/userconfig.txt
# Add your custom config.txt options to this file, which will be preserved during updates
hdmi_group=2
hdmi_mode=87
hdmi_timings=400 0 100 10 140 1280 10 20 20 2 0 0 0 60 0 43000000 3
display_rotate=3

Is your display connected via HDMI?

Sorry - just edited my reply - HDMI (here)

Try replacing the current content of “/boot/userconfig.txt” with

dtoverlay=vc4-kms-v3d

That did the trick with screensaver timeout option. However screen is rotated (vertically), touch functionality is rooted the other way (horizontal) and volumio is not filling up the whole display.

Looks like I figured it out. Correct orientation, correct touch screen functionality, screen times out now.

Thanks @gvolt for the command.

Rotation done inside Volumio and Touchscreen config file also tweaked - removed touch rotation from there.

Here is my userconfig file:

# Add your custom config.txt options to this file, which will be preserved during updates
# hdmi_group=2
# hdmi_mode=87
hdmi_timings=400 0 100 10 140 1280 10 20 20 2 0 0 0 60 0 43000000 3
# display_rotate=3

# From Volumio Community
dtoverlay=vc4-kms-v3d

#### Touch Display rotation setting below: do not alter ####
display_lcd_rotate=3
display_hdmi_rotate=3


Touchscreen config file (# commented out the rotation, this was from previous initial setup, from Wiki for this screen):

# Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
#   Identifier "something or other"
#   MatchDriver "libinput"
#
#   MatchIsTouchpad "on"
#   ... other Match directives ...
#   Option "someoption" "value"
# EndSection
#
# This applies the option any libinput device also matched by the other
# directives. See the xorg.conf(5) man page for more info on
# matching devices.

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
#       Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Thanks

I would not recommend editing the file “95-touch_display-plugin.conf” as it should be controlled (exclusively) by the Touch Display Plugin.

Edit: The above is correct but irrelevant for @The_eM_eF since only “/etc/X11/xorg.conf.d/40-libinput.conf” was modified.

@gvolt it was 40-libinput.conf file - also Waveshare suggested modifying this file on their Wiki if touch functions don’t align with the screen content (7.9 HDMI Wiki) - look for Touch orientation section.

/etc/X11/xorg.conf.d/40-libinput.conf 

I feel all issues has been resolved with your command and my modifications done through userconfig.txt file

Yes, my bad :wink: I edited my previous post accordingly.

Then you certainly saw the option to “Rotate by button”, too.

Yes I did see that option :slight_smile:
My point is I reverted all the changes in 40-lib file by #-out the line I added during the initial configuration. Basically this file can stay unmodified.
I applied your suggestion plus hdmi_timings from Waveshare Wiki.

Then I rotated the screen inside Volumio and voila - all works as it should.
Screen times out after whatever time I set in Volumio, touch functions work perfectly, screen is in correct orientation.

Love the Community help!

Thanks again @gvolt for your help.

1 Like