-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Chromium: Hide mouse in autostart kiosk mode #2575
Comments
@Zixim I remember this from the other topic, so indeed you tried out both method and non of them worked. I will check this out on x86 machine to verify it's either DietPi or RPi specific. |
This seems to do the trick using unclutter, I tested this on a Raspberry Pi 3B+.
|
I admit that I never added the |
@crawc I still wonder why |
Sorry for the delayed reply. |
@crawc @Zixim So the command entry needs to be: However the noclutter option has the advantage that the cursor can show up when moved.
But this depends on LXDE desktop which is not always chosen, not must be any desktop chosen for chromium. So we need to find a way to add it as xinit/Xorg autostart script. Lol actually unclutter should be already executed by default on all xinit calls:
Ah understand it now:
|
Okay found the best two solutions based on use case
(Requires validation on RPi, since other Chromium package is used there, but works well on Debian...)
So the question is now which one we want to implement by default, if any, or leave choice to user via |
I like the idea of having options: No cursor or Hide cursor when in chrome kiosk mode. I just tried the |
@crawc Just tested |
Yes, the directory did exist with a single file
|
@crawc
|
I tried with
|
@crawc |
I'm using the root user. |
@crawc |
@MichaIng That did it on the RPi3B+, I will test on RPi1 and RPi2 as well! Nice find! |
@crawc Did I added this to v6.23 milestone, now that we finally found the solution on RPi. |
@MichaIng, |
@mrbluecoat |
With your version I get |
@mrbluecoat |
Hi, |
@arahasya |
Have you found a solution for this? This command works for me on an Odroid C4 with DietPi 8.12.1
Which I guess translates to the autostart.sh file as
|
I think this is the right syntax for "If you never want to use the mouse": |
Ah right, many thanks. Indeed the config file location as well as the way the X server is invoked has changed. I'll adjust it this weekend. |
This solution is detailed enough and it worked fine for me. I was looking all comments and only this specifies exactly which file to update and which line to update. Thanks! |
ADMIN EDIT: Solutions
If you still want to be able to use the mouse, only hide it when idle:
On RPi:
On all other devices:
If you never want to use the mouse:
Required Information
#!/bin/bash
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=21
G_DIETPI_VERSION_RC=1
G_GITBRANCH=master
G_GITOWNER=Fourdee
cat /etc/debian_version
9.8
uname -a
Linux DietPi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
SBC device Rpi3
Additional Information (if applicable)
Steps to reproduce
The Pi has no attached keyb nor mouse.
as described here : https://github.com/Fourdee/DietPi/issues/2298#issuecomment-443406683
install unclutter
add line to chromium-autostart.sh , before xinit line:
Expected behaviour
Chromium starts and displays page.
Cursor disappears after approx 10 seconds.
Actual behaviour
Cursor never disappears
Extra details
Have also tried
No joy.
https://github.com/Fourdee/DietPi/issues/2298#issuecomment-443406683
The text was updated successfully, but these errors were encountered: