Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: autostart oled display failure..
#9
been there done that ..and following all the guides this is what happens...Sad

Defining the interpreter as /usr/bin/python and making the script executable will allow you just run the script on it own.
Just insert...
Code:
Code:
#!/usr/bin/python
... as the first line of the monitor.py script and make the file executable.

Then you can run the script either as pi or root with...
Code:
Code:
/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py
pi@moode:~ $ /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py
Traceback (most recent call last):
  File "/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py", line 104, in <module>
    font = ImageFont.truetype('Montserrat-Light.ttf', 12)
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 280, in truetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 145, in __init__
    layout_engine=layout_engine)
IOError: cannot open resource

If like you say the working directory needs to be script's location for the script to work you can do...
Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &

reboot and same as always...blank screen

I know there is something that should work but it's driving me bananas.... nothing does...why ??

Ok tried all your suggested fixes but nothing changes... always reboots to frozen or blank screen.....
I did research and experiment as fully as I could before posting here but this has me banging my head on the desk until it hurts...
always no matter what I try it does not work or give any useful output... Sad

so I individually added and rebooted each fix then added every fix and rebooted and no change from the initial problem...
thanks for the suggestions and help Smile
cheers,
Bob
----------
bob
Reply


Messages In This Thread
autostart oled display failure.. - by DRONE7 - 12-27-2019, 11:54 PM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 03:20 AM
RE: autostart oled display failure.. - by vinnn - 12-28-2019, 11:47 AM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 04:57 PM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 03:59 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 06:10 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 06:56 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 08:03 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:26 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:57 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 09:39 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:02 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:30 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:44 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:53 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:11 PM
RE: autostart oled display failure.. - by DRONE7 - 12-31-2019, 03:24 AM

Forum Jump: