linhpsdr window size

103 views
Skip to first unread message

Lou Scalpati

unread,
Jun 25, 2020, 8:11:56 PM6/25/20
to Hermes-Lite
Hi - I am preparing a raspberry pi to control the HL2 for field day.  I have linhpsdr running on it beautifully except for the window width of the receiver / waterfall and it will not let me resize it smaller will the mouse.  My question is where is this default width defined so I can change it in a config or code.  I have found the user app props files in .local/share/linhpsdr and I have changed all the width variables but none seem to work.  Any ideas?

Lou KI5FTY

Steve Haynal

unread,
Jun 26, 2020, 12:50:25 AM6/26/20
to Hermes-Lite
Hi Lou,

Matthew can probably answer this better, but often there is hard coded minimum in the code. This is because the widgets used can not always be made as small as desired. I just tried linhpsdr and I can make the window larger, but the minimum width appears to be 1015 as reported by wmctrl -lG. Can you do a 1024 wide desktop with your RPi?

73,

Steve
kf7o

Christian Veith

unread,
Jun 26, 2020, 1:26:38 AM6/26/20
to Hermes-Lite
Hi Lou,

Are you using linhpsdr or pihpsdr?

Pihpsdr is refactored to better support the raspi.

--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hermes-lite/5a7e7051-ecc5-4069-b4b2-024aa2d216bco%40googlegroups.com.

Lou Scalpati

unread,
Jun 26, 2020, 2:26:11 AM6/26/20
to Christian Veith, Hermes-Lite
Christian yes I have both on my pi but pihpsdr is acting strange.  it seems to loose sensitivity after transmit about 50% of the time.  Then if I transmit again - it might or might not come back.  I even rebuilt it from git, no difference.  So thats when I went back to linhpsdr it works fine on the pie except the size.

 73
Lou KI5FTY



Lou Scalpati

unread,
Jun 26, 2020, 2:29:51 AM6/26/20
to Christian Veith, Hermes-Lite
Steve - yes I was going to ping him directly but I figured someone on the list might know.  I am running 1024 but it seems to be at like 1600 wide.  I suspect that at some point I dragged it larger and now I can't get it to contract.  Part of the problem is I am using VNC and it can be flaky in pointer handling on windows.  I thought if I could change a line of code I would be done - but now I think I will add a monitor, keyboard and mouse and see what happens.
Thanks
73
Lou KI5FTY


Lou Scalpati

unread,
Jun 26, 2020, 2:36:52 AM6/26/20
to Hermes-Lite
Steve thanks for the neat wmctrl -lG command.  I just installed it and it is 1265px wide.  Now I can hunt that down in the code tomorrow.  after 1:30 am, need sleep.

73
Lou KI5FTY



Joe LB1HI

unread,
Jun 26, 2020, 2:59:08 AM6/26/20
to Hermes-Lite
Hi Lou,

changes in main.c,

Removing the display_width=800; and display_height=480; lines enables the window to take an arbitrary size.

Removing full_screen=0; causes the pihpsdr to go into fullscreen mode, even for screen wider than 800 or taller than 480 pixels.

Removing gtk_window_set_resizable(GTK_WINDOW(top_window), FALSE); a few lines further down makes the window resizable.

If you end up with a bright/white font on a white background, comment all out lines that force a background colour, for example by running sed -i 's!gtk_widget_override_background_color!//gtk_widget_override_background_color!' *.c on the command line in the pihpsdr directory. ....


73, Joe

Joe LB1HI

unread,
Jun 26, 2020, 4:25:32 AM6/26/20
to Hermes-Lite
Lou,
This is a recommendation from https://charly25-sdr.github.io/software/pihpsdr but requires further testing.

73, Joe

Matthew

unread,
Jun 26, 2020, 10:54:36 AM6/26/20
to Hermes-Lite
In the current linHPSDR code, 1265 is the minimum width. This is set by code around line 1474 to line 1490 in receiver.c. To make it fit in 1024 you would need to either remove the S-meter or the radio_info box (with SWR, temperature warnings etc.). You would then need to remove function calls to update this widget. I think this would be limited to commenting out within the function update_timer_cb() in receiver.c.

I would recommend limiting changes to these areas. I can't guarantee code in rx_pandadapter.c doesn't have inherent assumptions of a minimum width built in to the code that would cause crashes.

Enjoy field day.

73 Matthew M5EVT.

Lou Scalpati

unread,
Jun 26, 2020, 6:37:19 PM6/26/20
to Hermes-Lite
Thanks for the info everyone.  I decided to up my game and not use a small screen on the pie so I pushed the resolution to 1920x1080 and all linhpsdr works fine...  Have a good time at field day!

73
Lou KI5FTY



--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages