Jump to content

Orange Pi PC (plus) + Armbian + Guitarix= Guitar effectprocessor?


Allfifthstuning

Recommended Posts

I've build a new os.

It runs, but the screen is a bit distorded, iit looks like a lot of pixels aren't "activeted" 

 

Further I try to install libgtk-3-dev which is needed to build guitarix, but I get this message:

root@orangepipcplus:/home/broomy/Programs/guitarix-git/trunk# apt-get install libgtk-3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgtk-3-dev : Depends: libglib2.0-dev (>= 2.41.2) but it is not going to be installed
                Depends: libgdk-pixbuf2.0-dev (>= 2.27.1) but it is not going to be installed
                Depends: libpango1.0-dev (>= 1.36.7) but it is not going to be installed
                Depends: libatk1.0-dev (>= 2.7.5) but it is not going to be installed
                Depends: libatk-bridge2.0-dev but it is not going to be installed
                Depends: libcairo2-dev (>= 1.10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Hans

Link to comment
Share on other sites

Phase one is finished for now:

I've got Guitarix up and running.

The developer made a "trimmed" version, with some CPU-consuming processes switched. There's a trade of in the sound qualitty, but in everyday use it won't be noticable.

A 48k samplerate seem to be the maximum the Pi can handle, higher samplerates will result in hick ups, the so called Xruns.

The package can be downloaded here. You have to install the dependencies, before you can build it.

 

After going back and forth using a realtime kernel, i've settled to use the "standard" kernel for simplicity's sake, there was no real improvement using the rt-kernel.

As mentioned earlier, I've added myself to the Audio group and tweaked some audio settings.

One very important thing to do is to set the cpu governance on "performance", this really helps to lower the amount of xruns.

I also isolated two out of four cores to direct the audio processes to. The improvement is small, so it can be done with.

So long story short:

OPi can be used with guitarix!

 

Now: phase two, getting a small tft touchscreen to work on the Pi.

It is a screen which is used on RPi-B's with succes. I've only connected it once and it lit.

 

Although I've searched the internet / this forum, I still don't know route to take to get it working.

Could someone advice me on this? 

 

Hans

Link to comment
Share on other sites

Regarding display check this.

 

Manuals are for orientation since they are for previous Allwinner chip (A20). Almost same scenario works on iMx6 ... so it should work here. I haven't attach a display to those Oranges yet, but it's reported working. Just get a display that is supported by the drivers. I am not familiar with the one you suggested.

 

Note that those SPI based displays are slow, only few fps. For normal speed (and size) you need to check some LVDS / HDMI version.

Link to comment
Share on other sites

Thanks Igor. I'll probably rethink what I want. A regular small HDMI screen with a small keyboard will be fine for what I want and would be a lot less hassle to get it up and running.

 

btw. Would it be a good idea / useful to add the tweaks I made to make Armbian suiteable for rt-audio somewhere in the documentation-section?

Although I'm not an expert, I could type the text.

 

Hans

Link to comment
Share on other sites

 

btw. Would it be a good idea / useful to add the tweaks I made to make Armbian suiteable for rt-audio somewhere in the documentation-section?

Although I'm not an expert, I could type the text.

 

HDMI screen would be less problematic to add / use.

Sure, why not. Push it here: 

https://github.com/igorpecovnik/lib.docs/blob/master/docs/User-Guide_Advanced-Features.md

Try to be concise as other topics.

Link to comment
Share on other sites

I've tried the first but I don't think there's a real improvement.

On my laptops I also stopped using rt-kernels, the standard kernel seems fine.

The above mentioned tweaks are important though:

- Adding yourself to the audio group

- Setting RT audio settings

- Setting CPU governance to performance

 

Hans

Link to comment
Share on other sites

I have been trying to install Orange Pi Lite + qjackctl + guitarix for vocal .  Just yesterday, I update FB for my installation How To in local language.  I translate in English and paste here .

My concept;

 - Cheapest Orange Pi = OP Lite

 - Cheap USB sound card

 - Very simple X Window installation with openbox

 - qjackctl and guitarix are controlled through VNC .

 - Power on to run qjackctl and guitarix automatic . = Power on to become a effector .

.

 

My installation procedure is ;

 

--------------------------------

 

# 0. Buy Orange Pi Lite from manufacture by AliExpress with 8GB SD card, Acryl
case . At the same time, buy cpu heat sink for Raspberry Pi .

# 0. Strictly use 2A or more current power adapter. If lower that, many
frustrating problem would occur .

# 1. OS installation
- Download "Armbian_5.20_Orangepilite_Debian_jessie_3.4.112.img" from Armbian site .
- sudo dd if=Armbian_5.20_Orangepilite_Debian_jessie_3.4.112.img of=/dev/XXXX
bs=1M oflag=direct
- Where XXXX is your SD card drive .
- 1st time boot will do many auto setting by it self . Do not disturb until
second boot success .
- This installer automatically create SWAP
- First login should be 'root' with pasword '1234' . OS will ask you to
change password . Say 'hajime@123' .
- When you log by root for the first time, OS will ask you a normal user
account (sudo-able) . Say 'hajime' .
- At the same time, OS will ask you whether you choose display type. Just
ENTER it .
- Logout
---------------------


# 2. Wifi Setting (login by hajime)
# Use "wpa_passphrase yourSSID yourpassword" to get 'psk' for the following
set up.

# First setup interfaces and addresses .

Just past the following by;
hajime>sudo vi /etc/network/interfaces

----
# Local loopback
auto lo
iface lo inet loopback

# Wireless adapter #1
#allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
# iface wlan0 inet static
#address 192.168.1.128
#network 255.255.255.0
#netmask 255.255.255.0
#broadcast 255.255.255.255
#gateway 192.168.1.1
#dns-nameservers 192.168.1.1

wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
----

# Next, setup for WIFI access points . Usually, there are more than 1 access
points . List out all and register here by;
hajime>sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

----
#
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="FIRST ACCESS POINT SSID"
psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
}

network={
ssid="SECOND ACCESS POINT SSID"
psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
}
----

# Check this setting by
hajime> sudo /sbin/ifup wlan0

# If any errors, setting is wrong . Note this setting is WPA1/2 personal
setting which is very common .
-----------------------

# 3. Time related setting (login by hajime). This example is for my locale.
Change if necessary .

hajime>sudo cp /etc/localtime /etc/localtime.org
hajime>sudo ln -sf /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime


Next, Add to auto script when OS booted(login by hajime) . Up network and set
time by;
hajime>sudo vi /etc/rc.local

/sbin/ifup wlan0
/sbin/sntp --timeout=2 -s time-nw.nist.gov
/sbin/sntp --timeout=2 -s ntp1.jst.mfeed.ad.jp
/sbin/sntp --timeout=2 -s ntp.nc.u-tokyo.ac.jp

/sbin/hwclock --systohc --localtime --directisa > /dev/null 2>&1
----

# Unregister autostart NTP for lighten CPU because the time is set at boot time
. But do not remove it .
sudo update-rc.d -f ntp remove

hajime>sudo reboot

-------------------------------------

# 4. Sound for USB sound card . I got '2' by command 'hajime>aplay -l' .

sudo vi /etc/asound.conf
pcm.!default {
type hw
card 2
}

ctl.!default {
type hw
card 2
}


-----
-----------------------------

#5. Install Softwares

# Update and Upgrade

sudo apt-get update

sudo apt-get upgrade


# Install XWindow, VncServer, Jack, guitorix, firefox and other small things .
If errors, try again few times .
hajime>sudo apt-get install openbox xorg iceweasel x11vnc guitarix qjackctl
dbus-x11 python-rsvg alsamixergui

sudo reboot

----------------------------

#6. Auto login as hajime

hajime>sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/

hajime>sudo vi /etc/systemd/system/getty@tty1.service.d/autologin.conf

[service]
ExecStart=
ExecStart=-/sbin/agetty --autologin hajime --noclear %I 38400 linux
----
hajime>sudo systemctl enable getty@tty1.service
# Password may be required 2 times .


#7. Auto start XWindows
vi ~/.bash_profile

#
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi
----

#8. Set up VNC server

hajime>x11vnc -storepasswd

hajime>mkdir -p .config/openbox

vi ~/.config/openbox/autostart

x11vnc -auth ~/.Xauthority -display :0 -usepw -forever
----
# After reboot, you can open this effector monitor remotely by 'gvncviewer
IPADDRESS' .
---------------------------

#9. Auto start qjackctl and guitorix after X and Open box started
hajime>sudo vi /etc/xdg/openbox/autostart
#
qjackctl &
guitorix &
alsamixergui &
----
---------------------------------

After this, you set up qjackctrl and guitorix then save. Once all done, this
Orange Pi Lite box becomes effector.

# The following are just tips if you wish to set up some more .

# Rotate screen

hajime>sudo vi /etc/X11/xorg.conf.d/01-armbian-defaults.conf

# Append
Section "Device"
Identifier "default"
Driver "fbdev"
Option "Rotate" "CCW"
EndSection
----
-----------------------

# Any case if you want to make qjuackctl run by normal user

hajime>sudo vi /etc/security/limits.conf

hajime - rtprio 99
hajime - memlock 500000
hajime - nice -10
hajime - rtprio 99
hajime - memlock 500000
hajime - nice -10
------
-------------------------
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines