Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
2416 views
Debugging an unresponsive touchpad on Lenovo Ideapad 320-15ABR
I have a Lenovo Ideapad 320-15ABR, (I found the exact model name with `dmidecode`). I'm having trouble getting the touchpad to work. It's not showing up in `xinput --list` or `cat /proc/bus/input/devices`. I'm using Linux 4.13.2, compiled with some extra debugging messages. Here's some relevant dmes...
I have a Lenovo Ideapad 320-15ABR, (I found the exact model name with dmidecode). I'm having trouble getting the touchpad to work. It's not showing up in xinput --list or cat /proc/bus/input/devices. I'm using Linux 4.13.2, compiled with some extra debugging messages. Here's some relevant dmesg output when booted with i8042.nopnp. Without this option, I get the message: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp $ dmesg|grep psm [ 2.595815] bus: 'serio': add driver psmouse [ 2.627475] bus: 'serio': driver_probe_device: matched device serio1 with driver psmouse [ 2.627477] bus: 'serio': really_probe: probing driver psmouse with device serio1 [ 2.627482] psmouse serio1: no default pinctrl state [ 2.651584] psmouse: probe of serio1 rejects match -19 $ dmesg|grep i8042 [ 2.577522] i8042: PNP detection disabled [ 2.578648] Registering platform device 'i8042'. Parent at platform [ 2.578650] device: 'i8042': device_add [ 2.578655] bus: 'platform': add device i8042 [ 2.578668] PM: Adding info for platform:i8042 [ 2.578682] bus: 'platform': add driver i8042 [ 2.578692] bus: 'platform': driver_probe_device: matched device i8042 with driver i8042 [ 2.578694] bus: 'platform': really_probe: probing driver i8042 with device i8042 [ 2.578699] i8042 i8042: no default pinctrl state [ 2.578702] devices_kset: Moving i8042 to end of list [ 2.595059] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 2.595070] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 2.595125] driver: 'i8042': driver_bound: bound to device 'i8042' [ 2.595150] bus: 'platform': really_probe: bound device i8042 to driver i8042 [ 2.604184] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 **edit:** I've opened a ticket here in case anyone is interested in following this problem: https://bugzilla.kernel.org/show_bug.cgi?id=196985
nnyby (125 rep)
Sep 18, 2017, 05:10 PM • Last activity: Jul 30, 2025, 10:07 PM
2 votes
2 answers
6045 views
ls: reading directory '.': Input/output error
xubuntu, NTFS. When I trying to open directory with files: username@username-hp:/media/username/dir1/dir2/music$ la ls: reading directory '.': Input/output error Also if I open the directory with the thunar, there is empty inside, but if I open the directory by console it works: username@username-hp...
xubuntu, NTFS. When I trying to open directory with files: username@username-hp:/media/username/dir1/dir2/music$ la ls: reading directory '.': Input/output error Also if I open the directory with the thunar, there is empty inside, but if I open the directory by console it works: username@username-hp:/media/username/dir1/dir2/music$ cd KORN username@username-hp:/media/username/dir1/dir2/music/KORN$ ls -alhis total 92K 12484 4,0K drwxrwxrwx 1 username username 4,0K jan 29 2013 . 7386 88K drwxrwxrwx 1 username username 88K jan 7 17:53 .. 12485 0 drwxrwxrwx 1 username username 0 jan 29 2013 1994 - Korn I have access almost to all files in the directory. For example torrent and media player programs have a troubles of several files in the 'music' directory and I can't access to these files from console: username@username-hp:/media/username/dir1/dir2/music$ cd InternalDirectory bash: cd: InternalDirectory: No such file or directory Aaaaa, help!
MEAT ROLL (21 rep)
May 21, 2018, 07:25 PM • Last activity: Jun 9, 2025, 05:04 PM
0 votes
1 answers
1944 views
How to emulate touch event by writing to /dev/input/eventX in Linux?
I am working on an embedded Linux (kernel 5.10.24) with a touch screen. Now I want to trigger touch event by writing to /dev/input/eventX corresponding to the touch screen. To figure out the event I want to emulate, I firstly collected the events by touching the screen. Then I hard coded the events...
I am working on an embedded Linux (kernel 5.10.24) with a touch screen. Now I want to trigger touch event by writing to /dev/input/eventX corresponding to the touch screen. To figure out the event I want to emulate, I firstly collected the events by touching the screen. Then I hard coded the events in codes and write them one by one to the /dev/input/eventX. Below are the events I got from a touching.
~ # ./touchevent
timeS=1651152027,timeUS=312095,type=3,code=57,value=50
timeS=1651152027,timeUS=312095,type=3,code=53,value=218
timeS=1651152027,timeUS=312095,type=3,code=54,value=1223
timeS=1651152027,timeUS=312095,type=3,code=48,value=54
timeS=1651152027,timeUS=312095,type=3,code=58,value=54
timeS=1651152027,timeUS=312095,type=1,code=330,value=1
timeS=1651152027,timeUS=312095,type=0,code=0,value=0
timeS=1651152027,timeUS=448388,type=3,code=57,value=-1
timeS=1651152027,timeUS=448388,type=1,code=330,value=0
timeS=1651152027,timeUS=448388,type=0,code=0,value=0
I hardcoded the first 7 events (including an EV_SYN) to write to /dev/input/eventX.
#include 
#include 
#include 
#include 
#include 
int main( void )
{
        int                     fd;
        int                     ret;
        struct input_event      event;

        fd = open( "/dev/input/event0", O_RDWR);
        if ( fd < 0 )
        {
                perror( "/dev/input/event0" );
                return(-1);
        }

        event.type = 3;
        event.code = 53;
        event.value = 218;
        ret     = write( fd, &event, sizeof(struct input_event) );
        printf("ret: %d\n", ret);

        event.type = 3;
        event.code = 54;
        event.value = 1223;
        ret     = write( fd, &event, sizeof(struct input_event) );
        printf("ret: %d\n", ret);

        event.type = 3;
        event.code = 48;
        event.value = 54;
        ret     = write( fd, &event, sizeof(struct input_event) );
        printf("ret: %d\n", ret);

        event.type = 3;
        event.code = 58;
        event.value = 54;
        ret     = write( fd, &event, sizeof(struct input_event) );
        printf("ret: %d\n", ret);

        event.type = 1;
        event.code = 330;
        event.value = 1;
        ret     = write( fd, &event, sizeof(struct input_event) );
        printf("ret: %d\n", ret);

        event.type = 0;
        event.code = 0;
        event.value = 0;
        ret     = write( fd, &event, sizeof(struct input_event) );
        printf("ret: %d\n", ret);

        close( fd );
.....
}
When I ran the code on the target, there is NO expected response from the touch screen. I am not sure if it is possible to emulate touch events by writing to /dev/input/eventX, if so, what did I miss on doing it ? I don't have sendevent/getevent tools from Andriod, and I want to do this by myself.
wangt13 (631 rep)
May 5, 2023, 01:31 AM • Last activity: May 30, 2025, 10:07 AM
5 votes
1 answers
2783 views
How to check if If i2c-hid and hid-rmi are not used for touchpad?
I'm seeing the following warning in `dmesg`: [ 2.631179] psmouse serio2: synaptics: Your touchpad (PNP: SYN1218 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.kerne...
I'm seeing the following warning in dmesg: [ 2.631179] psmouse serio2: synaptics: Your touchpad (PNP: SYN1218 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. ... [ 2.819449] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio2/input/input10 The touchpad works, but I feel that it is not working as well as it used to. I'm on Gentoo with a custom configured kernel. I've recently switched to other distros and came back to Gentoo and reconfigured the kernel from the ground up. I don't believe I did something out of the ordinary with regards to the input devices, so this *might* be a bug as suggested in dmesg. $ uname -r 5.1.4-gentoo $ grep -E 'INPUT|I2C_HID|HID_RMI' .config CONFIG_RFKILL_INPUT=y CONFIG_INPUT=y CONFIG_INPUT_LEDS=m CONFIG_INPUT_FF_MEMLESS=y CONFIG_INPUT_POLLDEV=y CONFIG_INPUT_SPARSEKMAP=m # CONFIG_INPUT_MATRIXKMAP is not set # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_JOYDEV is not set CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_EVBUG is not set CONFIG_INPUT_KEYBOARD=y CONFIG_INPUT_MOUSE=y CONFIG_INPUT_JOYSTICK=y CONFIG_INPUT_TABLET=y CONFIG_INPUT_TOUCHSCREEN=y CONFIG_INPUT_MISC=y # CONFIG_INPUT_AD714X is not set # CONFIG_INPUT_BMA150 is not set # CONFIG_INPUT_E3X0_BUTTON is not set # CONFIG_INPUT_MSM_VIBRATOR is not set # CONFIG_INPUT_PCSPKR is not set # CONFIG_INPUT_MMA8450 is not set # CONFIG_INPUT_APANEL is not set # CONFIG_INPUT_ATLAS_BTNS is not set # CONFIG_INPUT_ATI_REMOTE2 is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set # CONFIG_INPUT_KXTJ9 is not set # CONFIG_INPUT_POWERMATE is not set # CONFIG_INPUT_YEALINK is not set # CONFIG_INPUT_CM109 is not set # CONFIG_INPUT_UINPUT is not set # CONFIG_INPUT_PCF8574 is not set # CONFIG_INPUT_ADXL34X is not set # CONFIG_INPUT_IMS_PCU is not set # CONFIG_INPUT_CMA3000 is not set # CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set # CONFIG_INPUT_DRV2665_HAPTICS is not set # CONFIG_INPUT_DRV2667_HAPTICS is not set CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y CONFIG_USB_PWC_INPUT_EVDEV=y CONFIG_SND_JACK_INPUT_DEV=y # CONFIG_SND_HDA_INPUT_BEEP is not set CONFIG_HID_RMI=y CONFIG_I2C_HID=y > If i2c-hid and hid-rmi are not used **My question**: how do I check if those are not used? > you might want to try setting psmouse.synaptics_intertouch to 1 $ sudo sysctl -a | grep "psmouse.synaptics_intertouch" Returns nothing, so nothing to set there.
Tim (1104 rep)
May 25, 2019, 09:22 AM • Last activity: May 20, 2025, 05:06 PM
1 votes
5 answers
2674 views
Is it possible to trick a window that it has focus in KDE?
Is it possible to make a window believe that it has a focus while it has not? My use case description: I am playing a game named Detroit Become Human. I am playing with gamepad. The game is actually an interactive movie. It has a very complicated flowcharts. I want to see other scenes that I missed...
Is it possible to make a window believe that it has a focus while it has not? My use case description: I am playing a game named Detroit Become Human. I am playing with gamepad. The game is actually an interactive movie. It has a very complicated flowcharts. I want to see other scenes that I missed after my original walkthrough. I am reading the walkthrough guide in a browser and switching to game very often and want to see flowchart in a game. Because the flowcharts are very complicated, I need to keep lots of tabs in browser, constantly scroll pages up and down trying to read descriptions for some nodes. And I get really annoyed that I constantly need to refocus a game itself to be able to control it (even with gamepad) and press alt+tab to release mouse from the game. Also, the game makes me rewatching lots of scenes that I already have seen and I want to do some other readings while such scenes are playing. Also, there are scenes with minor interactions, but still I need to focus a game window for them. I wanted to make it easier. I want the game to be controllable by gamepad while its window not in focus. I thought that I need to capture a gamepad input and redirect it to inactive window. And that thing was what I wanted originally to ask. However, I have noticed, that chromium while not in focus is still able to see the gamepad input by using this web site: https://gamepad-tester.com/ . This means (as I think) that all windows have access to the gamepad input. Now I think that the problem is the game itself. I think it checks if it is in focus, and if not, it do not interprets the input. I want the game to always interpret gamepad, even when missing focus. Is that possible? My system details: Arch Linux. Game launched via steam. Tried with Steam Input and without it. KDE Plasma. Logitech F710 Gamepad in XInput mode. The game launched in borderless window mode, also tried fullscreen and windowed. Additional info. This trick may be useful not only for games (which often pauses when not in focus), but also for applications. For example, DaVinci Resolve hides a window with effects parameters. I am watching a tutorial video on youtube in browser. When I focus a browser, I cannot see my parameters window to compare it with such on a youtube. Tricking the DaVinci Resolve that it has focus (while still disabling keyboard input for it) may solve this.
Ashark (1069 rep)
May 17, 2021, 09:40 PM • Last activity: Apr 13, 2025, 10:25 AM
3 votes
3 answers
367 views
Running a script based on raw events from a specific HID?
bit of a strange issue for you. I have an old 2-in-1 laptop tablet thing that works well enough, except the driver for the touchscreen occasionally crashes, leaving it unusable. I have a simple script to restart it, but when it's not connected to the keyboard this can be a pain. My proposed solution...
bit of a strange issue for you. I have an old 2-in-1 laptop tablet thing that works well enough, except the driver for the touchscreen occasionally crashes, leaving it unusable. I have a simple script to restart it, but when it's not connected to the keyboard this can be a pain. My proposed solution is to run the script when I press both physical volume keys simultaneously (these buttons being the only other input device that I will reliably have connected). I am on Fedora Wayland. Does this seem feasible, and if so, how might it be done?
Gridzbi Spudvetch (65 rep)
Apr 6, 2025, 11:03 PM • Last activity: Apr 11, 2025, 08:32 AM
0 votes
0 answers
29 views
"onboard" keyboard shows the layout of the correct language but uses the wrong one
on antiX I need a on screen keyboard, I went with "onboard" and installed it. I also have multiple input languages set up in the antiX control center (German, Russian). Onboard seems to recognize it, because it shows me the layout of the correct language but as soon as I klick on a button it switche...
on antiX I need a on screen keyboard, I went with "onboard" and installed it. I also have multiple input languages set up in the antiX control center (German, Russian). Onboard seems to recognize it, because it shows me the layout of the correct language but as soon as I klick on a button it switches back to English and the character it puts in is actually also from the English layout. What can I do?
A.Ston (1 rep)
Mar 13, 2025, 08:52 PM • Last activity: Mar 13, 2025, 08:54 PM
28 votes
8 answers
7153 views
What's the best way to actually "type" special UTF-8 chars?
Everything on my system (that needs it) supports UTF-8 just fine. That's all nice when you want output... But what if you want easy **in**put ? At the moment the only non-ASCII chars I can easily type are chars like &#233; by using AtlGr . But for chars like ₂ &#178; ≈ √ π &#128512; at the moment I...
Everything on my system (that needs it) supports UTF-8 just fine.
That's all nice when you want output... But what if you want easy **in**put ? At the moment the only non-ASCII chars I can easily type are chars like é by using AtlGr.
But for chars like ₂ ² ≈ √ π 😀 at the moment I have to: 1. Open a browser 2. Surf to https://www.utf8icons.com or a similar site 3. Click, type and search a lot on the site to get to a page that contains the symbol i want 4. Copy it 5. Paste it in the program where I need it 6. (Optionally) close the browser What I'm looking for is a program that can do something like this: - Run in the background in a modern desktop environment (in my case Cinnamon) - Jump to the foreground to show a whole list of reasonably popular UTF-8 symbols after pressing something like F1 - Let me click a symbol after which it will be sent to the program I was last using as if it was a keypress - Give me the option to configure it to either stay visible after this "fake keypress" or jump back to background In short: Are there virtual keyboard programs with support for non-ASCII UTF-8 ? Actually... I am already happy with *any* method that improves mine. **Edit:** *For others ending up here and don't want to read all the answers themselves (or add a answer that's already given):
These are the options already mentioned + links to the answers + pro's and contra's.
Feel free to add extra solutions below (after providing them as detailed answer)*: - ibus (usually with CtrlShiftE) → Can't get it to work on Cinnamon - onboard → *pro*: Seems to do everything I need + has support for snippets, *con*: Only (by default) included non-latin layout is for math, other layouts with popular UTF-8 chars have to be created manually - gucharmap → *pro:* Lots of chars and easy to search *con:* Doesn't easily jump between foreground/background (can probably be handled with a workaround in Cinnamon itself) - kcharselect→ Same pro/con as gucharmap - Solutions from the programs themselves (e.g. Ctrl. for a couple of them) → *pro*: Ideal for that exact program *con*: Most programs, including the ones where it's needed the most, don't have one + it's not uniform - https://www.unicodeit.net/ → *pro*: Good for long math formula's. *con*: Same problem as the one I originally stated + useless for non-math symbols - Keyboard with extra symbols → *pro*: Easy *con*: Small amount of chars + extra keyboard needed for each system - Shortcuts for the most used chars with xcompose → *pro*: Easy *con*: Depending on your memory (as human, not as computer) it only works for a limited amount of chars - HTML entities to compose - *pro/con*: Too much of each, see answer - Use CtrlShiftU, Hexcode,Space : *pro/con*: Same as above
Garo (2157 rep)
Apr 10, 2021, 08:33 AM • Last activity: Dec 20, 2024, 09:35 PM
7 votes
3 answers
11163 views
Script that keep reading a stream
Sometimes I `cat` a stream like `/dev/input/event0`. I want to write a script that does something every time there is more output. The definition of more output might be every time it reads a byte. How can that be done? is there some command that does it?
Sometimes I cat a stream like /dev/input/event0. I want to write a script that does something every time there is more output. The definition of more output might be every time it reads a byte. How can that be done? is there some command that does it?
Chao Xu (365 rep)
Mar 5, 2011, 02:16 AM • Last activity: Oct 21, 2024, 09:36 PM
1 votes
3 answers
2639 views
How to run an external program from bash, in an interactive manner?
For instance, if I want to run from a shell script something in python I would do: echo 'print("hello world")' | python2 Now imagine I want to run something interactive, i.e., it needs my input, for instance name = raw_input("Enter your name:") By doing: echo 'name = raw_input("Enter your name:")' |...
For instance, if I want to run from a shell script something in python I would do: echo 'print("hello world")' | python2 Now imagine I want to run something interactive, i.e., it needs my input, for instance name = raw_input("Enter your name:") By doing: echo 'name = raw_input("Enter your name:")' | python2 I get an error. So how is the correct way to run something from bash but that I can interact with? PS - this is simply an example. I need to run a set of scripts in a different external program (not python), and some of these scripts need some input from the user. Everything runs smoothly until the point when there is the need for input, where the current script crashes and passes to the next. Thanks :)
faeriewhisper (23 rep)
Oct 20, 2020, 11:59 AM • Last activity: Oct 6, 2024, 09:30 AM
1 votes
2 answers
92 views
ZSH function output to current prompt input is ignored
I have a registered function in ZSH that searches file contents under the current path for a match and then captures the resulting filename. This is then bound to a key combination. The keybinding, search and result all work fine (as in they return the desired value). When I am using the keybinding,...
I have a registered function in ZSH that searches file contents under the current path for a match and then captures the resulting filename. This is then bound to a key combination. The keybinding, search and result all work fine (as in they return the desired value). When I am using the keybinding, the value is printed out to the current shell line but it is not recognised as actual input (i.e. if I hit enter the value is considered empty and nothing is added to the prompt history). How do I output the result as if it were typed and a valid value. I have have attempted echo/print/printf (assuming the outcome would be the same for each) but also appending to BUFFER and setting CURSOR. I'm sure this is well documented and I'm failing to find examples because of the lack of correct terminology. Can anyone point me in the right direction?
dajoto (113 rep)
Oct 3, 2024, 10:20 AM • Last activity: Oct 3, 2024, 11:59 AM
0 votes
1 answers
234 views
Emulate evdev inside a container
If I create a mount namespace with `unshare` or a more sophisticated tool like Docker, can I emulate an input device using a userspace process on the host? I'm aware of /dev/uinput as a mechanism for emulating input devices, but it doesn't hew to any sort of namespacing (to my knowledge). Instead, I...
If I create a mount namespace with unshare or a more sophisticated tool like Docker, can I emulate an input device using a userspace process on the host? I'm aware of /dev/uinput as a mechanism for emulating input devices, but it doesn't hew to any sort of namespacing (to my knowledge). Instead, I would like to mount a normal file inside the container, but somehow handle ioctls done on it, and in doing so act like evdev to simulate an input device. Is such a thing possible on Linux? Am I missing something in my understanding (ioctls are pretty mysterious to me)?
colinmarc (11 rep)
Aug 19, 2024, 11:06 AM • Last activity: Aug 29, 2024, 07:20 AM
1 votes
0 answers
261 views
How to configure input devices when using Wayland instead of Xorg?
I'm using KDE desktop environment, and I have recently switched from Xorg to Wayland. The compositor is `KWin`. I'm concerned about configuring my mouse and keyboard properly, because obviously it can't be now done with xorg.conf as it was before. I wasn't able to find any documentation related to c...
I'm using KDE desktop environment, and I have recently switched from Xorg to Wayland. The compositor is KWin.
I'm concerned about configuring my mouse and keyboard properly, because obviously it can't be now done with xorg.conf as it was before.
I wasn't able to find any documentation related to configuring KWin when using it w/o Xorg. There are advantages for me in using Wayland, but I'm really confused about it's design. I can't understand which programs now take care of my hardware, when there's no Xorg server. For example, the graphics backend: it uses DRM automatically, but where can it be configured?
As another example, this was my keyboard configuration, where I had keyboard layout set, and few other options:
Section "InputClass"
    Identifier     "Keyboard0"
    Driver         "evdev"
    Option         "Protocol" "auto"
    Option "XkbLayout" "us,tr"
    Option "XkbOptions" "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"
    Option "GrabDevice" "false"
