Latest Ubuntu related questions

Score: 1
How do I write a udev rule to persist an attribute on boot?
th flag

I want to persist the value of /sys/devices/platform/lg-laptop/fn_lock to be 1 after a reboot. After doing a lot of research, it seems that the right way to do this is to create a udev rule for it. So I ran udevadm info -a -p /sys/devices/platform/lg-laptop/ which returns this:

looking at device '/devices/platform/lg-laptop':
    KERNEL=="lg-laptop"
    SUBSYSTEM=="platform"
    DRIVER=="lg-laptop"
 ...
Score: 0
Can I move the old Ubuntu snap folder's content to new installed Ubuntu snap folder
cn flag

I have installed one Ubuntu 20.04 on my 18.04 Ubuntu, so I have seen in the home folder I have had the old user files, like download and ...files. so I have moved my old Ubuntu profile files from Documnets, Desktop,' My Documents, PicturesandVideosto the new profile folder, but I want to know can I move the content of old profile'ssnap folderto new profile folder'ssnap folder`?

Thanks.

Score: 0
MauSt avatar
VSCode icon is existed, but won't run after click on and code" command not found
tc flag

Just installed miniconda, reinstalled NVIDIA Driver and manually set up the environment for TensorFlow-GPU. After that, some of my applications had gone: my default text editor (command: "gedit"), VSCode (command: "code"), as well as my firefox browser (command: "firefox") cannot be found. I still have the VSCode icon on the all application menu but it is unusable.

VSCode icon is shown

"code" comman ...

Score: 0
dhanyn10 avatar
add windows 10 to Ubuntu 18.04 grub list
us flag

I've already tried so many tutorials and all of them are not working.

I think that my problem must be posted here to get a chance to solve it.

So I've done several things with the results below:

sudo blkid, result:

/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE ...
Score: 0
Suspend to RAM crashes laptop with Nvidia On-Demand mode
cn flag

I had recently switched my nvidia prime profile to "on-demand" from nvidia mode on my MSI Laptop GL62 6QF. After making the necessary xorg.conf changes, I have managed to make both intel & nvidia modes work correctly on the fly.

However, while the laptop goes into "Suspend to RAM", it just seems to crash. Posting screenshot: System crashing while going into suspend

Any idea on how I can troubleshoot this?

Relevant info:

           *-dis ...
Score: 0
Irsu85 avatar
what does memtest86+ serial console mean
cn flag

In the GRUB, there are 2 options for memory test, memtest86+ and memtest86+ serial console 115200. What the first one means is obvious, it just runs memtest86+, but what does that serial console mean in the second option?

Score: 1
HimDek avatar
Remove Konqueror without installing firefox-esr in KDE Plasma
cn flag

I am trying to uninstall Konqueror from my KDE Plasma Desktop. Running the shell command sudo apt remove konqueror gives:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libkf5konq6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  fir ...
Score: 0
odd steak avatar
"snd_hda_intel 0000:00:1f.3: control 2:0:0:PCM Playback Volume:0 is already present" error every time I boot
ua flag

I am new to Linux and not sure where to look for logs and stuff. Every time I boot, I get a black screen with this error message, which comes up for a second:

snd_hda_intel 0000:00:1f.3: control 2:0:0:PCM Playback Volume:0 is already present

My sound is working fine however. Maybe even better than when I was on Windows.

Here is the output of arecord -l:

**** List of CAPTURE Hardware Devices ****
 ...
Score: 0
Radin Zahedi avatar
Beats headset is detected, but can not be paired to Ubuntu 20.04
tr flag

Recently I have been struggling to pair my beats studio3 headset to Ubuntu 20.04.

The headset works fine on my iphone, therefore I think it's a problem with Ubuntu, not the headset.

At first it was not even detected, however after I followed the instruction on this link it got detected and was shown in the Bluetooth devices list, it still can't connect, and the toggle button seems to be locked.

As ...

Score: 0
Sriram Rayadurg avatar
Update UFW rules from a text file
cn flag

I have a list of ip's (almost 55K) that i want to deny from a text file. I would like a script to read from the text file and update the ufw status.

Is there anything like that?

At present I am doing this

while read line; do sudo ufw insert 1 deny from $line to any; done < filename.txt

This takes a hell long of a time. Would a script be faster?

Score: 0
Vivek Sharma avatar
Ubuntu 18.04 LTS tty1
cn flag

When I start my PC , it appear with message Ubuntu 18.04 LTS tty1 When I go to recovery mode It shows FAILED TO START LOAD KERNEL MODULE SEE "SYSTEMCT1.... drive link of the photo of showing this https://drive.google.com/file/d/1bjfkcJ1N9mr3-uP1gtXYwr7TEB2_TTLz/view?usp=drivesdk

In recovery mode In root apt-get update give this https://drive.google.com/file/d/1bYlXpe__URfEyNBj7ld-fuMEM7FPmPx8/view?us ...

Score: -2
MSI laptop user problem 100 avatar
I am on ubuntu 2.31.1 and I need to manually fsck
cn flag

The error message I am getting is:

(/dev/mapper/isw_dbjigffjdb_RADIOIMSVolume2 contains a file system with errors, c heck forced.
Inodes that were part of a corrupted orphan linked list found.

(/dev/mapper/isw_dbjigffjdb_RADIOIMSVolume2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
                      (i.e., without -a or -p options)
    fsck exited with status code 4
    The root filesystem on  ...
Score: 0
Zsolt avatar
SysReq key not working when trying to reboot
us flag

My Ubuntu 20.04 freezes sometimes, and been trying to reboot it with "Alt+PrintSc+reisub", but nothing happens. I was holding down Alt while pressing the reisub.
My /proc/sys/kernel/sysrq was 176, I set it to 1, just to try it out, but this is not the problem. I have two real questions and a stupid one:

  1. How do I know that printscreen is my sysreq button?
  2. If it is not, how do I find it?
  3. Is it a prob ...
Score: 0
digiwizkid avatar
Bluetooth headset connected but audio lost suddenly
cn flag

After connecting my Bluetooth headset with the A2DP profile, it works fine most of the time.

But I have noticed a persistent issue when I use youtube/ facebook-

For the first few videos, the audio works fine, suddenly the audio stops working, but the headset is still connected, audio works only after disconnecting and reconnecting.

I am using Ubuntu 20.04.1 LTS with PulseAudio 13.99.1

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.