[GUIDE] Guide for setting up touchscreen + backlight control

Hi,
I just started with the offical RasPi screen.
I started with the easy way. Just install the plugin an see how it is.
It was quite nice.
Now I did some things from this thread - many thanks for this.

As you say the screen now does not turn of while playback - I do not like this. Before the fiddling around (only the touch plugin installed) it was turning off during playback as well. I liked this. How do I get this back?

Thanks.

I do not know if it works in this post (due to adaptation screen software) screen blank on off and timeout.

Just edit with following commands on the commandline

cd…
cd…
cd opt
sudo nano volumiokiosk.sh

Originaly it looks like this:

#!/bin/bash
xset -dpms
xset s off
openbox-session &
while true; do
/usr/bin/chromium-browser --disable-session-crashed-bubble --disable-infobars --kiosk --no-first-run ā€˜http://localhost:3000’
done


edit the lines:

ā€œxset -dpmsā€ to ā€œxset +dmpsā€
and
ā€œxset s offā€ to ā€œxset s blankā€
and add the line
ā€œxset dpms 0 0 120ā€

it should look like this:

#!/bin/bash
xset +dpms
xset s blank
xset dpms 0 0 120
openbox-session &
while true; do
/usr/bin/chromium-browser --disable-session-crashed-bubble --disable-infobars --kiosk --no-first-run ā€˜http://localhost:3000’
done

link to change tutorial screen timeout:

screentimeout-rpi-touchscreen-t5059.html

Hi guys, I’m the new one in raspberry pi community and volumio :slight_smile: I absolutely love volumio, for beautiful interface and easy configuration. I have raspberry with original 7’’ touchscreen and latest version of volumio, I’ve done this tutorial step by step, everything seems to work except screen backlight timeout, no matter what time (minutes) I set, screen turning off after few minutes, I want to keep my display on when I’m using volumio. Can you please help me?

As michel8166 says, just don’t do (or undo if you have done it) the section ā€œStop screen blanking and crashed messageā€ That will enable the systems screen blanking.

I am away on work at the moment but looking at the script the line:

if (time.time() - pausedTime > screenDelay and status["status"] <> "play" and blState <> 0): # check if paused for longer than "screenDelay" seconds, volumio is not playing and backlight is on stateChange = "blOff" # turn off backlight
you can remove the ā€œand status[ā€œstatusā€] <> 0ā€ and that will let it turn the screen off even when playing. That said more of the script would need altering in order to update the ā€œpauseTimeā€ variable to let that work, probably needs updating when play is pressed as well as when pause happens.

I would say is the system blanking is still working. First I would say check the section ā€œStop screen blanking and crashed messageā€ which turns that off. Make sure there are no typo’s etc :slight_smile:

Thank you guys for your replies and tips, I’ve checked once again everything in section ā€œStop screen blanking and crashed messageā€, and yeah it was my mistake, I didn’t change one line from xset s blank to xset s off, now everything is working like a charm :slight_smile: BTW, very good tutorial

Fun thing with coding, when your sure everything is right but it doesn’t work. Then you spend HOURS tracing it down only to find out in some iff statement you used a < instead of a > LOL

Glad you have it working now :smiley:

Great tutorial, all (almost) worked for me as well.
Can you advise how you manage to get rid of scroll bar on main Volumio screen? I’m using official Raspberry Pi 7" touch screen and there’s no additional content on the main screen so the scroll bar isn’t needed.

Glad it worked out okay :slight_smile: Regarding the scroll bar the only way I know is to edit the Volumio config files, and that screws up automagic updating. However in the guide there is this part ā€œMove track and volume controls up (stops them clipping on the bottom of the screen)ā€ and at the end of that section it shows how to enlarge the touch bar. You should be able to remove it by making it super small.

