#StackBounty: #16.04 #networking #drivers #wireless #intel-wireless intel centrino wireless n 1030 wireless drop after reboot Ubuntu 16…

Bounty: 100

my wifi drops after some time and requires reboot to work again ( Centrino Wireless-N 1030 [Rainbow Peak])

similar question was posted by me for 14.04

intel centrino wireless n 1030 wireless drop after reboot Ubuntu 14.04

sudo lshw -C network gives

 *-network    

       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: enp5s0
       version: 06
       serial: 24:b6:fd:27:e1:b8
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:30 ioport:e000(size=256) memory:f1104000-f1104fff memory:f1100000-f1103fff 
 *-network

       description: Wireless interface
       product: Centrino Wireless-N 1030 [Rainbow Peak]


       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: wlp9s0
       version: 34
       serial: 4c:eb:42:32:c2:2e
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.13.0-45-generic firmware=18.168.6.1 ip=192.168.1.31 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:34 memory:f7e00000-f7e01fff

have edited the /etc/modpobe.d/iwlwifi.conf to add the line

options iwlwifi 11n_disable=1 iwlwifi bt_coex_active=0

didnt work

have checked /lib/firmware for the file iwlwifi-6000g2b-6

it exists .( this was from https://www.intel.in/content/www/in/en/support/articles/000005511/network-and-i-o/wireless-networking.html)

dmesg | grep iwl gives

[   14.721093] iwlwifi: unknown parameter 'iwlwifi' ignored
[   14.974997] iwlwifi 0000:09:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[   14.998377] iwlwifi 0000:09:00.0: CONFIG_IWLWIFI_DEBUG disabled
[   14.998380] iwlwifi 0000:09:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[   14.998382] iwlwifi 0000:09:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[   14.998385] iwlwifi 0000:09:00.0: Detected Intel(R) Centrino(R) Wireless-N 1030 BGN, REV=0xB0
[   15.035360] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[   16.149840] iwlwifi 0000:09:00.0 wlp9s0: renamed from wlan0
[   22.513003] iwlwifi 0000:09:00.0: Radio type=0x2-0x2-0x1
[   22.615238] iwlwifi 0000:09:00.0: Radio type=0x2-0x2-0x1

sudo iwconfig gives

lo        no wireless extensions.

wlp9s0    IEEE 802.11  ESSID:"HTC Portable Hotspot 4AEF"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 80:7A:BF:B9:8F:D5   
          Bit Rate=54 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-38 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:120   Missed beacon:0

power management is disabled

sudo iwlist scan | egrep -i ‘ssid|cipher’ gives (refer)
Wifi keeps dropping on Dell XPS13 running Ubuntu 16.04, not sure how to use sudoedit on file

enp5s0    Interface doesn't support scanning.

lo        Interface doesn't support scanning.

                    ESSID:"HTC Portable Hotspot 4AEF"
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                    ESSID:"Nokia 8"
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP

sudo service network-manager restart doesnt work

shows this after i try reconnecting

enter image description here

requires reboot required after drop

also tried the following

16.04 LTS wifi connection issues with Realtek adapter

have replaced the adapters name . since it is RTL8111/8168/8411 and adding “/” with conf file cretes problems i chose a name with out “/”

wifi drops after few hours again

i have posted the output while wifi was connected
have edited this question multiple times to add all the relevant things i did but issue still persists

my kernel version is 4.15.0-24-generic

please help

edit 2: update to kernel version 4.15.0-29-generic #31~16.04.1-Ubuntu SMP doesn’t solve the issue

edit 3 : have set the region to IN
issue persistent

edit 4 : installed wicd-client from help.ubuntu.com/community/WICD . disconnection continues and so switched back to network manager again
issue is persistent

edit 5 : took a backup and installed windows 7 for one day , wifi worked fine implying hardware is working fine

edit6 : contacted dell support in case to be sure to know if the card was ok .they ran diagnostic and assured hard ware is working fine

edit 7 : after all the efforts , i realized that there is something missing with respect to the linux kernel itself, and so i intalled r8168-dkms via synaptic packet manager and the wifi is up since 235 minutes
but again the next day drop after 30 minutes of use

edit 8 : of all the above things that i have tried edit : 7 is the most stable, how ever i am not sure of the solution as disconnection persists

edit 9 : blacklisted r8169 by following in /etc/modprobe.d/r8168-dkms.conf

# if the aliases above do not work, uncomment the following line
# to blacklist the whole r8169 module
#blacklist r8169

by uncommenting as advised to

# if the aliases above do not work, uncomment the following line
# to blacklist the whole r8169 module
blacklist r8169

disconnection persists

edit 10 r8168 in edit 9 is for ethernet and not for wifi ,
from the link https://ubuntuforums.org/showthread.php?t=2391119

i did as advised, though for 18.04 but since the kernel version was same , i gave a try , didnt work !


Get this bounty!!!

#StackBounty: #16.04 #kernel #ssh #firewall #ufw UFW Allows 22 for IPv4 and IPv6 but SSH Disconnects When Enabling

Bounty: 50

sudo ufw disable followed by sudo ufw enable kicks me out of SSH

DMESG reports

[UFW BLOCK] IN=eth0 OUT= MAC=30:........ SRC=192.168.1.me DST=192.168.1.server LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=15776 DF PROTO=TCP SPT=55640 DPT=22 WINDOW=253 RES=0x00 ACK URGP=0

I can log back in without having to change rules via the console (UFW still enabled).

This started after upgrading Xenial (16.04) from kernel 4.4 to 4.15 (HWE). Upgrading to 18.04.1 did not solve the issue.

Versions:

  • iptables v1.6.1
  • ufw 0.35
  • 4.15.0-29-generic #31-Ubuntu
  • Ubuntu 18.04.1 LTS

UFW status verbose is (some rules were omitted, but they are all ALLOW)

Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22                         ALLOW IN    Anywhere
22 (v6)                    ALLOW IN    Anywhere (v6)

Why is this happening, or at least, how to revert to the expected behavior?

I looked at this answer, and I am not sure it applies, but here’s /etc/ufw/before.rules

#
# rules.before
#
# Rules that should be run before the ufw command line added rules. Custom
# rules should be added to one of these chains:
#   ufw-before-input
#   ufw-before-output
#   ufw-before-forward
#

# Don't delete these required lines, otherwise there will be errors
*filter
:ufw-before-input - [0:0]
:ufw-before-output - [0:0]
:ufw-before-forward - [0:0]
:ufw-not-local - [0:0]
# End required lines


# allow all on loopback
-A ufw-before-input -i lo -j ACCEPT
-A ufw-before-output -o lo -j ACCEPT

# quickly process packets for which we already have a connection
-A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

# drop INVALID packets (logs these in loglevel medium and higher)
-A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny
-A ufw-before-input -m conntrack --ctstate INVALID -j DROP

# ok icmp codes for INPUT
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT

# ok icmp code for FORWARD
-A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT

# allow dhcp client to work
-A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT

#
# ufw-not-local
#
-A ufw-before-input -j ufw-not-local

# if LOCAL, RETURN
-A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN

# if MULTICAST, RETURN
-A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN

# if BROADCAST, RETURN
-A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN

# all other non-local packets are dropped
-A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny
-A ufw-not-local -j DROP

# allow MULTICAST mDNS for service discovery (be sure the MULTICAST line above
# is uncommented)
-A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT

# allow MULTICAST UPnP for service discovery (be sure the MULTICAST line above
# is uncommented)
-A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT

# don't delete the 'COMMIT' line or these rules won't be processed
COMMIT


Get this bounty!!!

#StackBounty: #16.04 #drivers #nvidia Appeared purple shade after Nvidia driver installation on Ubuntu 16.04

Bounty: 50

I am trying to install Nvidia driver on my laptop with installed Ubuntu 16.04. The graphic card is NVIDIA GeForce GTX 780M. I followed the instruction on the Nvidia website and downloaded the driver from here: http://www.nvidia.com/download/driverResults.aspx/136120/en-us. The installation process went well, the OS recognized the driver, but the colors in some programs have been changed: magenta shade is appeared. There is an example of same picture before and after installation the driver:

Before

After

Why did it happen and how can I fix it?


Get this bounty!!!

#StackBounty: #16.04 #suspend #hibernate #lid Unable to wake with external keyboard while lid is closed

Bounty: 50

I have Ubuntu 16.04 on my Acer Aspire 7750G laptop connected to an external monitor with the built-in screen disabled. I also have an external keyboard and mouse connected to the laptop.


When I suspend the laptop with the laptop lid open I am able to wake the laptop by pressing the external keyboard.

However, if I suspend the laptop while the lid is closed, I am unable to wake it using the external keyboard. The same is true if I suspend the laptop with the lid open and then close the lid. The same is also true if I suspend the laptop with the lid open, close the lid, open the lid and try to wake it.

To summarize: I am unable to wake the laptop using the external keyboard if the lid has been close any time during hibernation. I am therefore unable to have my laptop lid constantly closed.


I’ve tried enabling all /sys/bus/usb/devices/usb*/power/wakeup

I’ve tried setting HandleLidSwitch=ignore in /etc/systemd/logind.conf

I’ve tried setting IgnoreLid=true in /etc/UPower/UPower.conf


How can I wake my laptop while the lid is closed?


Get this bounty!!!

#StackBounty: #16.04 #mouse #logitech #xbindkeys Logitech Master MX 2S app specific settings

Bounty: 100

So I have gone through almost all Master MX 2S questions here on Ask Ubuntu and other sites.

I did figure out how to do the xbindkeys for custom actions for some buttons and some synthetic key presses.

What I want to know is

  1. If there is a way to do app specific settings for the mouse.
  2. Using the thumb button as gesture button ( for example to move workspaces, etc )

libinputgestures is a fantastic project for multi-touch on track-pads . I was wondering if there is any , and if not , could anyone help me create one for the MX Master. I need help because I do not fully understand yet how these scripts are to be made but with some help I can definitely get started and find my way.

So please let me know if,

  1. Anyone knows the answers to the 2 above features , or
  2. Would like to help in creating a libinputgestures like utility for MX master. ( I know solaar btw. it doesn’t let me do the mapping yet. So yeah )


Get this bounty!!!

#StackBounty: #16.04 #gnome #nautilus #google-chrome #gnome-screenshot gnome-screenshot taking shots randomly, also affecting Google Sh…

Bounty: 50

I’m having a weird problem since the last week or so.

Out of the blue, gnome-screenshot starts taking a shot of the screen. I used to think it only happens when I’m working on Chrome(which is like 95% of the time the system is on), but today it happened almost instantly after the system booted and I entered my password.

It happens randomly sometimes, or sometimes when I press a key. It’s very annoying.

I have uninstalled the package, which was at version 3.18.0.

Also simultaneously, a weird problem has started in Google Sheets. After a sheet is loaded, the currently selected cell is cleared and the cursor starts blinking, as if someone double-clicked the cell. When I select a new cell, it waits a second and clears and edits that cell as well. Last time it happened when I uninstalled gnome-screenshot because of the above random-screenshots problem.
Then I reinstalled gnome-screenshot and the Sheets problem disappeared as well as the screenshots problem. Now, both problems are back simultaneously and for the time being I’ve uninstalled gnome-screenshot, but the Sheets problem remains.

I don’t know why this is happening, but I think it’s some kind of system call which is misinterpreted or some bug in some package.

I think this has started happening since I last ran the package updater.

Any solutions? I’m pretty sick of the situation as it is now.

P.S. Just noticed its effects in Nautilus as well. When I go into a folder and want to go back to the home directory(or any other in the parents), I can’t; instead the mouse pointer just starts blinking very rapidly(several times a second on/off).

I also can’t open any menus in the taskbar or anything. If I try to open a menu(e.g. to shut the computer down) it stays for a split second and then closes again. This happens again if I try to reopen.


Get this bounty!!!

#StackBounty: #16.04 #nautilus #encryption #decryption How to make Ubuntu decrypt the specific directory?

Bounty: 50

From the nautilus context menu, I have right clicked on /home/myaccount/www/somefolder, then I have clicked on Encrypt Folder. Now I would like to decrypt the folder. How can I do this? “Decrypt” command is not in the context menu!

enter image description here

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial

me@pc:~$ echo $XDG_CURRENT_DESKTOP
Unity


Get this bounty!!!

#StackBounty: #16.04 #xfce Ubuntu with Xfce becomes temporarily unresponsive for one or two mins

Bounty: 50

I’m using Ubuntu 16.04 with Xfce on an Intel Core 2 Duo 2.53GHz and 4Gb RAM, which I’ve had for a while and which isn’t keeping up with the increasing demands of software updates to Firefox and Xfce etc.

If I leave the computer unused (but on) for any length of time (typically overnight but often shorter) the GUI becomes unresponsive for a couple of minutes but then comes back to life.

I really only use these apps: Firefox, Handbrake, backuppc, terminal.

Since it also covers various other non-GUI functions like backuppc, iptables, bind, dhcp, there may be a lot of unnecessary server-side stuff going on.

This is my freemem output:

adam@gondor:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           3883         683         909         144        2290        2771
Swap:          4024         186        3837
adam@gondor:~$ 

Can I diagnose and fix this without adding more hardware, and apart from not using Firefox anymore?


Get this bounty!!!

#StackBounty: #networking #wireless #16.04 #internet #connection Wifi Connection Issues on Ubuntu 16.04

Bounty: 50

Everything was working fine until I upgraded my Ubuntu version to 16.04 recently.My wifi gets disconnected after every 10-20 mins. Sometimes it gets even worse and it gets disconnected in just 5 mins.
I have read this another question in AskUbuntu and tried to implement what the OP accepted as the answer.

16.04 LTS wifi connection issues

Now what I have done till now is I got my wifi details using

sudo lshw -C network

And here is the screenshot of what I got.

Card details

After that I made a config file in the config.d folder in etc. In which I added this command

SUSPEND_MODULES="ar9285"

(It’s my wireless interface model number)
After that, I ran this command in terminal

echo "options ar9285 fwlps=N" | sudo tee /etc/modprobe.d/ar9285.conf

After which I am getting this

options ar9285 fwlps=N

and rebooted

sudo reboot

But it’s no use. Wifi gets disconnected constantly. So it would be very much helpful if someone could just help me out.


Get this bounty!!!