mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Weston: MPV does not hide Mouse Cursor

Open mweinelt opened this issue 12 years ago • 9 comments

The mouse cursor stays visible during video playback on Weston.

weston 1.3.0 mpv 0.3.4-1

on Ubuntu 14.04

mweinelt avatar Mar 09 '14 21:03 mweinelt

Actually, this is implemented. More information for figuring out why it doesn't work in your case would probably be helpful.

ghost avatar Mar 09 '14 21:03 ghost

This is my current weston.ini, I'm not sure what is needed to support that functionality.

[core]
### uncomment this line for xwayland support ###
#modules=desktop-shell.so,xwayland.so

[shell]
#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
background-color=0xff002244
#panel-color=0x90ff0000
locking=true
animation=zoom
#binding-modifier=ctrl
#num-workspaces=6
### for cursor themes install xcursor-themes pkg from Extra. ###
#cursor-theme=none
cursor-size=24

### tablet options ###
#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
#animation=fade

[keyboard]
keymap_rules=evdev
#keymap_layout=gb
#keymap_options=caps:ctrl_modifier,shift:both_capslock_cancel
### keymap_options from /usr/share/X11/xkb/rules/base.lst ###

[terminal]
#font=DroidSansMono
#font-size=14

#[launcher]
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
#path=/usr/bin/gnome-terminal

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/arts.png
path=./clients/flower

[input-method]
path=/usr/lib/weston/weston-keyboard

[output]
name=HDMI1
mode=1920x1080

[output]
name=VGA1
mode=1280x1024

This is the log from the current weston-launch startup

Date: 2014-03-09 CET
[20:35:17.081] weston 1.3.0
               http://wayland.freedesktop.org/
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.3.0
               Build:  
[20:35:17.081] OS: Linux, 3.13.0-16-generic, #36-Ubuntu SMP Tue Mar 4 23:02:40 UTC 2014, x86_64
[20:35:17.081] Using config file '/home/chaos/.config/weston.ini'
[20:35:17.081] Loading module '/usr/lib/x86_64-linux-gnu/weston/drm-backend.so'
[20:35:17.094] initializing drm backend
[20:35:17.095] using /dev/dri/card0
[20:35:17.362] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 0 - 0
[20:35:17.364] EGL version: 1.4 (DRI2)
[20:35:17.364] EGL vendor: Mesa Project
[20:35:17.364] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2 OpenGL_ES3 
[20:35:17.364] EGL extensions: EGL_MESA_drm_image EGL_WL_bind_wayland_display
               EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
               EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
               EGL_KHR_surfaceless_context EGL_KHR_create_context
               EGL_EXT_buffer_age
[20:35:17.364] GL version: OpenGL ES 3.0 Mesa 10.1.0-rc3
[20:35:17.364] GLSL version: OpenGL ES GLSL ES 3.0
[20:35:17.364] GL vendor: X.Org
[20:35:17.364] GL renderer: Gallium 0.4 on AMD ARUBA
[20:35:17.364] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
               GL_OES_depth24 GL_OES_element_index_uint
               GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8
               GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D
               GL_OES_texture_npot GL_OES_EGL_image GL_OES_depth_texture
               GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
               GL_OES_get_program_binary GL_APPLE_texture_max_level
               GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
               GL_NV_fbo_color_attachments GL_OES_EGL_image_external
               GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
               GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
               GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
               GL_EXT_map_buffer_range GL_OES_depth_texture_cube_map
               GL_OES_surfaceless_context GL_EXT_color_buffer_float
[20:35:17.364] GL ES 2 renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[20:35:17.365] Failed to initialize backlight
[20:35:17.365] EDID data 'SEC', 'EPSON PJ', '16843009'
[20:35:17.365] Output HDMI1, (connector 17, crtc 12)
  mode [email protected], preferred, current
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
  mode [email protected]
[20:35:17.537] launching '/usr/lib/weston/weston-keyboard'
[20:35:17.543] input device Power Button, /dev/input/event1 is a keyboard
[20:35:17.543] input device Power Button, /dev/input/event0 is a keyboard
[20:35:17.543] input device Burr-Brown from TI               USB Audio CODEC , /dev/input/event4 is a keyboard
[20:35:17.543] input device Logitech Logitech USB Keyboard, /dev/input/event2 is a keyboard
[20:35:17.544] input device Logitech Logitech USB Keyboard, /dev/input/event3 is a pointer caps = relative-motion button
[20:35:17.544] input device Logitech Logitech USB Keyboard, /dev/input/event3 is a keyboard
[20:35:17.544] input device Eee PC WMI hotkeys, /dev/input/event5 is a keyboard
[20:35:17.544] Loading module '/usr/lib/x86_64-linux-gnu/weston/desktop-shell.so'
[20:35:17.544] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
[20:35:17.544] libwayland: using socket /run/user/1000/wayland-0
[20:35:17.560] launching '/usr/lib/weston/weston-desktop-shell'
[20:41:49.410] already in the native mode
[20:41:49.410] already in the native mode

I'm currently starting weston with

weston-launch -- -i0

to inhibit the screensaver.

mweinelt avatar Mar 09 '14 21:03 mweinelt

Hi can your play your video like this: WAYLAND_DEBUG=1 mpv /my/videv.mkv

With your video of choice and post the output here?

giselher avatar Mar 10 '14 13:03 giselher

https://linuxlounge.net/~martin/mpv.log These are the first 5 seconds of a movie. The info should be in there somewhere, right?

mweinelt avatar Mar 10 '14 17:03 mweinelt

According to your log you have a mouse pointer, but it is never set or used? Are you sure you're actually using a mouse? Could you make a new log this time clicking the surface and waving with your mouse in front of the surface and then wait for 3 seconds for it to disappear.

giselher avatar Mar 10 '14 18:03 giselher

Actually we don't have a mouse attached to the device. We just use it as fullscreen video playback, controlled via SSH.

mweinelt avatar Mar 10 '14 18:03 mweinelt

Oh, then It is most probably not our bug, because the mouse never enters the surface. And we can't change the mouse cursor image of the compositor mouse.

Maybe there is a way to tell weston not to show the mouse cursor.

giselher avatar Mar 10 '14 19:03 giselher

I will close this issue for now. If you're 100% sure that this is our problem or we can fix it then you can reopen it any time.

giselher avatar Mar 11 '14 09:03 giselher

Arch Linux 
GNOME Shell 3.22.3 on Wayland

I have the same issue. This is the output of WAYLAND_DEBUG=1 mpv...: http://pastebin.com/7HCuE9W9 I have to move the mouse after it starts playing so that mpv hides the pointer.

simonbcn avatar Mar 23 '17 12:03 simonbcn