tag:blogger.com,1999:blog-6922719475190616477.post4664649896940111954..comments2024-03-29T10:51:56.473+01:00Comments on Tech stuff: Running Volumio 2 on a Raspberry Pi 2 model B with a 3.5" TouchscreenMichaëlhttp://www.blogger.com/profile/12582053064068588476noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-6922719475190616477.post-64049334157677199922022-03-04T10:38:26.137+01:002022-03-04T10:38:26.137+01:00This comment has been removed by a blog administrator.saekonadonhttps://www.blogger.com/profile/12134240474906516418noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-71475868520462921112020-05-22T13:34:41.036+02:002020-05-22T13:34:41.036+02:00I just did a clean reinstall of my Volumio and upd...I just did a clean reinstall of my Volumio and updated all the steps accordingly. Thanks for all the helpful comments!<br /><br />For reference those are the changes / fixes: <br /><br />(1) the Touch Display Plugin installed just fine, so I had NOT to execute the following fixes: <br /><br /> sudo dpkg --configure -a<br /> sudo apt-get install -y xinit xorg openbox libexif12<br /> <br /> try to remove / reinstall the Touch Display Plugin<br /><br />(2) the driver now uses a different callibration file as noted by some comments. I modified the command (the -90 suffix indicates the orientation, also note that the Touch Display Plugin has an orientation plugin by itself)<br /><br /> sudo cp -rf ./usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf<br /><br />(3) I now create a /boot/userconfig.txt instead of modifying /boot/boot.txt. This file should survive volumio updates, but I'll have to test that in the future. <br /><br />(4) lightdm.conf is fixed in order to use "autologin-user=volumio" instead of the default "pi"<br /><br />(5) bugs were fixed upstream by Volumio, so no need to apply hotfixes:<br />- crashed chromium dialog doesn't appear anymore<br />- statemachine.js is fixed to avoid unwanted stops when executing a playlist<br />- the cursor is now hidden by default (/lib/systemd/system/volumio-kiosk.service)<br /> ExecStart=/usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh -- -nocursor<br /><br />(6) I removed the css-hacking as Volumio changed its layout significantly:<br />for reference, those were the dirty hacks, but do NOT blindly apply them anymore!: <br /> cp /volumio/http/www/styles/app-*.css /volumio/http/www/styles/app-css.orig<br /> sed -i "s/\(\#trackManager{.*\)top:50/\1top:85/g" /volumio/http/www/styles/app-*.css<br /> sed -i "s/\.knobWrapper{position/@media \(max-width:767px\){.knobWrapper{zoom:.40;position:relative;width:210px;height:210px;margin:0 auto 15px}}.knobWrapper{position/g" /volumio/http/www/styles/app-*.css <br /><br />(7) the Touch Display Plugin has settings to change the sleep timeout (0 = don't sleep) and to change the orientation. <br /><br />Please also take note of the comments as some are using a different display with slightly different commands from the driver github repo. <br /><br />Michaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-45339563789875321082020-05-22T09:27:52.414+02:002020-05-22T09:27:52.414+02:00This is an excellent start to understand the front...This is an excellent start to understand the frontend js/css development: https://volumio.github.io/docs/Development_How_To/Set_up_development_environment_for_UI.html<br /><br />Then it is a matter of modifying the css locally (I tend to use vscode) and reloading in the browser. <br /><br />For testing, you can simply resize your browser or use for example https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode . Volumio uses chromium on the pi, so you might stick to that to keep the development experience consistent. <br /><br />A good introduction to "responsive design css" is https://www.w3schools.com/css/css_rwd_intro.asp . Volumio uses https://www.w3schools.com/css/css_rwd_mediaqueries.asp to adapt to different screen sizes.<br /><br />Hope this helps !Michaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-2115375773055482712020-05-22T04:53:25.815+02:002020-05-22T04:53:25.815+02:00You have code for tweaking the CSS for a better di...You have code for tweaking the CSS for a better display on the 3.5" screen.<br /><br />I have it turned vertical ("portrait") like a phone, and I'm not that worried about the touch aspect, I just want to see the artwork from my seated position across the room.<br /><br />How would I tweak your CSS to get the album artwork to display full width on the screen, the way it does on my phone? I'm ok with the controls not fully displaying if the artwork gets too big, I'm ok with having to scroll down for controls.<br /><br />I tried wrapping my head around what your code is doing, but couldn't figure it out.<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/05389920741829301648noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-76605417380310994302020-05-07T03:25:39.980+02:002020-05-07T03:25:39.980+02:00Thank you so much for this.
I know you started th...Thank you so much for this.<br /><br />I know you started this thread s-o- long ago, but I am impressed and happy you still come back to it. I truly appreciate it. (Although I have a MHS35 driver and have to be careful to sub mhs35 for tft35 as appropriate).<br /><br />Of all the guides to getting this to work, I ended up here and it worked for my Pi4B 2GB/Volumio 2.729.<br /><br />For others late to the game, pay attention to the offhand comment "remove and reinstall plugin". It's not clear as to which plugin, but it's the official Volumio touchscreen one. After following everything else and feeling frustrated, I followed the advice and my screen worked.<br /><br />Now figuring out rotation was a whole 'nother matter... ;)<br /><br />Eventually what worked for me was dtoverlay=mhs35:rotate=0 [or 90 or 180 or 270] in /boot/config.txt<br /><br />Adjust as appropriate for your driver.<br /><br />Thanks again!<br />.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-59113982420899704422020-05-02T22:28:55.344+02:002020-05-02T22:28:55.344+02:00@Anonymous (previous post): Which display are you ...@Anonymous (previous post): Which display are you using exactly?<br />I tried with a Raspberry Pi 4 and Volumio v.2.729 with a "Waveshare 3.5inch RPi LCD (B)". Tried 10 times now without luck.<br />used "sudo cp -rf ./usr/99-calibration.conf-35-0 /etc/X11/xorg.conf.d/99-calibration.conf" and "sudo cp -rf ./usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf".<br /><br />Screen doesn't show anything...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-11541499990866311412020-04-12T06:55:25.970+02:002020-04-12T06:55:25.970+02:00FYI, the last comment was run on the latest versio...FYI, the last comment was run on the latest version of Volumio v.2.729 on a Raspberry Pi 4.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-58503400146203028572020-04-12T06:53:58.806+02:002020-04-12T06:53:58.806+02:00Wanted to thank you fabulously (!) for posting the...Wanted to thank you fabulously (!) for posting these details. I have been everywhere (including Volumio, who did a November 2019 post) attempting to get this to work. It all went well, except for one tiny tweak I did because a folder was missing. <br />In your command: <br /><br />sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf <br /><br />I got an error that the /99-calibration.conf-35 folder was missing, but found a 99-calibration.conf-35-0 folder and changed the command to that. Again, thank you; up to this point this was a frustrating experience!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-42540056858943368052020-01-01T07:45:15.879+01:002020-01-01T07:45:15.879+01:00I want to make one like acoosta music player.I want to make one like acoosta music player.sivahttps://www.blogger.com/profile/12346831802634068513noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-69493432360207026382020-01-01T07:29:10.369+01:002020-01-01T07:29:10.369+01:00Thank you Kevin and Michaël,
Kevin, Your solution...Thank you Kevin and Michaël,<br /><br />Kevin, Your solution for the display:0 error worked very well. <br /><br />I have tried setting up one more time freshly, but this time without installing lightdm.<br />And it works well without any error messages.<br /><br />Also I was using a 250Gb HDD and connected to a local network and it often hanged.<br />So I made the volumio into hotspot mode and used a pen drive instead of HDD. <br />Now works without hanging.<br /><br />Please suggest me any steps to make a player which will have buttons to play/pause, stop, next, previous tracks etc and a rotary encoder to select across tracks and change volume.<br /><br />Best regards<br />Siva<br /><br /><br />sivahttps://www.blogger.com/profile/12346831802634068513noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-38044242683843328822019-11-07T22:25:04.929+01:002019-11-07T22:25:04.929+01:00Thanks Levin for your research. I guess volumio / ...Thanks Levin for your research. I guess volumio / LCD35-show changed since the last time I checked. I'll try to redo a full reconfigure and update the instructions according your tips. <br /><br />MichaëlMichaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-68025822086295191072019-11-07T11:35:04.917+01:002019-11-07T11:35:04.917+01:00First of all, thank you Michael for the nice tutor...First of all, thank you Michael for the nice tutorial!<br /><br />I was using this little LCD with Volumio before the touch plugin existed, it just needed a bit more work with lightdm and chrome.<br />Anyway, I had to reinstall my volumio and find your tutorial (shame on me I haven't documented the previous install in a blogpost like you), this makes things easier!<br /><br />Also faced the error message:<br />Error setting screensaver timeout: Error: Command failed: /bin/bash -c "/usr/bin/xset -display :0 s off +dpms 0 0 0" No protocol specified /usr/bin/xset: unable to open display ":0"<br /><br />Where the problem is that lightdm is starting with the user "pi" by default but the touch screen plugin will run on behalf of volumio user who does not have a runing x.<br />So the solution is to change the autologin user in the lightdm.conf from "pi" to "volumio":<br />sudo nano /etc/lightdm/lightdm.conf<br /><br />autologin-user=volumio<br /><br />From this point the xset command called by the plugin will succeed.<br /><br />Some other remarks:<br />1. the correct 99calibration.conf copy:<br />sudo cp -rf ./usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf<br />2. After any official update Volumio will overwrite the /boot/config.txt. Or you keep a backup, orr you just add the lines needed again:<br />hdmi_force_hotplug=1<br />dtoverlay=tft35a<br /><br /><br /><br />LeventeLevinhttps://www.blogger.com/profile/07946635697536497738noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-18280845077506387452019-09-11T06:42:10.227+02:002019-09-11T06:42:10.227+02:00can you check out some ideas from: https://www.ras...can you check out some ideas from: https://www.raspberrypi.org/forums/viewtopic.php?t=180701 ? <br /><br />ThanksMichaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-3690937526057268132019-09-11T04:19:34.161+02:002019-09-11T04:19:34.161+02:00i have the same display :0 error too.
By the wa...i have the same display :0 error too. <br /><br />By the way, thanks for all the work and writing up this guide for everyone! vodkacowhttps://www.blogger.com/profile/16481735389468328904noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-79834080161605003042019-09-06T04:33:46.277+02:002019-09-06T04:33:46.277+02:00Hello Michaël !
I have successfully installed vol...Hello Michaël !<br /><br />I have successfully installed volumio on RPi 3B+ and 3.5" tft screen on a 16GB sd card.<br />All works fine.<br />The only error message I got while installing was<br /><br />cp: cannot stat './usr/99-calibration.conf-35': No such file or directory<br /><br />The problem is the file does not exist in the source directory. But I found similar files and copeied one of them and modified in the destination directory.<br /><br />For the screen to rotate upside down and Touch orientation refer below pdf file :<br />http://www.lcdwiki.com/res/Show_Direction_and_Touch/How_to_change_display_direction-GPIO-Resistive_Touch-V1.2.pdf<br /><br />Everything works as expected. <br />Now the error im getting on screen is <br />Error setting screensaver timeout: Error: Command failed: /bin/bash -c "/usr/bin/xset -display :0 s off +dpms 0 0 0" No protocol specified /usr/bin/xset: unable to open display ":0"<br /><br />We have to find out which is display :0<br /><br />Thank you Michaël ! You have done a wonderful Job. <br /><br />--Sivasivahttps://www.blogger.com/profile/12346831802634068513noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-32267847309135575782019-09-05T16:07:32.463+02:002019-09-05T16:07:32.463+02:00This comment has been removed by the author.sivahttps://www.blogger.com/profile/12346831802634068513noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-28804191815025436072019-08-30T15:37:19.724+02:002019-08-30T15:37:19.724+02:00@Mikhail
If you are using Raspbian image version ...@Mikhail<br /><br />If you are using Raspbian image version 2017-03-02 or later, you need to execute these additional 2 commands below to allow calibration of touch screen. Then reboot the system.<br /><br /> $ cd LCD-show<br /> $ sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb<br /> $ sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf<br /> $ sudo reboot<br /><br />Reference: https://github.com/CytronTechnologies/xpt2046-LCD-Driver-for-Raspberry-PiCotsiosnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-86588876379127324362019-08-24T00:21:45.625+02:002019-08-24T00:21:45.625+02:00Hello Michaël !
I can't go through the tutori...Hello Michaël !<br /><br />I can't go through the tutorial. I get an error:<br /><br />cp: cannot stat './usr/99-calibration.conf-35': No such file or directory<br /><br />Please help me to run the damn display on Volumio or MoodeMikhailnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-84817718966624842552019-08-23T23:07:32.718+02:002019-08-23T23:07:32.718+02:00cannot stat' sudo cp -rf ./usr/99-calibration....cannot stat' sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf<br /><br />please helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-68629762201082782132019-07-15T07:03:04.480+02:002019-07-15T07:03:04.480+02:00Hi,
Did you check the resources in https://www.wa...Hi, <br />Did you check the resources in https://www.waveshare.com/wiki/2.8inch_RPi_LCD_(A) ? The fact that the original waveshare image is not working might indicate a defective device?<br /><br />I don't have the device, so that's as far I can help unfortunately.<br /><br />MichaëlMichaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-39936047975029671622019-07-12T07:57:47.799+02:002019-07-12T07:57:47.799+02:00Hello is there any advice when I use it with an no...Hello is there any advice when I use it with an no hdmi waveshare 2.8 touch?<br />Display works with volumio but no touch not even with the official waveshare rasp image. Linux and consumer freindly do not compute :-)Nordlichthttps://www.blogger.com/profile/14780656152587780997noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-66742534508578407392019-05-18T01:58:26.725+02:002019-05-18T01:58:26.725+02:00Has anyone got the same working for the 5" HD...Has anyone got the same working for the 5" HDMI Waveshare screen? Velkro Smaakhttps://www.blogger.com/profile/06218772965610445123noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-43419755486741321532019-03-16T21:11:52.950+01:002019-03-16T21:11:52.950+01:00Hi Matthias,
I did some experiments last year wi...Hi Matthias,<br /> <br />I did some experiments last year with calibration scripts, but in my case it wasn't needed, the default settings are ok. <br /><br />Anyway, you can research it further:<br /><br />- "xinput-calibrator": sudo apt install xinput-calibrator <br /> see: https://www.raspberrypi.org/forums/viewtopic.php?t=78805<br />- https://github.com/gamelaster/evdev-calibration <br /><br />Michaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-88201394626500272592019-03-16T16:36:56.177+01:002019-03-16T16:36:56.177+01:00Hi Michael,
I will try if that work for me.
I hope...Hi Michael,<br />I will try if that work for me.<br />I hoped there would be a calibration script.<br /><br />Thanks<br />MatthiasMatthiashttps://www.blogger.com/profile/01003122313218587133noreply@blogger.comtag:blogger.com,1999:blog-6922719475190616477.post-1555230220116861712019-03-16T08:35:05.671+01:002019-03-16T08:35:05.671+01:00hi Matthias,
the stylus input is configured in /...hi Matthias, <br /><br />the stylus input is configured in /etc/X11/xorg.conf.d/99-calibration.conf<br />check the Calibration and SwapAxes options. Start with the original configuration from github for those items instead of mine.<br />Michaël<br />Michaëlhttps://www.blogger.com/profile/12582053064068588476noreply@blogger.com