Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tanix TX3 Mini VFD #871

Closed
r0bb10 opened this issue Dec 28, 2022 · 7 comments
Closed

Tanix TX3 Mini VFD #871

r0bb10 opened this issue Dec 28, 2022 · 7 comments

Comments

@r0bb10
Copy link

r0bb10 commented Dec 28, 2022

Device Information | 设备信息

  • SOC: s905w
  • Model: Tanix TX3 Mini 2g/16gb (ssv6051 variant)

Armbian Version | 系统版本

  • Kernel Version: 6.1.1
  • Release: Debian Bullseye Server 12.28.0249

Describe the bug | 问题描述
I'm testing the latest 6.1.1 build on my s905w, after flashing i tested armbian-led command but it was not working even selecting the correct version (18 for tx3 mini).. i then changed the DTB with one i made some time ago for an old balbes armbian build (can be found here https://github.com/r0bb10/openvfd_enable_for_tx3_mini) and now the armbian-led works and the vfd is functional, the only thing needed is to replace the dtb in the /boot/dtb/amlogic folder and reboot.

Problem is that ambian-led-state.service is not starting at boot, log

r88t@klipper:~$ sudo systemctl status armbian-led-state.service
● armbian-led-state.service - Armbian leds state
     Loaded: loaded (/lib/systemd/system/armbian-led-state.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-12-28 13:53:02 CET; 3s ago
    Process: 1958 ExecStart=/usr/lib/armbian/armbian-led-state-restore.sh (code=exited, status=1/FAILURE)
   Main PID: 1958 (code=exited, status=1/FAILURE)
        CPU: 33ms

Dec 28 13:53:02 klipper systemd[1]: Starting Armbian leds state...
Dec 28 13:53:02 klipper armbian-led-state-restore.sh[1958]: Invalid state file, syntax error in configuration file
Dec 28 13:53:02 klipper systemd[1]: armbian-led-state.service: Main process exited, code=exited, status=1/FAILURE
Dec 28 13:53:02 klipper systemd[1]: armbian-led-state.service: Failed with result 'exit-code'.
Dec 28 13:53:02 klipper systemd[1]: Failed to start Armbian leds state.

After reboot issuing armbian-led will correctly turns on the VFD.

        ┌────────[ Enable LED ]─────────┐
        │                               │
        │    11. x96max (s905x2)        │
        │    12. x96maxplus (s905x3)    │
        │    13. x96air (s905x3)        │
        │    14. h96max-x3 (s905x3)     │
        │    15. hk1-x3 (s905x3)        │
        │    16. hk1box (s905x3)        │
        │    17. tx3 (s905x3)           │
        │    18. tx3-mini (s905w)       │
        │    19. t95 (s905x)            │
        │    20. t95z-plus (s912)       │
        │    21. tx9-pro (s912)         │
        │    22. x92 (s912)             │
        │    99. diy                    │
        │                               │
        ├──────[ Other Operations ]─────┤
        │                               │
        │    -u. update                 │
        │     0. stop                   │
        │     1. quit                   │
        │                               │
        └───────────────────────────────┘

[ OPTIONS ] Please Input ID: 18
[ STEPS ] Start the led screen display...
[ INFO ] Using LED Profiles: /usr/share/openvfd/conf/tx3-mini.conf
[ INFO ] turn led usb on ...
[ INFO ] turn led colon on ...
[ INFO ] turn led eth on ...
[ INFO ] turn led wifi on ...
[ SUCCESS ] Enable LED display!

Could be something related to the service?

@ophub
Copy link
Owner

ophub commented Dec 28, 2022

You don't need additional services, this is added in the kernel.
armbian-led 18 can enable led display.

Which config file are you using?

https://github.com/r0bb10/openvfd_enable_for_tx3_mini/blob/45a7a81d7e5c979499ab1510fa57d9c6aea13da2/vfd.conf#L29

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-files/platform-files/amlogic/rootfs/usr/share/openvfd/conf/tx3-mini.conf

https://github.com/unifreq/linux-5.15.y/blob/main/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts#L128

I don't understand what your question means. You mean that after replacing it with your dtb, it can now be displayed using armbian-led 18?

@r0bb10
Copy link
Author

r0bb10 commented Dec 28, 2022

yes but if i use the /boot/dtb/amlogic/meson-gxl-s905w-tx3-mini.dtb provided in your build it gives me this:

r88t@klipper:~$ sudo armbian-led 18
[ STEPS ] Start the led screen display...
[ INFO ] Using LED Profiles: /usr/share/openvfd/conf/tx3-mini.conf
[ INFO ] turn led usb on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ INFO ] turn led colon on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ INFO ] turn led eth on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ INFO ] turn led wifi on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ SUCCESS ] Enable LED display!
Open device failed.
: No such file or directory

