Dude, I've been using this font for like 2 years now and I think it's the best font for coding/ terminal ever. I highly recommend this font, especially if you have a 4k/retina display.
My mouse, trackpad, and keyboard work without those drivers so maybe I'm not uninstalling right...
That's the whole point of xf86-input-libinput. It covers all of those devices. Now that you have it you can do libinput-list-devices to see which devices it picks up. Those listed as 'pointer' or similar could potentially interfere with games.
Side note: You don't actually have to use xf86-input-libinput it's just a modern alternative to every other xf86-input-* package. You could uninstall it and bring back xf86-input-keyboard, xf86-input-mouse, xf86-input-synaptics, and others if you want to.
Libraries such as SDL could still pick up input devices and controllers that aren't handled by Xorg and libinput though.
I still think there's some rogue device in your machine that acts as an input device. You could try disabling devices one by one until there's only a keyboard and a mouse left.
Could it be that you had a controller or something plugged in at that time? I have an off-brand gamepad that does this sometimes.
In any case I would suggest you to uninstall all xf86-input-* packages except for xf86-input-libinput (ArchWiki) and see how it goes.
A word of caution though, if you uninstall allxf86-input-* packages and reboot you will have to Ctrl+Alt+F1 your way out of Xorg and install libinput driver from the TTY. Don't forget to keep xf86-input-libinput.
You could always put that hostname into a static lookup table /etc/hosts to avoid querying external dns. I know it's more of a workaround but maybe it'll help.
I didn't ask for it but I got the TTY in native resolution with proprietary nvidia drivers as a nice side effect of turning on "ultra fast boot" in UEFI (i think it has something to do with UEFI GOP). It works even before the OS starts, POST screen, UEFI GUI - all that in native resolution. The mobo is ASRock Z97 extreme4. It boots directly to EFISTUB kernel w/o any additional boot loaders (I use UEFI boot menu as a replacement for grub/systemd-boot)
Well... shit. i encountered a similar problem before and frankly i solved it just by installing drivers properly after i've discovered that direct rendering wasn't enabled. Is it just the GUI that's lagging? What about games, video?
Could it be that perhaps the video card itself is underperforming? Do you know how well it runs on windows or some other distro?
Sorry dude, running out of ideas here. Maybe someone else knows what could be the problem.
It should say yes. If it doesn't you've something fishy going on with driver/Xorg config. glxinfo can be found in mesa-demos package.
Also try disabling the compositor. Or better yet try running sublime under openbox, i3, awesome, pure X session or anything that doesn't use a compositor and see if it's the culprit.
Highly unlikely but it could also be that something is thrashing the CPU with interrupts. Something like a broken hardware/driver perhaps. You could inspect sudo journalctl -b and see if there's any errors there.
You should really check out journalctl specifically the part right after entering systemd and just mask and disable everything that shows up in red. Barbaric, i know. But hey it worked for me so why not :D
Maybe someone will come up with a more elegant solution but until then i'm fine with a bunch of masked units that didn't work anyway. Besides there's a positive side effect to this method - no more red lines in system logs.
I'm not sure some of those count as failed units. Afterall i had warning messages coming from org.freedesktop.NetworkManager.busname unit which caused systemd to appear during the boot.
But like i said it's not an ideal solution especially since you said basic kernel silencing args worked on vanilla and ck variants. Perhaps there is indeed a bug or - more likely - different build configuration regarding boot verbosity on zen kernel.
Wait i thought you said you don't get any messages when none of the units fail? Isn't that what you wanted?
I used to see systemd stuff on boot before i disabled a bunch of units and now it's just blank screen then briefly login prompt and desktop. I use xlogin from aur.
After booting into the system:
$ sudo journalctl -p 3 -b
-- No entries --
In my case if there's anything logged during the boot with priority 3 or higher i get full systemd output. Blank screen otherwise.
Also it might be worth pointing out that of all the kernel options related to silencing the boot process i only use quiet. And i have systemd in initramfs as mentioned in archwiki.
If you are using the systemd hook in the initramfs, you may get systemd messages during initramfs initialization. You can pass rd.systemd.show_status=false to disable them. Below is the parameters that you need to pass to your kernel to get a completely clean boot with systemd in your initramfs:
You see, if it's not blocking the boot process there's nothing bad with man-db finishing after 58 seconds. It's just a background task that doesn't actually define your boot time. You could put something like sleep 12d on a start up timer and it'll say your boot time was 12 days. See what i'm getting at?
Granted, if the system's running on non-SSD drive man-db could slow down the boot process slightly due to IO but i doubt it's any significant.
The code snipped i snatched from stackoverflow was in C so that's what i used. Also it might be worth mentioning that i used this method to mess with my mouse and not the keyboard but i figured this method should apply to keyboards as well.
One way to find which hidraw device is which is to look at /sys/bus/hid/devices/XXX/hidraw/ where XXX corresponds to your devices ID. hidrawX under /devmight change to a different number after a reboot but the hidraw under /sys/bus/hid/devices/XXX/hidraw/ will always point to the right one. At least that's what i found to work in my case.
Also i forgot to mention the magic number 91 in the snippet above is the length of the message in bytes.
I think sysctl is a system api so there should be some way to call it from python if you so desire. If for some reason sysctl method doesn't work for you - you could always try libusb like /u/WellMakeItSomehow suggested. Although it's a bit more complicated.
Under /dev there should be several hidrawX devices. One of them should be your keyboard. You can send usb commands using ioctl api.
<... more headers ...>
#include <linux/hidraw.h>
#include <sys/ioctl.h>
auto dev = open("/dev/hidrawX", O_RDWR | O_NONBLOCK);
uint8_t buf[] = { <... command ...> };
ioctl(dev, HIDIOCSFEATURE(91), buf);
That's one way to do it however you might need to use a different macro instead of HIDIOCSFEATURE.
You could also try cat COMMAND_DUMP_FILE > /dev/hidrawX.
I've spent many hours researching how to send usb commands and how usb works in general. I've still no idea how it works but ioctl method worked in my case.
What about time spikes? If you don't see time=N at the end of each ICMP response and instead you get (truncated) try pinging some other server than google.com.
If you do get lag spikes every now and then, lower -s 1472 until you don't. If it stops at about 1200-1300 then you have some funny business going on in your router/ISP.
Does it stutter when you play offline with bots? Also try running some network profiling tools to see if you have a stable connection (especially fragmentation related stuff like MTU).
Incorrect.
-10.ucode failed with error -2
seems to be a normal way of module trying to probe for experimental firmware which in this case is absent. It shows that it loads correctly on the next line.
Sometimes NetworkManager behaves funny, so there is a chance it's NM's fault. I would say the problem is in any of the three: kernel, NM, or something else - e.g. router.
does it work with wifi_menu?
if it does, maybe it's a bug in NM. check out wicd (https://wiki.archlinux.org/index.php/wicd)
try forcing the router to channel less than 12.
Dude, I've been using this font for like 2 years now and I think it's the best font for coding/ terminal ever. I highly recommend this font, especially if you have a 4k/retina display.
That's the whole point of
xf86-input-libinput. It covers all of those devices. Now that you have it you can dolibinput-list-devicesto see which devices it picks up. Those listed as 'pointer' or similar could potentially interfere with games.Side note: You don't actually have to use
xf86-input-libinputit's just a modern alternative to every otherxf86-input-*package. You could uninstall it and bring backxf86-input-keyboard,xf86-input-mouse,xf86-input-synaptics, and others if you want to.Libraries such as SDL could still pick up input devices and controllers that aren't handled by Xorg and libinput though.
I still think there's some rogue device in your machine that acts as an input device. You could try disabling devices one by one until there's only a keyboard and a mouse left.
Could it be that you had a controller or something plugged in at that time? I have an off-brand gamepad that does this sometimes.
In any case I would suggest you to uninstall all
xf86-input-*packages except forxf86-input-libinput(ArchWiki) and see how it goes.A word of caution though, if you uninstall all
xf86-input-*packages and reboot you will have to Ctrl+Alt+F1 your way out of Xorg and install libinput driver from the TTY. Don't forget to keepxf86-input-libinput.If you have an Intel CPU make sure you've installed and configured
intel-ucode(ArchWiki).My Haswell does all sorts of things without it.
You could always put that hostname into a static lookup table
/etc/hoststo avoid querying external dns. I know it's more of a workaround but maybe it'll help.I didn't ask for it but I got the TTY in native resolution with proprietary nvidia drivers as a nice side effect of turning on "ultra fast boot" in UEFI (i think it has something to do with UEFI GOP). It works even before the OS starts, POST screen, UEFI GUI - all that in native resolution. The mobo is ASRock Z97 extreme4. It boots directly to EFISTUB kernel w/o any additional boot loaders (I use UEFI boot menu as a replacement for grub/systemd-boot)
Also read this thread. It might help as well.
Well... shit. i encountered a similar problem before and frankly i solved it just by installing drivers properly after i've discovered that direct rendering wasn't enabled. Is it just the GUI that's lagging? What about games, video?
Could it be that perhaps the video card itself is underperforming? Do you know how well it runs on windows or some other distro?
Sorry dude, running out of ideas here. Maybe someone else knows what could be the problem.
Try:
It should say yes. If it doesn't you've something fishy going on with driver/Xorg config.
glxinfocan be found inmesa-demospackage.Also try disabling the compositor. Or better yet try running sublime under openbox, i3, awesome, pure X session or anything that doesn't use a compositor and see if it's the culprit.
Highly unlikely but it could also be that something is thrashing the CPU with interrupts. Something like a broken hardware/driver perhaps. You could inspect
sudo journalctl -band see if there's any errors there.Those sneaky monospace wannabes! Pretending to be fixed width when in fact they're not.
What's that blue thing? What did you do to your .bashrc or whichever you use?
Try running w/o .bashrc and see if that solves the problem.
You should really check out journalctl specifically the part right after entering systemd and just mask and disable everything that shows up in red. Barbaric, i know. But hey it worked for me so why not :D
Maybe someone will come up with a more elegant solution but until then i'm fine with a bunch of masked units that didn't work anyway. Besides there's a positive side effect to this method - no more red lines in system logs.
I'm not sure some of those count as failed units. Afterall i had warning messages coming from
org.freedesktop.NetworkManager.busnameunit which caused systemd to appear during the boot.But like i said it's not an ideal solution especially since you said basic kernel silencing args worked on vanilla and ck variants. Perhaps there is indeed a bug or - more likely - different build configuration regarding boot verbosity on zen kernel.
Wait i thought you said you don't get any messages when none of the units fail? Isn't that what you wanted?
I used to see systemd stuff on boot before i disabled a bunch of units and now it's just blank screen then briefly login prompt and desktop. I use xlogin from aur.
After booting into the system:
In my case if there's anything logged during the boot with priority 3 or higher i get full systemd output. Blank screen otherwise.
Also it might be worth pointing out that of all the kernel options related to silencing the boot process i only use
quiet. And i have systemd in initramfs as mentioned in archwiki.I masked and/or disabled offending units. Probably not ideal solution but at least now my journalctl is clean. Have you tried lowering loglevel to 0?
Also from ArchWiki on Silent boot:
If you omit explicit subvol from rootflags btrfs will mount the default subvolume. You can learn how to change the default subvolume here.
If that doesn't help you can always write a simple bash script (a single
sed, really).You see, if it's not blocking the boot process there's nothing bad with man-db finishing after 58 seconds. It's just a background task that doesn't actually define your boot time. You could put something like
sleep 12don a start up timer and it'll say your boot time was 12 days. See what i'm getting at?Granted, if the system's running on non-SSD drive man-db could slow down the boot process slightly due to IO but i doubt it's any significant.
I'm not sure it actually blocks the boot process. Check
and
and see if it runs in parallel with other processes. If that's the case then there's nothing wrong with 58s boot time.
I don't use gdm in my setup and man-db runs in the background as the desktop starts. I think. could be wrong tho
In any case man-db is started by man-db.timer which you can tweak if you want to.
From systemd.timer man:
The code snipped i snatched from stackoverflow was in C so that's what i used. Also it might be worth mentioning that i used this method to mess with my mouse and not the keyboard but i figured this method should apply to keyboards as well.
One way to find which hidraw device is which is to look at
/sys/bus/hid/devices/XXX/hidraw/where XXX corresponds to your devices ID.hidrawXunder/devmight change to a different number after a reboot but the hidraw under/sys/bus/hid/devices/XXX/hidraw/will always point to the right one. At least that's what i found to work in my case.Also i forgot to mention the magic number 91 in the snippet above is the length of the message in bytes.
I think sysctl is a system api so there should be some way to call it from python if you so desire. If for some reason sysctl method doesn't work for you - you could always try libusb like /u/WellMakeItSomehow suggested. Although it's a bit more complicated.
Under
/devthere should be severalhidrawXdevices. One of them should be your keyboard. You can send usb commands usingioctlapi.That's one way to do it however you might need to use a different macro instead of
HIDIOCSFEATURE.You could also try
cat COMMAND_DUMP_FILE > /dev/hidrawX.I've spent many hours researching how to send usb commands and how usb works in general. I've still no idea how it works but
ioctlmethod worked in my case.What about time spikes? If you don't see
time=Nat the end of each ICMP response and instead you get(truncated)try pinging some other server than google.com.If you do get lag spikes every now and then, lower
-s 1472until you don't. If it stops at about 1200-1300 then you have some funny business going on in your router/ISP.It'll ping at 300ms intervals and if anything goes wrong you'll see non-zero packet loss after C. Run it for a few minutes and see what happens.
Does it stutter when you play offline with bots? Also try running some network profiling tools to see if you have a stable connection (especially fragmentation related stuff like MTU).
Check your BIOS settings. I had a similar problem when a faulty bios caused the system to disable all but one core at boot.
Incorrect. -10.ucode failed with error -2 seems to be a normal way of module trying to probe for experimental firmware which in this case is absent. It shows that it loads correctly on the next line.
Sometimes NetworkManager behaves funny, so there is a chance it's NM's fault. I would say the problem is in any of the three: kernel, NM, or something else - e.g. router.
does it work with wifi_menu? if it does, maybe it's a bug in NM. check out wicd (https://wiki.archlinux.org/index.php/wicd) try forcing the router to channel less than 12.
End of this list.
Back to top