swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.09k stars 1.08k forks source link

Gamma control not working with sway and wlsunset #8204

Open werdahias opened 3 weeks ago

werdahias commented 3 weeks ago

wlsunset debug log:

WAYLAND_DEBUG=1 wlsunset 
[  95875.065]  -> wl_display@1.get_registry(new id wl_registry@2)
[  95875.077]  -> wl_display@1.sync(new id wl_callback@3)
[  95875.214] wl_display@1.delete_id(3)
[  95875.226] wl_registry@2.global(1, "wl_shm", 1)
[  95875.232] wl_registry@2.global(2, "wl_drm", 2)
[  95875.235] wl_registry@2.global(3, "zwp_linux_dmabuf_v1", 4)
[  95875.238] wl_registry@2.global(4, "wl_compositor", 6)
[  95875.245] wl_registry@2.global(5, "wl_subcompositor", 1)
[  95875.251] wl_registry@2.global(6, "wl_data_device_manager", 3)
[  95875.254] wl_registry@2.global(7, "zwlr_gamma_control_manager_v1", 1)
[  95875.259]  -> wl_registry@2.bind(7, "zwlr_gamma_control_manager_v1", 1, new id [unknown]@4)
[  95875.264] wl_registry@2.global(8, "zxdg_output_manager_v1", 3)
[  95875.268] wl_registry@2.global(9, "ext_idle_notifier_v1", 1)
[  95875.272] wl_registry@2.global(10, "zwp_idle_inhibit_manager_v1", 1)
[  95875.277] wl_registry@2.global(11, "zwlr_layer_shell_v1", 4)
[  95875.281] wl_registry@2.global(12, "xdg_wm_base", 2)
[  95875.284] wl_registry@2.global(13, "zwp_tablet_manager_v2", 1)
[  95875.288] wl_registry@2.global(14, "org_kde_kwin_server_decoration_manager", 1)
[  95875.292] wl_registry@2.global(15, "zxdg_decoration_manager_v1", 1)
[  95875.295] wl_registry@2.global(16, "zwp_relative_pointer_manager_v1", 1)
[  95875.299] wl_registry@2.global(17, "zwp_pointer_constraints_v1", 1)
[  95875.303] wl_registry@2.global(18, "wp_presentation", 1)
[  95875.306] wl_registry@2.global(19, "zwlr_output_manager_v1", 4)
[  95875.311] wl_registry@2.global(20, "zwlr_output_power_manager_v1", 1)
[  95875.314] wl_registry@2.global(21, "zwp_input_method_manager_v2", 1)
[  95875.318] wl_registry@2.global(22, "zwp_text_input_manager_v3", 1)
[  95875.321] wl_registry@2.global(23, "zwlr_foreign_toplevel_manager_v1", 3)
[  95875.325] wl_registry@2.global(24, "ext_session_lock_manager_v1", 1)
[  95875.328] wl_registry@2.global(25, "wp_drm_lease_device_v1", 1)
[  95875.332] wl_registry@2.global(26, "zwlr_export_dmabuf_manager_v1", 1)
[  95875.335] wl_registry@2.global(27, "zwlr_screencopy_manager_v1", 3)
[  95875.339] wl_registry@2.global(28, "zwlr_data_control_manager_v1", 2)
[  95875.342] wl_registry@2.global(29, "wp_security_context_manager_v1", 1)
[  95875.346] wl_registry@2.global(30, "wp_viewporter", 1)
[  95875.349] wl_registry@2.global(31, "wp_single_pixel_buffer_manager_v1", 1)
[  95875.353] wl_registry@2.global(32, "wp_content_type_manager_v1", 1)
[  95875.357] wl_registry@2.global(33, "wp_fractional_scale_manager_v1", 1)
[  95875.362] wl_registry@2.global(34, "zxdg_exporter_v1", 1)
[  95875.365] wl_registry@2.global(35, "zxdg_importer_v1", 1)
[  95875.369] wl_registry@2.global(36, "zxdg_exporter_v2", 1)
[  95875.372] wl_registry@2.global(37, "zxdg_importer_v2", 1)
[  95875.376] wl_registry@2.global(38, "xdg_activation_v1", 1)
[  95875.380] wl_registry@2.global(39, "wp_cursor_shape_manager_v1", 1)
[  95875.383] wl_registry@2.global(40, "zwp_virtual_keyboard_manager_v1", 1)
[  95875.387] wl_registry@2.global(41, "zwlr_virtual_pointer_manager_v1", 2)
[  95875.390] wl_registry@2.global(42, "zwlr_input_inhibit_manager_v1", 1)
[  95875.394] wl_registry@2.global(43, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[  95875.397] wl_registry@2.global(44, "zwp_pointer_gestures_v1", 3)
[  95875.401] wl_registry@2.global(45, "wl_seat", 8)
[  95875.404] wl_registry@2.global(47, "zwp_primary_selection_device_manager_v1", 1)
[  95875.408] wl_registry@2.global(48, "wl_output", 4)
registry: adding output 48
[  95875.414]  -> wl_registry@2.bind(48, "wl_output", 1, new id [unknown]@5)
[  95875.419]  -> zwlr_gamma_control_manager_v1@4.get_gamma_control(new id zwlr_gamma_control_v1@6, wl_output@5)
[  95875.423] wl_callback@3.done(1756)
[  95875.427]  -> wl_display@1.sync(new id wl_callback@3)
[  95875.533] wl_display@1.delete_id(3)
[  95875.542] zwlr_gamma_control_v1@6.failed()
gamma control of output 48 failed
[  95875.549]  -> zwlr_gamma_control_v1@6.destroy()
[  95875.553] wl_callback@3.done(1756)
calculated sun trajectory: midnight sun
setting temperature on output '48' to 6500 K
emersion commented 3 weeks ago

The logs seem to have been collected from a nested Sway instance. Gamma LUTs are not supported there.

rossmeier commented 1 week ago

Same problem here with pretty much identical log, upgrading from (arch) 1.8.1-5 to 1.9-3. No nested sway versions were used.