~mil/sxmo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH sxmo-utils v2] udev: use more specific rule for creating touchscreen symlink

Details
Message ID
<20210423101806.3665103-1-clayton@craftyguy.net>
DKIM signature
pass
Download raw message
Patch: +1 -1
On the librem 5, this rule caused a symlink from /dev/input/mouse0
(which had the TOUCHSCREEN attrib set in udev... ??) to
/dev/input/touchscreen, when it should have been from something like
/dev/event*. This change causes udev to ignore mouse*, mice* etc in
/dev/input.

Tested on the librem 5.
---
This patches the correct line in the udev rules file. V1 was a
copy/paste fail from the file that I had tested on my device.

 configs/udev/90-sxmo.rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/udev/90-sxmo.rules b/configs/udev/90-sxmo.rules
index c294e26..a63d09a 100644
--- a/configs/udev/90-sxmo.rules
+++ b/configs/udev/90-sxmo.rules
@@ -1,7 +1,7 @@
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/bin/sxmo_statusbarupdate.sh"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/usr/bin/sxmo_statusbarupdate.sh"

ACTION=="add", SUBSYSTEM=="input", ENV{ID_INPUT_TOUCHSCREEN}=="1", MODE:="0666", SYMLINK+="input/touchscreen"
ACTION=="add", SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", MODE:="0666", SYMLINK+="input/touchscreen"
ACTION=="add", SUBSYSTEM=="input", ENV{ID_PATH}=="platform-vibrator", MODE:="0666"

# taken from https://github.com/haikarainen/light/blob/master/90-backlight.rules
-- 
2.31.1

[sxmo-utils/patches/.build.yml] build success

builds.sr.ht
Details
Message ID
<CAV0YT6TSXWJ.WEI4VH56XU9@cirno2>
In-Reply-To
<20210423101806.3665103-1-clayton@craftyguy.net> (view parent)
DKIM signature
missing
Download raw message
sxmo-utils/patches/.build.yml: SUCCESS in 20s

[udev: use more specific rule for creating touchscreen symlink][0] v2 from [Clayton Craft][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/22243
[1]: mailto:clayton@craftyguy.net

✓ #494093 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/494093
Details
Message ID
<20210423172046.bsjjnhukh2mmjgrp@worker.anaproy.lxd>
In-Reply-To
<20210423101806.3665103-1-clayton@craftyguy.net> (view parent)
DKIM signature
missing
Download raw message
Thanks! Applied. Would be great to have sxmo work on Librem 5!

--

Maarten van Gompel (proycon)
https://proycon.anaproy.nl
Reply to thread Export thread (mbox)