Coder Social home page Coder Social logo

simsor / kindle-doom Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 0.0 821 KB

Migrated out of GitHub

Home Page: https://git.sixfoisneuf.fr/kindle-doom/

License: GNU General Public License v2.0

Makefile 1.78% C 1.19% Shell 0.01% C++ 97.01%
doom kindle prboom

kindle-doom's People

Contributors

simsor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kindle-doom's Issues

"Your kindle needs repair" after running ./run.sh manually

Hi,

First of all, great project!

I ran in to a bit of an issue earlier today after running ./run.sh manually and thought it may be worth documenting how I fixed it and maybe providing some script considerations for run.sh to prevent it from happening to anyone else.

I ran run.sh manually today via an ssh session and later ctrl + c'ed the script when I was done running doom. I knew due to the ctrl + c that /etc/init.d/framework start would have never ran, so I invoked that manually too. My kindle then went into a framework restart loop and eventually entered an unclean state where even after subsequent reboots, I was presented with the dreaded "Your kindle needs repair" message.

I still had ssh access though and was able to step through a run of /etc/init.d/framework start to find out that the repair message was being displayed on the back of the contents of /var/local/system/.framework_reboots being >= 2.

I was able to exit the repair screen by removing this file and rebooting, I think setting the contents to a number less than 2 would have also worked.

So as for the script, I have done a bit of debugging and it appears you have windows line endings in run.sh inside your releases (not in the actual repo itself):

#!/bin/sh^M
^M
/etc/init.d/framework stop^M
/usr/bin/lipc-set-prop -- com.lab126.powerd preventScreenSaver 1^M
./prboom -iwad /mnt/us/doom.wad -file /mnt/us/prboom.wad -nosound -nomusic -nosfx -warp 1 1^M
/usr/bin/lipc-set-prop -- com.lab126.powerd preventScreenSaver 0^M
/etc/init.d/framework start     ^M

This causes the last argument of most lines in the script to be invalidated, so in the case of /etc/init.d/framework stop^M, this prevents execution:

+ /etc/init.d/framework stop
system: W framework:def:Usage: /etc/init.d/framework {startx|start|stop|reset|restart|force-reload}

So in my case, the repair issue was actually user error. As I assumed that the framework was in a stopped state and attempted to start it, causing problems. However due to those line endings the only command that actually works in run.sh is probably the ./prboom command at present. So probably worth fixing this.

Cheers,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.