Skip to content

Commit

Permalink
Refresh policy definition files
Browse files Browse the repository at this point in the history
  • Loading branch information
didrocks committed Nov 16, 2023
1 parent fb34abe commit 60d9097
Show file tree
Hide file tree
Showing 79 changed files with 2,012 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Shutdown scripts

Define scripts that are executed on machine poweroff.
Those scripts are ordered, one by line, and relative to SYSVOL/ubuntu/scripts/ directory.
Scripts from this GPO will be appended to the list of scripts referenced higher in the GPO hierarchy.


- Type: scripts
- Key: /shutdown

Note: -
* Enabled: The scripts in the text entry are executed at shutdown time.
* Disabled: The scripts will be skipped.
The set of scripts are per boot, and refreshed only on new boot of the machine.


Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

An Ubuntu Pro subscription on the client is required to apply this policy.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Computer Scripts -> Shutdown scripts |
| Registry Key | Software\Policies\Ubuntu\scripts\shutdown |
| Element type | multiText |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Startup scripts

Define scripts that are executed on machine boot, once the GPO is downloaded.
Those scripts are ordered, one by line, and relative to SYSVOL/ubuntu/scripts/ directory.
Scripts from this GPO will be appended to the list of scripts referenced higher in the GPO hierarchy.


- Type: scripts
- Key: /startup

Note: -
* Enabled: The scripts in the text entry are executed at startup time.
* Disabled: The scripts will be skipped.
The set of scripts are per boot, and refreshed only on new boot of the machine.


Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

An Ubuntu Pro subscription on the client is required to apply this policy.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Computer Scripts -> Startup scripts |
| Registry Key | Software\Policies\Ubuntu\scripts\startup |
| Element type | multiText |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Enable the ALS sensor

If the ambient light sensor functionality is enabled.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/ambient-enabled
- Default: true

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Enable the ALS sensor |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\ambient-enabled |
| Element type | boolean |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# The brightness of the screen when idle

This is the laptop panel screen brightness used when the session is idle.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/idle-brightness
- Default: 30

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> The brightness of the screen when idle |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\idle-brightness |
| Element type | decimal |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Dim the screen after a period of inactivity

If the screen should be dimmed to save power when the computer is idle.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/idle-dim
- Default: true

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Dim the screen after a period of inactivity |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\idle-dim |
| Element type | boolean |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Laptop lid close action when on AC

The action to take when the laptop lid is closed and the laptop is on AC power.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/lid-close-ac-action
- Default: 'suspend'

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

<span style="font-size: larger;">**Valid values**</span>

* blank
* suspend
* shutdown
* hibernate
* interactive
* nothing
* logout


<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Laptop lid close action when on AC |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\lid-close-ac-action |
| Element type | dropdownList |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Laptop lid close action on battery

The action to take when the laptop lid is closed and the laptop is on battery power.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/lid-close-battery-action
- Default: 'suspend'

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

<span style="font-size: larger;">**Valid values**</span>

* blank
* suspend
* shutdown
* hibernate
* interactive
* nothing
* logout


<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Laptop lid close action on battery |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\lid-close-battery-action |
| Element type | dropdownList |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Laptop lid, when closed, will suspend even if there is an external monitor plugged in

With no external monitors plugged in, closing a laptop's lid will suspend the machine (as set by the lid-close-battery-action and lid-close-ac-action keys). By default, however, closing the lid when an external monitor is present will not suspend the machine, so that one can keep working on that monitor (e.g. for docking stations or media viewers). Set this key to False to keep the default behavior, or to True to suspend the laptop whenever the lid is closed and regardless of external monitors.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/lid-close-suspend-with-external-monitor
- Default: false

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Laptop lid, when closed, will suspend even if there is an external monitor plugged in |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\lid-close-suspend-with-external-monitor |
| Element type | boolean |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Power button action

The action to take when the system power button is pressed. Virtual machines only honor the 'nothing' action, and will shutdown otherwise. Tablets always suspend, ignoring all the other action options.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/power-button-action
- Default: 'interactive'

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

<span style="font-size: larger;">**Valid values**</span>

* nothing
* suspend
* hibernate
* interactive


<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Power button action |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\power-button-action |
| Element type | dropdownList |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Enable power-saver profile when battery is low

Automatically enable the "power-saver" profile using power-profiles-daemon if the battery is low.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/power-saver-profile-on-low-battery
- Default: true

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Enable power-saver profile when battery is low |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\power-saver-profile-on-low-battery |
| Element type | boolean |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Sleep timeout computer when on AC

The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. A value of 0 means never.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
- Default: 0

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Sleep timeout computer when on AC |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\sleep-inactive-ac-timeout |
| Element type | decimal |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Whether to hibernate, suspend or do nothing when inactive

The type of sleeping that should be performed when the computer is inactive.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type
- Default: 'suspend'

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

<span style="font-size: larger;">**Valid values**</span>

* blank
* suspend
* shutdown
* hibernate
* interactive
* nothing
* logout


<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Whether to hibernate, suspend or do nothing when inactive |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\sleep-inactive-ac-type |
| Element type | dropdownList |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Sleep timeout computer when on battery

The amount of time in seconds the computer on battery power needs to be inactive before it goes to sleep. A value of 0 means never.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/sleep-inactive-battery-timeout
- Default for 20.04: 1200
- Default for 22.04: 1200
- Default for 23.04: 900
- Default for 23.10: 900

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.



<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Sleep timeout computer when on battery |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\sleep-inactive-battery-timeout |
| Element type | decimal |
| Class: | Machine |
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Whether to hibernate, suspend or do nothing when inactive

The type of sleeping that should be performed when the computer is inactive.

- Type: dconf
- Key: /org/gnome/settings-daemon/plugins/power/sleep-inactive-battery-type
- Default: 'suspend'

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 23.04, 23.10.

<span style="font-size: larger;">**Valid values**</span>

* blank
* suspend
* shutdown
* hibernate
* interactive
* nothing
* logout


<span style="font-size: larger;">**Metadata**</span>

| Element | Value |
| --- | --- |
| Location | Computer Policies -> Ubuntu -> Client management -> Power Management -> Whether to hibernate, suspend or do nothing when inactive |
| Registry Key | Software\Policies\Ubuntu\dconf\org\gnome\settings-daemon\plugins\power\sleep-inactive-battery-type |
| Element type | dropdownList |
| Class: | Machine |
Loading

0 comments on commit 60d9097

Please sign in to comment.