Go to advanced search

by grininmonkey
Sun Aug 11, 2019 1:46 pm
Forum: C/C++
Topic: GTK g_timeout_add - issues
Replies: 5
Views: 2077

Re: GTK g_timeout_add - issues

I may have it figured it out.... out of curiosity I moved the g_timeout_add call outside of the draw area's draw event/signal path and created an independent call-itself func... which now seems to work on the Pi .. and PC equally. So now... widget [X] button release : void event_box_vault_tec_button...
by grininmonkey
Sun Aug 11, 2019 2:18 am
Forum: C/C++
Topic: GTK g_timeout_add - issues
Replies: 5
Views: 2077

Re: GTK g_timeout_add - issues

What it does on PC...

Image

What it does on Pi

Image
by grininmonkey
Sun Aug 11, 2019 1:05 am
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

Quick update... Initially I thought things where good as I was getting no unexpected behavior and everything seemed to work when developing and running on my PC with just using g_idle_add within a thread... however, when running on the raspberry... it would "work" but peg a core and maintain 100% ut...
by grininmonkey
Sat Aug 10, 2019 11:12 pm
Forum: C/C++
Topic: GTK g_timeout_add - issues
Replies: 5
Views: 2077

Re: GTK g_timeout_add - issues

I am re-using the approach I did for my framebuffer version of this application, where the animation frames reside within a tempfs with a specific file structure... within the program I just maintain a list of animations and the list of frame/files for it. example of an animation folder contents ~/D...
by grininmonkey
Sat Aug 10, 2019 5:20 pm
Forum: C/C++
Topic: GTK g_timeout_add - issues
Replies: 5
Views: 2077

GTK g_timeout_add - issues

So I have a draw area's draw signal hooked to the following draw_animation func.. with some flags etc before calling "draw_animation" .... ... gboolean queue_draw( gpointer data ) { gtk_widget_queue_draw( draw_area_info ); return FALSE; } int draw_animation( cairo_t *cr, int id ) { animation_frame_t...
by grininmonkey
Thu Aug 08, 2019 8:57 pm
Forum: General programming discussion
Topic: Boot to Application
Replies: 31
Views: 2869

Re: Boot to Application

May have miss read last bit there.... but I have deployed mosquitto in my cluster/network, found that approach to work great for all my Pi's and services to communicate whatever between them... with one subscriber logging everything to a DB. But Yall might be talking about something a bit more fancy ?
by grininmonkey
Thu Aug 08, 2019 2:44 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

If I have read some stuff correctly.... i can call g_idle_add within any thread which is not the main gtk loop/thread and whatever function is passed will be executed within the main loop... But I may have read it wrong... so I updated my notify call back func and my timer thread/func .... to see ho...
by grininmonkey
Thu Aug 08, 2019 1:19 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

I wondering if its all related to the fact I am spinning up two pthreads.... and not using Gtask or g_timeout/idle_add for those activities? Im trying to read up and understand how to use those atm..... still not clear on how to use them... I need a continuous background process that can safely upda...
by grininmonkey
Thu Aug 08, 2019 11:12 am
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

I ran gdb twice now, capturing the same result.... so when running on the Pi the longest time the application will stay running is almost two hours. I still have it running on my PC without issue getting close to 48 hours now... but there is one slight difference... sorta ( more of frequency of file...
by grininmonkey
Wed Aug 07, 2019 9:06 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

I did find the issue.... with my weather icon.... its "resource" path var was not being set properly. Its the only image which is dynamic. But now.. after some further testing with the GTK version of my frame buffer thermostat UI.... I now have another issue which I am not sure on how to debug.. Ess...
by grininmonkey
Tue Aug 06, 2019 7:57 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

Ok.. Scratch that... I should have tried before replying.... So it seems that the image paths must be relative to where the glade file is.... because when I specify exact full path... I get no/missing circles and new errors... but change it back to relative (of where the glade file is) it works... b...
by grininmonkey
Tue Aug 06, 2019 7:48 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

the files are correct.... but ...... < insert slap my face emoji > I used the Glade GUI to construct the glade file... and set the images via the ui... and honestly didn't look too deep at the output ;-) <object class="GtkEventBox" id="event_box_nav_up"> <property name="width_request">75</property> ...
by grininmonkey
Tue Aug 06, 2019 7:02 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

well.... the project contains several files... but the approach I took was.... glade xml to define the UI/widgets and placement, gtk css file to set window background image etc.. and main.c simply inits it all... my other objects (c files) is all logic/file operations etc... using signals to set a c...
by grininmonkey
Tue Aug 06, 2019 4:17 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

Re: launching GTK+ application issue

well.... more than just "you can ignore errors"... I have several draw areas and none of them work if I am not in the directory in which the binary exists when executing the binary.... if I am in any other path.. and directly reference the binary via full path I get the following (robco_thermostat_u...
by grininmonkey
Tue Aug 06, 2019 3:59 pm
Forum: C/C++
Topic: launching GTK+ application issue
Replies: 16
Views: 2582

launching GTK+ application issue

I started work on a GTK+ application... have it almost complete and have been testing while developing via... compiling... then changing dirs to location of the binary and just ./execute_name_of_bin .... But then I started testing for its intended purpose as being a full screen app launched via auto...
by grininmonkey
Tue Jul 09, 2019 11:02 am
Forum: General discussion
Topic: dnsmasq "Buster?" on boot failure
Replies: 2
Views: 194

Re: dnsmasq "Buster?" on boot failure

Simple. Don’t bind-interfaces. If you know what that does and you need it, use bind-dynamic. Search the forums before posting. Nothing specific to Buster here. Nice!!!!.... that was it! I didn't look up what bind-interfaces was specifically because one guide I was following https://www.foresterit.c...
by grininmonkey
Mon Jul 08, 2019 11:18 pm
Forum: General discussion
Topic: dnsmasq "Buster?" on boot failure
Replies: 2
Views: 194

dnsmasq "Buster?" on boot failure

I have dnsmasq setup and running fine... passing --test etc... on a fresh pi running latest buster Raspian... However, on a power cycle, dnsmasq complains and fails on binding to interface... on startup dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server Loaded: loaded (/lib/system...
by grininmonkey
Thu Feb 21, 2019 5:09 pm
Forum: General discussion
Topic: Strange Multiple AM2302/DHT22 Issue
Replies: 7
Views: 320

Re: Strange Multiple AM2302/DHT22 Issue

Very strange thing.... well, maybe strange.... I re-wired the power wire for each of the AM2302s to gpio pins and adjusted my code to detect the age of value output files and if greater than 2 minutes.... cycle the gpio pin (power) for respective sensor... that action is also set to publish a MQTT m...
by grininmonkey
Tue Feb 19, 2019 9:32 pm
Forum: General discussion
Topic: Strange Multiple AM2302/DHT22 Issue
Replies: 7
Views: 320

Re: Strange Multiple AM2302/DHT22 Issue

This is my first experience with any DHT22 sensor..... using the AM2302 ....

So DHT22's are sorta known to hang? If so then I guess what I am experiencing would be kind of expected and should wire their power to a gpio pin.
by grininmonkey
Tue Feb 19, 2019 7:48 pm
Forum: General discussion
Topic: Strange Multiple AM2302/DHT22 Issue
Replies: 7
Views: 320

Re: Strange Multiple AM2302/DHT22 Issue

I have only replaced the wiring.... did that with the 2nd replacement... to that position. I havn't physically moved the "working fine from day 1" sensor over to the left side of tank though... I just would find it hard to believe there would be some import with that... but at this point I could alm...
by grininmonkey
Tue Feb 19, 2019 12:28 pm
Forum: General discussion
Topic: Strange Multiple AM2302/DHT22 Issue
Replies: 7
Views: 320

Strange Multiple AM2302/DHT22 Issue

I have setup a piZeroW to monitor a snake tank with 2 1W DS18B20 sensors and two Adafruit AM2302 DHT22 sensors... and then using two gpios to control relays for heat lamps. All has been well and working great with the exception of an AM2302 in a specific location of the tank. The two AM2302 are posi...
by grininmonkey
Fri Feb 08, 2019 6:16 pm
Forum: General discussion
Topic: Trying to track down a possible memory issue...?
Replies: 11
Views: 648

Re: Trying to track down a possible memory issue...?

The MariaDB settings where not touched... still the same (as in the new 10.1 update did not replace my tuned settings) As best as I can tell (currently) there appears to be some change from version 10 to 10.1 where 10.1 is caching activity way more than 10.0 did. Again... same applications doing the...
by grininmonkey
Fri Feb 08, 2019 3:58 pm
Forum: General discussion
Topic: Trying to track down a possible memory issue...?
Replies: 11
Views: 648

Re: Trying to track down a possible memory issue...?

Well.. I still cant track down specifically other than something is constantly increasing "Pagecache" .... and maxing out quickly and then causing the continuous use of swap... Trying to find a fincore package or the right ftools package with fincore in it? I execute sync; echo 1 > /proc/sys/vm/drop...
by grininmonkey
Thu Feb 07, 2019 2:14 pm
Forum: General discussion
Topic: Trying to track down a possible memory issue...?
Replies: 11
Views: 648

Re: Trying to track down a possible memory issue...?

Drive sleep mode may be true, however something is now going on that was not happening before and its now bugging me. I checked my other Pis and none of them are bumping swap... this one (my thermostat pi) is now hitting swap and doing so in short period of time and the amount used keeps creeping up...
by grininmonkey
Wed Feb 06, 2019 6:36 pm
Forum: General discussion
Topic: Trying to track down a possible memory issue...?
Replies: 11
Views: 648

Re: Trying to track down a possible memory issue...?

vm.swappiness was 60 when I checked just now... I think 60 was the default in the past? not completely sure because I never thought about it much on my Pi's So out of curiosity.... its using a 2.5" (Spin) drive pulled from a trashed laptop via USB->SATA cable... so I don't expect much performance bu...

Go to advanced search