ACIL FM
Dark
Refresh
Current DIR:
/usr/share/wireplumber/scripts
/
usr
share
wireplumber
scripts
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
access
-
chmod
Open
Rename
Delete
monitors
-
chmod
Open
Rename
Delete
create-item.lua
3.23 MB
chmod
View
DL
Edit
Rename
Delete
fallback-sink.lua
2.32 MB
chmod
View
DL
Edit
Rename
Delete
intended-roles.lua
2.03 MB
chmod
View
DL
Edit
Rename
Delete
policy-bluetooth.lua
10.88 MB
chmod
View
DL
Edit
Rename
Delete
policy-device-profile.lua
5.07 MB
chmod
View
DL
Edit
Rename
Delete
policy-device-routes.lua
13.74 MB
chmod
View
DL
Edit
Rename
Delete
policy-endpoint-client-links.lua
5.51 MB
chmod
View
DL
Edit
Rename
Delete
policy-endpoint-client.lua
6.95 MB
chmod
View
DL
Edit
Rename
Delete
policy-endpoint-device.lua
6.07 MB
chmod
View
DL
Edit
Rename
Delete
policy-node.lua
29.58 MB
chmod
View
DL
Edit
Rename
Delete
restore-stream.lua
12.66 MB
chmod
View
DL
Edit
Rename
Delete
static-endpoints.lua
910 B
chmod
View
DL
Edit
Rename
Delete
suspend-node.lua
1.46 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/wireplumber/scripts/suspend-node.lua
-- WirePlumber -- -- Copyright © 2021 Collabora Ltd. -- @author George Kiagiadakis <george.kiagiadakis@collabora.com> -- -- SPDX-License-Identifier: MIT om = ObjectManager { Interest { type = "node", Constraint { "media.class", "matches", "Audio/*" } }, Interest { type = "node", Constraint { "media.class", "matches", "Video/*" } }, } sources = {} om:connect("object-added", function (om, node) node:connect("state-changed", function (node, old_state, cur_state) -- Always clear the current source if any local id = node["bound-id"] if sources[id] then sources[id]:destroy() sources[id] = nil end -- Add a timeout source if idle for at least 5 seconds if cur_state == "idle" or cur_state == "error" then -- honor "session.suspend-timeout-seconds" if specified local timeout = tonumber(node.properties["session.suspend-timeout-seconds"]) or 5 if timeout == 0 then return end -- add idle timeout; multiply by 1000, timeout_add() expects ms sources[id] = Core.timeout_add(timeout * 1000, function() -- Suspend the node Log.info(node, "was idle for a while; suspending ...") node:send_command("Suspend") -- Unref the source sources[id] = nil -- false (== G_SOURCE_REMOVE) destroys the source so that this -- function does not get fired again after 5 seconds return false end) end end) end) om:activate()
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply