General TC > Programming & Scripting - Unofficial
acpid scripts for laptop Fn+F2/3/6/7/8 functions
nick65go:
Two more small victories. Like the song says "another one bits the dust".
It was about input devices. My UK keyboard does not let me type € (euros sign) for Alt-gr + 4.
And the touch-pad is clever in Win10 but stupid in linux. It seams the modern "all-inclusive" libinput (in preparation for Wayland?) is good replacement for evdev, but libinput has not all options as old/trusted synaptics.
--- Code: ---#/etc/X11/xorg.conf.d/20-keyboard.conf
Section "InputClass"
Identifier "My Keyboard"
Driver "libinput"
MatchIsKeyboard "yes"
Option "XkbLayout" "gb" #not uk!
Option "XkbVariant" "extd" #not intl
Option "XkbOptions" "euro sign:4,terminate:ctrl_alt_bksp"
EndSection
--- End code ---
An inspection on /var/log/Xog.0.log shows that only synaptic driver takes my options=.., ignored by libinput "master of inputs"
--- Code: ---#/etc/X11/xorg.conf.d/70-synaptics.conf
Section "InputClass"
Identifier "My Pad"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "ClickFinger1" "1"
Option "ClickFinger2" "2"
Option "ClickFinger3" "3"
Option "RTCornerButton" "2"
Option "RBCornerButton" "3"
Option "LTCornerButton" "1"
Option "LBCornerButton" "1"
Option "VertEdgeScroll" "1"
Option "HorizEdgeScroll" "1"
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"
Option "CornerCoasting" "1"
Option "CircularScrolling" "1"
Option "CoastingSpeed" "2"
Option "CoastingFriction" "5"
Option "SoftButtonAreas" "60% 0 82% 0 40% 59% 82% 0"
EndSection
--- End code ---
FYI: all these little things (keyboard, audio, sound) keep users on Win10 (bloat/spy).
Juanito:
What happens without xf86-input-evdev and xf86-input-synaptics loaded?
Juanito:
--- Quote from: nick65go on May 19, 2020, 06:41:04 AM ---in preparation for Wayland?
--- End quote ---
wayland has been available for some time now in CorePure64 - have you tried the weston compositor?
nick65go:
Hi Juanito, as I said, by default I do no load xf86-input-evdev, neither xf86-input-synaptic. xf86-input-libinput just works.but it ignores my options from
--- Code: ---#/etc/X11/xorg.conf.d/70-synaptics.conf
Section "InputClass"
Identifier "My Pad"
Driver "libinput"
--- End code ---
So I need to load xf86-input-synaptic also.
--- Code: ---#/etc/X11/xorg.conf.d/70-synaptics.conf
Section "InputClass"
Identifier "My Pad"
Driver "synaptics"
--- End code ---
About wayland, i have no clue, just reading articles about why evdev is replaced, and libinput promoted (maybe for touch screens, etc)
FYI: I am still at base things, like Xorg + FLTK. partial GK1/2/3 as imposed by others like firefox.
nick65go:
just to confirm, again, that libinput ignores my syntax for "options=" from 70-synaptics.conf
I delete /var/log/Xorg.0.log, I modified the (only one on my laptop) 70-synaptics.conf, to have
--- Code: ---#/etc/X11/xorg.conf.d/70-synaptics.conf
Section "InputClass"
Identifier "My Pad"
Driver "libinput"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
--- End code ---
shut-down X server, then startx. inspecting the fresh /var/log/Xorg.0.log i see it missed all my synaptic options (needed for horizontal/vertical edge scrolls, etc)
--- Code: ---[ 1186.556] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
[ 1186.556] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[ 1186.556] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "My Pad"
[ 1186.556] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
[ 1186.556] (**) SynPS/2 Synaptics TouchPad: always reports core events
[ 1186.556] (**) Option "Device" "/dev/input/event8"
[ 1186.556] (**) Option "_source" "server/udev"
[ 1186.558] (II) event8 - SynPS/2 Synaptics TouchPad: is tagged by udev as: Touchpad
[ 1186.561] (II) event8 - SynPS/2 Synaptics TouchPad: device is a touchpad
[ 1186.561] (II) event8 - SynPS/2 Synaptics TouchPad: device removed
[ 1186.604] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input5/event8"
[ 1186.608] (**) Option "AccelerationScheme" "none"
[ 1186.608] (**) SynPS/2 Synaptics TouchPad: (accel) selected scheme none/0
[ 1186.608] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[ 1186.608] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[ 1186.610] (II) event8 - SynPS/2 Synaptics TouchPad: is tagged by udev as: Touchpad
[ 1186.613] (II) event8 - SynPS/2 Synaptics TouchPad: device is a touchpad
[ 1186.614] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[ 1186.614] (II) No input driver specified, ignoring this device.
[ 1186.614] (II) This device may have been added with another device file.
[ 1186.615] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
[ 1186.615] (II) No input driver specified, ignoring this device.
--- End code ---
PS: in dmesg (from Control Panel) I see also (but i belive it is not critical)
--- Code: ---psmouse serio1: synaptics: queried max coordinates: x [..5656], y [..4712]
psmouse serio1: synaptics: queried min coordinates: x [1326..], y [1200..]
psmouse serio1: synaptics: Your touchpad (PNP: SYN3202 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org.
random: fast init done
--- End code ---
full Xorg.0.log is attached as prove.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version