Hello, it’s me again :slight_smile:
I have one problem with tutorial.
I’m using volumio since version 2.555, now I have latest 2.572, and since 2.555 I have a problem with section Move track and volume controls up (stops them clipping on the bottom of the screen). I’m opening file app-013f2d5c5e.css but it’s empty, I’m trying to search for volumeManager{margin-top, but no result. Can you help me? I cannot move controls and I cannot change scrollbar width. Everything else from tutorial working well

Hi,

Just updated to 2.572 and checked, it is still in my CSS file :question: Try searching for just ā€œvolumeManagerā€. There are 7 matches in my CSS file which should give you an idea of what is going on :slight_smile:

Hello

Is it possible to rewrite the script so that you can dim or lighten the LCD screen from the remote control?

Excellent…thank you very much for this guide!

Since I’ve upgraded to the latest Volumio version unfortunately matchbox-keyboard is no longer starting. Even if i start it from command line it is terminating without any error message or log entries. Any idea?

Thanks, Martin

matchbox-keyboard 0.1

root@pi:~# matchbox-keyboard
root@pi:~# ps ax|grep matchbox
 1185 ?        S      0:00 matchbox-window-manager -use_titlebar no
 9853 pts/0    S+     0:00 grep matchbox
root@pi:~# matchbox-keyboard -d
root@pi:~# ps ax|grep matchbox
 1185 ?        S      0:00 matchbox-window-manager -use_titlebar no
 9905 pts/0    S+     0:00 grep matchbox


root@pi:~# ldd /usr/bin/matchbox-keyboard
	linux-vdso.so.1 (0x7efb8000)
	libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x76e85000)
	libfakekey.so.0 => /usr/lib/arm-linux-gnueabihf/libfakekey.so.0 (0x76fd8000)
	libXft.so.2 => /usr/lib/arm-linux-gnueabihf/libXft.so.2 (0x76e6c000)
	libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x76e3a000)
	libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x76e0a000)
	libXrender.so.1 => /usr/lib/arm-linux-gnueabihf/libXrender.so.1 (0x76df9000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76cb8000)
	/lib/ld-linux-armhf.so.3 (0x76fb6000)
	libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x76c99000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76c86000)
	libXtst.so.6 => /usr/lib/arm-linux-gnueabihf/libXtst.so.6 (0x76c71000)
	libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0x76c2f000)
	libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x76b97000)
	libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76b6a000)
	libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76b43000)
	libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76ac8000)
	libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x76abd000)
	libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x76ab0000)
	libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0x76a91000)
	libXi.so.6 => /usr/lib/arm-linux-gnueabihf/libXi.so.6 (0x76a73000)
	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76a4b000)

I have Volumio 2.587 running on an official touchscreen. I followed the instructions and have the keyboard working. I only did the keyboard piece. I don’t care about screen dimming, etc. I am experiencing some strange behavior. The keyboard works perfect the first time after a reboot. The next time it’ll pop up for a split second and then disappear. Also, the settings ( gear) starts going haywire and flashes like a strobe. Once it gets into this state I have to pull the plug to force a reboot.

The keyboard functions great that first use then things start getting wonky.

Thanks,
Martin

Just want to share a simple keyboard layout for swedish users.
Iadded shift and some letters and signs.

<?xml version="1.0" encoding="UTF-8"?>

<keyboard>

<layout id="simple sve keyboard">

