Skip to content

u/speednap

In this archive from Nov 2014 to Aug 2016

0
posts
25
comments
0
media
60
score

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.

1 points

continues even when mouse is unplugged

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 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 keep xf86-input-libinput.

2 points

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.

1 points

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.

1 points

Try:

glxinfo | grep 'direct rendering'

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.

3 points

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.

1 points

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.

1 points

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.

1 points

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 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:

quiet loglevel=3 rd.systemd.show_status=false rd.udev.log-priority=3

4 points

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.

3 points

I'm not sure it actually blocks the boot process. Check

$ systemd-analyze plot > plot.svg

and

$ systemd-analyze critical-chain

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:

Example: "OnBootSec=5h 30min" means 5 hours and 30 minutes after boot-up.

4 points

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 /dev might 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.

2 points

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.

3 points

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.

1 points
$ sudo ping -M do -s 1472 -i 0.3 google.com

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.

2 points

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).

3 points

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.

2 points

End of this list.

Back to top

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.