Skip to content

u/andyandcomputer

In this archive from Feb 2018 to Jul 2019

0
posts
33
comments
0
media
87
score

I can't repro. The test completes for me without crashing on Chromium 66.0.3359.170 with Nvidia proprietary driver 390.77 (1050Ti card), Linux 4.17.16. I'm on Void Linux, but that shouldn't matter.

As for debugging: Typically the "Page has become unresponsive" error is a result of the JavaScript code on the page getting stuck in a non-terminating loop. If you're unable to open Chromium's developer console because the tab is just crashed completely, this question's answers suggest you can start Chromium with --enable-logging to dump console logs to a file instead. That might give some more insight into what's happening.

2 points

I also see annoyingly high X11 CPU usage when running xrandr --query repeatedly, with nvidia proprietary driver version 390.48. Since the driver is closed-source, your only options are to switch drivers or email Nvidia.

What do you actually need this for? Depending on your use-case, there may alternatives to polling xrandr, such as the udev rules mentioned in the answers to this question—if your use-case is to detect when monitors are (un)plugged.

2 points

Happy to hear something is working! :)

I don't get how netctl calling for dhcpcd is different from me doing it manually

I agree, there should be no difference. But we've narrowed it down to something going on in netctl that we don't understand.

You could try running netctl with debug logging too, with NETCTL_DEBUG="yes" netctl start your_wifi_profile_name. If that doesn't explain the discrepancy, then I think it's time to create a bug report for netctl on Github.

2 points

Maybe we can narrow down where it's failing.

Try xinput list to find the id of your keyboard, then xinput test <id> to see input events. The number at the end of each line is the keycode that should correspond to that key's name in xmodmap -pke.

I get this output from xinput test <id> for pressing and releasing my 0 key:

key press   19
key release 19

You can also get a better idea of what X11 thinks is happening with xev.

I get these in xev:

KeyPress event, serial 33, synthetic NO, window 0x2a00001,
    root 0x1e6, subw 0x0, time 1801480, (297,675), root:(1580,699),
    state 0x0, keycode 19 (keysym 0x30, 0), same_screen YES,
    XLookupString gives 1 bytes: (30) "0"
    XmbLookupString gives 1 bytes: (30) "0"
    XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x2a00001,
    root 0x1e6, subw 0x0, time 1801562, (297,675), root:(1580,699),
    state 0x0, keycode 19 (keysym 0x30, 0), same_screen YES,
    XLookupString gives 1 bytes: (30) "0"
    XFilterEvent returns: False
1 points

-48dBm signal level should be enough. Your problem could still be interference though: it doesn't matter how loud you hear the transmitter if something else is also loud on the same channel. To rule that out, you could try connecting to the access point with your antenna immediately adjacent to it. I don't know what wavemon uses as its metric for "link quality", but in my experience, my connection has been at best unreliable when it shows any less than 100%.

What I meant with "bare wpa_supplicant and dhcpcd" was that you could run the programs manually, instead of having netctl do it for you. The log output of wpa_supplicant (especially with the -d debug flag) should make it very clear whether the problem is with authentication, and dhcpcd (which also has a -d flag) should do the same for DHCP. If both look fine, it's the link or a bad router.

3 points

Some ideas:

  • Could it be that you're just getting really weak signal? What does wavemon tell you for instance?
  • Have you tried connecting using bare wpa_supplicant and dhcpcd? Their more detailed logs along with dmesg --follow should help narrow down what's failing.
2 points

I'm sorry, it's been years since I last used wicd. I remember I had a similar problem once, but I don't remember the solution.

If you want to give netctl at least a try after all, here's my config for that:

Description='Eduroam'
Interface=wlp3s0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
    'ssid="eduroam"'
    'scan_ssid=1'
    'identity="user@domain"'
    'password="yourpassword"'
    'proto=WPA RSN'
    'group=CCMP TKIP'
    'pairwise=CCMP TKIP'
    'eap=TTLS'
    'key_mgmt=WPA-EAP'
    'ca_cert="/path/to/certificate.crt"'
    'anonymous_identity="@domain"'
    'phase2="auth=PAP"'
)

You'll need to replace the same equivalent variables as in the wicd template with your own, and maybe the Interface, if your wireless card isn't wlp3s0.

1 points

I dug up some notes I made years ago that got eduroam working for me in wicd:

name = Eduroam
author = andyandcomputer
version = 1
require identity *Identity password *Password ca_cert *Path_to_CA_Cert anonymous *Anonymous
-----
ctrl_interface=/var/run/wpa_supplicant
network={
    ssid="$_ESSID"
    scan_ssid="$_SCAN"
    identity="$_IDENTITY"
    password="$_PASSWORD"
    proto=WPA RSN
    group=CCMP TKIP
    pairwise=CCMP TKIP
    eap=TTLS
    key_mgmt=WPA-EAP
    ca_cert="$_CA_CERT"
    anonymous_identity="$_ANONYMOUS"
    phase2="auth=PAP"
    priority=2
}

Save it under /etc/wicd/encryption/templates/ with whatever name you want. Remember to add its filename to the active file.

The fields you'll need to enter in wicd when selecting that template are—

  • Identity: your_username@domain_name (the whole thing)
  • Password: your login password
  • Path to CA cert: File path to your university's certification authority cert
  • Anonymous: just the domain name part, starting with and including the '@'
1 points

gnome and gnome-extra are package groups. The only package in them that networkmanager-qt actually depends on is networkmanager (part of the gnome package group).

I think you want the --unneeded flag for pacman -R, which tells it to only remove packages that are not dependencies of something you have installed.

sudo pacman -R --unneeded gnome gnome-extra

This does what you intend, right?

1 points

If you're looking to clear up space, my favourite way is pacgraph, available from the community repo. It makes a graph of your package dependencies and shows larger packages with larger fonts. This makes it easy to see what your largest packages are, and how they're related.

5 points

3 options I can think of, depending on your needs:

  • Have a separate file containing the value. The commands that sxhkd triggers can be arbitrary shell programs, so to type whatever's in ~/test:

     @F5
         xdotool type "$(< ~/test)"
    
  • Bind a key to send sxhkd a SIGUSR1 signal, which makes it reload its config, and hit that key whenever you change the config. The command you want is probably killall -SIGUSR1 sxhkd.

  • Run a background inotifywait that watches the config file for changes, and signals sxhkd whenever it's saved. (This way you don't have to remember to do it manually.)

3 points

I did some tests and it seems like xdotool does funky things when multiple invocations of it are used to type things in rapid succession, especially if some keys are already pressed at that time.

Here's a fixed sxhkdrc:

@F5
    xdotool key Return type 'hello world'

This works for me. The @ marker makes the command be run on key-up, so the held-down F5 key doesn't interfere. Multiple commands given to a single invocation of xdotool also don't interfere.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.