iqaudio / tools

Sample CLI tools for IQaudio products
http://www.iqaudio.com
35 stars 11 forks source link

Unable to run sudo IQ_rot #10

Open calimero22 opened 5 years ago

calimero22 commented 5 years ago

Dears,

many thanks for this great utility although I didn't manage to work so far. I am a real newbie to this. So, probably sorry for this question. I use following hardware/software setup:

I connected the rotary encoder to following pins:

I executed following commands:

Could you please advice me what I have to change that this rotary encoder will work? Many thanks in advance for any help and support.

Please find below all the details: volumio@volumio:~$ cd volumio@volumio:~$ sudo apt-get update Get:1 http://archive.volumio.org jessie InRelease [14.9 kB] Get:2 http://archive.volumio.org jessie InRelease [22.9 kB] Get:3 http://archive.volumio.org jessie/main Sources [7762 kB] Get:4 http://archive.volumio.org jessie/contrib Sources [64.5 kB] Get:5 http://archive.volumio.org jessie/non-free Sources [113 kB] Get:6 http://archive.volumio.org jessie/rpi Sources [1132 B] Get:7 http://archive.volumio.org jessie/main armhf Packages [9539 kB] Get:8 http://archive.volumio.org jessie/contrib armhf Packages [43.3 kB] Get:9 http://archive.volumio.org jessie/non-free armhf Packages [88.1 kB] Get:10 http://archive.volumio.org jessie/rpi armhf Packages [1356 B] Get:11 http://archive.volumio.org jessie/main Sources [57.1 kB] Get:12 http://archive.volumio.org jessie/ui Sources [17.4 kB] Get:13 http://archive.volumio.org jessie/main armhf Packages [171 kB] Get:14 http://archive.volumio.org jessie/ui armhf Packages [58.9 kB] Ign http://archive.volumio.org jessie/contrib Translation-en Ign http://archive.volumio.org jessie/main Translation-en Ign http://archive.volumio.org jessie/non-free Translation-en Ign http://archive.volumio.org jessie/rpi Translation-en Ign http://archive.volumio.org jessie/main Translation-en Ign http://archive.volumio.org jessie/ui Translation-en Fetched 18.0 MB in 16s (1083 kB/s) Reading package lists... Done volumio@volumio:~$ volumio@volumio:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: dhcpcd5 e2fslibs e2fsprogs firmware-ralink libblas-common libblas3 libcairo2 libcomerr2 libdrm2 libfreetype6 liblapack3 liborc-0.4-0 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libsdl1.2debian libss2 libva1 x11-common 24 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 6288 kB of archives. After this operation, 1994 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.volumio.org/debian/ jessie/main e2fslibs armhf 1.43.3-1~bpo8+1 [195 kB] Get:2 http://archive.volumio.org/debian/ jessie/main e2fsprogs armhf 1.43.3-1~bpo8+1 [899 kB] Get:3 http://archive.volumio.org/debian/ jessie/main libpam0g armhf 1.1.8-3.1+deb8u2+rpi3 [121 kB] Get:4 http://archive.volumio.org/debian/ jessie/main libpam-modules-bin armhf 1.1.8-3.1+deb8u2+rpi3 [101 kB] Get:5 http://archive.volumio.org/debian/ jessie/main libpam-modules armhf 1.1.8-3.1+deb8u2+rpi3 [288 kB] Get:6 http://archive.volumio.org/debian/ jessie/main libdrm2 armhf 2.4.71-1+rpi1 [32.4 kB] Get:7 http://archive.volumio.org/debian/ jessie/main libfreetype6 armhf 2.6-2rpi1rpi1g [400 kB] Get:8 http://archive.volumio.org/debian/ jessie/main liborc-0.4-0 armhf 1:0.4.22-1rpi1rpi1g [123 kB] Get:9 http://archive.volumio.org/debian/ jessie/ui libpango-1.0-0 armhf 1.36.8-3+rpi1 [274 kB] Get:10 http://archive.volumio.org/debian/ jessie/main libpixman-1-0 armhf 0.33.3+git20151011-7de61d8-rpi1 [156 kB] Get:11 http://archive.volumio.org/debian/ jessie/main libcairo2 armhf 1.14.0-2.1+deb8u2+rpi1 [662 kB] Get:12 http://archive.volumio.org/debian/ jessie/ui libpangoft2-1.0-0 armhf 1.36.8-3+rpi1 [208 kB] Get:13 http://archive.volumio.org/debian/ jessie/ui libpangocairo-1.0-0 armhf 1.36.8-3+rpi1 [197 kB] Get:14 http://archive.volumio.org/debian/ jessie/main libsdl1.2debian armhf 1.2.15-10+rpi1 [162 kB] Get:15 http://archive.volumio.org/debian/ jessie/main libcomerr2 armhf 1.43.3-1~bpo8+1 [62.5 kB] Get:16 http://archive.volumio.org/debian/ jessie/main libpam-runtime all 1.1.8-3.1+deb8u2+rpi3 [213 kB] Get:17 http://archive.volumio.org/debian/ jessie/main libss2 armhf 1.43.3-1~bpo8+1 [65.9 kB] Get:18 http://archive.volumio.org/debian/ jessie/main dhcpcd5 armhf 6.7.1-1+rpi5 [122 kB] Get:19 http://archive.volumio.org/debian/ jessie/main firmware-ralink all 1:0.43+rpi6 [46.1 kB] Get:20 http://archive.volumio.org/debian/ jessie/main libblas-common armhf 3.7.0-1~bpo8+1 [14.1 kB] Get:21 http://archive.volumio.org/debian/ jessie/main libblas3 armhf 3.7.0-1~bpo8+1 [112 kB] Get:22 http://archive.volumio.org/debian/ jessie/main liblapack3 armhf 3.7.0-1~bpo8+1 [1535 kB] Get:23 http://archive.volumio.org/debian/ jessie/main libva1 armhf 1.7.3-2 [46.7 kB] Get:24 http://archive.volumio.org/debian/ jessie/main x11-common all 1:7.7+16 [251 kB] Fetched 6288 kB in 2s (2568 kB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 20649 files and directories currently installed.) Preparing to unpack .../e2fslibs_1.43.3-1~bpo8+1_armhf.deb ... Unpacking e2fslibs:armhf (1.43.3-1~bpo8+1) over (1.42.12-2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up e2fslibs:armhf (1.43.3-1~bpo8+1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20649 files and directories currently installed.) Preparing to unpack .../e2fsprogs_1.43.3-1~bpo8+1_armhf.deb ... Unpacking e2fsprogs (1.43.3-1~bpo8+1) over (1.42.12-2) ... Setting up e2fsprogs (1.43.3-1~bpo8+1) ... Installing new version of config file /etc/mke2fs.conf ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.120+deb8u3) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libpam0g_1.1.8-3.1+deb8u2+rpi3_armhf.deb ... Unpacking libpam0g:armhf (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up libpam0g:armhf (1.1.8-3.1+deb8u2+rpi3) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libpam-modules-bin_1.1.8-3.1+deb8u2+rpi3_armhf.deb ... Unpacking libpam-modules-bin (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Setting up libpam-modules-bin (1.1.8-3.1+deb8u2+rpi3) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libpam-modules_1.1.8-3.1+deb8u2+rpi3_armhf.deb ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Unpacking libpam-modules:armhf (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Setting up libpam-modules:armhf (1.1.8-3.1+deb8u2+rpi3) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libdrm2_2.4.71-1+rpi1_armhf.deb ... Unpacking libdrm2:armhf (2.4.71-1+rpi1) over (2.4.58-2) ... Preparing to unpack .../libfreetype6_2.6-2rpi1rpi1g_armhf.deb ... Unpacking libfreetype6:armhf (2.6-2rpi1rpi1g) over (2.5.2-3+deb8u2) ... Preparing to unpack .../liborc-0.4-0_1%3a0.4.22-1rpi1rpi1g_armhf.deb ... Unpacking liborc-0.4-0:armhf (1:0.4.22-1rpi1rpi1g) over (1:0.4.22-1) ... Preparing to unpack .../libpango-1.0-0_1.36.8-3+rpi1_armhf.deb ... Unpacking libpango-1.0-0:armhf (1.36.8-3+rpi1) over (1.36.8-3) ... Preparing to unpack .../libpixman-1-0_0.33.3+git20151011-7de61d8-rpi1_armhf.deb ... Unpacking libpixman-1-0:armhf (0.33.3+git20151011-7de61d8-rpi1) over (0.32.6-3) ... Preparing to unpack .../libcairo2_1.14.0-2.1+deb8u2+rpi1_armhf.deb ... Unpacking libcairo2:armhf (1.14.0-2.1+deb8u2+rpi1) over (1.14.0-2.1+deb8u2) ... Preparing to unpack .../libpangoft2-1.0-0_1.36.8-3+rpi1_armhf.deb ... Unpacking libpangoft2-1.0-0:armhf (1.36.8-3+rpi1) over (1.36.8-3) ... Preparing to unpack .../libpangocairo-1.0-0_1.36.8-3+rpi1_armhf.deb ... Unpacking libpangocairo-1.0-0:armhf (1.36.8-3+rpi1) over (1.36.8-3) ... Preparing to unpack .../libsdl1.2debian_1.2.15-10+rpi1_armhf.deb ... Unpacking libsdl1.2debian:armhf (1.2.15-10+rpi1) over (1.2.15-10) ... Preparing to unpack .../libcomerr2_1.43.3-1~bpo8+1_armhf.deb ... Unpacking libcomerr2:armhf (1.43.3-1~bpo8+1) over (1.42.12-2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up libcomerr2:armhf (1.43.3-1~bpo8+1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20653 files and directories currently installed.) Preparing to unpack .../libpam-runtime_1.1.8-3.1+deb8u2+rpi3_all.deb ... Unpacking libpam-runtime (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Setting up libpam-runtime (1.1.8-3.1+deb8u2+rpi3) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory (Reading database ... 20653 files and directories currently installed.) Preparing to unpack .../libss2_1.43.3-1~bpo8+1_armhf.deb ... Unpacking libss2:armhf (1.43.3-1~bpo8+1) over (1.42.12-2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up libss2:armhf (1.43.3-1~bpo8+1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20653 files and directories currently installed.) Preparing to unpack .../dhcpcd5_6.7.1-1+rpi5_armhf.deb ... Unpacking dhcpcd5 (6.7.1-1+rpi5) over (6.0.5-2) ... Preparing to unpack .../firmware-ralink_1%3a0.43+rpi6_all.deb ... Unpacking firmware-ralink (1:0.43+rpi6) over (20161130-4~deb8u1) ... dpkg: error processing archive /var/cache/apt/archives/firmware-ralink_1%3a0.43+rpi6_all.deb (--unpack): trying to overwrite '/lib/firmware/rt2661.bin', which is also in package firmware-misc-nonfree 20161130-4~deb8u1 Preparing to unpack .../libblas-common_3.7.0-1~bpo8+1_armhf.deb ... Unpacking libblas-common (3.7.0-1~bpo8+1) over (1.2.20110419-10) ... Preparing to unpack .../libblas3_3.7.0-1~bpo8+1_armhf.deb ... Unpacking libblas3 (3.7.0-1~bpo8+1) over (1.2.20110419-10) ... Preparing to unpack .../liblapack3_3.7.0-1~bpo8+1_armhf.deb ... Unpacking liblapack3 (3.7.0-1~bpo8+1) over (3.5.0-4) ... Preparing to unpack .../libva1_1.7.3-2_armhf.deb ... Unpacking libva1:armhf (1.7.3-2) over (1.4.1-1) ... Preparing to unpack .../x11-common_1%3a7.7+16_all.deb ... Unpacking x11-common (1:7.7+16) over (1:7.7+7) ... Processing triggers for systemd (215-17+deb8u8) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Errors were encountered while processing: /var/cache/apt/archives/firmware-ralink_1%3a0.43+rpi6_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) volumio@volumio:~$ git clone git://git.drogon.net/wiringPi Cloning into 'wiringPi'... remote: Counting objects: 1199, done. remote: Compressing objects: 100% (999/999), done. remote: Total 1199 (delta 837), reused 212 (delta 142) Receiving objects: 100% (1199/1199), 371.42 KiB | 0 bytes/s, done. Resolving deltas: 100% (837/837), done. Checking connectivity... done. volumio@volumio:~$ cd wiringPi volumio@volumio:~/wiringPi$ git pull origin Already up-to-date. volumio@volumio:~/wiringPi$ cd volumio@volumio:~$ cd volumio@volumio:~$ git clone https://github.com/iqaudio/tools Cloning into 'tools'... remote: Enumerating objects: 113, done. remote: Total 113 (delta 0), reused 0 (delta 0), pack-reused 113 Receiving objects: 100% (113/113), 49.12 KiB | 0 bytes/s, done. Resolving deltas: 100% (52/52), done. Checking connectivity... done. volumio@volumio:~$ ls tools wiringPi volumio@volumio:~$ cd tools volumio@volumio:~/tools$ ls ButtonPress.py IQ_ir IQ_rot README.md IQSetupMix.c IQ_ir.c IQ_rot.c cosmiccontroller.py volumio@volumio:~/tools$ sudo IQ_rot [sudo] password for volumio: sudo: IQ_rot: command not found volumio@volumio:~/tools$ cd volumio@volumio:~$ sudo IQ_rot sudo: IQ_rot: command not found

iqaudio commented 5 years ago

Hi, you need to build and install wiringpi.

Alternatively look at the python code in our github page for the cosmic controller. You may find it easier to get going.

Best regards,

Gordon

Sent from my iPhone

On 11 May 2019, at 08:32, calimero22 notifications@github.com wrote:

Dears,

many thanks for this great utility although I didn't manage to work so far. I am a real newbie to this. So, probably sorry for this question. I use following hardware/software setup:

raspberry pi 3 Model B+ iqaudio DAC+ rotary encoder shown in your manual volumio Version 2.575 I connected the rotary encoder to following pins:

Left connector to pin 16 Middle connector to pin 14 Right connector to pin 18 I executed following commands:

sudo apt-get update sudo apt-get upgrade git clone git://git.drogon.net/wiringPi cd wiringPi git pull origin git clone https://github.com/iqaudio/tools cd tools sudo IQ_rot I always get the message sudo: IQ_rot: command not found Could you please advice me what I have to change that this rotary encoder will work? Many thanks in advance for any help and support.

Please find below all the details: volumio@volumio:~$ cd volumio@volumio:~$ sudo apt-get update Get:1 http://archive.volumio.org jessie InRelease [14.9 kB] Get:2 http://archive.volumio.org jessie InRelease [22.9 kB] Get:3 http://archive.volumio.org jessie/main Sources [7762 kB] Get:4 http://archive.volumio.org jessie/contrib Sources [64.5 kB] Get:5 http://archive.volumio.org jessie/non-free Sources [113 kB] Get:6 http://archive.volumio.org jessie/rpi Sources [1132 B] Get:7 http://archive.volumio.org jessie/main armhf Packages [9539 kB] Get:8 http://archive.volumio.org jessie/contrib armhf Packages [43.3 kB] Get:9 http://archive.volumio.org jessie/non-free armhf Packages [88.1 kB] Get:10 http://archive.volumio.org jessie/rpi armhf Packages [1356 B] Get:11 http://archive.volumio.org jessie/main Sources [57.1 kB] Get:12 http://archive.volumio.org jessie/ui Sources [17.4 kB] Get:13 http://archive.volumio.org jessie/main armhf Packages [171 kB] Get:14 http://archive.volumio.org jessie/ui armhf Packages [58.9 kB] Ign http://archive.volumio.org jessie/contrib Translation-en Ign http://archive.volumio.org jessie/main Translation-en Ign http://archive.volumio.org jessie/non-free Translation-en Ign http://archive.volumio.org jessie/rpi Translation-en Ign http://archive.volumio.org jessie/main Translation-en Ign http://archive.volumio.org jessie/ui Translation-en Fetched 18.0 MB in 16s (1083 kB/s) Reading package lists... Done volumio@volumio:~$ volumio@volumio:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: dhcpcd5 e2fslibs e2fsprogs firmware-ralink libblas-common libblas3 libcairo2 libcomerr2 libdrm2 libfreetype6 liblapack3 liborc-0.4-0 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libsdl1.2debian libss2 libva1 x11-common 24 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 6288 kB of archives. After this operation, 1994 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.volumio.org/debian/ jessie/main e2fslibs armhf 1.43.3-1~bpo8+1 [195 kB] Get:2 http://archive.volumio.org/debian/ jessie/main e2fsprogs armhf 1.43.3-1~bpo8+1 [899 kB] Get:3 http://archive.volumio.org/debian/ jessie/main libpam0g armhf 1.1.8-3.1+deb8u2+rpi3 [121 kB] Get:4 http://archive.volumio.org/debian/ jessie/main libpam-modules-bin armhf 1.1.8-3.1+deb8u2+rpi3 [101 kB] Get:5 http://archive.volumio.org/debian/ jessie/main libpam-modules armhf 1.1.8-3.1+deb8u2+rpi3 [288 kB] Get:6 http://archive.volumio.org/debian/ jessie/main libdrm2 armhf 2.4.71-1+rpi1 [32.4 kB] Get:7 http://archive.volumio.org/debian/ jessie/main libfreetype6 armhf 2.6-2rpi1rpi1g [400 kB] Get:8 http://archive.volumio.org/debian/ jessie/main liborc-0.4-0 armhf 1:0.4.22-1rpi1rpi1g [123 kB] Get:9 http://archive.volumio.org/debian/ jessie/ui libpango-1.0-0 armhf 1.36.8-3+rpi1 [274 kB] Get:10 http://archive.volumio.org/debian/ jessie/main libpixman-1-0 armhf 0.33.3+git20151011-7de61d8-rpi1 [156 kB] Get:11 http://archive.volumio.org/debian/ jessie/main libcairo2 armhf 1.14.0-2.1+deb8u2+rpi1 [662 kB] Get:12 http://archive.volumio.org/debian/ jessie/ui libpangoft2-1.0-0 armhf 1.36.8-3+rpi1 [208 kB] Get:13 http://archive.volumio.org/debian/ jessie/ui libpangocairo-1.0-0 armhf 1.36.8-3+rpi1 [197 kB] Get:14 http://archive.volumio.org/debian/ jessie/main libsdl1.2debian armhf 1.2.15-10+rpi1 [162 kB] Get:15 http://archive.volumio.org/debian/ jessie/main libcomerr2 armhf 1.43.3-1~bpo8+1 [62.5 kB] Get:16 http://archive.volumio.org/debian/ jessie/main libpam-runtime all 1.1.8-3.1+deb8u2+rpi3 [213 kB] Get:17 http://archive.volumio.org/debian/ jessie/main libss2 armhf 1.43.3-1~bpo8+1 [65.9 kB] Get:18 http://archive.volumio.org/debian/ jessie/main dhcpcd5 armhf 6.7.1-1+rpi5 [122 kB] Get:19 http://archive.volumio.org/debian/ jessie/main firmware-ralink all 1:0.43+rpi6 [46.1 kB] Get:20 http://archive.volumio.org/debian/ jessie/main libblas-common armhf 3.7.0-1~bpo8+1 [14.1 kB] Get:21 http://archive.volumio.org/debian/ jessie/main libblas3 armhf 3.7.0-1~bpo8+1 [112 kB] Get:22 http://archive.volumio.org/debian/ jessie/main liblapack3 armhf 3.7.0-1~bpo8+1 [1535 kB] Get:23 http://archive.volumio.org/debian/ jessie/main libva1 armhf 1.7.3-2 [46.7 kB] Get:24 http://archive.volumio.org/debian/ jessie/main x11-common all 1:7.7+16 [251 kB] Fetched 6288 kB in 2s (2568 kB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 20649 files and directories currently installed.) Preparing to unpack .../e2fslibs_1.43.3-1~bpo8+1_armhf.deb ... Unpacking e2fslibs:armhf (1.43.3-1~bpo8+1) over (1.42.12-2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up e2fslibs:armhf (1.43.3-1~bpo8+1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20649 files and directories currently installed.) Preparing to unpack .../e2fsprogs_1.43.3-1~bpo8+1_armhf.deb ... Unpacking e2fsprogs (1.43.3-1~bpo8+1) over (1.42.12-2) ... Setting up e2fsprogs (1.43.3-1~bpo8+1) ... Installing new version of config file /etc/mke2fs.conf ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.120+deb8u3) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libpam0g_1.1.8-3.1+deb8u2+rpi3_armhf.deb ... Unpacking libpam0g:armhf (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up libpam0g:armhf (1.1.8-3.1+deb8u2+rpi3) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libpam-modules-bin_1.1.8-3.1+deb8u2+rpi3_armhf.deb ... Unpacking libpam-modules-bin (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Setting up libpam-modules-bin (1.1.8-3.1+deb8u2+rpi3) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libpam-modules_1.1.8-3.1+deb8u2+rpi3_armhf.deb ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Unpacking libpam-modules:armhf (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Setting up libpam-modules:armhf (1.1.8-3.1+deb8u2+rpi3) ... (Reading database ... 20654 files and directories currently installed.) Preparing to unpack .../libdrm2_2.4.71-1+rpi1_armhf.deb ... Unpacking libdrm2:armhf (2.4.71-1+rpi1) over (2.4.58-2) ... Preparing to unpack .../libfreetype6_2.6-2rpi1rpi1g_armhf.deb ... Unpacking libfreetype6:armhf (2.6-2rpi1rpi1g) over (2.5.2-3+deb8u2) ... Preparing to unpack .../liborc-0.4-0_1%3a0.4.22-1rpi1rpi1g_armhf.deb ... Unpacking liborc-0.4-0:armhf (1:0.4.22-1rpi1rpi1g) over (1:0.4.22-1) ... Preparing to unpack .../libpango-1.0-0_1.36.8-3+rpi1_armhf.deb ... Unpacking libpango-1.0-0:armhf (1.36.8-3+rpi1) over (1.36.8-3) ... Preparing to unpack .../libpixman-1-0_0.33.3+git20151011-7de61d8-rpi1_armhf.deb ... Unpacking libpixman-1-0:armhf (0.33.3+git20151011-7de61d8-rpi1) over (0.32.6-3) ... Preparing to unpack .../libcairo2_1.14.0-2.1+deb8u2+rpi1_armhf.deb ... Unpacking libcairo2:armhf (1.14.0-2.1+deb8u2+rpi1) over (1.14.0-2.1+deb8u2) ... Preparing to unpack .../libpangoft2-1.0-0_1.36.8-3+rpi1_armhf.deb ... Unpacking libpangoft2-1.0-0:armhf (1.36.8-3+rpi1) over (1.36.8-3) ... Preparing to unpack .../libpangocairo-1.0-0_1.36.8-3+rpi1_armhf.deb ... Unpacking libpangocairo-1.0-0:armhf (1.36.8-3+rpi1) over (1.36.8-3) ... Preparing to unpack .../libsdl1.2debian_1.2.15-10+rpi1_armhf.deb ... Unpacking libsdl1.2debian:armhf (1.2.15-10+rpi1) over (1.2.15-10) ... Preparing to unpack .../libcomerr2_1.43.3-1~bpo8+1_armhf.deb ... Unpacking libcomerr2:armhf (1.43.3-1~bpo8+1) over (1.42.12-2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up libcomerr2:armhf (1.43.3-1~bpo8+1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20653 files and directories currently installed.) Preparing to unpack .../libpam-runtime_1.1.8-3.1+deb8u2+rpi3_all.deb ... Unpacking libpam-runtime (1.1.8-3.1+deb8u2+rpi3) over (1.1.8-3.1+deb8u2) ... Setting up libpam-runtime (1.1.8-3.1+deb8u2+rpi3) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory (Reading database ... 20653 files and directories currently installed.) Preparing to unpack .../libss2_1.43.3-1~bpo8+1_armhf.deb ... Unpacking libss2:armhf (1.43.3-1~bpo8+1) over (1.42.12-2) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Setting up libss2:armhf (1.43.3-1~bpo8+1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... (Reading database ... 20653 files and directories currently installed.) Preparing to unpack .../dhcpcd5_6.7.1-1+rpi5_armhf.deb ... Unpacking dhcpcd5 (6.7.1-1+rpi5) over (6.0.5-2) ... Preparing to unpack .../firmware-ralink_1%3a0.43+rpi6_all.deb ... Unpacking firmware-ralink (1:0.43+rpi6) over (20161130-4~deb8u1) ... dpkg: error processing archive /var/cache/apt/archives/firmware-ralink_1%3a0.43+rpi6_all.deb (--unpack): trying to overwrite '/lib/firmware/rt2661.bin', which is also in package firmware-misc-nonfree 20161130-4~deb8u1 Preparing to unpack .../libblas-common_3.7.0-1~bpo8+1_armhf.deb ... Unpacking libblas-common (3.7.0-1~bpo8+1) over (1.2.20110419-10) ... Preparing to unpack .../libblas3_3.7.0-1~bpo8+1_armhf.deb ... Unpacking libblas3 (3.7.0-1~bpo8+1) over (1.2.20110419-10) ... Preparing to unpack .../liblapack3_3.7.0-1~bpo8+1_armhf.deb ... Unpacking liblapack3 (3.7.0-1~bpo8+1) over (3.5.0-4) ... Preparing to unpack .../libva1_1.7.3-2_armhf.deb ... Unpacking libva1:armhf (1.7.3-2) over (1.4.1-1) ... Preparing to unpack .../x11-common_1%3a7.7+16_all.deb ... Unpacking x11-common (1:7.7+16) over (1:7.7+7) ... Processing triggers for systemd (215-17+deb8u8) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Errors were encountered while processing: /var/cache/apt/archives/firmware-ralink_1%3a0.43+rpi6_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) volumio@volumio:~$ git clone git://git.drogon.net/wiringPi Cloning into 'wiringPi'... remote: Counting objects: 1199, done. remote: Compressing objects: 100% (999/999), done. remote: Total 1199 (delta 837), reused 212 (delta 142) Receiving objects: 100% (1199/1199), 371.42 KiB | 0 bytes/s, done. Resolving deltas: 100% (837/837), done. Checking connectivity... done. volumio@volumio:~$ cd wiringPi volumio@volumio:~/wiringPi$ git pull origin Already up-to-date. volumio@volumio:~/wiringPi$ cd volumio@volumio:~$ cd volumio@volumio:~$ git clone https://github.com/iqaudio/tools Cloning into 'tools'... remote: Enumerating objects: 113, done. remote: Total 113 (delta 0), reused 0 (delta 0), pack-reused 113 Receiving objects: 100% (113/113), 49.12 KiB | 0 bytes/s, done. Resolving deltas: 100% (52/52), done. Checking connectivity... done. volumio@volumio:~$ ls tools wiringPi volumio@volumio:~$ cd tools volumio@volumio:~/tools$ ls ButtonPress.py IQ_ir IQ_rot README.md IQSetupMix.c IQ_ir.c IQ_rot.c cosmiccontroller.py volumio@volumio:~/tools$ sudo IQ_rot [sudo] password for volumio: sudo: IQ_rot: command not found volumio@volumio:~/tools$ cd volumio@volumio:~$ sudo IQ_rot sudo: IQ_rot: command not found

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

calimero22 commented 5 years ago

Hi Gordon @iqaudio

Many thanks for your hint. I managed to

Wiringpi is working well. All the commands e.g. sudo gpio readall work well:

volumio@volumio:~$ gpio -v gpio version: 2.46 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty Raspberry Pi Details: Type: Pi 3+, Revision: 03, Memory: 1024MB, Maker: Sony * Device tree is enabled. *--> Raspberry Pi 3 Model B Plus Rev 1.3 * This Raspberry Pi supports user-level GPIO access. volumio@volumio:~$ sudo gpio readall +-----+-----+---------+------+---+---Pi 3+--+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5v | | | | 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | | | | 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 0 | IN | TxD | 15 | 14 | | | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 | | 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | ALT0 | GPIO. 1 | 1 | 18 | | 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | | | 22 | 3 | GPIO. 3 | OUT | 1 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 | | | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 | | 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | | | 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | IN | GPIO. 6 | 6 | 25 | | 11 | 14 | SCLK | IN | 0 | 23 || 24 | 1 | IN | CE0 | 10 | 8 | | | | 0v | | | 25 || 26 | 1 | IN | CE1 | 11 | 7 | | 0 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | IN | SCL.0 | 31 | 1 | | 5 | 21 | GPIO.21 | IN | 1 | 29 || 30 | | | 0v | | | | 6 | 22 | GPIO.22 | IN | 1 | 31 || 32 | 0 | IN | GPIO.26 | 26 | 12 | | 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | | | | 19 | 24 | GPIO.24 | ALT0 | 0 | 35 || 36 | 0 | IN | GPIO.27 | 27 | 16 | | 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | ALT0 | GPIO.28 | 28 | 20 | | | | 0v | | | 39 || 40 | 0 | ALT0 | GPIO.29 | 29 | 21 | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+---------+------+---+---Pi 3+--+---+------+---------+-----+-----+

What do I need to do next? Are the following steps correct?

Many thanks in advance and sorry for bothering you with newbie stuff. Best regards

iqaudio commented 5 years ago

That all looks fine. I am not a volumio user so haven’t tried to link this in there. You may have to seek advise from the volumio forum.

Best regards,

G

On 13 May 2019, at 08:19, calimero22 notifications@github.com wrote:

Hi Gordon @iqaudio

Many thanks for your hint. I managed to

update the package list install and build wiringpi update wiringpi Wiringpi is working well. All the commands e.g. sudo gpio readall work well:

volumio@volumio:~$ gpio -v gpio version: 2.46 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty Raspberry Pi Details: Type: Pi 3+, Revision: 03, Memory: 1024MB, Maker: Sony

  • Device tree is enabled. *--> Raspberry Pi 3 Model B Plus Rev 1.3
  • This Raspberry Pi supports user-level GPIO access. volumio@volumio:~$ sudo gpio readall +-----+-----+---------+------+---+---Pi 3+--+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5v | | | | 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | | | | 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 0 | IN | TxD | 15 | 14 | | | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 | | 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | ALT0 | GPIO. 1 | 1 | 18 | | 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | | | 22 | 3 | GPIO. 3 | OUT | 1 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 | | | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 | | 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | | | 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | IN | GPIO. 6 | 6 | 25 | | 11 | 14 | SCLK | IN | 0 | 23 || 24 | 1 | IN | CE0 | 10 | 8 | | | | 0v | | | 25 || 26 | 1 | IN | CE1 | 11 | 7 | | 0 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | IN | SCL.0 | 31 | 1 | | 5 | 21 | GPIO.21 | IN | 1 | 29 || 30 | | | 0v | | | | 6 | 22 | GPIO.22 | IN | 1 | 31 || 32 | 0 | IN | GPIO.26 | 26 | 12 | | 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | | | | 19 | 24 | GPIO.24 | ALT0 | 0 | 35 || 36 | 0 | IN | GPIO.27 | 27 | 16 | | 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | ALT0 | GPIO.28 | 28 | 20 | | | | 0v | | | 39 || 40 | 0 | ALT0 | GPIO.29 | 29 | 21 | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+---------+------+---+---Pi 3+--+---+------+---------+-----+-----+

What do I need to do next? Are the following steps correct?

install iqaudio tools git clone https://github.com/iqaudio/tools.git change code of iq_rot.c from PCM to Digital sudo nano IQ_rot.c compile IQ_rot sudo gcc IQ_rot.c -oIQ_rot -lwiringPi -lasound max IQ_rot start at boot @reboot /home/pi/rot2/IQ_rot& Many thanks in advance and sorry for bothering you with newbie stuff. Best regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

calimero22 commented 5 years ago

Thanks Gordon for your prompt reply! I will do so.

Have you tested any music player for which your tools work for a rotary encoder? I only need a spotify integration? Which one could you @iqaudio recommend?

Many thanks!

iqaudio commented 5 years ago

Moodeaudio.org has the rotary encoder support built in

Sent from my iPhone

On 13 May 2019, at 09:50, calimero22 notifications@github.com wrote:

Thanks Gordon for your prompt reply! I will do so.

Have you tested any music player for which your tools work for a rotary encoder? I only need a spotify integration? Which one could you @iqaudio recommend?

Many thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Asheboy commented 5 years ago

I'm pretty sure this is because the file is not executable. Try running sudo chmod +x IQ_rot first.