Yatsushiro wrote:
> Hi
>
> Despite my best efforts so far, I'm still getting poor sound quality.
> Would you mind sharing your ALSA settings?
>
> Also, Chill, I'm experiencing the same problems as M_H and Grumpy Bob on
> startup with sbpd-script.sh set to run on startup...
My ALSA settings are whatever pCP creates as the defaults - I haven't
touched them. The only thing I have changed is to set the output device
the the HiFiBerry device noted previously. I haven't even disabled the
on-board audio, and the sound plays perfectly. Have you checked that
the speker wires aren't touching each other where they enter the
push-fit connectors on the board?
I'm confused about what could be going on with sbpd-script.sh. Can you
confirm that you see the boot up messages prior to the splash screen if
you don't have sbpd-script.sh as an automatic user command, but that
when you add it in as a user command you do NOT see anything prior to
the splash screen? This makes no sense to me, because the only
difference between having it as a script and running it manually is the
timing. Perhaps you could add a 10 second delay at the start of
sbpc-script.sh to see if it makes any difference?
Code:
--------------------
#!/bin/sh
sleep 10
# start pigpiod deamon
pigpiod -t 0
sleep 1
# load uinput module - required to be able to send keystrokes
.
.
.
--------------------
I've been looking at the framebuffer setup, and I noticed that the
initialisation string we've been using so far is not the same as the one
that Pimoroni defined on their 'github page'
(https://github.com/pimoroni/st7789-python/blob/master/library/ST7789/__init__.py).
So I've taken their settings and converted them to an init string.
I've also reformatted it slightly so that it's easier to decipher. So
it might be worth changing the two modprobe commands in
/opt/bootlocal.sh to match mine. Ah - waydaminit - I'll bet the
location of these modprobe commands has a bearing on this. Have you
(and/or Grumpy Bob) got these modprobe commands after pcp_startup.sh by
any chance? My /opt/bootlocal.sh now looks like this:
Code:
--------------------
#!/bin/sh
# put other system startup commands here
GREEN="$(echo -e '\033[1;32m')"
#modprobe flexfb setaddrwin=0 width=240 height=240
init=-1,0x11,-2,120,-1,0x36,0x00,-1,0x3A,0x05,-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1A,-1,0xC0,0x2C,-1,0xC2,0x01,-1,0xC3,0x0B,-1,0xC4,0x20,-1,0xC6,0x0F,-1,0xD0,0xA4,0xA1,-1,0x21,-1,0xE0,0x00,0x19,0x1E,0x0A,0x09,0x15,0x3D,0x44,0x51,0x12,0x03,0x00,0x3F,0x3F,-1,0xE1,0x00,0x18,0x1E,0x0A,0x09,0x25,0x3F,0x43,0x52,0x33,0x03,0x00,0x3F,0x3F,-1,0x29,-3
#modprobe fbtft_device name=flexfb speed=32000000 cs=1 gpios=dc:9
modprobe flexfb setaddrwin=0 width=240 height=240 init=\
-1,0x01,\
-2,150,\
-1,0x36,0x00,\
-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,\
-1,0x3A,0x05,\
-1,0xB7,0x14,\
-1,0xBB,0x37,\
-1,0xC0,0x2C,\
-1,0xC2,0x01,\
-1,0xC3,0x12,\
-1,0xC4,0x20,\
-1,0xD0,0xA4,0xA1,\
-1,0xC6,0x0F,\
-1,0xE0,0xD0,0x04,0x0D,0x11,0x13,0x2B,0x3F,0x54,0x4C,0x18,0x0D,0x0B,0x1F,0x23,\
-1,0xE1,0xD0,0x04,0x0C,0x11,0x13,0x2C,0x3F,0x44,0x51,0x2F,0x1F,0x1F,0x20,0x23,\
-1,0x21,\
-1,0x11,\
-1,0x29,\
-2,100,\
-3
modprobe fbtft_device name=flexfb speed=16000000 cs=1 gpios=dc:9
echo
echo "${GREEN}Running bootlocal.sh..."
#pCPstart------
/home/tc/www/cgi-bin/pcp_startup.sh 2>&1 | tee -a /var/log/pcp_boot.log
#pCPstop------
--------------------
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix