Helpful ReplyHot!Using MPLAB X 3.5 on 4K Screen

Author
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
2016/12/18 04:52:08 (permalink)
0

Using MPLAB X 3.5 on 4K Screen

Just installed MPLAB X 3.5 on my Dell XPS 15 laptop with 4K (3840 x 2160) display; it's not a great experience because the icons are so small that I can't tell the difference between them and fonts are weird, in some cases they are squashed like in the attached screen shot.
 
Any suggestions to fix this?

Attachment(s)

Attachments are not available: Download requirements not met
#1
vloki
always on da run
  • Total Posts : 6645
  • Reward points : 0
  • Joined: 2007/10/15 00:51:49
  • Location: Germany
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2016/12/18 07:23:06 (permalink)

Posting images, links and code - workaround for restrictions.
#2
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/22 12:24:12 (permalink)
0
I still have this issue - can anyone point me to a fix?  Some suggest that changing the Netbeans.conf file can help but I can't find that file on my system, in fact there's no Netbeans folder under Program Files or Program Files (x86).  I'm running Windows 10, 64 bit with a 4k display (3840 x 2160) - it's a Dell XPS15 laptop.
#3
annapolis
Administrator
  • Total Posts : 1800
  • Reward points : 0
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/22 13:15:24 (permalink)
+1 (3)
Microchip\MPLABX\v3.50\mplab_ide\etc\mplab_ide.conf
http://microchipdeveloper.com/mplabx:jvm-configuration-options
 
#4
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/22 14:07:27 (permalink)
0
OK, so I can open mplab_ide.conf but there's nothing in there about starting NetBeans with the system property -Dsun.java2d.dpiaware=true
 
Can anyone help on the syntax for specifying that parameter by adding a line to  mplab_ide.exe?
 
Thanks
#5
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/22 14:44:55 (permalink)
+1 (1)
My stock 3.51 is

 
default_options="-J-Dcrownking.stream.verbosity=very-quiet -J-Xss2m -J-Xms256m -J-Xmx8164m -J-Dapple.awt.graphics.UseQuartz=true -J-XX:+CMSClassUnloadingEnabled -J-Dapt.limit.expanded.params=1000 -J-Dplugin.manager.check.interval=EVERY_STARTUP -J-Dsun.java2d.noddraw=true -J-Dorg.netbeans.modules.extbrowser.UseDesktopBrowse=true"
 


 
adding this just before the closing " might do what you want
or =true if you wish, I used to use this on x 3.26
the fontsize is optional
 
 -J-Dsun.java2d.dpiaware=false --fontsize 24
 

post edited by Jim Nickerson - 2017/02/22 14:49:02
#6
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/24 09:59:11 (permalink)
0
Jim,
 
I tried that, false and true and with and without the fontsize parameter, seems it did not work as all options gave a project properties as shown...

Attachment(s)

Attachments are not available: Download requirements not met
#7
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/24 10:01:37 (permalink)
0
MPLab X 3.51 ?
#8
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/24 11:00:37 (permalink)
0
As of a little bit ago MPLab X 3.55 ?
On my windows 10 box/4k I am no longer using either of these settings
#9
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/25 05:46:21 (permalink)
0
Ahhh, no I'm on 3.50 so I'll download the latest version and try again.  Thanks :D
#10
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/27 08:42:33 (permalink)
0
OK, so I downloaded and installed 3.55, the issue is the same, I could post the properties dialogue box but it's identical to the one I posted previously.  I've tried adding
 -J-Dsun.java2d.dpiaware=false --fontsize 24
to the mplab_ide.conf file and I've tried true/false and removing the --fontsize 24 but it always comes back the same.
 
Any ideas? 
#11
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/02/27 08:49:30 (permalink)
0
I think maybe the user dir/cache needs to be cleared
#12
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/03/02 03:26:33 (permalink)
0
I think maybe the user dir/cache needs to be cleared

 
How do I do that Jim?
#13
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/03/02 07:34:51 (permalink)
+1 (1)
Help, About the popup window displays the locations/dirs.
If you delete the contents it will be back to the default installed state.
Any settings/changes you made will be lost.
#14
m.ghassemi
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2016/12/28 14:42:43
  • Location: 0
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/03/15 09:13:24 (permalink) ☄ Helpfulby Jim Nickerson 2017/03/15 09:38:03
+4 (4)
This is what worked for me:
1. Edit the file "C:\Program Files (x86)\Microchip\MPLABX\v3.55\sys\java\jre1.8.0_91\bin\javaw.exe" using a HEX editor (I used HxD). Make sure to make a backup of this before changing it.
2. Search for dpiaware.
3. Replace "<dpiAware>true</dpiAware>." with "<dpiAware>false</dpiAware>.". Since there are some spaces after this string you can replace it without increasing the file size (ie one less space after it).
[Modified trick from https://superuser.com/que...-on-a-high-dpi-display]
 
#15
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/03/15 09:38:49 (permalink)
+1 (1)
m.ghassemi,
Nice find
#16
Jim Nickerson
User 452 _
  • Total Posts : 4107
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/03/15 09:44:26 (permalink)
+1 (1)
It looks like it works to me.
 

Attachment(s)

Attachments are not available: Download requirements not met
#17
Ted M
Starting Member
  • Total Posts : 59
  • Reward points : 0
  • Joined: 2005/09/21 05:14:34
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/04/03 12:24:53 (permalink)
+1 (1)
Sigh, I deleted my cache and changed the javaw.exe file but it's still the same issue.
#18
atonyb
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2014/05/08 07:11:07
  • Location: 0
  • Status: offline
Re: Using MPLAB X 3.5 on 4K Screen 2017/10/12 07:33:59 (permalink)
+1 (1)
Hi Guys,
 
I came to this thread with a similar problem, but I soon remembered a fix I became aware of for GUIs like this that didn't scale properly on high resolution screens for Windows 10. All you need to do is to go to the compatibility settings for the executable for MPLAB IDE and select override high DPI scaling behaviour and set it to system or system (enhanced) (note the latter did not work well at all for me!) - this should make it appear properly on your high res screen and, if you have differing DPI scaling on other monitors, allow it to look right on different monitors, too.
#19
Jump to:
© 2017 APG vNext Commercial Version 4.5