reset hardware related preference in profile
I have moved my firefox profile to a new machine. While there is no major issues encountered with the new machine, it is found that my profile is still storing some preference values with reference to my old machine, for instance "gfx.driver-init.*" (my old machine is using Intel display whie the new machine is using AMD display). I wonder if there is any clean-up steps or tools such that it can validate/reset hardware-related preferences when moving profiles across machines/platforms to avoid possible errors/crashes. This is to say that I want to keep all software configuration instead of removing all preferences.
for instance, the following preferences are found in my pref.js user_pref("gfx.crash-guard.d3d11layers.appVersion", "45.0"); user_pref("gfx.crash-guard.d3d11layers.deviceID", "0x130a"); user_pref("gfx.crash-guard.d3d11layers.driverVersion", "15.300.1025.1001"); user_pref("gfx.crash-guard.d3d11layers.feature-d2d", true); user_pref("gfx.crash-guard.d3d11layers.feature-d3d11", true); user_pref("gfx.crash-guard.glcontext.gfx.driver-init.direct3d11-angle", true); user_pref("gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle", true); user_pref("gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle-force-d3d11", false); user_pref("gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle-force-warp", false); user_pref("gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle-try-d3d11", true); user_pref("gfx.crash-guard.status.d3d11layers", 2); user_pref("gfx.crash-guard.status.d3d9video", 2); user_pref("gfx.crash-guard.status.glcontext", 2); user_pref("gfx.direct3d.last_used_feature_level_idx", 0); user_pref("gfx.driver-init.appVersion", "42.0"); user_pref("gfx.driver-init.deviceID", "0x0166"); user_pref("gfx.driver-init.driverVersion", "10.18.10.4276"); user_pref("gfx.driver-init.feature-d2d", true); user_pref("gfx.driver-init.feature-d3d11", true); user_pref("gfx.driver-init.status", 2);
Opaite Mbohovái (2)
No, in general it's better to reset your current profile to keep only your private data: https://support.mozilla.org/en-US/kb/reset-firefox-to-fix-most-problems
It's a solution to start a new profile not from scratch.
prefs.js is a text file, any text editor should be able to edit it - as long a Firefox is closed and you don't disturb the line-break formatting for each preference. The worst you could do is to b0rk the file, so create a back-up before you edit it. I have edited prefs.js when moving an existing Profile to a new PC; and I have screwed it up a time or two.
This will give you an idea about which files in the Profile folder are 'safe' to copy into a new Profile on a different PC. https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile