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.
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.
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.
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
Have you considered the possibility that laptops just run hot? Your numbers sound completely normal to me, for a laptop. There's only so much cooling you can manage with a side-blowing fan and tiny heatsink.
Some forum threads that agree your numbers are as expected for a Macbook: 1, 2, 3.
Do you have a temperature measurement from when you had OS X installed on it?
-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.
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.
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.
Yep, it's for wifi. Let me know if you need help; I remember how tricky this shit was. I've graduated though, so I don't have a definitely-known-to-work setup to share...
You're probably going to want to feed the player object's coordinates to glm::lookAt or similar. Offset the camera position vector along the axis that your 2D game isn't using, so it's an appropriate distance away.
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.
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.
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.)
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.
Sort of relevant: https://rms.sexy/
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-loggingto dump console logs to a file instead. That might give some more insight into what's happening./u/FloydiusMaximus collected the text of the tweets in the comments of that /r/valve thread here for ease of reading.
You shouldn't. It's a security disaster. Most reliable flow of new remote code execution vulnerabilities since Java Applets...
I also see annoyingly high X11 CPU usage when running
xrandr --queryrepeatedly, 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.At least you figured it out! :)
Thanks for writing such a clear post either way. You made it very easy to help you, if the problem had been more complex.
Happy to hear something is working! :)
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.There's no anime of Hatsune Miku unfortunately though… unless you count the cameos.
Maybe we can narrow down where it's failing.
Try
xinput listto find the id of your keyboard, thenxinput 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 inxmodmap -pke.I get this output from
xinput test <id>for pressing and releasing my0key:You can also get a better idea of what X11 thinks is happening with
xev.I get these in
xev:Have you considered the possibility that laptops just run hot? Your numbers sound completely normal to me, for a laptop. There's only so much cooling you can manage with a side-blowing fan and tiny heatsink.
Some forum threads that agree your numbers are as expected for a Macbook: 1, 2, 3.
Do you have a temperature measurement from when you had OS X installed on it?
-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
-ddebug flag) should make it very clear whether the problem is with authentication, and dhcpcd (which also has a-dflag) should do the same for DHCP. If both look fine, it's the link or a bad router.I'm afraid I can't help with Network Manager. It's is probably the only network manager program I've never used! :)
Good luck!
Some ideas:
wavemontell you for instance?wpa_supplicantanddhcpcd? Their more detailed logs along withdmesg --followshould help narrow down what's failing.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
netctlat least a try after all, here's my config for that: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.Yep, it's for wifi. Let me know if you need help; I remember how tricky this shit was. I've graduated though, so I don't have a definitely-known-to-work setup to share...
I dug up some notes I made years ago that got eduroam working for me in
wicd:Save it under
/etc/wicd/encryption/templates/with whatever name you want. Remember to add its filename to theactivefile.The fields you'll need to enter in
wicdwhen selecting that template are—This might be a good read: https://learnopengl.com/Getting-started/Camera
You're probably going to want to feed the player object's coordinates to
glm::lookAtor similar. Offset the camera position vector along the axis that your 2D game isn't using, so it's an appropriate distance away.I love my plain black T-shirts from MUJI. Good quality, no logos, no labels. Just shirt.
gnomeandgnome-extraare package groups. The only package in them thatnetworkmanager-qtactually depends on isnetworkmanager(part of thegnomepackage group).I think you want the
--unneededflag forpacman -R, which tells it to only remove packages that are not dependencies of something you have installed.This does what you intend, right?
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.
No problem. Good luck and have fun! :)
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: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
inotifywaitthat 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.)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: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.Try writing an
sxhkdrule that runsxdotool.Something like:
↑ Write that to
~/sxhkd/sxhkdrcand runsxhkd, then press F5 to test.If you want it to run when starting X11, put
sxhkd &in~/.xinitrc.Yeah,
man sxhkdis good.