sunfounder / pironman

GNU General Public License v2.0
16 stars 13 forks source link

LED stopp working #1

Open ffdfson opened 1 year ago

ffdfson commented 1 year ago

After a few days, the Leds stopps. `------------------------22/12/28 15:32:01------------------------ pironman version: 1.2.3 username: pi config_file: /home/pi/.config/pironman/config.txt

22/12/28 15:32:01,460 [DEBUG] power_key_pin : 16 22/12/28 15:32:01,460 [DEBUG] fan_pin : 6 22/12/28 15:32:01,461 [DEBUG] rgb_pin : 12 22/12/28 15:32:01,461 [DEBUG] update_frequency : 0.5 22/12/28 15:32:01,461 [DEBUG] temp_unit : C 22/12/28 15:32:01,461 [DEBUG] fan_temp : 50.0 22/12/28 15:32:01,461 [DEBUG] screen_always_on : False 22/12/28 15:32:01,462 [DEBUG] screen_off_time : 60 22/12/28 15:32:01,462 [DEBUG] rgb_switch: True 22/12/28 15:32:01,462 [DEBUG] rgb_blink_speed : 50 22/12/28 15:32:01,462 [DEBUG] rgb_color : 0a1aff 22/12/28 15:32:01,462 [DEBUG]

22/12/28 15:32:01,487 [DEBUG] rgb_show 22/12/28 15:32:01,487 [DEBUG] rgb_show: breath mmap error : Cannot allocate memory 23/01/07 08:18:37,083 [DEBUG] LED display error: ws2811_init failed with code -6 (Unable to map registers into userspace) libgcc_s.so.1 must be installed for pthread_cancel to work

`

ffdfson commented 1 year ago

same problem in Versions 1.2.4 1.2.5 1.2.6 with RGB=off stable for >7 days

Lovmong commented 1 year ago

Thank you for your feedback, we will go test and fix this problem.

Lovmong commented 1 year ago

@ffdfson Sorry, we have been testing for 5 days and still can't reproduce this. It is mentioned in the issues of rpi-ws281x (https://github.com/rpi-ws281x/rpi-ws281x-python/issues/47), replacing Adafruit_NeoPixel with PixelStrip solves the problem. But we tested both writes and both worked well for a long time in work. I've replaced Adafruit_NeoPixel with PixelStrip in the latest code, try it out and let us know if the change works for you. Thank you!

ffdfson commented 1 year ago

Same in Version 1.2.8 Standard Installation RaspiOS lite 64 bit

------------------------23/02/21 21:37:31------------------------ pironman version: 1.2.8 username: pi config_file: /home/pi/.config/pironman/config.txt

23/02/21 21:37:31,555 [DEBUG] power_key_pin : 16 23/02/21 21:37:31,555 [DEBUG] fan_pin : 6 23/02/21 21:37:31,556 [DEBUG] rgb_pin : 12 23/02/21 21:37:31,556 [DEBUG] update_frequency : 0.5 23/02/21 21:37:31,556 [DEBUG] temp_unit : C 23/02/21 21:37:31,556 [DEBUG] fan_temp : 60.0 23/02/21 21:37:31,556 [DEBUG] screen_always_on : False 23/02/21 21:37:31,556 [DEBUG] screen_off_time : 60 23/02/21 21:37:31,556 [DEBUG] rgb_switch: True 23/02/21 21:37:31,556 [DEBUG] rgb_blink_speed : 50 23/02/21 21:37:31,556 [DEBUG] rgb_color : 0a1aff 23/02/21 21:37:31,556 [DEBUG]

23/02/21 21:37:31,578 [DEBUG] rgb_show 23/02/21 21:37:31,581 [DEBUG] rgb_show: breath mmap error : Cannot allocate memory 23/02/23 12:54:41,374 [DEBUG] LED display error: ws2811_init failed with code -6 (Unable to map registers into userspace) libgcc_s.so.1 must be installed for pthread_cancel to work

Lovmong commented 1 year ago

@ffdfson We used the 32-bit raspbian system for testing before, and we will continue to test 32-bit and 64-bit systems in the future. In version 1.3.0, we canceled the reinitialization of rgb lights, you can update the code to see if it works for you. We will also continue to test. Thank you for your support.