<row>
	<key>
     <default display="1"/>               
    </key>
	<key>
     <default display="2"/>               
    </key>
	<key>
     <default display="3"/>
    </key>
	<key>
     <default display="4"/>
    </key>
	<key>
     <default display="5"/>
    </key>
	<key>
     <default display="6"/>
    </key>
	<key>
     <default display="7"/>
    </key>
    <key>
     <default display="8"/>
    </key>
    <key>
     <default display="9"/>
    </key>
	<key>
     <default display="0"/>
    </key>
	
	<key fill="true">
    <default display="⌫" action="backspace"/>
     <!-- <default display="Bksp" action="backspace"/> -->
    </key>
	</row>
	
	<row>
	<key obey-caps='true'>
	  <default display="q" />                
	  <shifted display="Q" />
    </key>
    <key obey-caps='true'>
	  <default display="w" />                
	  <shifted display="W" />
    </key>
    <key obey-caps='true'>
	  <default display="e" />                
	  <shifted display="E" />
    </key>
    <key obey-caps='true'>
	  <default display="r" />                
	  <shifted display="R" />
    </key>
    <key obey-caps='true'>
	  <default display="t" />                
	  <shifted display="T" />
    </key>
    <key obey-caps='true'>
	  <default display="y" />                
	  <shifted display="Y" />
    </key>
    <key obey-caps='true'>
	  <default display="u" />                
	  <shifted display="U" />
    </key>
    <key obey-caps='true'>
	  <default display="i" />                
	  <shifted display="I" />
    </key>
    <key obey-caps='true'>
	  <default display="o" />                
	  <shifted display="O" />
    </key>
    <key obey-caps='true'>
	  <default display="p" />                
	  <shifted display="P" />
    </key>
	<key obey-caps='true'>
	  <default display="Ć„" />                
	  <shifted display="ƅ" />
    </key>
	 <key fill="true">
     <default display="āŽ" action="return"/>
    </key>
	</row>
	
	<row>
	<key obey-caps='true'>
	  <default display="a" />                
	  <shifted display="A" />
    </key>
    <key obey-caps='true'>
	  <default display="s" />                
	  <shifted display="S" />
    </key>
    <key obey-caps='true'>
	  <default display="d" />                
	  <shifted display="D" />
    </key>
    <key obey-caps='true'>
	  <default display="f" />                
	  <shifted display="F" />
    </key>
    <key obey-caps='true'>
	  <default display="g" />                
	  <shifted display="G" />
    </key>
    <key obey-caps='true'>
	  <default display="h" />                
	  <shifted display="H" />
    </key>
    <key obey-caps='true'>
	  <default display="j" />                
	  <shifted display="J" />
    </key>
    <key obey-caps='true'>
	  <default display="k" />                
	  <shifted display="K" />
    </key>
    <key obey-caps='true'>
	  <default display="l" />                
	  <shifted display="L" />
	</key>
	<key obey-caps='true'>
	  <default display="Ƥ" />                
	  <shifted display="Ƅ" />
	</key>
	<key obey-caps='true'>
	  <default display="ƶ" />                
	  <shifted display="Ɩ" />
	</key>
	<key fill="true">
	  <default display="Shift" action="modifier:shift"/>                
    </key>
	</row>

	<row>
	<key obey-caps='true'>
	  <default display="z" />                
	  <shifted display="Z" />
    </key>
	<key obey-caps='true'>
	  <default display="x" />                
	  <shifted display="X" />
    </key>
	<key obey-caps='true'>
	  <default display="c" />                
	  <shifted display="C" />
    </key>
	<key obey-caps='true'>
	  <default display="v" />                
	  <shifted display="V" />
    </key>
	<key obey-caps='true'>
	  <default display="b" />                
	  <shifted display="B" />
    </key>
	<key obey-caps='true'>
	  <default display="n" />                
	  <shifted display="N" />
    </key>
	<key obey-caps='true'>
	  <default display="m" />                
	  <shifted display="M" />
    </key>
	<key fill="true">
     <default display="Space" action="space" />               
    </key>
	<key>
     <default display="@" />
    </key>
	<key>
     <default display="=" />
    </key>
	<key>
     <default display="."/>
    </key>
	</row>

	</layout>

	</keyboard>

Use it if you need
regards C

Hello
Is it possible to set a button in the latest Voumio, through which it will be possible to adjust the brightness or turn off the touch screen? Cause I tried to install from the tutorial above but it doesn’t work anymore :frowning: I need this feature a lot. Thank you.

The error appears at the command: sudo pip install rpi_backlight

Hi there! Mind me to ask, if there’s anyone here has instruction to work with led ring +rotary encoder to raspberry pi on a latest os ver. Of volumio?.

Thanks

please don’t drop the same question in multiple topics