Num Lock randomly turns on, possibly only on Visual Studio Code

My situation is similar to the one posted here: Num Lock Key Randomly Turning On and Off, except, so far, I have only observed this random toggling when I am writing on Visual Studio Code. In other parts and on normal usage, I have not observed this happening.

So, in any regular writing session, I would suddenly find myself typing in numbers, when I wanted to just move around the text. Does anyone have any idea why this is happening, please?

Here’s some information that might help:

  • Lenovo Ideapad 330-15IKB
  • Ubuntu 19.04.3

About page on VS Code:

Version: 1.38.1 Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0 Date: 2019-09-11T13:30:08.229Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Linux x64 5.0.0-31-generic snap 

If this isn’t the best forum for this question, please let me know and I’ll head there. I wish this problem to be solved the soonest possible because this gets really annoying.

Permission denied: Could not open lock file /var/lib/apt/lists/lock

directory permisions

Earlier I ran apt update and upgrade as a root user and since then this issue is persisting

Running with gitlab-runner 12.3.0 (a8a019e0) on test runner XXXXXXXX Using Shell executor...  Running on IP-XX-XXX-XXX-XXX…  Fetching changes with git depth set to 50... Initialized empty Git repository in /home/gitlab-runner/builds/XXXXXXXX/0/XXXXXXXX/XXXX-XXXX/.git/ Created fresh repository. From http://XX-XXX-XXX-XXX/XXX/XXXX  * [new branch]        master     -> origin/master Checking out 2dca3aec as master... Skipping Git submodules setup  Checking the cache for default... Runtime platform  arch=amd64 os=linux pid=6537 revision=a8a019e0 version=12.3.0  No URL provided, the cache will not be downloaded from the shared cache server. Instead, a local version of the cache will be extracted.  Successfully extracted cache      $   apt-get update -yqq  E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ ERROR: Job failed: exit status 1 

Lock screen is frozen when waking from suspend with lid closed

I’m having a few problems with my Pop!Os (Gnome) installation with regards to it waking up from suspend.

When the computer is locked and goes in suspend by itself it seems the laptop has no trouble starting up again. The problem only manifests itself when the lid is closed and opened back up later on. While sometimes it will resume properly, other times it will completly freeze, or a mix of the following issues:

  • Wifi card not detected (restarting network manager does nothing, persists through reboots, has to be a full shutdown for it to work again)
  • Mouse not working
  • Bluetooth not detected

Most of the time, I will not even be able to type my password in; the lock screen is completely frozen and unusable.

I am using a Razer Blade first generation (RZ09-01962), running Pop!_OS 19.04 x86_64 and kernel 5.0.0-29-generic . I had to fix multiples issues to get the laptop working correctly, and so I have few tweaks activated:

Kernel Boot Options:.systemd.show_status=false i915.enable_rc6=0 quiet intel_idle.max_cstate=4 splash loglevel=0 button.lid_init_state=open

I deactivated XHC in /proc/acpi/wakeup so it stays in suspend.

The caps locks that crashes everything has been remaped the escape with gnome tweaks

I tried multiple things to fix the network not working when I was able to log back in:

  • https://ubuntuforums.org/showthread.php?t=1909361
  • wifi not working after sleep/suspend
  • https://unix.stackexchange.com/questions/341116/wifi-sometimes-does-not-work-after-wake-up-from-suspend

Nothing really worked. I also tried hibernation instead of suspend but the computer just shutdowns when waking up.

I have full disk encryption so shutting down instead of suspending is not really an option unfortunately. I am running the power manager that popos ships with.

I am looking for a fix to it just “dying” when the lid is closed.

Thanks!

Having my user folders symlinked to my secondary 2tb hard drive is causing my computer to lock up

Having my user folders (Downloads, Pictures, Videos, Documents) to my secondarey 2tb hard drive is causing my computer to lock up and the cpu usage spikes to 100% also a tracker-extraction procsess going on the uses a lot of CPU.

The system is semi usable after this happens but some apps frezze and won’t open for example Nautilus. Trying to run it from the command line gives me and error about timeout reached

How to lock IIS server files through a shell?

After uploading a shell to a .net site (.aspx extensions) and get it to work, is there any way to execute a command through that shell to increase the security of that site/server so that no one else can upload any other shell?

In other words, let’s say I have access to a shell. I can execute shell commands or windows commandline commands through it. How do I increase the security of that site/server through that shell?

How to enable/disable lock screen from the command line

I want to be able to quickly and easily enable and disable the lock screen. Right now, I have to go to Menu > Preferences > Power Manager > Security then check or uncheck the check box marked “Lock screen when system is going for sleep”, then in a terminal find the process id of xfce4-power-manager, then send a HUP signal to that PID, although this last part seems unreliable, as sometimes it doesn’t take effect until the second resume.

How can I automate the GUI part? When I run the Power Manager GUI, I see the process xfce4-power-manager-settings running, so presumably I would need the equivalent command line command to run.

I’m running LUbuntu 18.04.