20.04 – When I unplug headphones, audio switches to HDMI out instead of laptop speakers

My HDMI port is connected to a VGA adaptor, so to get audio I have to manually switch the audio output to the speakers whenever I unplug my headphones. I’ve tested this with a mic’d headset and normal headphones and it happens with both. I’ve seen an answer to a similar question which suggests disabling the HDMI output in pavucontrol, but there’s no option to do this.

laptop – How to Fix Inverted Keyboard Event? (followed by continuous typing malfunction)

My keyboard just malfunctioned, and currently I can’t conclude is this software or hardware related issues. One key of my keyboard, “W” keeps autotyping like

“wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww”

and when I checked with an event listener application, the event seems inverted. It recorded keydown as keyup, and vice versa, and therefore it keeps typing when I leave the key on keyup, because it thinks that I hold the key down, and that’s probably the cause.

I’ve tried uninstalling the driver, and do some cleaning on my keyboard, but it not worked.

How can I fix this?

— Additional info

This is how a normal keys event look like

This is how my “W” key event look like (Followed by a Space to stop loop)

Both are tested with a single type event (fast key-down and key-up).

networking – HP laptop: WiFi sometimes fails for no reason

On my brand new HP laptop the WiFi connection suddenly fails for no particular reason. Available networks are displayed, but attempting a connection never succeeds. This has happened twice now since I bought the machine about a month ago. My other machines and the telephone connect fine, so I know the network is healthy. And yes, I use the correct password. Network secured by WPA2.

lspci |grep Net gives

01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter

I have tried to restart the network driver (sudo systemctl restart NetworkManager.service, or by using the GUI), without any success.

Unfortunately, the only solution seems to be a complete restart of the machine. That always works, but why?? I hate rebooting, should not be necessary for a stable system. The machine is always on, but is suspended every might.

Right NOW it’s OK of course – I’m writing this on it. I would love to have other things to try the next time this happens. Maybe look at something in /var/log? sudo dmesg doesn’t make me wiser. rfkill reports no blocking.

Note also that there is no windows on this machine; I cleared the disk and installed Ubuntu 20.10 first thing when I bought it 🙂

beginner – C code to reset all usb devices (because ubuntu laptop disables usb mouse after sleep)

I don’t program much in c, but cobbled together some code from different places in google. I’m sure this is backwards especially in how it works with strings and directory files. Please let me know what the best practices would have been.

/* usbresetall -- reset all of the usb devices on bus 001 */

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>

#include <dirent.h> 
#include <string.h>

#include <linux/usbdevice_fs.h>


int main(int argc, char **argv)
{
    int fd;
    int rc;

    DIR *d;
    char filename(256);  
    struct dirent *dir;

    d = opendir("/dev/bus/usb/001/");
    strcpy(filename,"/dev/bus/usb/001/");
    
    if (d) {
        while ((dir = readdir(d)) != NULL) {
            strcat(filename,dir->d_name);
            printf("%sn", filename);
            
        fd = open(filename, O_WRONLY);
        if (fd < 0) {
        perror("Error opening output file");
        } else {

        printf("Resetting USB device %sn", filename);
        rc = ioctl(fd, USBDEVFS_RESET, 0);
        if (rc < 0) {
            perror("Error in ioctl");
        } else printf("Reset successfuln");
            
        close(fd);
            }         
            
            strcpy(filename,"/dev/bus/usb/001/");
        }
        closedir(d);
    }

    return 0;
}

what would happend if you connect desktop gpu to laptop hdmi?

what would happend if you connect desktop gpu to laptop hdmi? – Super User

laptop – How to stop keyboard input on Windows 10?

Today, I spilled water on my keyboard. When I wipe up the water, I have to smash all the keys and by typing the keys it messes with the stuff I am doing on my computer. Is there a way to make it so that the keyboard doesn’t input the key press instructions to the computer so that nothing happens while I clean my keyboard? By the way, it is a laptop, so I can’t just remove the keyboard.

suspend – Different behaviour when closing laptop lid depending on power source – Ubuntu 20.04

I am new to using Ubuntu and I wanted to replicate my laptop’s behaviour from when I was running Windows. I would like to make it so that closing the lid triggers a different action depending on the current power supply:

  • when on battery – hibernate
  • when plugged in – suspend

I found multiple solutions that alter the /etc/systemd/logind.conf file, but changing the configuration there applies the action regardless of the power supply.

I also found answers that use dconf Editor, but that doesn’t seem to work for me.
I have the following settings, but the laptop always suspends when I close the lid.

enter image description here

Is there any other way of accomplishing said behaviour? Or does anyone have an idea why is the dconf Editor setting not working for me?

audio – How to tell if a laptop has integrated headphone jack with both mic input and sound output?

I have an Acer Aspire 5 laptop. On the side of the laptop, there is a 3.5mm jack. The icon next to the jack prints a headphone with a mic.

I tried plugging in an earpiece (with a TRRS plug) and I can hear stereo. But I don’t see how I can use its mic.

I opened Sound Settings and under Choose your input device, there is only 1 option of Microphone Array (Realtek(R) Audio). If this laptop has an integrated audio jack, should I be seeing an additional input device? Or does the laptop not detecting a mic?

MSI GV62 7RD LAPTOP WON’T TURN ON

So I placed my laptop on charge and came back to realize that it went off and power on at all. I realized the blue charging light turns on when I plug in my charger. However it doesn’t seem to power on when I press the power button. I tried removing the battery and powering on with just the charger but it still won’t turn. Any help here? I’m trying to figure out what the problem might be and a solution to it.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123