https://wiki.archlinux.org/api.php?action=feedcontributions&user=Wikizian&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:13:46ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:Wayland&diff=516079Talk:Wayland2018-04-05T09:27:37Z<p>Wikizian: Troubleshooting "Running graphical applications as root" should discourage doing that</p>
<hr />
<div>== Window managers and desktop shells ==<br />
<br />
=== Enlightenment? ===<br />
I read [https://phab.enlightenment.org/w/wayland/ here] that they already had good support for Wayland two years ago. Doesn't that make it an important addition to this list?<br />
[[User:Johnchfr|Johnchfr]] ([[User talk:Johnchfr|talk]]) 17:49, 11 October 2014 (UTC)<br />
<br />
:Yes, you are free to add it. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 04:06, 13 October 2014 (UTC)<br />
<br />
::But, I tried it out (pkg from aur) and it seems very rough. The desktop comes up but when I try launching an app, displays an error dialog and when I close the dialog, it froze my system (I could not even switch ttys)! I didn't do much testing through different compile-options, though. -- [[User:Johnchfr|Johnchfr]] ([[User talk:Johnchfr|talk]]) 11:17, 14 October 2014 (UTC)<br />
<br />
:::It seems they're working on it, so it's worth being documented here, together with any relevant note about the state of the implementation. We don't decide what's good and what's bad for users here, we just give objective information to let the users make their own decisions. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 00:02, 15 October 2014 (UTC)<br />
<br />
==Weston - Keyboard Shortcuts ==<br />
Why set {{Ic|Ctrl-b}} in the article section ? [[User:Masterslave|vinegret]] ([[User talk:Masterslave|talk]]) 07:22, 29 January 2015 (UTC)<br />
<br />
== Replacing i3way with sway ==<br />
<br />
Hi there. I've gone ahead and replaced the i3way table row with a row about [https://github.com/SirCmpwn/sway sway] instead. i3way is vaporware with 2 years of radio silence, and sway is actually usable today. [[User:SirCmpwn|SirCmpwn]] ([[User talk:SirCmpwn|talk]]) 13:29, 16 August 2015 (UTC)<br />
<br />
== dbus ==<br />
<br />
On weston 1.12, application using dbus cannot be launched normally. I've added a workaround to launch on the troubleshooting section.<br />
<br />
[[User:Alive4ever|Alive4ever]] ([[User talk:Alive4ever|talk]])<br />
<br />
== weston usage ==<br />
<br />
Folks at #wayland told me weston should be started from tty with just weston if using logind, apparently weston-launch is a workaround(?) if it's not present. [[User:Ubone|Ubone]] ([[User talk:Ubone|talk]]) 15:49, 24 November 2017 (UTC)<br />
<br />
== Graphics driver section ==<br />
<br />
Would be cool to have some graphics driver section, just like the Xorg page. Maybe a common page? [[User:Emersion|Emersion]] ([[User talk:Emersion|talk]]) 10:26, 15 December 2017 (UTC)<br />
<br />
== Troubleshooting "Running graphical applications as root" ==<br />
<br />
I think that the https://wiki.archlinux.org/index.php/Wayland#Running_graphical_applications_as_root<br />
section should warn that it might be a bug in the application, not a bug in Wayland if the user needs to run a GUI app as root, see https://bugzilla.redhat.com/show_bug.cgi?id=1274451#c76. The wording in https://fedoraproject.org/wiki/How_to_debug_Wayland_problems#Graphical_applications_can.27t_be_run_as_root_from_terminal is pretty good, so maybe we should link to that. --[[User:Wikizian|Wikizian]] ([[User talk:Wikizian|talk]]) 09:27, 5 April 2018 (UTC)</div>Wikizianhttps://wiki.archlinux.org/index.php?title=Talk:Wayland&diff=516078Talk:Wayland2018-04-05T09:17:39Z<p>Wikizian: Troubleshooting "Running graphical applications as root" should discourage doing that</p>
<hr />
<div>== Window managers and desktop shells ==<br />
<br />
=== Enlightenment? ===<br />
I read [https://phab.enlightenment.org/w/wayland/ here] that they already had good support for Wayland two years ago. Doesn't that make it an important addition to this list?<br />
[[User:Johnchfr|Johnchfr]] ([[User talk:Johnchfr|talk]]) 17:49, 11 October 2014 (UTC)<br />
<br />
:Yes, you are free to add it. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 04:06, 13 October 2014 (UTC)<br />
<br />
::But, I tried it out (pkg from aur) and it seems very rough. The desktop comes up but when I try launching an app, displays an error dialog and when I close the dialog, it froze my system (I could not even switch ttys)! I didn't do much testing through different compile-options, though. -- [[User:Johnchfr|Johnchfr]] ([[User talk:Johnchfr|talk]]) 11:17, 14 October 2014 (UTC)<br />
<br />
:::It seems they're working on it, so it's worth being documented here, together with any relevant note about the state of the implementation. We don't decide what's good and what's bad for users here, we just give objective information to let the users make their own decisions. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 00:02, 15 October 2014 (UTC)<br />
<br />
==Weston - Keyboard Shortcuts ==<br />
Why set {{Ic|Ctrl-b}} in the article section ? [[User:Masterslave|vinegret]] ([[User talk:Masterslave|talk]]) 07:22, 29 January 2015 (UTC)<br />
<br />
== Replacing i3way with sway ==<br />
<br />
Hi there. I've gone ahead and replaced the i3way table row with a row about [https://github.com/SirCmpwn/sway sway] instead. i3way is vaporware with 2 years of radio silence, and sway is actually usable today. [[User:SirCmpwn|SirCmpwn]] ([[User talk:SirCmpwn|talk]]) 13:29, 16 August 2015 (UTC)<br />
<br />
== dbus ==<br />
<br />
On weston 1.12, application using dbus cannot be launched normally. I've added a workaround to launch on the troubleshooting section.<br />
<br />
[[User:Alive4ever|Alive4ever]] ([[User talk:Alive4ever|talk]])<br />
<br />
== weston usage ==<br />
<br />
Folks at #wayland told me weston should be started from tty with just weston if using logind, apparently weston-launch is a workaround(?) if it's not present. [[User:Ubone|Ubone]] ([[User talk:Ubone|talk]]) 15:49, 24 November 2017 (UTC)<br />
<br />
== Graphics driver section ==<br />
<br />
Would be cool to have some graphics driver section, just like the Xorg page. Maybe a common page? [[User:Emersion|Emersion]] ([[User talk:Emersion|talk]]) 10:26, 15 December 2017 (UTC)<br />
<br />
== Troubleshooting "Running graphical applications as root" ==<br />
<br />
I think that the https://wiki.archlinux.org/index.php/Wayland#Running_graphical_applications_as_root<br />
section should warn that it might be a bug in the application, not a bug in Wayland if the user needs to run a GUI app as root, see https://bugzilla.redhat.com/show_bug.cgi?id=1274451#c76.</div>Wikizianhttps://wiki.archlinux.org/index.php?title=Libinput&diff=457790Libinput2016-11-25T23:34:01Z<p>Wikizian: /* Common options */ ClickMethod=fingers</p>
<hr />
<div>{{Lowercase title}}<br />
[[Category:Input devices]]<br />
[[ja:Libinput]]<br />
{{Related articles start}}<br />
{{Related|Xorg}}<br />
{{Related|Touchpad Synaptics}}<br />
{{Related|Wayland}}<br />
{{Related articles end}}<br />
<br />
From the [https://freedesktop.org/wiki/Software/libinput/ libinput] wiki page: <br />
<br />
:libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code compositors need to provide the common set of functionality that users expect.<br />
<br />
The X.Org input driver supports most regular [[Xorg#Input devices]]. Particularly notable is the project's goal to provide advanced support for touch (multitouch and gesture) features of touchpads and touchscreens. See the [http://wayland.freedesktop.org/libinput/doc/latest/pages.html project documentation] for more information.<br />
<br />
== Installation ==<br />
<br />
If you wish to use libinput under [[Wayland]], there is nothing to do for installation. The {{pkg|libinput}} package should already be installed as a dependency of any graphical environment you use that has Wayland, and no additional driver is needed.<br />
<br />
If you wish to use libinput with [[Xorg]], [[install]] the {{Pkg|xf86-input-libinput}} package, which is "a thin wrapper around libinput and allows for libinput to be used for input devices in X. This driver can be used as as drop-in replacement for evdev and synaptics." [https://freedesktop.org/wiki/Software/libinput/] In other words, other packages used for input with X (i.e., those prefixed with {{ic|xf86-input-}}) can be replaced with this driver.<br />
<br />
You may also want to install {{Pkg|xorg-xinput}} to be able to change settings at runtime. <br />
<br />
== Configuration == <br />
<br />
For [[Xorg]], a default configuration file is installed in {{ic|/usr/share/X11/xorg.conf.d/40-libinput.conf}}. No extra configuration is necessary for it to autodetect keyboards, touchpads, trackpointers and supported touchscreens. <br />
<br />
First, execute:<br />
# libinput-list-devices <br />
It will output the devices on the system and their respective features supported by libinput. <br />
<br />
After a [[restart]] of the graphical environment, the devices should be managed by libinput with default configuration, if no other drivers are configured to take precedence. <br />
<br />
See the libinput(4) manual page for general options to set. The ''xinput'' tool is used to view or change options available for a particular device at runtime. For example: <br />
$ xinput list<br />
to view all devices and determine their numbers<br />
$ xinput list-props ''device-number'' <br />
to view and <br />
$ xinput set-prop ''device-number'' ''option-number'' ''setting'' <br />
to change a setting. <br />
<br />
See [[Xorg#Using .conf files]] for permanent option settings. [[Logitech Marble Mouse#Using libinput]] and [[#Button re-mapping]] illustrate examples. <br />
<br />
Alternative drivers for [[Xorg#Input devices]] can generally be installed in parallel. If you intend to switch driver for a device to use libinput, ensure no legacy configuration files {{ic|/etc/X11/xorg.conf.d/}} for other drivers take precedence. <br />
{{Tip|If you have libinput and synaptics installed in parallel with default configuration (i.e. no files in {{ic|/etc/X11/xorg.conf.d}} for both), synaptics will take precedence due to its {{ic|70-synaptics.conf}} file name. To avoid this, you can symlink the default libinput configuration: <br />
# ln -s /usr/share/X11/xorg.conf.d/60-libinput.conf /etc/X11/xorg.conf.d/60-libinput.conf<br />
If you ''do'' have {{ic|/etc/X11/xorg.conf.d/}} configuration files for both, the libinput file must be ordered second; see [[Xorg#Using .conf files]].}}<br />
<br />
One way to check which devices are managed by libinput is the [[Xorg#General|xorg logfile]]. For example, the following:<br />
<br />
{{hc|$ grep -e "Using input driver 'libinput'" ''/path/to/Xorg.0.log''|<br />
[ 28.799] (II) Using input driver 'libinput' for 'Power Button'<br />
[ 28.847] (II) Using input driver 'libinput' for 'Video Bus'<br />
[ 28.853] (II) Using input driver 'libinput' for 'Power Button'<br />
[ 28.860] (II) Using input driver 'libinput' for 'Sleep Button'<br />
[ 28.872] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'<br />
[ 28.878] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'<br />
[ 28.886] (II) Using input driver 'libinput' for 'TPPS/2 IBM TrackPoint'<br />
[ 28.895] (II) Using input driver 'libinput' for 'ThinkPad Extra Buttons'}}<br />
<br />
is a notebok without any configuration files in {{ic|/etc/X11/xorg.conf.d/}}, i.e. devices are autodetected. <br />
<br />
Of course you can elect to use an alternative driver for one device and libinput for others. A number of factors may influence which driver to use. For example, in comparison to [[Touchpad Synaptics]] the libinput driver has fewer options to customize touchpad behaviour to one's own taste, but far more programmatic logic to process multitouch events (e.g. palm detection as well). Hence, it makes sense to try the alternative, if you are experiencing problems on your hardware with one driver or the other.<br />
<br />
=== Common options ===<br />
<br />
Custom configuration files should be placed in {{ic|/etc/X11/xorg.conf.d/}} and following a widely used naming schema {{ic|30-touchpad.conf}} is often chosen as filename.<br />
<br />
{{Tip|Have a look at {{ic|/usr/share/X11/xorg.conf.d/60-libinput.conf}} for guidance and refer to the {{man|4|libinput|url=https://www.mankier.com/4/libinput}} manual page for a detailed description of available configuration options.}}<br />
<br />
A basic configuration should have the following structure:<br />
{{hc|/etc/X11/xorg.conf.d/30-touchpad.conf|<br />
Section "InputClass"<br />
Identifier "devname"<br />
Driver "libinput"<br />
Option "Device" "devpath"<br />
...<br />
EndSection<br />
}}<br />
You may define as many sections as you like in a single configuration file.<br />
To configure the device of your choice specify a filter by using {{ic|MatchIsPointer "on"}}, {{ic|MatchIsKeyboard "on"}}, {{ic|MatchIsTouchpad "on"}} or {{ic|MatchIsTouchscreen "on"}} and add your desired option. Common options include:<br />
* {{ic|"Tapping" "on"}}: tapping a.k.a. tap-to-click<br />
* {{ic|"ClickMethod" "fingers"}}: trackpad no longer has middle and right button areas and instead two-finger click is a context click and three-finger click is a middle click, see the [https://wayland.freedesktop.org/libinput/doc/latest/clickpad_softbuttons.html#clickfinger docs].<br />
* {{ic|"NaturalScrolling" "true"}}: natural (reverse) scrolling<br />
* {{ic|"ScrollMethod" "edge"}}: edge (vertical) scrolling<br />
Bear in mind that some of them may only apply to certain devices.<br />
<br />
=== Graphical tools ===<br />
<br />
There are different GUI tools:<br />
<br />
* [[GNOME]]: <br />
** Control center has a basic UI under 'Mouse & Touchpad'.<br />
* [[Cinnamon]]: <br />
** Similar to the GNOME UI, with more options.<br />
* [[KDE Plasma]] 5: <br />
** Basic options within Touchpad section (kcm_touchpad) in System Settings.<br />
** [https://github.com/amezin/pointing-devices-kcm pointing-devices-kcm] ({{AUR|kcm-pointing-devices-git}}) is a new and rewritten KCM for all input devices supported by libinput.<br />
<br />
== Tips and tricks ==<br />
<br />
=== Button re-mapping ===<br />
<br />
Swapping two- and three-finger tap for a touchpad is a straight forward example. Instead of the default three-finger tap for pasting you can configure two-finger tap pasting by setting the {{ic|TappingButtonMap}} option in your [[Xorg]] configuration file. To set 1/2/3-finger taps to left/right/middle set {{ic|TappingButtonMap}} to {{ic|lrm}}, for left/middle/right set it to {{ic|lmr}}.<br />
<br />
{{hc|/etc/X11/xorg.conf.d/30-touchpad.conf|<br />
Section "InputClass"<br />
Identifier "touchpad"<br />
Driver "libinput"<br />
MatchIsTouchpad "on"<br />
Option "Tapping" "on"<br />
Option "TappingButtonMap" "lmr"<br />
EndSection}}<br />
<br />
Remember to remove {{ic|MatchIsTouchpad "on"}} if your device is not a touchpad and adjust the {{ic|Identifier}} accordingly.<br />
<br />
=== Manual button re-mapping ===<br />
<br />
For some devices it is desirable to change the button mapping. A common example is the use of a thumb button instead of the middle button (used in X11 for pasting) on mice where the middle button is part of the mouse wheel. You can query the current button mapping via:<br />
$ xinput get-button-map ''device''<br />
You can freely permutate the button numbers and write them back. Example:<br />
$ xinput set-button-map ''device'' 1 6 3 4 5 0 7<br />
In this example, we mapped button 6 to be the middle button and disabled the original middle button by assigning it to button 0. <br />
This may also be used for [[Wayland]], but be aware both the ''device'' number and its button-map will be different. Hence, settings are not directly interchangeable. <br />
<br />
{{Tip|You can use ''xev'' (from the {{Pkg|xorg-xev}} package) to find out which physical button is currently mapped to which ID.}}<br />
<br />
Some devices occur several times under the same device name, with a different amount of buttons exposed. The following is an example for reliably changing the button mapping for a Logitech Revolution MX mouse via [[xinitrc]]:<br />
<br />
{{hc|~/.xinitrc|<nowiki><br />
...<br />
for i in $(xinput list | grep "Logitech USB Receiver" | perl -n -e'/id=(\d+)/ && print "$1\n"')<br />
do if xinput get-button-map "$i" 2>/dev/null| grep -q 20; then<br />
xinput set-button-map "$i" 1 17 3 4 5 8 7 6 9 10 11 12 13 14 15 16 2 18 19 20<br />
fi<br />
done<br />
...</nowiki>}}<br />
<br />
=== Gestures ===<br />
<br />
While the libinput driver already contains logic to process advanced multitouch events like swipe and pinch [https://wayland.freedesktop.org/libinput/doc/latest/gestures.html gestures], the [[Desktop environment]] or [[Window manager]] might not have implemented actions for all of them yet. <br />
<br />
For [[w:Extended_Window_Manager_Hints|EWMH]] (see also [https://www.freedesktop.org/wiki/Specifications/wm-spec/ wm-spec]) compliant window managers, the [https://github.com/bulletmark/libinput-gestures libinput-gestures] utility can be used meanwhile. The program reads libinput gestures (through {{ic|libinput-debug-events}}) from the touchpad and maps them to gestures according to a configuration file. Hence, it offers some flexibility within the boundaries of libinput's built-in recognition.<br />
<br />
To use [https://github.com/bulletmark/libinput-gestures libinput-gestures], install the {{Aur|libinput-gestures}} package. You can use the default system-wide configured swipe and pinch gestures or define your own in a personal configuration file, see the [https://github.com/bulletmark/libinput-gestures/blob/master/README.md README] for details.<br />
<br />
== Debugging ==<br />
First, see whether the packaged ''libinput-debug-events'' tool can support you in debugging the problem. Executing {{ic|libinput-debug-events --help}} shows options it covers.<br />
<br />
Some inputs require kernel support. The tool ''evemu-describe'' from the {{Pkg|evemu}} package can be used to check: <br />
<br />
Compare the output of [http://ix.io/m6b software supported input trackpad driver] with [https://github.com/whot/evemu-devices/blob/master/touchpads/SynPS2%20Synaptics%20TouchPad-with-scrollbuttons.events a supported trackpad]. i.e. a couple of ABS_ axes, a couple of ABS_MT axes and no REL_X/Y axis. For a clickpad the {{ic|INPUT_PROP_BUTTONPAD}} property should also be set, if it is supported.<br />
<br />
=== Touchpad not working in GNOME ===<br />
<br />
Ensure the touchpad events are being sent to the GNOME desktop by running the following command:<br />
$ gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled<br />
<br />
== See also == <br />
<br />
* [https://wayland.freedesktop.org/libinput/doc/latest/index.html libinput Wayland documentation]<br />
* [https://archive.fosdem.org/2015/schedule/event/libinput/attachments/slides/591/export/events/attachments/libinput/slides/591/libinput_xorg.pdf FOSDEM 2015 - libinput] - Hans de Goede on goals and plans of the project<br />
*[http://who-t.blogspot.com.au/ Peter Hutterer's Blog] - numerous posts on libinput from one of the project's hackers</div>Wikizianhttps://wiki.archlinux.org/index.php?title=Talk:Libinput&diff=455860Talk:Libinput2016-11-03T04:47:15Z<p>Wikizian: ClickMethod gsettings question</p>
<hr />
<div>== Fiddling with files in /usr/share ==<br />
<br />
The new tip suggests that users delete files in /usr/share/X11/xorg.conf.d. However, the X11 documentation says that files in this directory are for system use and user configuration files should go into /etc/X11/xorg.conf.d. Therefore I think that this tip should be worded differently but I do not feel completely certain.<br />
<br />
[[User:Cqql|Cqql]] ([[User talk:Cqql|talk]]) 12:45, 1 September 2016 (UTC)<br />
<br />
:It doesn't say to ''delete'' the file. I think it can be overridden by naming the libinput file e.g. {{ic|60-libinput.conf}} so that it is applied before synaptics. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 13:05, 1 September 2016 (UTC)<br />
<br />
::What do you think about describing how to take care of the precedence issue in the previous paragraph and make the tip just "As a shortcut you could also uninstall xf86-input-synaptics"? [[User:Cqql|Cqql]] ([[User talk:Cqql|talk]]) 13:44, 1 September 2016 (UTC)<br />
<br />
:::It can be expanded in the tip itself. The surrounding text is 100% libinput and the tip is not needed for people not having synaptics in the first place. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 14:09, 1 September 2016 (UTC)<br />
<br />
::::I tried my best. -- [[User:Cqql|Cqql]] ([[User talk:Cqql|talk]]) 16:53, 1 September 2016 (UTC)<br />
<br />
:::::Cheers, your edit had me come up with another approach which may roll smoother on updates. --[[User:Indigo|Indigo]] ([[User talk:Indigo|talk]]) 15:53, 3 September 2016 (UTC)<br />
<br />
::::::I feel like the new tip is not broad enough in scope. Where the old tip covered the general situation, the new one only covers the specific situation of no configuration files at all. Maybe they should have been combined instead. -- [[User:Cqql|Cqql]] ([[User talk:Cqql|talk]]) 16:33, 3 September 2016 (UTC)<br />
<br />
:::::::Hm, I thought it was sufficient because [[Xorg#Using_.conf_files]] is linked to already. Added [https://wiki.archlinux.org/index.php?title=Libinput&type=revision&diff=451623&oldid=450978]. --[[User:Indigo|Indigo]] ([[User talk:Indigo|talk]]) 18:58, 22 September 2016 (UTC)<br />
<br />
== Scrolling issue ==<br />
<br />
I'm not sure where to go for support of this.<br />
<br />
'''Accidentally scrolling where my palm touches my T460s trackpad enters some text'''<br />
<br />
http://s.natalian.org/2016-09-16/libinput-list-devices.txt<br />
<br />
How do I limit or disable this unwanted behaviour?<br />
<br />
{{unsigned|02:30, 16 September 2016|Hendry}}<br />
<br />
:Look through the man page for {{man|4|libinput}}. {{ic|"DisableWhileTyping"}} might be what you are looking for. -- [[User:Cqql|Cqql]] ([[User talk:Cqql|talk]]) 02:34, 16 September 2016 (UTC)<br />
<br />
== ClickMethod clickfinger/fingers ? ==<br />
<br />
I'm confused why the [https://cgit.freedesktop.org/xorg/driver/xf86-input-libinput/tree/src/xf86libinput.c#n526 source code] the [https://wayland.freedesktop.org/libinput/doc/latest/clickpad_softbuttons.html#clickfinger documentation], and the [https://www.mankier.com/4/libinput manpage] all mention "clickfinger" as the click_method, but <code>gsettings range org.gnome.desktop.peripherals.touchpad click-method</code> showed that I had to use "fingers", not "clickfinger" for the setting. Does anybody know why that is?</div>Wikizian