EndSection
Without Xorg, where do I configure my input drivers so the Wayland compositor will use the correct settings?
Another part of config which I also need, is related to blacklisting virtual mice from being added to the session (I use them for different purpose):
Section "InputClass"
    Identifier     "ignore virtual mouse"
    MatchProduct     "melon69-virtual-mouse"
    MatchIsPointer      "on"
    Option "Ignore" "on"
EndSection
Is it possible to configure a Wayland compositor for the same behavior (blacklisting input devices), or I have to go by removing user permissions on the device nodes?
Thanks for your help!
melonfsck - she her (150 rep)
Aug 23, 2024, 11:02 AM
0 votes
0 answers
65 views
Intercept X11 input events without stealing focus?
Is there a method with X11 to intercept(catch and prevent delivery) mouse input events targeting a given window, such that if the window is currently focused that it retains focus?
Is there a method with X11 to intercept(catch and prevent delivery) mouse input events targeting a given window, such that if the window is currently focused that it retains focus?
sun set (1 rep)
Aug 12, 2024, 12:52 PM
0 votes
0 answers
51 views
Why does xmodmap does not work in some native Linux games?
Something that has been annoying me for a bit is that my `caps:escape` xmodmap option does not work in some games including Minecraft and Team Fortress 2. When pressing the capslock/escape button, nothing happens; it triggers neither an escape key event nor letter capitalisation toggle. This is cons...
Something that has been annoying me for a bit is that my caps:escape xmodmap option does not work in some games including Minecraft and Team Fortress 2. When pressing the capslock/escape button, nothing happens; it triggers neither an escape key event nor letter capitalisation toggle. This is consistent across Xorg (i3) and Wayland/xwayland (Hyprland). I can't find a determining factor that is consistent across all scenarios because it does work in Cities:Skylines. Looking at libraries/APIs used, all games use OGL, C:S and TF2 use SDL2 and the bug is present in MC eventhough it uses the LWJGL/GLFW middleware and generally has very little in common with the other two games. What could be the cause and how can I make it use my xmodmap options? (I'm not interested in alternatives to using xmodmap, I'm aware you could achieve a capslock remap through different means.)
Atemu (857 rep)
Aug 10, 2024, 08:12 AM
0 votes
0 answers
17 views
Does X11 support mice with Z axis (ie relative motion events with 3 axes), & possibly relative rotations too, ie 6DOF? If so, do Tk/Gtk/Qt?
From all the .conf files used to configure XInput, it seems X11 innately does not support a Z axis, let alone relative rotations. Is this correct? How are trackballs supported, if at all? Are spacemice supported? If so, how? Does this carry over to Tk/Gtk/Qt hence target apps using those frameworks?
From all the .conf files used to configure XInput, it seems X11 innately does not support a Z axis, let alone relative rotations. Is this correct? How are trackballs supported, if at all? Are spacemice supported? If so, how? Does this carry over to Tk/Gtk/Qt hence target apps using those frameworks?
mo FEAR (157 rep)
Aug 4, 2024, 08:04 AM
0 votes
0 answers
13 views
Can X11 pass the identifiers/names of the involved pointers/keyboards when passing/generating input events? Do Tk/Gtk/Qt do too?
If I type `xinput` I get the following output: ``` ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Logitech USB Optical Mouse id=12 [slave pointer (2)] ⎜ ↳ WingCoolTouch WingCoolTouch id=13 [slave pointer (2)] ⎜ ↳ WingCoolTouch WingCoolTou...
If I type xinput I get the following output:
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Optical Mouse                id=12   [slave  pointer  (2)]
⎜   ↳ WingCoolTouch WingCoolTouch               id=13   [slave  pointer  (2)]
⎜   ↳ WingCoolTouch WingCoolTouch               id=14   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Chicony USB Keyboard                      id=9    [slave  keyboard (3)]
    ↳ Chicony USB Keyboard Consumer Control     id=10   [slave  keyboard (3)]
    ↳ Chicony USB Keyboard System Control       id=11   [slave  keyboard (3)]
in other words, individual input devices have individual IDs & names. When receiving an input event, it is usually possible to differentiate whether it came from a mouse or a keyboard. But is it also possible to differentiate from *which* mouse or keyboard it came from? If possible in X11, does this carry over to Tk/Gtk/Qt?
mo FEAR (157 rep)
Aug 4, 2024, 07:59 AM
6 votes
2 answers
7547 views
How to exit a bash loop by keyboard input?
I have a `bash lopp` as #!/bin/bash for (( c=0; c<=1000000; c++ )) do SOME STUFF HERE done I interrupt the long loop by a keyboard input like `Ctrl+C` but `Ctrl+C` simply terminates the script. I am looking for an alternative to continue the current cycle and break the loop after finishing the runni...
I have a bash lopp as #!/bin/bash for (( c=0; c<=1000000; c++ )) do SOME STUFF HERE done I interrupt the long loop by a keyboard input like Ctrl+C but Ctrl+C simply terminates the script. I am looking for an alternative to continue the current cycle and break the loop after finishing the running STUFF in the current cycle.
Googlebot (2009 rep)
Apr 27, 2017, 10:25 PM • Last activity: Jul 26, 2024, 02:12 PM
1 votes
0 answers
138 views
Is it possible to selectively add input devices to a running Xorg server?
I'm using Xorg with `AutoAddDevices` disabled, because I have many input devices on my server, which mustn't all be added to my physical session. The input devices I need are pre-configured in the `xorg.conf`. Everything works great, until my input device disconnects (for example due to EMI). And af...
I'm using Xorg with AutoAddDevices disabled, because I have many input devices on my server, which mustn't all be added to my physical session. The input devices I need are pre-configured in the xorg.conf.
Everything works great, until my input device disconnects (for example due to EMI). And after that happens, when it connects back, it is not being taken up automatically by X. The Xorg server becomes absolutely uncontrollable, and I can't even switch the VT. I have to log in via serial port or SSH, just to kill that Xorg server (together with all the programs which were running with it). After doing that, the screen returns to the TTY and the input starts to work. I start Xorg from scratch then.
Is there any solution to the problem, other than enabling AutoAddDevices?
melonfsck - she her (150 rep)
May 26, 2024, 12:03 PM
8 votes
2 answers
2615 views
ctrl+shift+e causes beeping
I recently got a new laptop and installed Arch on it. I noticed that in a few applications, including chrome and gedit, pressing ctrl+shift+e will cause the next few keys pressed to be underlined, beep when pressed, and then deleted. I've looked around for a while, and the only way I can seem to "fi...
I recently got a new laptop and installed Arch on it. I noticed that in a few applications, including chrome and gedit, pressing ctrl+shift+e will cause the next few keys pressed to be underlined, beep when pressed, and then deleted. I've looked around for a while, and the only way I can seem to "fix" it is to unload the pcspkr module. However, this still doesn't fix the issue, it only silences the beeping. It seems to happen under both gnome and i3, but not in a tty. Is there any way I can turn this off? Video of the behavior
ebopalisesy (113 rep)
Sep 27, 2017, 12:01 AM • Last activity: Apr 24, 2024, 09:44 AM
Showing page 1 of 20 total questions