You are not logged in.

#1 2021-01-10 10:11:39

Psyonic
Member
Registered: 2019-11-17
Posts: 11

Is run.sh still used to clear the screen?

I'm running the latest build (4239)
After boot into multi-user.target I still have a prompt with flashing cursor, and occasionally the yellow lighting bolt shows up accompanied by the "under-voltage detected" warning in text. (I know, I'm fixing that)
If I run some of the lines from run.sh via redirecting it > tty1, the screen does blank (except for the yellow under-voltage bolt)
All functions of the LCD screen work fine, all images are displayed correctly.

If run.sh is no longer used, how is the screen supposed to be cleared?
If run.sh IS supposed to run, does anyone have any ideas why it might not be?

If I execute run.sh as root manually I get the following errors if it helps:

2021-01-10 20:40:54 initInitialise: Can't lock /var/run/pigpio.pid
Can't initialise pigpio library
setterm: terminal xterm-256color does not support --store
setterm: terminal xterm-256color does not support --blank

Offline

#2 2021-01-11 05:32:32

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Is run.sh still used to clear the screen?

run.sh currently being used. nanodlp.service run it through systemd.

Offline

#3 2021-01-21 07:43:16

Psyonic
Member
Registered: 2019-11-17
Posts: 11

Re: Is run.sh still used to clear the screen?

Thanks @Shahin. Sorry for my late reply.

systemctl status nanodlp returns:

● nanodlp.service - NanoDLP service
   Loaded: loaded (/etc/systemd/system/nanodlp.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-01-21 18:27:26 AEDT; 5min ago
Main PID: 476 (bash)
    Tasks: 18 (limit: 4915)
   CGroup: /system.slice/nanodlp.service
           ├─476 /bin/bash /home/pi/printer/config/run.sh
           ├─480 pigpiod -s 10
           ├─496 /bin/bash /home/pi/printer/config/run.sh
           └─497 ./printer

Jan 21 18:27:26 raspberrypi systemd[1]: Started NanoDLP service.
Jan 21 18:27:26 raspberrypi bash[476]: setterm: $TERM is not defined.
Jan 21 18:27:26 raspberrypi bash[476]: setterm: $TERM is not defined.
Jan 21 18:27:26 raspberrypi bash[476]: setterm: $TERM is not defined.
Jan 21 18:27:26 raspberrypi bash[476]: setterm: $TERM is not defined.
Jan 21 18:27:26 raspberrypi bash[476]: TERM environment variable not set.
Jan 21 18:27:27 raspberrypi sudo[536]:     root : TTY=unknown ; PWD=/home/pi/printer ; USER=root ; COMMAND=/sbin/iwconfig
Jan 21 18:27:27 raspberrypi sudo[536]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 21 18:27:27 raspberrypi sudo[536]: pam_unix(sudo:session): session closed for user root


Looks like #TERM is not defined when it is being run.
Is this normal?? Perhaps nanodlp.service is getting started too early?

Offline

#4 2021-01-21 08:01:32

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Is run.sh still used to clear the screen?

No it is not normal, not sure. What's the OS (or SD image) you are using?

Offline

#5 2021-01-22 10:36:42

Psyonic
Member
Registered: 2019-11-17
Posts: 11

Re: Is run.sh still used to clear the screen?

I tried the latest NanoDLP image (Buster) but I could not get the LCD screen to work. I also tried installing latest RPI OS release (also Buster) but the screen would not work.
So I have reverted to an old image I had using Raspbian GNU/Linux 9.4 (stretch)
I have updated NanoDLP to the latest build (4264)

(I have a new screen as of yesterday, might try Buster again)

Last edited by Psyonic (2021-01-22 23:47:46)

Offline

#6 2021-01-23 19:37:52

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Is run.sh still used to clear the screen?

RPI OS not tested, but should not be difficult to find out difference.
Your display does not work with 4264?

Offline

#7 2021-01-23 22:20:46

Psyonic
Member
Registered: 2019-11-17
Posts: 11

Re: Is run.sh still used to clear the screen?

It does work with 4264, but only when running Stretch, with extensive trying I could not get it to run under Buster.

So, currently I am running Raspbian GNU/Linux 9.4 (stretch) with 4264 installed. Display works, but have error with run.sh

Offline

#8 2021-01-24 08:52:02

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Is run.sh still used to clear the screen?

Check firmware versions on both, maybe upgrading could sortout the issue.
Do you receive any specific error on buster?

Having error on run.sh is fine as long as your terminal is correctly blackedout. Those commands just remove cursor and make sure everything is black on BCM (default display engine) does not need them but for the framebuffer I guess you would need it.

Offline

#9 2021-01-26 05:49:45

Psyonic
Member
Registered: 2019-11-17
Posts: 11

Re: Is run.sh still used to clear the screen?

The firmware on the Buster install is Dec 15 2020
The one in the Stretch build is much older, Aug 15 2019

I have been also trying to get the new screen working in the iso from your website, which runs Buster (as I'm sure you know), I can't find any specific error in dmesg, but I will note that even in this build I get the "setterm: $TERM is not defined." error in the boot logs.

pi@nanodlp:~ $ sudo systemctl status nanodlp
● nanodlp.service - NanoDLP service
   Loaded: loaded (/etc/systemd/system/nanodlp.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-01-26 16:40:41 AEDT; 2min 17s ago
Main PID: 407 (bash)
    Tasks: 14 (limit: 1789)
   CGroup: /system.slice/nanodlp.service
           ├─407 /bin/bash /home/pi/printer/config/run.sh
           ├─446 /bin/bash /home/pi/printer/config/run.sh
           └─448 ./printer

Jan 26 16:40:41 nanodlp systemd[1]: Started NanoDLP service.
Jan 26 16:40:41 nanodlp bash[407]: /home/pi/printer/config/run.sh: line 5: pigpiod: command not found
Jan 26 16:40:41 nanodlp bash[407]: setterm: $TERM is not defined.
Jan 26 16:40:41 nanodlp bash[407]: setterm: $TERM is not defined.
Jan 26 16:40:41 nanodlp bash[407]: setterm: $TERM is not defined.
Jan 26 16:40:41 nanodlp bash[407]: setterm: $TERM is not defined.
Jan 26 16:40:42 nanodlp bash[407]: TERM environment variable not set.
Jan 26 16:40:43 nanodlp sudo[533]:     root : TTY=unknown ; PWD=/home/pi/printer ; USER=root ; COMMAND=/sbin/iwconfig
Jan 26 16:40:43 nanodlp sudo[533]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 26 16:40:43 nanodlp sudo[533]: pam_unix(sudo:session): session closed for user root

Offline

#10 2021-01-26 08:14:16

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Is run.sh still used to clear the screen?

It is ok to have error, there multiple commands for different os version some will not work.

Offline

#11 2021-01-26 12:25:59

Psyonic
Member
Registered: 2019-11-17
Posts: 11

Re: Is run.sh still used to clear the screen?

@Shahin Thanks for your time and help!

Offline

Board footer

Powered by FluxBB