Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

octoprint-tft.service keeps restarting #64

Open
danielfmo opened this issue May 2, 2019 · 0 comments
Open

octoprint-tft.service keeps restarting #64

danielfmo opened this issue May 2, 2019 · 0 comments

Comments

@danielfmo
Copy link

Hello,

I can't get octoprint-tft to work on my raspberry pi1 with 256MB RAM, it keeps restarting.
My goal is to setup the octoprint-tft on my raspberry pi1 running hassbian (raspian running home assistant) while I have octoprint running in another device.
I have a raspberry pi 3.5" touch screen that works.

I already followed the README and issue #5 and #13 with the same result.

Here is my output:

journalctl -f -u octoprint-tft.service

May 02 18:38:04 hassbian systemd[1]: Started OctoPrint-TFT.
May 02 18:38:04 hassbian xinit[1154]: X.Org X Server 1.19.2
May 02 18:38:04 hassbian xinit[1154]: Release Date: 2017-03-02
May 02 18:38:04 hassbian xinit[1154]: X Protocol Version 11, Revision 0
May 02 18:38:04 hassbian xinit[1154]: Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
May 02 18:38:04 hassbian xinit[1154]: Current Operating System: Linux hassbian 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l
May 02 18:38:04 hassbian xinit[1154]: Kernel command line: bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=320 bcm2708_fb.fbswap=1 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
May 02 18:38:04 hassbian xinit[1154]: Build Date: 18 October 2017  04:55:30PM
May 02 18:38:04 hassbian xinit[1154]: xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
May 02 18:38:04 hassbian xinit[1154]: Current version of pixman: 0.34.0
May 02 18:38:04 hassbian xinit[1154]:         Before reporting problems, check http://wiki.x.org
May 02 18:38:04 hassbian xinit[1154]:         to make sure that you have the latest version.
May 02 18:38:04 hassbian xinit[1154]: Markers: (--) probed, (**) from config file, (==) default setting,
May 02 18:38:04 hassbian xinit[1154]:         (++) from command line, (!!) notice, (II) informational,
May 02 18:38:04 hassbian xinit[1154]:         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
May 02 18:38:04 hassbian xinit[1154]: (==) Log file: "/var/log/Xorg.1.log", Time: Thu May  2 18:38:04 2019
May 02 18:38:05 hassbian xinit[1154]: (==) Using config directory: "/etc/X11/xorg.conf.d"
May 02 18:38:05 hassbian xinit[1154]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
May 02 18:38:06 hassbian xinit[1154]: /usr/bin/xinit: connection to X server lost
May 02 18:38:06 hassbian xinit[1154]: [1B blob data]
May 02 18:38:06 hassbian xinit[1154]: waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
May 02 18:38:09 hassbian systemd[1]: octoprint-tft.service: Service hold-off time over, scheduling restart.
May 02 18:38:09 hassbian systemd[1]: Stopped OctoPrint-TFT.

/var/log/Xorg.1.log

[   634.601]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[   634.610] X Protocol Version 11, Revision 0
[   634.610] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
[   634.610] Current Operating System: Linux hassbian 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l
[   634.610] Kernel command line: bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=320 bcm2708_fb.fbswap=1 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
[   634.611] Build Date: 18 October 2017  04:55:30PM
[   634.612] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
[   634.612] Current version of pixman: 0.34.0
[   634.612]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   634.612] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   634.614] (==) Log file: "/var/log/Xorg.1.log", Time: Thu May  2 18:37:30 2019
[   634.616] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   634.616] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   634.629] (==) No Layout section.  Using the first Screen section.
[   634.629] (==) No screen section available. Using defaults.
[   634.629] (**) |-->Screen "Default Screen Section" (0)
[   634.629] (**) |   |-->Monitor "<default monitor>"
[   634.631] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   634.632] (==) Automatically adding devices
[   634.632] (==) Automatically enabling devices
[   634.632] (==) Automatically adding GPU devices
[   634.632] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   634.633] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   634.633]    Entry deleted from font path.
[   634.633] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   634.633]    Entry deleted from font path.
[   634.633] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   634.634]    Entry deleted from font path.
[   634.634] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[   634.634]    Entry deleted from font path.
[   634.634] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   634.634]    Entry deleted from font path.
[   634.634] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   634.634]    Entry deleted from font path.
[   634.635] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        built-ins
[   634.635] (==) ModulePath set to "/usr/lib/xorg/modules"
[   634.635] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   634.635] (II) Loader magic: 0x1fbf40
[   634.635] (II) Module ABI versions:
[   634.635]    X.Org ANSI C Emulation: 0.4
[   634.635]    X.Org Video Driver: 23.0
[   634.636]    X.Org XInput driver : 24.1
[   634.636]    X.Org Server Extension : 10.0
[   634.659] (--) using VT number 2

[   634.659] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   634.661] (II) no primary bus or device found
[   634.662] (II) LoadModule: "glx"
[   634.664] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   634.731] (II) Module glx: vendor="X.Org Foundation"
[   634.731]    compiled for 1.19.2, module version = 1.0.0
[   634.732]    ABI class: X.Org Server Extension, version 10.0
[   634.732] (==) Matched modesetting as autoconfigured driver 0
[   634.732] (==) Matched fbdev as autoconfigured driver 1
[   634.732] (==) Assigned the driver to the xf86ConfigLayout
[   634.733] (II) LoadModule: "modesetting"
[   634.734] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   634.736] (II) Module modesetting: vendor="X.Org Foundation"
[   634.736]    compiled for 1.19.2, module version = 1.19.2
[   634.736]    Module class: X.Org Video Driver
[   634.736]    ABI class: X.Org Video Driver, version 23.0
[   634.737] (II) LoadModule: "fbdev"
[   634.738] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   634.739] (II) Module fbdev: vendor="X.Org Foundation"
[   634.744]    compiled for 1.19.0, module version = 0.4.4
[   634.744]    Module class: X.Org Video Driver
[   634.745]    ABI class: X.Org Video Driver, version 23.0
[   634.745] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   634.745] (II) FBDEV: driver for framebuffer: fbdev
[   634.755] (WW) Falling back to old probe method for modesetting
[   634.755] (EE) open /dev/dri/card0: No such file or directory
[   634.756] (WW) Falling back to old probe method for fbdev
[   634.756] (II) Loading sub module "fbdevhw"
[   634.756] (II) LoadModule: "fbdevhw"
[   634.757] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   634.759] (II) Module fbdevhw: vendor="X.Org Foundation"
[   634.759]    compiled for 1.19.2, module version = 0.0.2
[   634.759]    ABI class: X.Org Video Driver, version 23.0
[   634.770] (II) FBDEV(0): using default device
[   634.770] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   634.771] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   634.771] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[   634.771] (==) FBDEV(0): RGB weight 888
[   634.772] (==) FBDEV(0): Default visual is TrueColor
[   634.772] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[   634.772] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 600kB)
[   634.772] (II) FBDEV(0): checking modes against framebuffer device...
[   634.773] (II) FBDEV(0): checking modes against monitor...
[   634.773] (--) FBDEV(0): Virtual size is 480x320 (pitch 480)
[   634.773] (**) FBDEV(0):  Built-in mode "current"
[   634.773] (==) FBDEV(0): DPI set to (96, 96)
[   634.774] (II) Loading sub module "fb"
[   634.774] (II) LoadModule: "fb"
[   634.775] (II) Loading /usr/lib/xorg/modules/libfb.so
[   634.777] (II) Module fb: vendor="X.Org Foundation"
[   634.777]    compiled for 1.19.2, module version = 1.0.0
[   634.777]    ABI class: X.Org ANSI C Emulation, version 0.4
[   634.778] (**) FBDEV(0): using shadow framebuffer
[   634.778] (II) Loading sub module "shadow"
[   634.778] (II) LoadModule: "shadow"
[   634.779] (II) Loading /usr/lib/xorg/modules/libshadow.so
[   634.784] (II) Module shadow: vendor="X.Org Foundation"
[   634.784]    compiled for 1.19.2, module version = 1.1.0
[   634.784]    ABI class: X.Org ANSI C Emulation, version 0.4
[   634.785] (II) UnloadModule: "modesetting"
[   634.785] (II) Unloading modesetting
[   634.785] (==) Depth 24 pixmap format is 32 bpp
[   634.788] (==) FBDEV(0): Backing store enabled
[   634.791] (==) FBDEV(0): DPMS enabled
[   634.792] (==) RandR enabled
[   634.877] (II) SELinux: Disabled on system
[   634.890] (II) AIGLX: Screen 0 is not DRI2 capable
[   634.890] (EE) AIGLX: reverting to software rendering
[   635.739] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[   635.747] (II) IGLX: Loaded and initialized swrast
[   635.747] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   636.336] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event0)
[   636.337] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[   636.337] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[   636.337] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[   636.338] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[   636.338] (II) LoadModule: "evdev"
[   636.339] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[   636.346] (II) Module evdev: vendor="X.Org Foundation"
[   636.346]    compiled for 1.19.0, module version = 2.10.5
[   636.346]    Module class: X.Org XInput Driver
[   636.346]    ABI class: X.Org XInput driver, version 24.1
[   636.347] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
[   636.347] (**) ADS7846 Touchscreen: always reports core events
[   636.347] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event0"
[   636.349] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0
[   636.349] (--) evdev: ADS7846 Touchscreen: Found absolute axes
[   636.349] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
[   636.349] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
[   636.350] (**) Option "SwapAxes" "1"
[   636.350] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
[   636.350] (**) Option "EmulateThirdButton" "1"
[   636.351] (**) Option "EmulateThirdButtonTimeout" "1000"
[   636.351] (**) Option "EmulateThirdButtonMoveThreshold" "300"
[   636.351] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
[   636.352] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   636.352] (**) Option "config_info" "udev:/sys/devices/platform/soc/20204000.spi/spi_master/spi0/spi0.1/input/input0/event0"
[   636.352] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[   636.353] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
[   636.355] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
[   636.356] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
[   636.356] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[   636.356] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[   636.364] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse0)
[   636.364] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[   636.365] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[   636.365] (II) No input driver specified, ignoring this device.
[   636.365] (II) This device may have been added with another device file.
[   636.685] (II) evdev: ADS7846 Touchscreen: Close
[   636.686] (II) UnloadModule: "evdev"
[   636.713] (II) Server terminated successfully (0). Closing log file.

/etc/octoprint-tft-environment

# OctoPrint HTTP address, default http://localhost
OCTOPRINT_HOST=http://192.168.0.201

# OctoPrint-TFT expects an API key to be supplied. This API key can be either
# the globally configured one or a user specific one if “Access Control”.
# http://docs.octoprint.org/en/master/api/general.html
OCTOPRINT_APIKEY=9C8EA2A46E23464D97704F0E1B9C576A

# Location of the OctoPrint's config.yaml file, if OCTOPRINT_APIKEY is empty
# a the gobal API will be read from the config file. If empty the file will
# be search at the `pi` home folder or the current user.
OCTOPRINT_CONFIG_FILE=

# Location of the application theme.
OCTOPRINT_TFT_STYLE_PATH=/opt/octoprint-tft/styles/default/

# Resolution of the application, should be configured to the resolution of your
# screen, for example 800x480. By default 480x320.
OCTOPRINT_TFT_RESOLUTION=

/lib/systemd/system/octoprint-tft.service

[Unit]
Description=OctoPrint-TFT
[email protected]
After=systemd-user-sessions.service [email protected] plymouth-quit.service

[Service]
EnvironmentFile=/etc/octoprint-tft-environment
ExecStart=/usr/bin/xinit /usr/bin/OctoPrint-TFT -- :1 -nolisten tcp -nocursor
StandardOutput=journal
Restart=always
RestartSec=1s
TimeoutStopSec=5s
IgnoreSIGPIPE=no

[Install]
WantedBy=graphical.target
Alias=display-manager.service

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant