Display resolution 1024x600

More
24 Mar 2022 13:43 #238221 by Guglielmi
Hello,
I installed and I tested linuxCNC on raspberry pi4 with satisfaction..
However, I have a display 7" with resolution 1024x600.

I'm not able to configure the HMI in a way to see it full screen properly.
Do you know a trick?
Do you know a different HMI that support in a good way that resolution?
I tested axis, gmoccapy.. all them cut bottom, maybe because designed for 1024x768.

Thanks for any suggestions
Bye
Andrea

Please Log in or Create an account to join the conversation.

More
24 Mar 2022 17:27 - 24 Mar 2022 17:30 #238244 by robertspark
you could try this for axis:

#window resize
root_window.tk.call("wm","geometry",".","1024x600")

add it to an axisrc file in your home directory:
linuxcnc.org/docs/devel/html/gui/axis.html#_axisrc

or define a user command file and add it to your inifile:
linuxcnc.org/docs/devel/html/gui/axis.html#_user_command_file

it may work.... it may not.... worth a shot
Last edit: 24 Mar 2022 17:30 by robertspark.

Please Log in or Create an account to join the conversation.

More
24 Mar 2022 18:00 #238251 by HansU
Replied by HansU on topic Display resolution 1024x600
I don't think this will work as there is nothing set which limits the size that could be modified with:
root_window.tk.call("wm","minsize",".","1024", "600")
Just too much to pack.

I think the only GUI that works for such low resolution sis Tklinux linuxcnc.org/docs/devel/html/gui/tklinuxcnc.html

But even not completely. I think it will cut the GCode part.

Please Log in or Create an account to join the conversation.

More
24 Mar 2022 18:01 #238252 by HansU
Replied by HansU on topic Display resolution 1024x600
It seems that you have to modify a GUI for that purpose.
Maybe Touchy would be suitable for that as it doesn't have to much to display.

Please Log in or Create an account to join the conversation.

More
24 Mar 2022 19:35 #238261 by Guglielmi
Thanks all,
it's really strange that there is nothing already done, 1024x600 it's a common resolution for 7" or 10.1".
I was buying a new display 10.1" but first I will try to find a solution.
Adjust an HMI is something I could try, I need to read documentation before, because I don't know even
which IDE to use. 
I will investigate.. Of course as it is is finally usable even cut bottom, it's simply not so nice.
If I get some result I will write here, in meanwhile if someone else that face same issue and he has a easy solution
is of course welcome.

Please Log in or Create an account to join the conversation.

More
24 Mar 2022 21:04 #238269 by HansU
Replied by HansU on topic Display resolution 1024x600
I made a little hack enabling Axis to run on 1024x600.Just replace the axis.tcl file.
(rename the version that fits your LinuxCNC version to axis.tcl)
But with title bar it might not fit. So I suppose running it in fullscreen. Instrunctions for that are here: forum.linuxcnc.org/forum/21-axis/29735-axis-modifications
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Mar 2022 23:08 #238386 by cakeslob
Hey, I know your pain. vanilla axis barely fits within 1024x768 and only in fullscreen.So 1024x600 will take a little persuading. I have a new version coming up, but I will make a 1024x600 configuration before I post it. In the mean time, you can check out my axis small interface.

forum.linuxcnc.org/21-axis/38188-solved-...w-usercommand#169617

it boils down to a few key sizes, these were the important ones, but depending on how you implement them, they might not resize automatically, unless you maximize the window.
########## resize bottom pane #######
root_window.tk.call('.pane','paneconfigure','.pane.bottom',"-stretch","always","-height","200");

######### resize top pane ########
###### smaller manual frame  gcode ########
root_window.tk.call('.pane','paneconfigure','.pane.top',"-stretch","never","-minsize","250");


########### window resize at tk level #########
root_window.tk.call(".pane","configure","-height","350");

########### window resize at window level ##################
#root_window.tk.call("wm","geometry",".","700x440")
#root_window.attributes("-fullscreen",1)

do the stuff about usercommand, and add these to it, and play around.
theres 2 basic things here, the -minsize size, and -stretch . play with always/never, you can set it so you can resize the gcode window and stuff.

bottom is gcode window
top is manual/preview
pane. is the the parent, resizeing it with these will let you resize it smaller with the geometry option.

you can also play with the text sizes , and remove spacers/lables/sliders
###############  choose/remove sliders ########################
#root_window.tk.call('grid','forget','.pane.top.feedoverride')
root_window.tk.call('grid','forget','.pane.top.rapidoverride')
#root_window.tk.call('grid','forget','.pane.top.spinoverride')
#root_window.tk.call('grid','forget','.pane.top.jogspeed')
root_window.tk.call('grid','forget','.pane.top.ajogspeed')
root_window.tk.call('grid','forget','.pane.top.maxvel')

############ remove active gcodes lable and codes ##########
root_window.tk.call('grid','forget','.pane.top.gcodel')

, actually if you remove the "active gcode" lable and the max velocity slider it will probably be short enough or pretty close to it.

[code]
########## remove max velocity slider ##########
root_window.tk.call('grid','forget','.pane.top.maxvel')

############ remove active gcodes lable ##########
root_window.tk.call('grid','forget','.pane.top.gcodel')

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum