-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
openvfd LED display driver #143
Comments
Thank you very much for your sharing, can you introduce the usage method and applicable kernel, equipment and other information? Which dtb file did you use, need to add anything inside the dtb? |
I have tested openvfd under both Linux 5.10 and 5.15 on my Tanix-TX6. Under Awawa's armbian fork, all the user has to do is start the https://github.com/arthur-liberman/vfd-configurations I would just grep awawas repo for
|
Tested by Can you provide a more detailed integration instructions? Need a complete code, including the core layer and the application layer. |
Thanks for trying to get this working ophub, I know its not easy. Both CoreELEC and awawa's Armbian fork use a systemd service to start openvfd but thats not included in the main repo, as you've noticed. I'm sure you could borrow the service code from either of those projects but its also got its own repo here: https://github.com/arthur-liberman/service.openvfd There are some general (but maybe outdated) docs for openvfd here: https://github.com/LibreELEC/linux_openvfd I would also refer you to the last comment on this page, , where a gh user describes how they got openvfd working for their X96 Max+: |
flippy has been added. you try. The kernel has been added and can be successfully compiled, as you said, maybe the config needs further debugging. Light up hope, light up the future. |
This is totally unrelated to openvfd @EastWoodYang If you are having problems with lightdm you can install lxdm instead. |
@ophub To try this one, just run armbian-update to update the latest kernel version, right? |
Although it is included in the kernel, the control method has not yet been found, and the flippy boss is constantly debugging |
I just updated to kernel 5.4.184 and reboot but there is no any clock or LED. Beside that, if flippy could support the API/command to customize the LED (for example, show the wifi signal, kernel version et..), that's much great. |
Debugging, it will take some time |
Are you going to update the README with instructions on how to use openvfd? |
According to the script and instructions released by flippy, I added it to armbian, welcome to test feedback and share more configuration. Your share has been recorded in the contributor list: |
Great work @ophub ! I will test soon. Thanks! |
On It mentions |
This file was not included in the system before the release of this function. |
Hello, So I recently installed the latest build of the armbian with the latest kernel that is available here on my HK1 S905x3 box. Everything is working great. These Tv Boxes bring Raspberry Pi devices to shame. Now the main issue I am having is with the VFD. I tried the armbian-led with correct config selected and LED Panel lids off with time and alarm, USB, play and pause indicator, but I am not getting WiFi and LAN indicator , which it should do. Is there anything missing in the current config file that is causing this? Because in here arthur-liberman/linux_openvfd#12 (comment) , WiFi and LAN indicator is showing. |
amlogic-s9xxx-armbian/build-armbian/common-files/rootfs/usr/share/openvfd/conf/hk1box.conf Line 38 in 10fe1a1
|
Yes, those are there in the config file, as I haven't changed anything from it. Is there something else we have to do to bring LAN and WiFi indicators? |
functions='alarm wifi eth pause play usb apps setup sd hdmi cvbs' Note: Some displays have indicators 1 - 6, and others 6 - 11. There is no overlap, and you can't trigger an indicator that does not exist on your display type. |
Not all can be used, each device can only use the display supported by its own LED panel. For example, my TX3 only has time, no other icons, and his LED panel does not support display. |
Please post your modified available options, I will update this configuration. Upload your modified file, and I will update the configuration file in the warehouse. |
|
Is your file hk1-x3.conf? |
Yes |
Updated, future firmware will use this default config. |
I don't quite know where to post this, but for my Tanix TX3-mini s905w (version A, manufactured by Oranth) the following works to get vfd working: (1) Update the dtb by adding the openvfd{} stub as described e.g. by @danboid above.
(3) Then use the command (4) To also get a ugly-hacky openvfd service running I'm also using this script (e.g. started in background from rc.local)
Someone with actual programming skillz can perhaps make this proper. Finally, many thanks to ophub+family for the great work! Edit: Two words. |
Here are some configuration files that passed the test.
I then add a What is the name of the dtb you are using?(use |
Yes, I was using meson-gxl-s905w-tx3-mini.dtb for kernel 5.4.y but I don't remember the y-number (the box isn't running right now). Edit: The kernel version is 5.4.187 |
You take a photo of the tx3-mini lighting up the led and share the final effect with everyone. thanks I have added the configuration, and then added it in the kernel. You use your own dtb file first. |
It has also been added to the kernel, and subsequent kernel packages will have this function. |
This is actually what the LED lights should do. If it is not much, can anyone make a proper edit to the armbian-led bash script, so that the LED indicators of WiFi and ETH reacts based on their current status on the box. |
Sorry it took me so long to getting round to testing this but I have now done a fresh install of Armbian_22.05.0_Aml_s905x3_focal_5.15.32_2022.04.03.1949.img on my X96 Air Q1000 (but using the X96 Max Plus dtb because the X96 Air dtb doesn't work for me) and I can confirm armbian-led presets 11, 12 and 13 all work for me. My rhymes are on time like the hands of a clock! Thanks @ophub and @dinhchinh82 ! |
good |
I have written a c-program to monitor certain system resources (eth0, wlan0, usb, temp) and to turn on/off the icons on the VFD accordingly on a TVbox (such as the TX3-mini). The code can be found here: tvbox-mon. It uses the OpenVFD interface and can be run as a systemd service. (The program tvbox-mon is probably overly complicated and I think it would be good if someone could also code a more complete bash script than the one suggested above by @moarmarmalade since a bash script is transparent, portable and easily edited, and a bash script would certainly suffice for this job.) P.S. I used the handle @moarmarmalade when I posted before/above. |
Hi @tri-pole ! I was thinking of trying to replicate your tv-box led with a bash script but I don't have the time for that right now so I'm glad you've given us a C version. I've just tried it on my X96 Air Q1000. It built fine but I've not got it to work. I have got openvfd working, I think. The clock shows the correct time and all the other LEDs (HD, CVBS. APPS, SETUP and CARD) are all constantly lit so maybe its not 100% correctly configured yet? All of the other armbian led settings I've tried so far behaved the same but I've not played with armbian led much yet. I am currently using armbian led preset 11. Does you app co-exist nicely with armbian-led? I would like to use your app to show network activity by blinking one or all of the non-time LEDs so I ran the command ./tvbox-mon -c n Then I logged in again (it felt better than backgrounding it) and used wget to download an iso but there was no blinking of my LEDs. So, what can I expect to blink? Can I use your app to only blink one of the specific LEDs? What does it default to blinking if not all of the non-time LEDs? |
Yes, the script Every box (display) has its own distinct set of available icons (you can see the ones for TX3 in the def.h file in the
Try things like this until you have definitely identified the correct names (as used inside OpenVFD) for the icons on you particular display. The program Since it appears that you have neither of these icons (usb, eth, wifi) I'm not sure if the program If you are willing to re-assign some of your existing exons to the tasks of showing usb, eth, wifi or temp (alarm) then have a look at the struct Finally, I invite everyone to fork the code and add functionality for other boxes than the TX3 that I wrote the code for; there seems to exist a large number of different displays with different icons and corresponding monitoring functions that could be desirable. |
Thanks for your comprehensive response @tri-pole! You're right in saying your app doesn't do what I want or rather I got the wrong idea about what the -n switch might do. |
The script works like a charm on a HK1 X3. Thanks so much!
The binary compiles and works perfectly but for some reason the running service uses 100% of one CPU core |
@fran6120 Perhaps you can try and run the program from command line and see if the problem persists (to separate out any systemd related problems)? |
On a fresh Armbian installation, your tvbox-mon works perfectly, only, a few times systemd service is degraded on boot but "systemctl reset-failed" restarts the service well. Maybe increasing the Is there a way to set the screen brightness? In that case, in the future, if you want, could you add a night mode by setting a low brightness in a certain period of time? For example, between 00:00 and 7:00, or configurable time slot. The last is just a suggestion, I am already very thankful for this tool. Thank you! |
Thank you for your feedback. (I will keep the tip about "systemctl reset-failed" for handling systemd serives in general.) Unfortunately, I don't know of any (direct) way of changing the brightness when using the openvfd interface to control the VFD/LEDs. I have been bothered by this too; I think the default brightness is too low. (For the old 4.x kernel series there were codes floating around to control the VFD/LEds via direct gpio bit banging; it required a modified dtb, a kernel module and a service. I used this on my TX3 (it is written about in some old Armbian thread) but unfortunately it was not easy to port to the 5.x series of kernels (or newer), if I recall correctly.) |
it is a pity... anyway thank you very much! |
I have successfully installed your fork of Armbian on my X96 Air (using the X96 Max+ dtb) but I would like the clock to be working and it doesn't look like you currently include openvfd, which would be useful for those with LED displays like me.
https://github.com/arthur-liberman/linux_openvfd
I use another fork of Armbian for my TX6 TV boxes and that has already integrated openvfd so you could borrow the openvfd patches from that, if you agree to adding openvfd support:
https://github.com/awawa-dev/build
Keep up the great work!
Thanks
The text was updated successfully, but these errors were encountered: