Custom Mint-19.2 with Linuxcnc

More
15 Feb 2020 23:29 #157498 by rodw
Replied by rodw on topic Custom Mint-19.2 with Linuxcnc

Ok this is really weird.

I have an iso with this kernel
linux-image-4.14.132-rtai-amd64_4.14.132-rtai-amd64-1_amd64.deb

When I boot with the Live CD everything is responsive and fine.
Yet when I use the installer and reboot from the SSD it's basically like moving through molasses, mouse, keyboard and display are sluggish and it's just about unusable in any normal way.
For the life of me I can't quite work it out, kernel & modules are the same, all apps & libs are the same.
TBH I haven't tried it on another machine, only the T530. Wonder how it would go on the T61 or the Lenovo desktop.

Update 16-02-2020 09:59
RTAI currently installed and running on the ThinkCentre M90P, apart from the display being at 1024x768 all seems ok, actually using this system to write this edit.


Can you check CPU and memory usage with top or something like that?

Often that behavior is caused by spurious interrupts occurring. This can be as a result of failing hardware like a hard drive flooding the BUS with interrupts so there is no time left to service the keyboard etc.

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

More
16 Feb 2020 00:14 - 16 Feb 2020 00:17 #157500 by BeagleBrainz
The T530 is my main machine, it's what I have used to create all the images and test as well. The RT_PREEMPT kernels are fine.
My main OS on this machine is Mint 18.3 and there are no issues. I also have a vanilla install of Mint 19.2, no issues with a plain kernel or RT_PREEMPT kernel.
I also have Win7 Ultimate installed and apart from it being Win 7 no issues.
Usually this machine doesn't get turned off. I close the lid at night, go to work during the day come back home open the lid and the wifi connects and I'm good to go.
The SSD is a Crucial MX500GB that isn't quite 12 months old and there has never been any hiccups.
When running the LiveCD and mounting the SSD the sluggishness isn't there. When booting from the RTAI from the SSD and opening any actual console, not an xterm, the keyboard is responisve, unlike when using the desktop.
As the T530 has an Nvidia GPU as well as the on board graphics I've played around with the graphics settings in the BIOS and the issue is still there with the RTAI kernel.
And here is the kicker, I'll boot up the T530 Mint 18.3 with the standard kernel, start a Vbox virtual machine, boot with my RTAI iso and go through the install in VBox. Then I'll boot with RTAI installed on a Virtual disk and it is NOT as sluggish as it is with real hardware.
There is some scuttlebutt regarding the graphics with 4.14 kernels, but I'm not sure whether this is an issue here.
I wondering if compiling the kernel with more i915 options would make a difference. At the moment I'm not sure and just making a guess.

Answers on the back of a postcard if anyone has any.

I've also compared syslogs, dmesg and loaded kernel modules between livecd & installed and there isn't any major differences. The only difference is on the Livecd there are some extra modules due to loop mounts but there are expected to be there.
Last edit: 16 Feb 2020 00:17 by BeagleBrainz.

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

More
16 Feb 2020 08:08 #157505 by Mike_Eitel
A vm is not emulating/passing-through your grafic card. It offers his own vm-grafic card to the host, witch is normaly slower.

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

More
16 Feb 2020 08:24 #157507 by BeagleBrainz
Yeah I know that. But in the VM it is actually better than on bare metal. I'm not complaining about VM performance. The below paragraph explains the issue, as have the previous post.

I'm still confused as why RTAI kernel runs fine on bare metal using the livecd but slows right down once installed to the ssd, from the very same image. So I really can't blame the GPU.

There is nothing during the install process that would indicate towards this issue.

Like I said it works fine on one of my desktops. Haven't had a chance to git it a shot on any others ATM.

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

More
17 Feb 2020 01:51 #157539 by tommylight
I never encountered that kind of behaviour so i can not help much. Usually if the USB boot works, so does the install.
But i did notice often the lack of resolution on screen and lack of hibernation and processor frequency control with RTAI kernels on some PC's/Laptops. I did try to fix that a while back with Ubuntu 10.04/Linuxcnc ISO, but to no avail, no amount of xrandr or xconfig or voodoo dolls helped.

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

More
17 Feb 2020 04:53 #157561 by phillc54

But i did notice often the lack of resolution on screen and lack of hibernation and processor frequency control with RTAI kernels on some PC's/Laptops. I did try to fix that a while back with Ubuntu 10.04/Linuxcnc ISO, but to no avail, no amount of xrandr or xconfig or voodoo dolls helped.

Yeah Tom I have noticed the same, I think the moon phase is totally wrong.
The following user(s) said Thank You: tommylight

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

More
17 Feb 2020 23:04 - 17 Feb 2020 23:10 #157661 by BeagleBrainz
Ok after much butting head against a wall I have removed the rtai molasses.
Seems it has nothing to do with the kernel....as such

The issue was in the grub.config file

Doing this in the menu entry (commenting out the lines as shown)

Old:
        load_video
	gfxmode $linux_gfx_mode

New:
         #load_video
	#gfxmode $linux_gfx_mode

Fixes the issue.

I'm feeling the rtai image maybe close to uploading.

Two Instances of Firefox, one watching youtube, other on the forum and dd'ing from /dev/zero to /dev/null
Would appear to be ok I guess.
Attachments:
Last edit: 17 Feb 2020 23:10 by BeagleBrainz.
The following user(s) said Thank You: tommylight

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

More
17 Feb 2020 23:42 #157666 by tommylight
That looks yummy !
Thank you.

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

More
18 Feb 2020 11:29 - 02 Apr 2020 23:18 #157707 by BeagleBrainz
RTAI Release
RT_PREEMPT here forum.linuxcnc.org/9-installing-linuxcnc...uxcnc?start=0#157411
  • Linux Mint 19.2 with 4.14.148-rtai kernel package from www.linuxcnc.org/temp
  • Linuxcnc v2.8 from sources Latest commit 084acf1
  • Geany, gFTP & Midnight commander included
  • Gimp isn't the default program to open pdfs
  • Initramfs modified to work when booted from a vfat filesystem, ie supports Multiboot
  • qtvcp screens & designer support included
  • Mesaflash and limited hostmot2 firmware included
  • If booting stalls on Regenerating SSL certifcates please press shift, on a VM make sure the keyboard is captured
  • "Moving thru molasses" issue fixed via modification to grub config

Please use win32diskimager if using a windows machine to write image to disk.
In Linux dd is recommended.

Unlike other images I posted this has been created using a virgin install of Mint 19.2 on real hardware.
To apply updates to fresh install open a terminal and use the following, this should not upgrade the kernel.
sudo apt-get update
sudo apt-get dist-upgrade

ISO Image:
No longer available do not ask for access

MD5 Checksum:
No longer available do not ask for access

All issues and support should be directed to this thread.
Last edit: 02 Apr 2020 23:18 by BeagleBrainz. Reason: No longer available do not ask for access
The following user(s) said Thank You: tommylight, tivoi

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

More
18 Feb 2020 12:18 #157714 by tommylight
Downloading............
The following user(s) said Thank You: BeagleBrainz

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

Time to create page: 0.150 seconds
Powered by Kunena Forum