General TC > Programming & Scripting - Unofficial
acpid scripts for laptop Fn+F2/3/6/7/8 functions
Juanito:
Out of interest, have you tried accessing the settings directly:
--- Code: ---$ xinput list
...
AlpsPS/2 ALPS GlidePoint id=16 [slave pointer (2)]
...
--- End code ---
..so the touchpad is device id=16
--- Code: ---$ xinput list-props 16
Device 'AlpsPS/2 ALPS GlidePoint':
Device Enabled (161): 1
Coordinate Transformation Matrix (163): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (314): 0
libinput Tapping Enabled Default (315): 0
libinput Tapping Drag Enabled (316): 1
libinput Tapping Drag Enabled Default (317): 1
libinput Tapping Drag Lock Enabled (318): 0
libinput Tapping Drag Lock Enabled Default (319): 0
libinput Tapping Button Mapping Enabled (320): 1, 0
libinput Tapping Button Mapping Default (321): 1, 0
libinput Natural Scrolling Enabled (296): 0
libinput Natural Scrolling Enabled Default (297): 0
libinput Disable While Typing Enabled (322): 1
libinput Disable While Typing Enabled Default (323): 1
libinput Scroll Methods Available (298): 1, 1, 0
libinput Scroll Method Enabled (299): 1, 0, 0
libinput Scroll Method Enabled Default (300): 1, 0, 0
libinput Middle Emulation Enabled (303): 1
libinput Middle Emulation Enabled Default (304): 1
libinput Accel Speed (305): 0.000000
libinput Accel Speed Default (306): 0.000000
libinput Left Handed Enabled (310): 0
libinput Left Handed Enabled Default (311): 0
libinput Send Events Modes Available (281): 1, 1
libinput Send Events Mode Enabled (282): 0, 0
libinput Send Events Mode Enabled Default (283): 0, 0
Device Node (284): "/dev/input/event7"
Device Product ID (285): 2, 8
libinput Drag Lock Buttons (312): <no items>
libinput Horizontal Scroll Enabled (313): 1
--- End code ---
..so device enable is property id=161
--- Code: ---$ xinput set-prop 16 161 0
--- End code ---
..disables the touchpad (for example)
nick65go:
Yes, xinput works. This I tried first (reading from Gentoo, Archilinux, Xorg(5) manual), to understand the equvalences xinput <-> synaptics.
--- Code: ---$ synclient -l
Parameter settings:
#Synaptics Edge Scrolling (287): 0, 0, 0
VertEdgeScroll = 0
HorizEdgeScroll = 0
CornerCoasting = 0
#Synaptics Two-Finger Scrolling (288): 1, 1
VertTwoFingerScroll = 1
HorizTwoFingerScroll = 0
--- End code ---
--- Code: ---tc@box:~$ xinput
â â³ PS/2+USB Mouse id=9 [slave pointer
â â³ SynPS/2 Synaptics TouchPad id=11 [slave pointer
tc@box:~$ xinput list-props 11
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (143): 1
Coordinate Transformation Matrix (145): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Synaptics Edge Scrolling (309): 1, 1, 1
Synaptics Two-Finger Scrolling (310): 1, 1
--- End code ---
What I try to achieve is an automatic Xorg configuration. This can be done by loading a small driver (xf86-input-synaptics) and its configuration, OR in /home/tc/X.d using a script about xinput + a list of parameters like above.
nick65go:
Remarks about ALSA. The mydata.tgz (which contains my setings about /etc/modprobe.d/snd_hda-intel.conf) is loaded AFTER the alsa.tcz (and its alsa-module-$kernel.tcz) are loaded from onboot.lst
For me, ALSA without core remastering, can be only in on-demand; because my setting about digital sound before HDMI are useless if alsa.tcz is in onboot.lst
nick65go:
Remarks about firmware*.tcz: Even if I have listed first firmware*.tcz in onboot.lst, dmesg still shows warning messages about them. Because they are found a little later.
--- Code: ---r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8106e-1.fw failed with error -2
rtl8723be 0000:01:00.0: Direct firmware load for rtlwifi/rtl8723befw_36.bin failed with error -2
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
rtl8723be 0000:01:00.0: Direct firmware load for rtlwifi/rtl8723befw_36.bin failed with error -2
--- End code ---
Only remastering the core could suppress them.
Moreover, 3+ processes are running in the background, because firmware triggers like
--- Code: ---/sbin/udevd --daemon
--- End code ---
are not stopped later.
Juanito:
That’s not for certain, the kernel first looks in the driver for the firmware and then checks elsewhere.
--- Code: ---iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
iwlwifi 0000:02:00.0: loaded firmware version 17.459231.0 op_mode iwlmvm
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version