vamp-mcp 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +1 -1
- package/runtime/backends/virtualbox/server.mjs +1 -1
- package/runtime/guest_setup/http/postdeb.sh +4 -2
- package/runtime/guest_setup/recorder/configure-debian-display.py +131 -0
- package/runtime/guest_setup/recorder/gnome-display.py +9 -10
- package/runtime/guest_setup/recorder/session-policy.py +32 -22
- package/runtime/skills/vamp-rpa-ui-checks/references/user-guide.md +2 -0
package/README.md
CHANGED
|
@@ -142,3 +142,5 @@ Windows guest setup now installs **VirtualBox Guest Additions** from matching ve
|
|
|
142
142
|
Ubuntu KVM profiles read the host's osinfo-db XML, then use `virt-install --dry-run --print-xml` to resolve virt-manager hardware defaults. Install `osinfo-db`, `libosinfo-bin`, `virtinst`, `qemu-system-x86`, `qemu-utils`, `ovmf` and `swtpm`. The generated `osinfo-profile.json` and `virt-manager-profile.xml` are preserved beside each Packer build. Builds use QEMU user NAT; deployed guests use user networking for `qemu:///session` or the existing `default` network/storage pool for `qemu:///system`. KVM and Hyper-V hardware testing is left to the user for this release.
|
|
143
143
|
|
|
144
144
|
Windows setup finishes with an elevated direct registry update to 1920x1080 (`PrimSurfSize.cx/cy` and `ActiveSize.cx/cy`) for the guest display configurations, on VirtualBox, KVM and Hyper-V. The Desktop reset script performs the same update before applying the display mode. Previous registry values are backed up under `%ProgramData%\VAMP\display-registry\backups`. A compatible guest display driver is still required.
|
|
145
|
+
|
|
146
|
+
Debian setup pins the connected DRM output to `1920x1080@60D` using a managed GRUB drop-in and `update-grub`. After automatic GNOME login, it persistently selects Full HD at scale 1 and distributes `monitors.xml` to the desktop users, GDM/GDM3, `/etc/xdg` and `/etc/skel`. Boot services restore these settings. GDM automatically logs in as `vboxuser`; system dconf policy disables idle blanking, dimming, automatic lock and idle sleep, while systemd sleep targets are masked. The first desktop finalization waits 60 seconds.
|
package/package.json
CHANGED
|
@@ -37404,7 +37404,7 @@ var StdioServerTransport = class {
|
|
|
37404
37404
|
// backends/virtualbox/server.mjs
|
|
37405
37405
|
config2.mouseHelperPath = process.env.MOUSE_HELPER_PATH || fileURLToPath3(new URL("./mouse_click.py", import.meta.url));
|
|
37406
37406
|
config2.pythonPath = process.env.PYTHON_PATH || process.env.RPA_HOST_PYTHON || (process.platform === "win32" ? "python" : "python3");
|
|
37407
|
-
var server = new McpServer({ name: "VAMP", version: "0.2.
|
|
37407
|
+
var server = new McpServer({ name: "VAMP", version: "0.2.5" }, { instructions: "Before recording or coordinate-based guest automation, verify the actual guest framebuffer is 1920x1080 with 100% guest scaling. If different, adjust the guest display using the authorized backend and verify fresh evidence before continuing; respect user pauses. A resized viewer is not proof. If the guest display drifts, use the guest-local reset shortcut: Windows Desktop Set-Resolution-1920x1080.cmd or Debian home ~/set-resolution-1920x1080.sh. Do not run guest commands on the host. Read skills/vamp-rpa-ui-checks/references/display.md in the packaged runtime (or .agents/skills/vamp-rpa-ui-checks/references/display.md in the repository) for Linux and Windows guidance. Before repeated CUA or multimodal analysis, use VAMP RPA Library rpa_search/rpa_details to find suitable reviewed skills. Prefer an authorized compatible skill; read its compact result before requesting screenshots, and verify application outcomes. Token efficiency: run reusable RPA and outcome checks locally; on success return compact status, verification and evidence paths. Do not forward full OCR text, YOLO arrays, unchanged screenshots, base64 images, full logs or source into the model context by default. For failure, ambiguity, UI changes or requested inspection, read only a targeted region/query/page first. Local OCR/YOLO reduces model tokens only when outputs stay local or compact; do not claim a measured saving without a comparable benchmark. When authoring or repairing GUI RPAs, include task-specific local OCR/YOLO verification in Python and assert its result in Robot by default; add artifact checks when available. Input dispatch or an arbitrary detection alone is not success. Fall back to targeted CUA when needed. For first-time setup call vamp_setup. Ask whether to set up the VM environment and obtain a host ISO path. Ask once each session whether to take a snapshot, explain space use, and never assume consent. Debian is default; ask explicitly before Windows and disclose licensing and public sandbox credentials. Do not create a VM merely on server startup. Guest setup scripts are served over HTTP from the host Python script server on port 8421; guests install them with wget/curl (vm_script_server_start/status/stop). New VM installations use HashiCorp Packer and official hypervisor plugins. Windows guest setup runs as administrator with Unrestricted process execution policy, installs VirtualBox Guest Additions or KVM virtio-win guest drivers and resumes after the driver reboot before reporting completion. Explain the CLI/plugin downloads, large golden images plus separate live disks, public sandbox autologin, and the 60-second post-reboot setup wait. Windows answer media is generated with an isolated pycdlib helper; original ISOs are not rewritten." });
|
|
37408
37408
|
var result = (value) => ({ content: [{ type: "text", text: JSON.stringify(value) }] });
|
|
37409
37409
|
async function displayAction(action, values) {
|
|
37410
37410
|
const python = process.env.RPA_HOST_PYTHON || "python";
|
|
@@ -37,8 +37,9 @@ set -eu
|
|
|
37
37
|
export DEBIAN_FRONTEND=noninteractive
|
|
38
38
|
python3 /opt/rpa-recorder-setup/recorder/configure-debian-mirrors.py
|
|
39
39
|
apt-get update
|
|
40
|
-
apt-get install -y build-essential python3-venv python3-tk python3-dev python3-dbus x11-xserver-utils xdg-user-dirs scrot task-gnome-desktop xorg gnome-session-xsession
|
|
40
|
+
apt-get install -y dconf-cli build-essential python3-venv python3-tk python3-dev python3-dbus x11-xserver-utils xdg-user-dirs scrot task-gnome-desktop xorg gnome-session-xsession
|
|
41
41
|
python3 /opt/rpa-recorder-setup/recorder/configure-gdm.py
|
|
42
|
+
python3 /opt/rpa-recorder-setup/recorder/configure-debian-display.py prepare
|
|
42
43
|
# Debian 13 uses a static gdm.service; enabling gdm3 alone does not create
|
|
43
44
|
# display-manager.service when tasksel was skipped by the unattended installer.
|
|
44
45
|
gdm_unit=
|
|
@@ -79,7 +80,8 @@ FINALIZE
|
|
|
79
80
|
cat > "$target/etc/systemd/system/vamp-packer-finalize.service" <<'SERVICE'
|
|
80
81
|
[Unit]
|
|
81
82
|
Description=VAMP Packer post-login setup (60 second desktop wait)
|
|
82
|
-
After=
|
|
83
|
+
After=display-manager.service network-online.target vamp-display-sync.service
|
|
84
|
+
Requires=vamp-display-sync.service
|
|
83
85
|
Wants=network-online.target
|
|
84
86
|
[Service]
|
|
85
87
|
Type=oneshot
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Root-only persistent Debian VM display and awake desktop configuration."""
|
|
3
|
+
import argparse
|
|
4
|
+
import json
|
|
5
|
+
import os
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
import pwd
|
|
8
|
+
import re
|
|
9
|
+
import shutil
|
|
10
|
+
import subprocess
|
|
11
|
+
import time
|
|
12
|
+
import xml.etree.ElementTree as ET
|
|
13
|
+
|
|
14
|
+
HERE=Path(__file__).resolve().parent
|
|
15
|
+
|
|
16
|
+
def write(path,text):
|
|
17
|
+
path=Path(path)
|
|
18
|
+
if path.exists() and path.read_text()==text:return False
|
|
19
|
+
path.parent.mkdir(parents=True,exist_ok=True)
|
|
20
|
+
path.write_text(text)
|
|
21
|
+
return True
|
|
22
|
+
|
|
23
|
+
def connectors():
|
|
24
|
+
outputs=[]
|
|
25
|
+
for status in sorted(Path('/sys/class/drm').glob('card*-*/status')):
|
|
26
|
+
match=re.fullmatch(r'card\d+-(.+)',status.parent.name)
|
|
27
|
+
if match and status.read_text().strip()=='connected':outputs.append(match[1])
|
|
28
|
+
return outputs
|
|
29
|
+
|
|
30
|
+
def prepare():
|
|
31
|
+
ports=connectors()
|
|
32
|
+
video=' '.join('video='+port+':1920x1080@60D' for port in ports) if ports else 'video=1920x1080@60D'
|
|
33
|
+
grub="""# Managed VAMP guest display: replace video overrides, preserve other arguments.
|
|
34
|
+
vamp_video_args=
|
|
35
|
+
for vamp_arg in $GRUB_CMDLINE_LINUX_DEFAULT; do
|
|
36
|
+
case "$vamp_arg" in video=*) ;; *) vamp_video_args="$vamp_video_args $vamp_arg" ;; esac
|
|
37
|
+
done
|
|
38
|
+
GRUB_CMDLINE_LINUX_DEFAULT="$vamp_video_args __VIDEO__"
|
|
39
|
+
GRUB_GFXMODE=1920x1080x32
|
|
40
|
+
GRUB_GFXPAYLOAD_LINUX=keep
|
|
41
|
+
unset vamp_video_args vamp_arg
|
|
42
|
+
""".replace('__VIDEO__',video)
|
|
43
|
+
changed=write('/etc/default/grub.d/99-vamp-display.cfg',grub)
|
|
44
|
+
if changed:subprocess.run(['update-grub'],check=True)
|
|
45
|
+
defaults="""[org/gnome/desktop/session]
|
|
46
|
+
idle-delay=uint32 0
|
|
47
|
+
[org/gnome/desktop/screensaver]
|
|
48
|
+
lock-enabled=false
|
|
49
|
+
idle-activation-enabled=false
|
|
50
|
+
[org/gnome/settings-daemon/plugins/power]
|
|
51
|
+
idle-dim=false
|
|
52
|
+
sleep-inactive-ac-type='nothing'
|
|
53
|
+
sleep-inactive-battery-type='nothing'
|
|
54
|
+
sleep-inactive-ac-timeout=0
|
|
55
|
+
sleep-inactive-battery-timeout=0
|
|
56
|
+
"""
|
|
57
|
+
write('/etc/dconf/db/vamp.d/00-automation',defaults)
|
|
58
|
+
keys=['/org/gnome/desktop/session/idle-delay','/org/gnome/desktop/screensaver/lock-enabled','/org/gnome/desktop/screensaver/idle-activation-enabled']
|
|
59
|
+
keys+=['/org/gnome/settings-daemon/plugins/power/'+key for key in ['idle-dim','sleep-inactive-ac-type','sleep-inactive-battery-type','sleep-inactive-ac-timeout','sleep-inactive-battery-timeout']]
|
|
60
|
+
write('/etc/dconf/db/vamp.d/locks/automation','\n'.join(keys)+'\n')
|
|
61
|
+
for name in ['user','gdm']:
|
|
62
|
+
profile=Path('/etc/dconf/profile')/name
|
|
63
|
+
text=profile.read_text() if profile.exists() else 'user-db:user\n'
|
|
64
|
+
if 'system-db:vamp' not in text.splitlines():write(profile,str(text).rstrip()+'\nsystem-db:vamp\n')
|
|
65
|
+
subprocess.run(['dconf','update'],check=True)
|
|
66
|
+
write('/etc/systemd/logind.conf.d/90-vamp-awake.conf','[Login]\nIdleAction=ignore\nHandleLidSwitch=ignore\nHandleLidSwitchExternalPower=ignore\nHandleLidSwitchDocked=ignore\nHandleSuspendKey=ignore\nHandleHibernateKey=ignore\n')
|
|
67
|
+
write('/etc/X11/xorg.conf.d/20-vamp-no-dpms.conf','Section "ServerFlags"\n Option "BlankTime" "0"\n Option "StandbyTime" "0"\n Option "SuspendTime" "0"\n Option "OffTime" "0"\nEndSection\n')
|
|
68
|
+
subprocess.run(['systemctl','mask','sleep.target','suspend.target','hibernate.target','hybrid-sleep.target'],check=True)
|
|
69
|
+
import importlib.util
|
|
70
|
+
spec=importlib.util.spec_from_file_location('vamp_gdm',HERE/'configure-gdm.py')
|
|
71
|
+
module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
|
|
72
|
+
module.configure('/etc/gdm3/daemon.conf')
|
|
73
|
+
boot_unit='[Unit]\nDescription=VAMP persistent Full HD boot display\nAfter=systemd-udev-settle.service\nWants=systemd-udev-settle.service\nBefore=display-manager.service\n[Service]\nType=oneshot\nExecStart=/usr/bin/python3 '+str(HERE/'configure-debian-display.py')+' prepare\n[Install]\nWantedBy=graphical.target\n'
|
|
74
|
+
sync_unit='[Unit]\nDescription=VAMP global GNOME Full HD configuration\nAfter=display-manager.service\n[Service]\nType=oneshot\nExecStartPre=/bin/sleep 60\nExecStart=/usr/bin/python3 '+str(HERE/'configure-debian-display.py')+' finalize\nTimeoutStartSec=900\nRestart=on-failure\nRestartSec=15\n[Install]\nWantedBy=graphical.target\n'
|
|
75
|
+
changed_boot=write('/etc/systemd/system/vamp-display-boot.service',boot_unit)
|
|
76
|
+
changed_sync=write('/etc/systemd/system/vamp-display-sync.service',sync_unit)
|
|
77
|
+
if changed_boot or changed_sync:subprocess.run(['systemctl','enable','vamp-display-boot.service','vamp-display-sync.service'],check=True)
|
|
78
|
+
canonical=Path('/etc/vamp/monitors.xml')
|
|
79
|
+
if canonical.exists():distribute(canonical)
|
|
80
|
+
return {'status':'configured','connectors':ports,'kernel_video':video,'autologin':'vboxuser','automatic_sleep':False,'screen_blanking':False,'automatic_lock':False}
|
|
81
|
+
|
|
82
|
+
def distribute(source):
|
|
83
|
+
root=ET.parse(source).getroot()
|
|
84
|
+
monitors=root.findall('.//monitor')
|
|
85
|
+
if not monitors or any(m.findtext('mode/width')!='1920' or m.findtext('mode/height')!='1080' for m in monitors):
|
|
86
|
+
raise RuntimeError('Refusing to distribute monitors.xml without Full HD monitor modes')
|
|
87
|
+
if any(float(node.text or '1')!=1 for node in root.findall('.//scale')):raise RuntimeError('Expected GNOME display scale 1')
|
|
88
|
+
accounts=[]
|
|
89
|
+
for name in ['Debian-gdm','gdm','gdm3']:
|
|
90
|
+
try:accounts.append(pwd.getpwnam(name))
|
|
91
|
+
except KeyError:pass
|
|
92
|
+
destinations={Path('/etc/xdg/monitors.xml'):(0,0),Path('/etc/skel/.config/monitors.xml'):(0,0)}
|
|
93
|
+
owner=(accounts[0].pw_uid,accounts[0].pw_gid) if accounts else (0,0)
|
|
94
|
+
for folder in ['/var/lib/gdm','/var/lib/gdm3']:destinations[Path(folder)/'.config/monitors.xml']=owner
|
|
95
|
+
for account in accounts:destinations[Path(account.pw_dir)/'.config/monitors.xml']=(account.pw_uid,account.pw_gid)
|
|
96
|
+
for account in pwd.getpwall():
|
|
97
|
+
if 1000<=account.pw_uid<65534 and Path(account.pw_dir).is_dir():destinations[Path(account.pw_dir)/'.config/monitors.xml']=(account.pw_uid,account.pw_gid)
|
|
98
|
+
for path,(uid,gid) in destinations.items():
|
|
99
|
+
path.parent.mkdir(parents=True,exist_ok=True)
|
|
100
|
+
if uid:os.chown(path.parent,uid,gid)
|
|
101
|
+
if source.resolve()!=path.resolve():shutil.copyfile(source,path)
|
|
102
|
+
path.chmod(0o644);os.chown(path,uid,gid)
|
|
103
|
+
return [str(path) for path in destinations]
|
|
104
|
+
|
|
105
|
+
def finalize():
|
|
106
|
+
account=pwd.getpwnam('vboxuser');runtime='/run/user/'+str(account.pw_uid)
|
|
107
|
+
environment={**os.environ,'HOME':account.pw_dir,'XDG_RUNTIME_DIR':runtime,'DBUS_SESSION_BUS_ADDRESS':'unix:path='+runtime+'/bus','DISPLAY':':0','XDG_SESSION_TYPE':'x11'}
|
|
108
|
+
for _ in range(60):
|
|
109
|
+
if Path(runtime+'/bus').exists():break
|
|
110
|
+
time.sleep(5)
|
|
111
|
+
else:raise RuntimeError('Automatic GNOME login session did not become ready')
|
|
112
|
+
for script in ['session-policy.py','apply-display.py']:
|
|
113
|
+
command=['/usr/sbin/runuser','-u','vboxuser','--','env',*[key+'='+environment[key] for key in ['HOME','XDG_RUNTIME_DIR','DBUS_SESSION_BUS_ADDRESS','DISPLAY','XDG_SESSION_TYPE']],'python3',str(HERE/script)]
|
|
114
|
+
if script=='apply-display.py':command+=['--output',str(Path(account.pw_dir)/'.local/share/vamp/display/persistent-result.json')]
|
|
115
|
+
subprocess.run(command,check=True)
|
|
116
|
+
source=Path(account.pw_dir)/'.config/monitors.xml'
|
|
117
|
+
for _ in range(30):
|
|
118
|
+
if source.is_file():break
|
|
119
|
+
time.sleep(1)
|
|
120
|
+
else:raise RuntimeError('GNOME did not persist the selected monitor configuration')
|
|
121
|
+
canonical=Path('/etc/vamp/monitors.xml');canonical.parent.mkdir(parents=True,exist_ok=True)
|
|
122
|
+
shutil.copyfile(source,canonical)
|
|
123
|
+
paths=distribute(canonical)
|
|
124
|
+
result=prepare();result['monitors_xml']=paths
|
|
125
|
+
state=Path('/var/lib/vamp/display-persistence.json');state.parent.mkdir(parents=True,exist_ok=True);state.write_text(json.dumps(result,indent=2)+'\n')
|
|
126
|
+
return result
|
|
127
|
+
|
|
128
|
+
if __name__=='__main__':
|
|
129
|
+
parser=argparse.ArgumentParser(description=__doc__);parser.add_argument('action',choices=['prepare','finalize']);args=parser.parse_args()
|
|
130
|
+
if os.geteuid()!=0:parser.error('Run this inside the Debian guest as root')
|
|
131
|
+
print(json.dumps(prepare() if args.action=='prepare' else finalize()))
|
|
@@ -7,7 +7,7 @@ def select_mode(state):
|
|
|
7
7
|
spec,modes,monitor_properties=monitors[0]
|
|
8
8
|
matches=[m for m in modes if (int(m[1]),int(m[2]))==(1920,1080) and 1.0 in [float(x) for x in m[5]]]
|
|
9
9
|
if not matches:raise RuntimeError('GNOME driver does not advertise 1920x1080 at scale 1; check guest display drivers')
|
|
10
|
-
return serial,spec,
|
|
10
|
+
return serial,spec,min(matches,key=lambda m:abs(float(m[3])-60.0)),properties
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def verify(state):
|
|
@@ -37,15 +37,14 @@ def apply():
|
|
|
37
37
|
interface=dbus.Interface(proxy,'org.gnome.Mutter.DisplayConfig')
|
|
38
38
|
state=interface.GetCurrentState(timeout=15)
|
|
39
39
|
serial,spec,mode,properties=select_mode(state)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
interface.ApplyMonitorsConfig(serial,dbus.UInt32(2),configuration,options,timeout=15)
|
|
40
|
+
configuration=dbus.Array([dbus.Struct((dbus.Int32(0),dbus.Int32(0),dbus.Double(1.0),
|
|
41
|
+
dbus.UInt32(0),dbus.Boolean(True),dbus.Array([
|
|
42
|
+
dbus.Struct((str(spec[0]),str(mode[0]),dbus.Dictionary({},signature='sv')))],signature='(ssa{sv})')))],signature='(iiduba(ssa{sv}))')
|
|
43
|
+
options=dbus.Dictionary({},signature='sv')
|
|
44
|
+
if properties.get('supports-changing-layout-mode',False) and 'layout-mode' in properties:options['layout-mode']=dbus.UInt32(properties['layout-mode'])
|
|
45
|
+
if not verify(state):interface.ApplyMonitorsConfig(serial,dbus.UInt32(0),configuration,options,timeout=15)
|
|
46
|
+
# Persist even when the live mode already matches, so monitors.xml exists.
|
|
47
|
+
interface.ApplyMonitorsConfig(serial,dbus.UInt32(2),configuration,options,timeout=15)
|
|
49
48
|
observed=interface.GetCurrentState(timeout=15)
|
|
50
49
|
verified=verify(observed)
|
|
51
50
|
import os
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
-
"""Disable automatic idle/sleep/lock in the guest GNOME automation account."""
|
|
2
|
-
import json
|
|
3
|
-
import subprocess
|
|
4
|
-
import sys
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def apply():
|
|
8
|
-
if sys.platform!='linux':
|
|
9
|
-
return {'status':'unsupported','platform':sys.platform}
|
|
10
|
-
settings=[
|
|
11
|
-
('org.gnome.desktop.session','idle-delay','uint32 0'),
|
|
12
|
-
('org.gnome.desktop.screensaver','lock-enabled','false'),
|
|
13
|
-
('org.gnome.
|
|
14
|
-
('org.gnome.settings-daemon.plugins.power','
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
"""Disable automatic idle/sleep/lock in the guest GNOME automation account."""
|
|
2
|
+
import json
|
|
3
|
+
import subprocess
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def apply():
|
|
8
|
+
if sys.platform!='linux':
|
|
9
|
+
return {'status':'unsupported','platform':sys.platform}
|
|
10
|
+
settings=[
|
|
11
|
+
('org.gnome.desktop.session','idle-delay','uint32 0'),
|
|
12
|
+
('org.gnome.desktop.screensaver','lock-enabled','false'),
|
|
13
|
+
('org.gnome.desktop.screensaver','idle-activation-enabled','false'),
|
|
14
|
+
('org.gnome.settings-daemon.plugins.power','idle-dim','false'),
|
|
15
|
+
('org.gnome.settings-daemon.plugins.power','sleep-inactive-ac-timeout','0'),
|
|
16
|
+
('org.gnome.settings-daemon.plugins.power','sleep-inactive-battery-timeout','0'),
|
|
17
|
+
('org.gnome.settings-daemon.plugins.power','sleep-inactive-ac-type','nothing'),
|
|
18
|
+
('org.gnome.settings-daemon.plugins.power','sleep-inactive-battery-type','nothing'),
|
|
19
|
+
]
|
|
20
|
+
for schema,key,value in settings:
|
|
21
|
+
writable=subprocess.check_output(['gsettings','writable',schema,key],text=True).strip()
|
|
22
|
+
if writable=='false':
|
|
23
|
+
current=subprocess.check_output(['gsettings','get',schema,key],text=True).strip()
|
|
24
|
+
if current.strip("'")!=value.strip("'"):
|
|
25
|
+
raise RuntimeError('System policy conflicts with the requested awake session: '+key)
|
|
26
|
+
continue
|
|
27
|
+
subprocess.run(['gsettings','set',schema,key,value],check=True)
|
|
28
|
+
return {'status':'configured','automatic_sleep':False,'automatic_lock':False}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if __name__=='__main__':
|
|
32
|
+
print(json.dumps(apply()))
|
|
@@ -49,3 +49,5 @@ References: [GNOME display settings](https://teams.pages.gitlab.gnome.org/websit
|
|
|
49
49
|
Windows guest setup and display-reset scripts request administrator PowerShell when needed. Approve the UAC prompt. The elevated process runs `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force` before the script. MCP and VSIX share the same Ctrl+Shift+Enter / UAC Left+Enter bootstrap. Script execution policy changes apply to that process.
|
|
50
50
|
|
|
51
51
|
Windows setup finishes with an elevated direct registry update to 1920x1080 (`PrimSurfSize.cx/cy` and `ActiveSize.cx/cy`) for the guest display configurations, on VirtualBox, KVM and Hyper-V. The Desktop reset script performs the same update before applying the display mode. Previous registry values are backed up under `%ProgramData%\VAMP\display-registry\backups`. A compatible guest display driver is still required.
|
|
52
|
+
|
|
53
|
+
Debian setup pins the connected DRM output to `1920x1080@60D` using a managed GRUB drop-in and `update-grub`. After automatic GNOME login, it persistently selects Full HD at scale 1 and distributes `monitors.xml` to the desktop users, GDM/GDM3, `/etc/xdg` and `/etc/skel`. Boot services restore these settings. GDM automatically logs in as `vboxuser`; system dconf policy disables idle blanking, dimming, automatic lock and idle sleep, while systemd sleep targets are masked. The first desktop finalization waits 60 seconds.
|