if i overwrite the dtb with mine it it works

r88t@klipper:~$ sudo armbian-led 18
[ STEPS ] Start the led screen display...
[ INFO ] Using LED Profiles: /usr/share/openvfd/conf/tx3-mini.conf
[ INFO ] turn led usb on ...
[ INFO ] turn led colon on ...
[ INFO ] turn led eth on ...
[ INFO ] turn led wifi on ...
[ SUCCESS ] Enable LED display!

image

but the service still does not work:

r88t@klipper:~$ sudo armbian-led 18
[ STEPS ] Start the led screen display...
[ INFO ] Using LED Profiles: /usr/share/openvfd/conf/tx3-mini.conf
[ INFO ] turn led usb on ...
[ INFO ] turn led colon on ...
[ INFO ] turn led eth on ...
[ INFO ] turn led wifi on ...
[ SUCCESS ] Enable LED display!
r88t@klipper:~$ sudo systemctl status armbian-led-state.service
● armbian-led-state.service - Armbian leds state
    Loaded: loaded (/lib/systemd/system/armbian-led-state.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2022-12-28 15:49:38 CET; 2min 27s ago
   Process: 539 ExecStart=/usr/lib/armbian/armbian-led-state-restore.sh (code=exited, status=1/FAILURE)
  Main PID: 539 (code=exited, status=1/FAILURE)
       CPU: 33ms

Dec 28 15:49:41 klipper armbian-led-state-restore.sh[539]: warning: /sys/class/leds/openvfd/trigger could not be restored
Dec 28 15:49:41 klipper armbian-led-state-restore.sh[539]: Invalid state file, syntax error in configuration file
Warning: journal has been rotated since unit was started, output may be incomplete.

@r0bb10
Copy link
Author

r0bb10 commented Dec 28, 2022

Which config file are you using?

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-files/platform-files/amlogic/rootfs/usr/share/openvfd/conf/tx3-mini.conf

this one, the stock from your build, i only changed the dtb file.

@ophub
Copy link
Owner

ophub commented Dec 28, 2022

I found the earliest tester feedback post, which is a little different from the current one, please modify it here. Try using the original dtb of my firmware.

#143 (comment)

vfd_dot_bits='0,1,2,3,4,5,6'

@r0bb10
Copy link
Author

r0bb10 commented Dec 28, 2022

i made the change in tx3-mini.conf and i'm using your dtb, now on boot the display turn off (no "boot" message on the vfd), if i try to use armbian-led 18 it still does not work:

r88t@klipper:~$ sudo armbian-led 18
[sudo] password for r88t:
[ STEPS ] Start the led screen display...
[ INFO ] Using LED Profiles: /usr/share/openvfd/conf/tx3-mini.conf
[ INFO ] turn led usb on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ INFO ] turn led colon on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ INFO ] turn led eth on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ INFO ] turn led wifi on ...
/usr/sbin/armbian-led: line 105: /sys/class/leds/openvfd/led_on: No such file or directory
[ SUCCESS ] Enable LED display!
Open device failed.
: No such file or directory

it works again going back to my dtb.

@ophub
Copy link
Owner

ophub commented Dec 29, 2022

In the test feedback post sent to you above, he posted a photo of the box lighting up the LEDs, your box is different from his?

@r0bb10
Copy link
Author

r0bb10 commented Dec 29, 2022

In the test feedback post sent to you above, he posted a photo of the box lighting up the LEDs, your box is different from his?

#143 (comment)

same as this one posted here physically, labelled Tanix TX3 MiniA.

@ophub ophub closed this as completed Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants