Pretty sure the X540 has 1" spindles for the front, so those cheap 3/4" ones won't work. Here is the jdparts page:
Here is the bearing for one:
Looks like they are generally available and a little over $100 for new, used ones don't look a lot cheaper right now.
Thank you for confirming what I thought I remembered.