Disable vibrations
#6
Hey guys,

before you rip your phones apart to cut some wires...
What do you think about "cutting wires" in software?

Have a look here:
https://gitlab.com/mobian1/devices/sunxi...phone.dtsi

Especially this entry gives the needed information:
Code:
vibrator {
compatible = "gpio-vibrator";
enable-gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
vcc-supply = <&reg_dcdc1>;
};

So if you are familiar with kernel compilation you could disable this entry by comment out the vibrator part in the DTS and generate a new dtb file.

There should also be some system service handling this, but i'm still searching... Cool 

EDIT:
O.k. dbus.service is starting /usr/libexec/feedbackd which handles the vibrator afterwards.
So you could start tweaking the theme for pinephone at: /usr/share/feedbackd/themes.
But maybe this isn't nasty enough Tongue

The daemon feedbackd has a rules definition in /lib/udev/rules.d/90-feedbackd.rules
In this file there's a definition for the vibrator:

Code:
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", ENV{ID_PATH}=="platform-vibrator", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"

Maybe it's enough to uncomment this line with "#".
Just a thought... i did not try that.

AFAIK this stuff is all handled by the kernel event system, look here as a reference (pinephone console output, the last entry):
Code:
mobian@mobian:/dev/input/by-path$ ls -l
total 0
lrwxrwxrwx 1 root root 9 16. Mär 11:31 platform-1c21800.lradc-event -> ../event1
lrwxrwxrwx 1 root root 9 16. Mär 11:31 platform-1c2ac00.i2c-event -> ../event2
lrwxrwxrwx 1 root root 9 16. Mär 11:31 platform-1f03400.rsb-platform-axp221-pek-event -> ../event4
lrwxrwxrwx 1 root root 9 16. Mär 11:31 platform-gpio-keys-event -> ../event0
lrwxrwxrwx 1 root root 9 16. Mär 11:31 platform-sound-event -> ../event3
lrwxrwxrwx 1 root root 9 16. Mär 11:31 platform-vibrator-event -> ../event5

Maybe this helps in any way.

Cheers,
scholbert
  Reply


Messages In This Thread
Disable vibrations - by 3x5co - 02-15-2021, 12:54 AM
RE: Disable vibrations - by ergo owl - 03-13-2021, 02:45 PM
RE: Disable vibrations - by Zebulon Walton - 03-13-2021, 05:03 PM
RE: Disable vibrations - by ergo owl - 03-15-2021, 03:37 PM
RE: Disable vibrations - by scholbert - 03-16-2021, 04:43 AM
RE: Disable vibrations - by quixote - 01-22-2022, 01:41 PM
RE: Disable vibrations - by Pelecanus - 05-14-2022, 12:17 PM
RE: Disable vibrations - by iwakura_lain - 06-11-2022, 09:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to disable ipv6 at kernel level with towboot? vusra 2 899 07-09-2023, 01:25 AM
Last Post: vusra
  No boot after upgrade: vibration, red LED, then 2 vibrations and yellow LED 3x5co 1 993 01-04-2023, 06:46 PM
Last Post: 3x5co
  Disable headphone controls 3x5co 0 653 09-10-2022, 07:11 AM
Last Post: 3x5co
  Disable *automatic* on-screen keyboard iwakura_lain 0 938 06-11-2022, 09:49 AM
Last Post: iwakura_lain
  Disable on screen keyboard permanently. grump_fiddle_reinstall 12 9,340 06-11-2022, 08:11 AM
Last Post: SwordfishII
  Possible to disable display of SMS text messages? Zebulon Walton 2 3,219 12-08-2020, 05:32 PM
Last Post: Zebulon Walton
  Speed up Mobian performance: disable animations 3x5co 1 3,325 11-25-2020, 10:16 AM
Last Post: elagost

Forum Jump:


Users browsing this thread: 1 Guest(s)