Mouse and Keyboard not working in XWindows - linux-from-scratch

I have an LFS v10 environment that is SystemV based. I'm in the process of improving it by adding XWindows to it. When I run startx, XWindows starts up, and I see the a few programs/Windows that display in the twm Window manager.
My problem is that the cursor does not move on the screen. I can see it in the dead center of the screen but it doesn't move as I move the mouse.
I also have a with the keyboard. It does appear that one of the programs/Windows are active by default at the time that XWindows starts, but an attempt to type some characters puts nothing in the text editor program.
The keyboard is a Logitech MK710 and the mouse is a Logitech M317.
Before I attempt to start XWindows, the keyboard works without problem while I'm working at the command line.
I've been activating different options when building the Linux kernel that some people are recommending but none are helping.

I got this working. For anyone interested. the solution was installing all 4 of the below drivers:
libevdev-1.9.1
Xorg Evdev Driver-2.10.6
libinput-1.16.1
Xorg Libinput-0.30.0
I then ran the X -configure command, then copied the created file to /etc/X11/xorg.conf, then ran startx and the mouse and keyboard began working.

Related

Highlighting code with mouse goes wild in Visual Studio Code

When I try to highlight some code in Visual Studio code it goes crazy and moves very fast. E.g. I want to select around one page and end up selecting 10 "pages" worth of code.
How can I make it act normaly when I want to highlight some code?
I used to have the same issue. A weird behavior with mouse selection. This was my solution path.
Check for hardware failures.
Unplug the keyboard dongle. If suddenly the mouse selection goes well. Do this steps.
Check for keys stucked βœ…
Uninstall the keyboard driver from Device Manager βœ…
Change the dongle USB port βœ…
And after all this steps, my cursor comes back to normality... for a while 😐.
Made the keyboard check with keyboard tester
Detect the key with the failure (Fortunately Insert in my case).
Download the app keytweak and disable that key.
This is a workaround if you don´t want to buy a new keyboard. I hope your failing key isn't any vocal 😬. If so... buy a new one.

Auto Hot key for toggling stealth in Middle Earth Shadow of Mordor

Currently there is no toggle stealth in middle earth shadow of Mordor. So I tried to use auto hot key for toggling. My little finger hurts a lot when i keep holding. So I found this auto hot key script from here. https://steamcommunity.com/app/241930/discussions/0/617319460876561937/?l=italian#c490125103631105925
But this code does not seem to be working. I have autohotkey installed and also verified that it runs the sample msg box saying escape on pressing escape key program. I also remapped stealth to LCtrl. This is the 1st time I am using autohotkey. I have placed this file (shadow_of_mordor_stealth.ahk) in the same folder as the game's exe file is in. Thanks.
Update : As pointed by Sir Teddy The First, running in admin mode now works. Thankyou all for your help.

Visual Studio Code window is not appearing

I've encountered a very strange bug with Microsoft Visual Studio Code. I've been using VSCode for a few months now and never had this issue. When I open VSCode, the window just doesn't appear. The app is definitely open, because when I hover over the icon on my taskbar I can see what is being displayed in the app:
Unfortunately, when I click on it, the window does not appear.... I've uninstalled and reinstalled, deleted cache, tried older versions and nothing has worked. Has anyone else encountered this and fixed it? Any advice?
hover over VSCode icon in taskbar
right click on it
click on "New Window"
That should do it.
I had something similar. It appears that the window is just off-screen. I've used my DisplayFusion display manager - to move windows to center/top where I could handle it myself. I expect it'll also work using <Win> + <←> (maximize window to left side of screen).
In my case, the issue went away when uninstalling the GlassIt-VSC extension. I tried modifying the opacity of the window and then it disappeared. I highly suggest you try uninstalling this extension.
In my case I had connected HDMI cable but due to power off my monitor was off, but when I disconnected hdmi cable; VS code visible on my screen.
Got the answer since no one was helping.
Go to view.
Click solution explorer.
It should show the name of your project.
Click the small arrow at the beginning of the heading of your project.
Click source files.
Click yourproject.cpp.
Thank you.
I encountered a similar issue with a plugin called GlassIt while I was playing with a property called "glassit.alpha" somehow it went to 1 (possibly I changed it accidentally) and nothing showed up. (here's an image where you can slightly see that I set alpha to 20)
what i did was to just edit the %appdata%\..\Roaming\Code\User\Settings.json and set "glassit.alpha": 1, to 255
UPDATE I just realised there was already an answer I didn't see while I was writing this post
I had this issue during a remote desktop session and could bring the VSC window back via hitting F11 (via the onscreen keyboard in my case, since the F11 key on my keyboard was being captured by the host system).
In my case, I have a dual monitor setup, and the laptop was in clamshell mode. However, the laptop's built-in monitor was recognized as a third monitor, and VsCode was going there.

Gnome shell two monitors full screen apps

I'm working on the Ubuntu 16.04 whit Gnome Shell version 3.18.5 and I'm using two monitors. Issue which I have regarding aplications opend in the full screen mode.
For expample if I open on the monitor number 1 my browser and on the monitor number 2 terminal in full screen mode plus some additional application such as a code editor(not full screen). Now when I'm focus on the code editor which is on the top of the terminal it's ok but when I click on my broser window(monitor 1) then the code editor gose behind the terminal automatically.
I've prepared some video to better show this problem:
In this video you can see correct behaviour when I'm using one monitor.
Here is video showing incorrect behaviour. Don't care about the elements which are above the terminal on the left screen. Terminal was set to full screen.
Dose anybody know how to change this behaviour? I was looking for solution in google but without success. Thank you.
That's the expected behavior when things are in focus/out of focus. Try resizing your windows so they don't block one another; thus, nothing will be "behind" anything else when you shift focus by clicking here or there.

Powershell ISE Doesn't Render the Client Area in Windows 7

Recently, the Powershell ISE on my Windows 7 laptop developed a problem in which only the title bar and frame would render to the screen. The entire client area (including menus) doesn't appear. Instead, whatever is behind the client area shows through. If I move the ISE around on the screen I get a client area with a jumble of pieces of the desktop or other apps that I drag the ISE over, as well as some ISE frame pieces.
I can blindly click in the area where I think the menu should be, and can occasionally get something to appear (a Save As... dialog, or some such), but the menus themselves are never drawn.
This started sometime during a period in which I didn't use the ISE, so I've no idea how many updates may have been automatically downloaded or pushed to my machine by my IT folks, and since I've no idea when it started happening they can't tell me anything either.
Any ideas on why a Windows 7 app in general or the ISE in particular could have this issue?
Could be video card drivers. Try disabling windows areo to see if it's 3D driver related:
net stop uxsms
Also try running ISE as administrator.
On my system it's an interaction with MaxiVista (www.maxivista.com) which allows me to use an old laptop as a second monitor.
When the second (Maxivista) monitor is enabled, the Powershell ISE does not draw properly. So #BryanVine is right. It's to do with video drivers.