OpenframeProject / Openframe

Openframe Frame Controller (alpha)
GNU General Public License v3.0
314 stars 18 forks source link

openframe won't start. Terminal being blacked out. #27

Closed killa-kyle closed 5 years ago

killa-kyle commented 7 years ago

I'm on a fresh install of Raspbian Jessie on a RPi3. Once I install open frame I get these three errors on startup:

manpath: can't set the locale; make sure $LC_* and $LANG are correct openfsetterm: terminal xterm-256color does not support --blank setterm: cannot (un)set powersave mode: Inappropriate ioctl for device

and then the terminal is blacked out. nothing (that I can see) happens when I type the 'openframe' command

screenshot 2016-12-13 09 13 32

Someone else is having the same problem it looks like

jmwohl commented 7 years ago

It seems like you might be trying to launch openframe from xterm within the desktop environment? If so, please exit the desktop environment and run openframe directly from the terminal. Besides potential issues like these, the desktop environment consumes resources which are of precious value on these tiny computers.

On Tue, Dec 13, 2016 at 8:02 AM, Kyle notifications@github.com wrote:

I'm on a fresh install of Raspbian Jessie on a RPi3. Once I install open frame I get these three errors on startup:

manpath: can't set the locale; make sure $LC_* and $LANG are correct openfsetterm: terminal xterm-256color does not support --blank setterm: cannot (un)set powersave mode: Inappropriate ioctl for device

and then the terminal is blacked out. nothing (that I can see) happens when I type the 'openframe' command

Someone else is having the same problem it looks like http://raspberrypi.stackexchange.com/questions/48094/setterm-terminal-xterm-256color-does-not-support-blank

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OpenframeProject/Openframe/issues/27, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQPf_sD78WxjbjgXI88n9ngAh_xVyH6ks5rHqVlgaJpZM4LLw3h .

-- +++ 608-772-9645 jonathanwohl.com @jonwohl

killa-kyle commented 7 years ago

That screen shot is me sshed into the pi. The desktop environment launches even though I chose to run openframe on boot and the pi is also ignoring holding the "N" key down on boot. I'll look into disabling the Linux desktop

jmwohl commented 7 years ago

Ok — if you run sudo raspi-config from xterm, there is a setting in there to boot to the terminal rather than to the desktop env.

On Tue, Dec 13, 2016 at 8:37 AM, Kyle notifications@github.com wrote:

That screen shot is me sshed into the pi. The desktop environment launches even though I chose to run openframe on boot and the pi is also ignoring holding the "N" key down on boot. I'll look into disabling the Linux desktop

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenframeProject/Openframe/issues/27#issuecomment-266754341, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQPfwMXDjiiEkfSl-5NDlnIGIf1AZKMks5rHq2MgaJpZM4LLw3h .

-- +++ 608-772-9645 jonathanwohl.com @jonwohl

jejip commented 6 years ago

I have the same problem, which makes the raspberry uncontrollable either through ssl or when connecting a keyboard. It always boots into terminal, so it's not related to that. Might it be related to the setterm command in openframe's autoboot.sh?

The strange thing is, even when I exit openframe on the Pi (ctl+c), the terminal is still blacked out. I can start up the GUI, but when I open up the terminal, openframe will automatically start. Similarly, when I SSH into the Pi, openframe will autostart too.

Pressing 'n' during startup doesn't work either, openframe always starts whenever the terminal opens.

Any idea how to stop openframe from always starting and messing with the setterm commands to hide the terminal?

jvolker commented 5 years ago

@killa-kyle: I solved this problem and described it in the forum: https://groups.google.com/d/msg/openframeio/X1BapUmEchs/QPE9UUzjAgAJ

I've been able to fix the SSH login issue by disabling Openframe autostart. This can be done by resetting the frame via openframe -r or commenting out the following line in ~/.bashrc: source ~/.openframe/autoboot.sh

It seems like those setterm errors have nothing to do with this being unable to login via SSH. Instead, it seems like the Openframe starting routine (including setterm --foreground black --background black --cursor off --clear all) is initiated every time you login via SSH.

On the hand commenting out setterm -powersave off -blank 0 in ~/.bashrc removes those setterm errors but I'm not sure if they caused any problem anyway.

We should add a note to the developer docs.

jvolker commented 5 years ago

@jejip Both, disabling autostart as described above, as well as pressing 'n' as soon as the welcome screen appeared worked for me. Hope this helps.

ericfriedman commented 3 years ago

What if you cannot run terminal commands because it just hangs after the

terminal stopped working raspberry pi setterm: terminal xterm-256color does not support --blank openframe

message?