Laptop S540 has dedicated AMD 4800u integrated graphics, at first, I downloaded the driver from the lenovo official site but recently I want to upgrade the graphics card following AMD's official driver, which is more update, but everytime after the upgrade, Windows 11 automatically revert the old version driver making the new AMD driver being warned with not compatiable.
Solutions
The whole concept is to prevent Windows from checking and changing the driver automatically.
1. Navigate to Device Properties and find the AMD graphics hardware, click `XXX Grahpics Properties`
At the same time, open Local Group Policy Editor and navigate to Administrative Templates > System > Device Installation > Device Installation Restrictions, find and edit the below entry
Enable the settings above with the entry values shown in Device Properties.
Apply the settings for each driver upgrade, disable the settings next time when a new driver update is needed
jquery, bootstrap etc. is the self-defined name of js scripts to load, they are loaded in order
We must load the controller module for the AngularJS controller to work properly
Inside require function we have a second require function,which is called sugar function, it only loads the required modules for use inside the function, if you don't need it, you are NOT required to include in function parameters.
angular.bootstrap is to manually trigger the start of angularJS, which is highly recommended to use when cooperate with requireJS
When this was set, NO exists in the html view or AngularJS will throw errors
Normally, we will ignore the first parameter of the define function and let requireJS to use the file name as the module name (recommended)
Second array parameter tells requireJS that insiderApp module requires angular, angular-route and angular-animate to be loaded before executing the insiderApp module
function parameter "angular" is returned by the angular function, this object is for the implementation of insiderApp
Return the insiderApp variable or not depends on whether or not other modules need insiderApp, normally you need to return it.
var insiderApp = angular.module("insiderApp",["ngRoute", "ngAnimate"]); Just like usual, start the angular module, we can do any configuration of the angular object in this file.
controller.js
Just like usual, controller of the Angular object
define(['insiderApp'],function(insiderApp)...
Controller rely on insiderApp for adding controller to the Angular module, so we need to put insiderApp to the array and use it inside the function