how to disable mouse cursor displaying in maaxboard( NXP i.MX 8M)yocto zeus wayland desktop?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to disable mouse cursor displaying in maaxboard( NXP i.MX 8M)yocto zeus wayland desktop?

8,696 Views
gonewithwind-peter
Senior Contributor I

hi  all,

how to disable mouse cursor displaying in maaxboard yocto zeus wayland desktop?

we use touchscreen, do not use the mouse to operate the menu, but there is a  black arrow mouse   cursor  displaying on the desktop(our app is base on chrome webpage)

how to disable it?

Does anybody have any help?

Thank you.

0 Kudos
Reply
11 Replies

8,683 Views
gonewithwind-peter
Senior Contributor I

@Zhiming_Liu 

thanks

0 Kudos
Reply

8,688 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@gonewithwind-peter clients\window.c

 

    //create_cursors(d);

   // d->theme = theme_create();
0 Kudos
Reply

8,664 Views
gonewithwind-peter
Senior Contributor I

@Zhiming_Liu 

 

do you know where is the cursor  file location,  we can use a transparent  cursor file to replace the  black left arrow icon.

please read here:

https://github.com/celly/transparent-xcursor

 

but I  cann not find where the icon is !

 

read here ,I posted a issue: https://github.com/celly/transparent-xcursor/issues

Thanks

0 Kudos
Reply

8,656 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@gonewithwind-peter 

 

The weston didn't use cursor icon in default.

You can config cursor-theme like:cursor-theme=Adwaita in weston.ini

 

0 Kudos
Reply

8,622 Views
gonewithwind-peter
Senior Contributor I

hi @Zhiming_Liu 

as you said ,I add cursor-theme=Adwaita in weston.ini

and create a subfolder cursors in /usr/share/icons/Adwaita/cursors, 

and copy a transparent cursor file from here https://github.com/celly/transparent-xcursor.  to  /usr/share/icons/Adwaita/cursors/ , for example: left_ptr file /usr/share/icons/Adwaita/cursors/left_ptr

Actually , the mouse cursor (black arrow) disappears in weston desktop! work! , so I change Adwaita to redglass (I copy from ubuntun desktop), actually the black arrow become RED arrow. so I make sure the solution is OK.

but our app is base on chromium(chromium-ozone-wayland )webpage. after chromium start up, the black arrow cursor comes again!

 

so I want to know where is the cursor icon's location displaying on  chromium?

I only create one file(left_ptr) in folder /usr/share/icons/Adwaita/cursors, where are the others? where the icons from on the chromium?

if I know the location,I can replace it with transparent files to make it disappear!

 

when I use  redglass Icons, it's red on weston destop,but it become black arrow again on chromium, so i thinks the icons are form different locations(files) 

Thank you very much.

 

Does anyone know?

 

 

 

0 Kudos
Reply

8,608 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

It seems that chrouim is different with weston about cursor display.I have no research about chrouim.

The change about removing top screen display is tested, but thr cursor i didn't test before.

0 Kudos
Reply

8,600 Views
gonewithwind-peter
Senior Contributor I

@Zhiming_Liu 

Thank you for your reply so soon.

I use   the following userspace code to move the cursor to left-lower corner to solve this problem. almsot is OK

https://unix.stackexchange.com/questions/422698/how-to-set-absolute-mouse-cursor-position-in-wayland...

Tags (1)
0 Kudos
Reply

8,672 Views
gonewithwind-peter
Senior Contributor I

Hi

@Zhiming_Liu 

I followed your guide to comments the tow lines in clients/windows.c

but weston   desktop totally  disappear,

my weston-chrome can not run and not display 

 

any help?

 

the following is my weston.ini file config:

 

[core]
gbm-format=argb8888
idle-time=0
#use-g2d=1
#xwayland=true
#enable-overlay-view=1

[shell]
size=1920x1080

panel-location=""
panel-position=none
background-color=0x00000000
background-image=/home/myuser/flash.png

[libinput]
touchscreen_calibrator=true

#[output]
#name=HDMI-A-1
#mode=1920x1080@60
#transform=90

0 Kudos
Reply

8,652 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You can add a script that can boot chrome when system start.

0 Kudos
Reply

8,634 Views
gonewithwind-peter
Senior Contributor I

hi @Zhiming_Liu 

it seems I change the file clients\window.c , damage the whole weston, so can not rum wayland-chromium,

is it right?

did you test that before to modify the file clients\window.c?

 

thanks

0 Kudos
Reply

8,638 Views
gonewithwind-peter
Senior Contributor I

yes, I used a script (chromium.service in systemd) to boot chrome. but  after comment the cursor source code, weston desktop windows disappear, nothing to display.

let me try cursor-theme=Adwaita

0 Kudos
Reply