OK - wasn't sure how much variety there would be in config.txt, but how about
Strip any white space from the line (in case there's spaces between spi and =) then look for spi=, then check if that line also contains dtparam. No doubt there's a cleaner way to do this, but I'm no bash expert.Code:# Does config.txt already contain spi while read line; do cleanline=$(echo $line | sed 's/[[:space:]]*//g') echo $cleanline | grep -q spi= if [ $? -eq 0 ]; then echo $cleanline | grep -q dtparam if [ $? -eq 0 ]; then spi=$(echo $line) fi fi done < /mnt/mmcblk0p1/config.txt
Results 11 to 20 of 42
Thread: Track Info etc. on OLED for PCP
-
2022-06-30, 10:20 #11
- Join Date
- Jun 2012
- Posts
- 478
-
2022-06-30, 10:43 #12
lol. I know the feeling there. Sometimes I wish we had written the interface in micropython.
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2022-06-30, 14:55 #13
piCore did not have micropython by default in the beginning.
-
2022-07-01, 05:04 #14
- Join Date
- Jun 2012
- Posts
- 478
-
2022-07-01, 05:05 #15
- Join Date
- Jun 2012
- Posts
- 478
OK - I've updated the setup to check for spi in the dtparam line, and add it if it's missing. I've posted the new version to github now.
-
2022-07-01, 05:06 #16
- Join Date
- Jun 2012
- Posts
- 478
-
2022-07-01, 07:44 #17
- Join Date
- Dec 2021
- Posts
- 13
Hi Pete, I do not use for now, but for testing purpose I will.
I give feedback asap.
-
2022-07-01, 07:56 #18
- Join Date
- Jun 2012
- Posts
- 478
Thanks. I got my lat,long from https://www.latlong.net/
-
2022-07-01, 13:30 #19piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2022-07-01, 13:40 #20
- Join Date
- Dec 2021
- Posts
- 13
I have a new problem. I did some tests and when screensaver starts, the screen is black and do not come on when start play.
This is the case with Jivelite and remote by keytable.
I did uninstall ir and everything goes normal.
When activate log, I see
Code:INFO 2022-07-01 22:28:20,895 - Device Dimensions : 256*64 INFO 2022-07-01 22:28:21,744 - Default Gateway Interface: eth0 INFO 2022-07-01 22:28:21,744 - Non WiFi WiFi Network Detected INFO 2022-07-01 22:28:23,905 - Player IP: 192.168.1.157 INFO 2022-07-01 22:28:23,905 - Discovering LMS IP INFO 2022-07-01 22:28:23,906 - Local LMS Detected INFO 2022-07-01 22:28:23,906 - LMS IP: 127.0.0.1 INFO 2022-07-01 22:28:23,907 - Player MAC: dc:a6:32:0c:3e:10 INFO 2022-07-01 22:28:24,935 - Subscription Connection Created INFO 2022-07-01 22:28:24,947 - LMS Version: 8.2.0 INFO 2022-07-01 22:28:24,959 - Player Name: piCorePlayer INFO 2022-07-01 22:28:24,974 - Player State: stop CRITICAL 2022-07-01 22:49:02,307 - (<class 'TimeoutError'>, 'oled4pcp_4.py', 758)
Code:[ 2874.092924] rc rc0: IR event FIFO is full!
Code:tc@pCP:~$ lsmod | grep "ir" ir_nec_decoder 16384 0 ir_rc6_decoder 16384 0 gpio_ir_recv 16384 0