Configure "middle button click" on Fedora 31 - fedora

I want to re-configure mouse settings so that I could scroll up and down when I click the middle button on my mouse (wheel).
What I tried to do.
In gnome-tweaks I disabled setting Middle Click Paste in the Mouse&Keyboard tab. Nothing changed.
I typed the xinput --list command in the terminal and got the following output:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:16 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:16 id=7 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:16 id=8 [slave keyboard (3)]
What was strange that there were no mouse or keyboard in the list. Is there any way to achieve my goal?

Related

CPU_ON on QEMU ARMv8A using PSCI from EL2/EL3

I have 4 core ARMv8A (Cortex-A53) emulated on QEMU 6.2.0. The primary code (CPU#0) is running and I am able to debug it using GDB. I wanted to bring up other cores. For that I have used the following GDB commands. From the different experiments conducted, my conclusion is that only CPU#0 is running and all other CPUs never started.
(gdb) thread 3
(gdb) info thread
Id Target Id Frame
1 Thread 1.1 (CPU#0 [running]) 0x0000000040000008 in ?? ()
2 Thread 1.2 (CPU#1 [halted ]) 0x0000000040000000 in ?? ()
* 3 Thread 1.3 (CPU#2 [halted ]) 0x0000000040000000 in ?? ()
4 Thread 1.4 (CPU#3 [halted ]) 0x0000000040000000 in ?? ()
(gdb) where
#0 0x0000000040000000 in ?? ()
Exploting further, came across this thread about turning on CPU using PSCI. Start a second core with PSCI on QEMU.
Also came across SMC calling convention related to this. I have gone through the documentation of SMCCC and PSCI.
I am implementing a minimal hypervisor. The guest is a Linux and it is booting. The Linux boot log shows
[ 0.072225] psci: failed to boot CPU1 (-22)
...
Further debugging the code revealed that Linux is throwing a synchronous exception to the hypervisor with necessary parameters as per the specification using the "HVC" instruction.
If my understanding is correct, PSCI implementation is vendor specific- that is, the code running at EL2/EL3 has to use some vendor provided mechanism to turn on the CPU(core). Is this correct? on on system without EL3, how the code running at EL2 turn on the CPU?
My QEMU command line is given below
$qemu-system-aarch64 -machine virt,gic-version=2,virtualization=on -cpu cortex-a53 -nographic -smp 4 -m 4096 -kernel hypvisor.elf -device loader,file=linux-5.10.155/arch/arm64/boot/Image,addr=0x80200000 -device loader,file=1gb_4core.dtb,addr=0x88000000
Any hint is greatly appreciated.
When the guest is not booting at EL3, the QEMU virt machine implements its own internal PSCI emulation. This is described in the DTB file passed to the guest, and will say that PSCI calls should be done via the SMC instruction (if the guest is starting at EL2) or the HVC instruction (if the guest is starting at EL1). Effectively, QEMU is emulating an EL3 firmware for you.
(If the guest does boot at EL3, then QEMU assumes that the EL3 guest code will be implementing PSCI; in that case it provides some simple emulated hardware that does the power on/off operation and which the EL3 guest's PSCI implementation will manipulate as part of its implementation of the CPU_ON and CPU_OFF calls. But that's not the case you're in.)
If you are running a hypervisor in your guest at EL2, then it is your hypervisor's job to implement PSCI for your EL1 guests (it's unlikely that you want to allow an EL1 guest to be able to directly shut down a CPU under your hypervisor's feet, for instance). So you want to pass your EL1 guest a different DTB that describes the view an EL1 guest has of its emulated hardware, and which says "PSCI via HVC". Then your hypervisor's HVC handling should emulate PSCI. Separately, your hypervisor's bootup code should be using the real PSCI-via-SMC to power up the secondary CPUs as part of its bootup sequence.

How to dispatch events in re-frame framework (clojurescript) in the REPL?

I am using figwheel,I want to dispatch events manually from REPL.
e.g after my app is connected to REPL
(in-ns 'my-re-frame.core)
(re-frame/dispatch-sync [::events/initialize-db])
I get following error
"RuntimeException Invalid token: ::events/initialize-db"
How I dispatch those events? and How to see status of app in REPL?
I think it's is because I'm using cider with fighweel in emacs and it tries to find conf with clj extention than clj

Adobe Flash Air application publishing error

When i'm trying to publish my app for Air from Adobe Flash CC , i'm getting this error all the time:
Error creating files. aapt tool
failed:C:\Users....\AndroidManifest.xml: error: Unable to open file
for read. No such file or directory
How can i get rid of this?
In my case while developing AIR applications for Android via IntelliJ Idea
The message appears while trying to compile a project.
I found it to be caused by a setting in "Run/Debug Configurations" -> "Options" -> Debug device over: Network | USB Port.
Switching to Network rather then USB Port (even if device is actually connected via USB) for me fixes the issue.
If you are using the flash IDE, whether CC or Flash Pro 6,
you might want to try change settings in:
"Publish Settings" -> "Player Settings" (for the AIR SDK) ->
which opens up a dialog name "AIR for Android Settings".
Select the "Deployment" (tab) -> "Android Deployment" -> "Wireless Network Connection" (and not the "Default" option)
The default option causes the same error you've mentioned while selecting:
"Wireless Network connection" Should Work, as i tested in both cases.

cordova 3.4.1 is not working in jelly bean of android

cordova 3.4.1 is not working in jelly bean of android and below are the plugins i used so far
"org.apache.cordova.console": "0.2.11",
"org.apache.cordova.device": "0.2.12",
"org.apache.cordova.dialogs": "0.2.10",
"it.mobimentum.phonegapspinnerplugin": "1.1.0",
"hu.dpal.phonegap.plugins.SpinnerDialog": "1.2.0",
"org.apache.cordova.camera": "0.3.4",
"org.apache.cordova.file": "1.3.0",
"org.apache.cordova.file-transfer": "0.4.5"
the App seems struck and it was not responding
I want to debug my App and check what the issue, i can debug the App in Kitkat device using Gap Debugger but it is allowing me to debug jelly beam,
can any one tell how to debug my App in jeally bean
try remove these two and run your app again.
"it.mobimentum.phonegapspinnerplugin": "1.1.0",
"hu.dpal.phonegap.plugins.SpinnerDialog": "1.2.0",

AIR application exit code

I understand in AS3, you can create a Native Process, and once that process is complete, you can get the exitCode from NativeProcessExitEvent, which is just the exit code that native process returned to the OS. Is there anyway to set the exit code for when the AIR application closes? We have one application triggering this AIR application, and it is waiting for an exit code from the AIR application.
I think your are looking for this function :
NativeApplication.nativeApplication.exit( 1 );
Where 1 is the exit code